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....
http://support.apple.com/kb/HT1954

Tuesday, November 25, 2008

php send attachments

http://www.sitepoint.com/article/advanced-email-php/6/

noice

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.

http://www.abc.net.au/rn/spiritofthings/stories/2008/2422949.htm

Monday, November 10, 2008

Saturday, November 8, 2008

accuweather melbourne, victoria code

accuweather melbourne, victoria code

OCN|AU|VIC|MELBOURNE

Thursday, November 6, 2008

watch this space - svarmisk.com.au

http://www.svarmisk.com.au/

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

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??)

Saturday, October 18, 2008

not posted for a while http://www.chimera.com.au/

http://www.chimera.com.au/

design
http://www.chimera.com.au/

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

strip special character html

from
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);

}

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

http://labs.adobe.com/technologies/spry/home.html - Spry Home Page
http://labs.adobe.com/technologies/spry/articles/menu_bar/index.html - Menu bar documentation
http://labs.adobe.com/technologies/spry/samples/menubar/MenuBarSample.html - Advanced menu bar styling

Tuesday, February 12, 2008

add user fields to joomla 1.5 for frontend editing

HACK WARINING

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');

open>libraries>joomla>database>table>user.php
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

http://www.ampsoft.net/webdesign-l/WindowsMacFonts.html

or

http://dustinbrewer.com/fonts-on-the-web-and-a-list-of-web-safe-fonts/

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

http://www.geekymac.com/?p=243

haven't found a compressor fix, any ideas?

EasySQL for Joomla1.5RC, if you without phpMyAdmin

http://extensions.joomla.org/component/option,com_mtree/task,viewlink/link_id,2867/Itemid,35/