"The fact is that in the US there are 2 very different countries. You go to somewhere like New York and the people are normal civilised and sensible like the rest of the majority in any western country. Now look at how they voted – 62% for Obama. You head south and inland to somewhere like Oklahoma and they are backward, ignorant yokels who have the sort of backward attitudes we all abandoned 50 years ago (bit like the NT really.) They voted 66% (the Whites around 80%) for McCain. That is why they went wild with celebration on the east coast in places like New York – they have been voting against the fascist Republicans for decades yet they get stuck with imbeciles like Bush and they are embarrassed by it.
Ideally, the civilised parts of America should let the backwards parts be an independent “Confederacy” (but all the atheists, scientists, homosexuals, independent-minded women, intellectuals and blacks might want to leave first) and making sure they do not get any of the Nuclear Weapons and then the remaining USA would be a truly great nation we could all admire."
Dave S
Thursday, November 6, 2008
Monday, November 3, 2008
mailto linebreak in Outlook Express Windows Mail
Outlook express won't recognize %0D but will see %0D%0A as seen here
http://tipicalcharlie.blog-city.com/forcing_a_line_break_in_an_html_email_link.htm
good for outlook express 6 on win2K and Windows Mail on Vista (and I assume everywhere in between??)
http://tipicalcharlie.blog-city.com/forcing_a_line_break_in_an_html_email_link.htm
good for outlook express 6 on win2K and Windows Mail on Vista (and I assume everywhere in between??)
Tuesday, October 28, 2008
Saturday, October 18, 2008
new site build - http://www.streamer.net.au
The holy grail, CMS controlled Flash site with seamless google indexing, luvly!
http://www.streamer.net.au/
design
http://www.streamer.net.au
http://www.streamer.net.au/
design
http://www.streamer.net.au
strip special character html
from
http://www.php.net/mysql_real_escape_string
http://www.php.net/mysql_real_escape_string
function mysql_prep($value){
$magic_quotes_active = get_magic_quotes_gpc();
$new_enough_php = function_exists("mysql_real_escape_string");
// i.e PHP >= v4.3.0
if($new_enough_php){
//undo any magic quote effects so mysql_real_escape_string can do the work
if($magic_quotes_active){
$value = stripslashes($value);
}
$value = mysql_real_escape_string($value);
}else{ // before PHP v4.3.0
// if magic quotes aren't already on this add slashes manually
if(!$magic_quotes_active){
$value = addslashes($value);
} //if magic quotes are avtive, then the slashes already exist
}
return $value;
}
Actionscript find hidden line breaks
function insertBreaks(theText) {
newText = "";
for (i=0; i if (theText.charAt(i) == String.fromCharCode(13)) {
newText += "
";
} else {
newText += theText.charAt(i);
}
}
return (newText);
}
Subscribe to:
Posts (Atom)