Sponsorised links
06 November 2009
redis - Project Hosting on Google Code
05 November 2009
02 November 2009
Sponsorised links
01 November 2009
PECL :: Package :: gmagick
31 October 2009
Analyse de dépendances classes/fichiers
29 October 2009
27 October 2009
WordPress MU « WordPress Codex
Use WordPress As a CMS: Plugins, The Bare Minimum
26 October 2009
Wordpress: l´exploit qui pourrait faire mal, très mal
36, c´est le nombre de lignes de PHP contenues dans un exploit à l´encontre de la grande famille Wordpress.
25 October 2009
php script - Categorizator
24 October 2009
Time/Weather Desktop on Flickr - Photo Sharing!
Well, most of the work is done by Earthdesk and GeekTool 3.
Earthdesk is set to Natural Color, Equirectangular projection, Natural Color, Real Moonlight, centered on Vienna, Background: Starfield. Zoom 80%, Clouds 80%, Brightness 80%.
In GeekTool, the times and the weathers are all separate Shell "geeklets".
Times are generated by running shell commands like
env TZ=Asia/Tokyo date " %l:%M %p"
every 20 seconds
The weather is the tricky part. The way I am doing it now, if I am not careful, gets me throttled for too many concurrent requests to the wunderground.com API server. It also fails badly if I am disconnected, so I will need to do it differently.
FWIW: I have a PHP script which I run as separate Shell Geeklets. I invoke it with the name of the city I want. It then hits wunderground and gets back an XML stream of the local weather, which I parse, format and echo. (the way I'd change this is run the script from cron, with a 30 second wait between requests, and cache the results locally, which I would then call from the Shell Geeklets)
From there it's just a question of setting fonts, sizes, colors and moving the little Geeklet boxes around as you want them.
