James Iry at One Div Zero has compiled a list of the history of programming languages. It’s a good read on a booring afternoon. Here’s my favorite part:
1995 – At a neighborhood Italian restaurant Rasmus Lerdorf realizes that his plate of spaghetti is an excellent model for understanding the World Wide Web and that web applications should mimic their medium. On the back of his napkin he designs Programmable Hyperlinked Pasta (PHP). PHP documentation remains on that napkin to this day.
You can read all of it here.
It’s as simple as this. Source: nedmartin.org
Today is Pi Day, celebrated by math geeks worldwide. It is celebrated today because the date is sometimes written as 3.14. To celebebrate this day, you can look piday.org to see the first million decimal places of Pi. I won’t write them all here this time, because it would take forever to load the page.
A few days ago, I found this page, Regex Crossword. It’s a great little game and exercise for a boring afternoon.
With this simple shell script, you can perform actions on all of your WordPress installations at the same time. This particular example changes the file ownership, but you can easily modify it to run the commands you need. It is based on my previous post about searching for WordPress installations.
for wp_config_file in $(find /var/www/ -type f -name 'wp-config.php' -print0 | tr '\0' '\040')
this_wp_directory=$(echo "$wp_config_file" | replace '/wp-config.php' '')
chown -R root:root $this_wp_directory
chown -R www-data:www-data $this_wp_directory/wp-content/uploads
echo "Fixed file permissions on $this_wp_directory"