wget
Prefilling the ImageCache cache with wget
Today I needed to get Drupal's ImageCache module to regenerate a bunch of resized images. ImageCache doesn't create the images until a browser requests them and at that point the new image is saved to the disk for future use.
One way to generate the images would have been to just click my way through every page on the site but I'm way to lazy for that. So I used wget:
wget -r -nd --delete-after http://example.comBy using the recursive (-r) and --delete-after switches I was able to have it crawl the site and get all the images generated. Bonus points for running in on the server so that the transfers were via the loopback interface so the transfer didn't count against the monthly bandwidth limit.
Getting PHP + GD working on Leopard (aka recompiling everything)
Last Updated: Sept 29, 2008
Here's my writeup on how to recompile PHP for Leopard to get GD working so you can use use Drupal. The basic plan is recompile Apache and PHP from source. It may totally bork your system, I'm just writing it down so the next time I need to do this I can remember what I did. I wish I could give credit to all the places I stole bits from but I didn't do a good job of keeping notes early on.
Every time Apple releases a security update it seems to end up overwriting PHP or Apache and I end up reviewing these instructions. Since it's my personal guide I end up modifying it to match my current needs. For example, the last big change was adding in old mysql extension and the new PDO-mysql extension. The upside for you, kind reader, is that means the instructions are generally up-to-date. The down side is that when you come back in two months and try to repeat part of this it might not work correctly because I added some earlier steps that you'll need to complete.







