Lee.org

View notable entries only
Page 1 of 512345Older»

My Wordpress Plugins 6-6-08

June 6th, 2008 8:16am. General, Wordpress

Credit where credit is due.
Here are all the Plugins I’m running as of 6-6-08 on this Wordpress 2.5.1 install.

Search and Replace Wordpress Plugin

May 29th, 2008 3:48pm. Wordpress

When I switched my permalinks from http://lee.org/blog/archives/… to http://lee.org/blog/… I had several links in my blog with the old “archives” links. Thankfully, the Permalink Redirect plugin redirects hits to those pages with “303″ errors. But I still needed to change the 30 or so posts with those old links. Search and Replace Wordpress Plugin to the rescue. Of course I backed up my database first but it worked peachy keen, changing links en-mass. Here’s the search-replace strings I used. Doing it this way kept some direct links I had to the “archives” folder intact.

href="http://lee.org/blog/archives/2008 --> href="http://lee.org/blog/2008
href="http://lee.org/blog/archives/2007 --> href="http://lee.org/blog/2007
href="http://lee.org/blog/archives/2006 --> href="http://lee.org/blog/2006
href="http://lee.org/blog/archives/2005 --> href="http://lee.org/blog/2005

etc…

YSlow Wordpress Performance Improvements

May 26th, 2008 2:17pm. Wordpress

The YSlow Firefox Addon suggested a few performance boosts for the blog.

This seems to cut 1-2 seconds off loading time. Nice :-)

added <?php flush(); ?>
just after </head>

I put this in my .htaccess file (at the root of lee.org). This helps a lot when revisiting my site :-))
ExpiresActive On
ExpiresByType text/html "access plus 1 week"
ExpiresByType image/gif "access plus 1 month"
ExpiresByType image/jpeg "access plus 1 month"
ExpiresByType image/png "access plus 1 month"
ExpiresByType text/css "access plus 1 month"
ExpiresByType text/javascript "access plus 1 month"
ExpiresByType application/x-javascript "access plus 1 month"
ExpiresByType application/x-Shockwave-Flash "access plus 1 month"

Upgraded to Wordpress 2.5

April 14th, 2008 4:48pm. Wordpress

It was a bother…. almost an hour of upgrading, disabling and re-enabling plugins.

And I really don’t grok the Add Media buttons. I only let myself upgrade now because the guy who makes Flexible Upload was kind enough to port his plugin to WP 2.5. It still bugs me that the new upload windows are modal. So now I’ve got to sit around and wait for them to finish until I can continue writing. It used to be that I could add images while I was typing. In addition, since it’s modal, I don’t have a chance to place the images exactly where I want them with my cursor as an insertion point. Instead, I just plunk all the images down into the post and then I can rearrange them.

I don’t like Wordpress 2.5 Image Upload

March 31st, 2008 11:32am. Wordpress

The new Wordpress 2.5.0 image upload system has several issues. I likely won’t upgrade to 2.5 until they are fixed. I like using Flexible Upload with WP 2.3 better because it…

  • is faster, no need to open up a modal window to go looking for images
  • fits on one screen, to get to the the button for saving the image in Wordpress 2.5, you have to pick up the mouse and scroll down
  • is more flexible, you can specify the size of the thumbnail on the fly
  • defaults can be changed, unlike WP 2.5.

reason-villege-old-spring-green-right-justified.jpg

March 25th, 2008 4:57pm. Art, Geekery, General, Wordpress

Internet Explorer viewers of this blog can now see what Firefox viewers have been enjoying for the last year or so…

miki-burning-man-04.jpgThe green bar behind “Lee.org” at the top of the blog wasn’t visible in IE til I fixed a .css file. Actually, the issue was that IE didn’t follow CSS specs, but it’s hardly worth griping about. IE 6 doesn’t see the background image in my CSS file when it reads as such:

background-image: /* url("http://lee.org/blog/images/reason-villege-old-spring-green.jpg");*/
url("http://lee.org/blog/images/reason-villege-old-spring-green-right-justified.jpg");

burning-man-2004-2-155.jpgI suppose it’s because IE sees the text being on 2 lines (there’s a carriage return in there)  as being 2 elements. But I’m not going to spend any more energy figuring it out.

The writing actually phonetically spells my name in Japanese. Logically, it’s an odd collection of thoughts… “Lee” sounds like “Reason”. Then “Son” and “ko” sound like “village” and “old”.

I have to thank Miki Kawabe for the translation. At Burning Man in 2004, we won the Second Annual Semi-authentic Finnish Wife Carrying Event. We won her weight in beer.

Yes, really!

Installed WP Super Cache

March 25th, 2008 2:01am. Wordpress

We’ll see how well installing Super Cache goes…

update 3-26-08: after a day, it’s starting to look pretty super! Page load times are super-fast. :-) And if (ahem) my SQL server is running slow, the blog isn’t slowed down at all unless you try writing (IE, leaving a comment)

update 3-27-08: WP Super Cache is a keeper. It’s got 2 parts, WP-Cache that runs PHP and does database calls only if it the current cached version isn’t up-to-date and/or there is no cached version. There may have been changes at Dreamhost but it seems that Super Cache is a faster WP-Cache than WP-Cache.

The second part, Super-Cache is just supa fast. It kicks in for people that aren’t logged in and don’t have a cookie showing that they’ve commented recently. This serves cached blog files as fast as flat html files. While in this second mode, viewers sometimes miss new comments and changes to pages until the cache times-out, which isn’t a big deal for people that have never commented (and therefore likely don’t really care if they see a new comment in 5 seconds instead of 6 hours)

update 4-3-08: Oh yeah, it’s a total keeper. I like seeing my site load this fast.

FYI, here is my .htaccess file for 0.6.1

# Begin Sitemap. See... http://blog.leion.net/2006/06/02/adding-human-readable-google-sitemap/
AddType application/xml .xsl
# End Sitemap
# BEGIN WPSuperCache
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /blog/
RewriteCond %{QUERY_STRING} !.*s=.*
RewriteCond %{HTTP_COOKIE} !^.*(comment_author_|wordpress|wp-postpass_).*$
RewriteCond %{HTTP:Accept-Encoding} gzip
RewriteCond %{DOCUMENT_ROOT}/blog/wp-content/cache/supercache/%{HTTP_HOST}/blog/$1/index.html.gz -f
RewriteRule ^(.*) /blog/wp-content/cache/supercache/%{HTTP_HOST}/blog/$1/index.html.gz [L]
RewriteCond %{QUERY_STRING} !.*s=.*
RewriteCond %{HTTP_COOKIE} !^.*(comment_author_|wordpress|wp-postpass_).*$
RewriteCond %{DOCUMENT_ROOT}/blog/wp-content/cache/supercache/%{HTTP_HOST}/blog/$1/index.html -f
RewriteRule ^(.*) /blog/wp-content/cache/supercache/%{HTTP_HOST}/blog/$1/index.html [L]
</IfModule>
# END WPSuperCache
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /blog/index.php [L]
</IfModule>
# END WordPress

Installed Smart Archives and Exec-PHP Wordpress Plugins

March 7th, 2008 1:13pm. Wordpress

My blog archives have been ugly for a long time. :-(

If the old narchives.php script is still up, take a peek at what my archives used to look like. Useful but ugly and slow because it’s uncachable.

So I just installed Smart Archives. To make it work, I also had to install Exec-PHP. I was a bit reluctant because enabling PHP in posts could be a security hole but… eh, it’ll be fine, right?

Now, my archives are all pretty-like. I insist on a straightforward appearing archive. None of that javascript fancyness because then you can’t use the Find function of your browser to locate posts. And you can’t easily scroll around, getting an overview.

Offensive Google Adsense and Section Targeting

March 1st, 2008 8:28pm. Wordpress

I’veoffensive-ads.png noticed that Google Ads sometimes serves up ads into my blog that I think are offensive (and bizarre). I’m trying to get rid of them by putting them in my “competitive ad filter” in Google Adsense. We’ll see how it goes. (grumble grumble)

I also just started using Google Adsense section targeting. I now put my post content inside these tags. Google should now be able to parse my posts easier.

<!– google_ad_section_start –>

My content blah blah blah.

<!– google_ad_section_end –>

Update 3-5-08

patch-image.pngAh ha. I figured out why my site has started seeing lots of penis related Google Ads. The title of the photo on my peni[nospam]s patch page is peni[nospam]s-patch.jpg. My site is apparently the most popular image site on the internet related to peni[nospam]s patches. You’ll notice that the second most popular “peni[nospam]s-patch” photo is the photo I use in the upper right corner of my blog header. Apparently, the two photos had their google-juice comingled (eiw!). And while I enjoy being a being a peni[nospam]s patch magnate, I think I’ll change the name of that file so all my Google ads aren’t so…. patchy.

Update 3-13-08: Over the last 7 days, the hit count for the peni[nospam]s patch image has fallen from 230/day to less than 25/day.

New Wordpress Permalink Structure. Installed Permalink Redirect plugin

February 28th, 2008 7:52pm. Wordpress

Links to blog entries used to look like this:

http://lee.org/blog/archives/2008/02/28/new-wordpress-permalink-structure/

I just changed it to the more common:

http://lee.org/blog/2008/02/28/new-wordpress-permalink-structure/

I’m using the Permalink Redirect plugin by Scott Yang so that old links still work; they do a 301 redirect to the new page. It’ll take months for the search engines to notice fully and years until I can remove the old permalink structure but I’m happy with it.

Set up a cron job to optimize databases monthly

February 28th, 2008 3:33pm. Wordpress

I set this up mostly because Spam Karma leaves giant overhead in my Wordpress MySQL database. But it can’t hurt running it on the rest of my databases.

My cron job, which runs at 6:05am every first of the month looks a bit like this
#!/bin/sh
# Optimize all of my popular databases. This is run from a cron job monthly or so.
echo -n "Started database optimization at ";/bin/date; echo -e "\n\n";
/usr/bin/mysqlcheck -o -v -u user -ppassword -h mysql.lee.org blogdatabase;
echo -e "Finished blogdatabase\n\n";
/usr/bin/mysqlcheck -o -v -u otheruser -potherpw -h mysql.lee.org otherdatabase;
echo -e "Finished gallerydatabase\n\n";
echo -n "Finished database optimization at ";/bin/date; echo -e "\n\n";

I get a monthly email with the output that I can look over.

Installed Admin Drop Down Menu for Wordpress

February 28th, 2008 12:50pm. Wordpress

Admin Drop Down Menu: You know how it always takes a few seconds to click around the Wordpress Admin Menu… first you click on “Write”… wait… then click on “Write Post”. This makes the Admin menu all snazzy fast. :-)

I wish I had found this plugin a long time ago.

Thanks to technicaltricks.blogspot.com for pointing it out to me.

Installed FLV-Embed 1.0 for Wordpress

February 28th, 2008 12:24pm. Wordpress

The interface on my end for the new FLV-Embed is prettier than the older FLV-Embed. Users won’t notice a difference. Well, it uses the newer FLV Player 3.12. Is that any better? Who knows. Maybe The Shadow knows.

Installed RSS-Footer Wordpress Plugin

February 28th, 2008 10:25am. Wordpress

RSS-Footer sticks a little footer in my RSS feed that points viewers back to my blog. It helps redirect people back to the site (which is prettier than a boring RSS feed) and might help deter website scrapers somewhat. Scrapers steal web content and put it on their own spammy sites to try and generate ad revenue.

Considering Lightbox Upgrades

February 16th, 2008 2:10pm. Wordpress

I am very fond of the WP Lightbox plugin I have on my blog. I’ve always wanted it to automatically scale images that were too large for the page. that way, I could happily upload full resolution images without worrying that my viewers would only get to see a tiny corner of the full image. I’ve found some new Lightbox-like plugins that do what I’m looking for, Shutter Reloaded and Lightbox JS. I want to like Lightbox 2.5 but it doesn’t have the auto-scaling and it takes forever (read: almost 2 seconds) for each image to finally appear on the screen given all it’s fancy window slides. :-(

What I want in a lightbox plugin:

  • Opens image box smoothly (a quick fade would be nice
  • Auto-scaling if the image is larger than the screen
  • Very light footprint on my Wordpress code… IE, don’t add code to each image tag in the database. Can be uninstalled seamlessly
  • Multi-image gallery possible but not required
  • When showing gallery images, the “next” and “previous” buttons don’t move when you hit the first or last image (IE, when the icons change from “[close] [next]” to “[previous] [close] [next]“

Installed PHP_FastCGI

February 10th, 2008 6:58pm. Wordpress

While FastCGI has been running, calls to Wordpress have gone from about 4 seconds to 2 seconds. Calls to Mediawiki have gone from 8 seconds to 5 seconds. :-)

I installed PHP_FastCGI on the blog and the (private) Flaming Lotus Girls wiki. I had tried installing it a year ago but it proved unstable. New instructions were put on the Dreamhost wiki and it’s been running well for the last few days. Here’s how I installed it:

in my root Wordpress folder, I created a file called php5-wrapper.fcgi. In it, I wrote:

#!/bin/sh
export PHP_FCGI_CHILDREN=2
exec /usr/local/dh/cgi-system/php5.cgi

and then set the file to be executable like so

chmod u+x php5-wrapper.fcgi

Then I added the following to the .htaccess file:

AddHandler fastcgi-script fcg fcgi fpl
AddHandler php5-fastcgi .php
Action php5-fastcgi /php5-wrapper.fcgi

Done!

Now 3 PHP sessions stays active, waiting for people to call on my server instead of PHP starting up every time I get a hit. When I run ‘ps aux’, I see the processes just sitting there, waiting. Sometimes there’s up to 6 processes temporarily.

Repair and Optimize your MySQL Database Occasionally

January 24th, 2008 6:26pm. Wordpress

My blog was getting slow so I called Dreamhost support. They wrote back

Okay, I see a pretty big issue. It looks like you’ve got 92MB of overhead (i.e. unoptimized queries) on your blog’s database. Optimizing the queries seems to have knocked your DB down to a more sensible 37.8MB - which can be trimmed further if you go thru and purge any questionable comments in Spam Karma as its tables take up 7.6MB. Go ahead and see how the optimizations have helped and let me know if you happen to have any further questions. I’ll be more than happy to help you get things sorted out if you need me to.
Thanks!
Jason

That helped muchly. I put on my calendar next to flipping my mattress, “Repair blog database tables to remove overhead. Then Optimize tables. Enjoy.”

Installed Search Everything 4.1

October 13th, 2007 11:03pm. Wordpress

I used to have Search Everything installed but it broke in some version of Wordpress. Well, it’s back. Now, when you search on my blog it looks at all of the comments as well as posts. You can also search for phrases with “quotation marks”. :-)

Upgraded to FLV-Embed 0.3.2

September 29th, 2007 10:27pm. Wordpress

FLV-Embed lets me put Flash videos on Wordpress with great ease.

Find it on the FLV-Embed homepage.

Here’s some tidbits from the homepage

(more…)

Upgraded to Wordpress 2.3

September 29th, 2007 10:16am. Wordpress

woopie

Page 1 of 512345Older»