November 30th, 2004


userinfo senji
2004/11/30 01:20:00 - F O G
Some time back now, I modified my friends page to include a BBC weather glyph for Cambridge (via an evil hack).

For the first time ever it says [F O G].
Current Mood: [mood icon] amused
Current Music: The Beatles -- Hey Jude [last.fm]
Entry Tags: hacks, lj, random 2004

< | 3 glosses | comment | > )

userinfo kaet
2004/11/29 18:13:36
Shirley, it should just say F or O or G depending on which letter is over Cambridge, :). You're to the west so I guess you're F.
reply | thread )
userinfo agenticarus
[userpic]
2004/11/30 02:11:14
what was the evil hack?
reply | thread )
userinfo senji
[userpic]
2004/11/30 04:04:31 - Evil Hack
The images are all static images; and the weather page links to the appropriate one; so I can't just link through to the image. So, instead, I put <img style="margin-left: 10%;" src="http://www.chiark.greenend.org.uk/ucgi/%7Ejdamery/weather?" height="65" width="80"> where weather is the following shell script:

#! /bin/bash
set -e

export http_proxy=http://localhost:3128/

wget -q -O - --load-cookies ~/var/lib/weather/bbcw.cookie.txt "http://www.
bbc.co.uk/weather/" | grep 'symbol.*summary' | sed 's¬.*src="\([^"]*\).*¬S
tatus: 302 Found\
Location: http://www.bbc.co.uk\1\
Content-Type: text/plain\
\
Your browser should have been redirected to a weather glyph.\
\
¬'

reply | parent | thread )

< | 3 glosses | comment | > )

F O G - Squaring the circle...

> log in
> recent entries
> fiends
> archive
> toothywiki page
> profile
> new entry
> recent comments


> go to top