Simon Willison’s Weblog

Subscribe

Saturday, 8th February 2003

Image Drag bookmarklet

I got a good response to yesterday’s call for help on finding an HTML element’s co-ordinates on a page. I ended up using PPK’s findPos functions which seemed to do the trick just fine.

[... 338 words]

Hashing client-side data

Via Scott, a clever PHP technique for ensuring data sent to the browser as a cookie or hidden form variable isn’t tampered with by the user:

[... 248 words]

pngcrush

Mark invoked the lazy web earlier today in a bid to find a good way of bulk optimizing PNG files. Several people recommended pngcrush in the comments and it sounds like a fantastically useful piece of software—apparently it can run 114 different lossless compression methods on an image and automatically chose the most efficient one.

2003 » February

MTWTFSS
     12
3456789
10111213141516
17181920212223
2425262728