Archive for the ‘Online’ Category.
February 2, 2008, 8:54 AM
Let’s you use correct syntax on your code snippets, or rather – keeps WordPress from fucking up your code.
Download from here. To use, wrap your code with
<pre lang="LANGUAGE" line="1"> and </pre>
line=”1″ is optional. This is based on syntax highlighting from GeSHI. You can visit their page for a full list of supported languages. The ones I care about are – or rather, may care about in the future:
Continue reading ‘WP-Syntax’ »
February 1, 2008, 5:27 PM
UPDATE – 3/5/8.. PHP speedy is now a plugin. Gotta say, it mucked up things for me. I don’t feel like doing anymore troubleshooting, but I would NOT recommend it. I may try eAccelerator.
PHP Speedy is a pretty cool PHP optimizer/compressor. It compresses your data before sending it over the interweb. You need to download the files from the link at the start of this article, put those files in your web root, run a quick setup and then….
Add this to the very top of your index.php (your path will vary:)
Add this to the very bottom
I added it to my main theme, and it’s very snappy. When I added it to my iPhone optimized page, it made a HUGE difference.
December 6, 2007, 1:39 PM
Go to about:config in your browser
Search for browser.sessionstore.resume_from_crash
Set to false
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, 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’ »