/home » workblog

Entries for May, 2009

Preloading Images

I’ve been looking for a good way to preload images for rollovers, but it seems like a lot of the common methods have problems.

There are reliability issues using a JavaScript Image object or document.write()
Some browsers won’t load a display:none containing element

So far the best way I’ve found is Perishable Press’ Better Image Preloading without JavaScript [...]

Finding a string inside multiple files on Linux

Snipplr has a good article on how to find all of the files on a Linux system that contain a specific string.

find /the/path/to/start/at |xargs grep 'the string' -sl

The search will include subfolders.