Project Euler problem 25 is reasonably straighforward. It asks you to find the first term in the Fibonacci sequence with more than 1000 digits. In ones like these, not reading the question properly is more likely to be your downfall than anything else. So: Give the number of the first term which has 1000 digits, [...]
Archive for July, 2012
http://linux-knowledgebase.com/en/Tipoftheday/February/error23errorwhileparsingnumber saved my server. It wasn’t booting after an upgrade to Debian Squeeze, despite following the upgrade instructions. Connecting to the serial console showed there were problems with finding root (grub error while parsing number, error 23) which was at md1. Changing the first line to root (hd0,0) and adding initrd /boot/initrd.img-2.6.32-5-amd64 allowed the system [...]
Because I keep forgetting, here’s a reminder to myself of the correct way to iterate through files and directories in bash, even considering spaces in filenames, whith a hat-tip to Thomas Howard Uphill: find . -type f|grep .ext$ |while read file do /do/something/to “$file” done Silly rabbit.
TLDR: RTFM (http://striderweb.com/wp-content/multiblog/multiblog-readme.htm#permalinks) I had problems with permalinks and Virtual Multiblog (yet another linky), basically that for every wordpress instance I added I would have to add another set of permalink-related Apache Rewrite rules to prevent individual entries 404-ing. This was fragile and prone to failure. Fortunately, there is a Proper Way To Do It: [...]