October 2, 2007, 5:47 pm
RewriteEngine on
#ErrorDocument 404 /?page_id=126
ErrorDocument 404 /index.php?error=404
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) /index.php?error=404
“#ErrorDocument 404 /?page_id=126″ - This is the page for my archive, and where I redirected error pages to before implementing and Customizing AskApache Google 404. The current error page goes to AskApache’s Google 404 page. The last three lines are necessary for 1and1 to redirect php files. Without these three lines, your 404 php pages go to 1and1’s 404 page (but only php pages.)
October 2, 2007, 10:09 am
echo ‘25+7′ | bc - addition
echo ‘25-7′ | bc - subtraction
echo ‘25*7′ | bc - multiplication
scale - the scale variable tells how many decimal places to take your answer. The default is 0, unless using -l, in which case the default is 20.
echo ’scale=5;25/7′ | bc division
3.57142
echo ’scale=10;sqrt(7)’ | bc square root
2.6457513110
bc -q interactive mode
October 2, 2007, 9:58 am
sysctl -A - A complete list of sysctl settings
sysctl hw.cpufrequency - CPU speed. It’s reported to not be correct on older systems (PowerPC?)
sysctl vm.swapusage - swap file usage
/etc/sysctl.conf - config file for sysctl
October 2, 2007, 8:15 am
In an effort to utilize my Google Custom Search Engine (CSE), I turned to the AskApache Google 404 plugin. It’s a great plugin. If someone comes to your site using an outdated URL, such as cainmanor.com/tunafishsandwich, it will drop you to a search page, giving you the option to search google, my custom search engine or my blog for “tunafishsandwich OR cain manor.” As handy as it was, it didn’t quite meet my needs. I had to change a few things to get it to work for me.
Continue reading ‘Customizing AskApache Google 404’ »