Monday, December 15, 2008

expired accounts and iChat

if you have a .mac ichat account, use mobileme then cancel mobileme that deactivates the .mac account from ichat....

Tuesday, November 25, 2008

php send attachments


Nun denies existence of god.

Mother Teresa's selfless care of the sick and dying is what attracted Colette Livermore to follow in her footsteps. Joining the Missionaries of Charity at 18, Colette worked among the destitute in Kolkata, Papua New Guinea and Manila. She eventually left the order, dissillusioned and with a crisis of faith, and later became a doctor. Colette's memoir - the first ever written about life as a nun in Mother Teresa's order - is a journey from certainty to doubt, and she recounts the highs and lows of her journey to Rachael Kohn.

Monday, November 10, 2008

Saturday, November 8, 2008

accuweather melbourne, victoria code

accuweather melbourne, victoria code


Thursday, November 6, 2008

watch this space -

great summary

"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

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

good for outlook express 6 on win2K and Windows Mail on Vista (and I assume everywhere in between??)

Saturday, October 18, 2008

not posted for a while


new site build -

The holy grail, CMS controlled Flash site with seamless google indexing, luvly!


strip special character html


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
//undo any magic quote effects so mysql_real_escape_string can do the work
$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
$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);


Monday, March 10, 2008

use adobe spry menu bar with Joomla 1.5

to use spry menus just change built in main menu to flat list change the

and change css as joomla puts in a "menu"
before the suffix

Sunday, March 9, 2008

/** content.html.php
* Writes Readmore Button
function ReadMore ( &$row, &$params ) {
if ( $params->get( 'readmore' ) ) {
if ( $params->get( 'intro_only' ) && $row->link_text ) {


Tuesday, February 26, 2008

Hanging CSS image box

adobe spry links - Spry Home Page - Menu bar documentation - Advanced menu bar styling

Tuesday, February 12, 2008

add user fields to joomla 1.5 for frontend editing


backup jos_users using phpmyadmin or similar

add fields to jos_users i.e. address1, state etc

open components>com_user>views>user>tmpl>form.php

copy and change existing form fields

open components>com_user>models>user.php

duplicate existing entries and change names

i.e. $post['username'] = JRequest::getVar('username', '', 'post', 'username');
$post['address1'] = JRequest::getVar('address1', '', 'post', 'address1');
$post['state'] = JRequest::getVar('state', '', 'post', 'state');

duplicate existing entries and change names

i.e. var $email = null;
var $address1 = null;
var $state = null;

Common fonts to all versions of Windows & Mac equivalents


Run FCP 4.5 on an Intel Mac - If You Really Want To

haven't found a compressor fix, any ideas?

EasySQL for Joomla1.5RC, if you without phpMyAdmin,com_mtree/task,viewlink/link_id,2867/Itemid,35/