Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'show www.humanclock.com-pictures on the desktop:' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
show www.humanclock.com-pictures on the desktop:
Authored by: nick on Jan 15, '05 06:53:32PM
www.humanclock.com is a website that shows different jpgs each minute. just have a look.

generate two geektool-tasks. one helper-task that extracts the name of the actual pic, downloads it and saves to a file. the second task just shows this pic.

1. curl `curl --cookie "hclock=$COOKIECONTENT" http://www.humanclock.com/clock.php | grep "http://www.humanclock.com/livefiles/digital" | sed s/"\""//g | sed s/".*updown src="/""/ | sed s/" border=0.*"/""/` > /tmp/humanclock.jpg

2. show the picture: file:///tmp/humanclock.jpg

replace $COOKIECONTENT with the content of the cookie named "hlock" saved by www.humanclock.com when beiing visited with firefox (in safari the content of a cookie cannot be copied). $COOKIECONTENT is something like
"13036%23%26uc%3D3%26ut%3D110577900 %26ua%3D0%26uz%3D60%26us%3D7108547e23
483c077267f34b3fa4337e%26uf%3D0%26ul%3D0
%26uL%3D0%26uo%3D0%26ux%3D0%26uj%3D1
%26ub%3D0%26uy%3D0%26um%3D1%26up%3D0
%26ui%3D1%26uh%3D%26uu%3DFF9933%23c57
75a7306758bacf5c659b4dbb91e84"
as one long line.

the site needs the cookie to figure out, in which timezone you are.

[ Reply to This | # ]
regard this hint: "A possible fix for GeekTool image display crashes"
Authored by: nick on Jan 15, '05 07:54:04PM

it crashes, if you don't regard this hint: http://www.macosxhints.com/article.php?story=20050111084206580&query=geektool

add this to the end of the 1. geektool entry:
; mv /tmp/humanclock.tmp.jpg /tmp/humanclock.jpg



[ Reply to This | # ]