Published by dekay on November 28, 2005
in Uncategorized.
I am using the $dt->blog(); ยป Google analytics plugin here on this site, but for tracking outgoing link clicks I have had to modify the plugin like this:
add_filter('the_content', 'ga_addonclick', 10);
function ga_addonclick($value){
if(get_option('ga_onclick')){
$value = preg_replace("/<a href=\"([^\"]+)\”/e”,
“‘<a href=\’$1\’ rel=\’nofollow\’ onclick=\”.ga_parseurl(’$1′).’\”” ,$value);
}
return $value;
}
function ga_parseurl($href){
$onclickcode = stripslashes(get_option(’ga_onclick_code’));
$href = str_replace(’http://’, ”, $href);
return str_replace(’$site’,$href,$onclickcode);
}
Reading this article about a failing hard drive as well as this note I realized that it would be pretty neat if I had an available backup solution off-site (like somewhere on the net) for free - just to store really essential files/folders, maybe a total of 100 MB. There would be the possibility of .mac (which is quite easy and useful but not free); then there is my storage at GMX - accessible via WebDAV, but horribly slow; my webhoster (with too few space), and then there is gmail - free, 2 GB space, searchable, accessible from anywhere with a web connection. And happily all you ever need to store stuff is just a fast connection to your webserver. And a script that does the job for you - maybe with a Cocoa-GUI where you can drag & drop certain files & folders - and whoopie, they get sent to your backup gmail address daily. You can always delete stuff from gmail if necessary - or just create another backup account!.
Has anyone seen this little script/tool for OSX yet?
I just created a little rule for Pithhelmet that automatically sends me to the printable article version at Howstuffworks - much better on my eyes and my attention span.

Recent Comments