Subscribe via

Make Popularity Contest Work with WP-Super-Cache

Thaya Kareeson

Previously I wrote ‘Make Your WordPress 10X faster During Traffic Storms‘, which is a post about automatically turning WP-[Super]-Cache on/off and automatically switching your WordPress theme to a lighter theme during heavy traffic. One of the main reasons that I had this setup was because I could not get statistics to work with WP-Super-Cache (i.e. my chCounter & Popularity Contest plugin is hosed).

After some tinkering, I was able to get chCounter and Popularity Contest to work with WP-Super-Cache. This involves using javascript to count instead of PHP. chCounter was a simple change, but Popularity Contest was a bit more challenging. Usually I would immediately post the “How-to” here, or rather release the modded plugin to the public myself, but I believe that I shouldn’t step on Alex King’s shoes (the original developer of Popularity Contest). I’ve sent the Popularity Contest code to Alex for code review. He’s been doing some of the same work, and hopefully he can incorporate some of my changes into the plugin and release it to the public soon.

If anybody would like to use my version of the Popularity Contest before Alex King releases it to the public, you may download the WordPress 2.3.3 and WordPress 2.5 compatible version here:
Read on…

Developing CiCi’s Cafe Website

Thaya Kareeson

Cici (Paweena’s sister) owns a breakfast restaurant in Tarzana, CA. I am blessed and thankful for that because she lets me free-load off the delicious fresh food at her restaurant every time I visit Los Angeles. (As a side note: If you ever get the chance, you should visit CiCi’s Cafe in Tarzana, CA. Highly recommended breakfast joint!)

Aside from not knowing how to repay her for her kindness, I love the food so much that I have been developing a website for her restaurant, ciciscafe.com.

CiCi’s Cafe Screenshot

Believe it or not, the site’s backbone is WordPress! I can’t believe how easy it is to turn a WordPress blog into a simple restaurant site. This just goes to show how flexible Content Management Systems (CMS) are now.

I am nearly finished with the site. All I need to do now is update the menu and add some yummy food pictures.

Nowthen Photo Display WordPress Plugin

Thaya Kareeson

This plugin is no longer supported/updated because of low demand for the plugin.

Today I would like to announce the release of “Nowthen Photo Display” WordPress widget that parses picture RSS feeds from the image service nowthen.com and displays the pictures neatly on the sidebar. This is my first WordPress widget so any comments and suggestions are welcomed. I would be happy to make updates/releases if the demand for this widget is high enough and there are some worthwhile feature requests.

Screenshots

Sidebar Widget
Sidebar Widget
Widget Options
Widget Options
Gallery
Gallery
Gallery Options
Gallery Options

Read on…

150W to Power My Computer

Thaya Kareeson
Comments Off


In the previous post, I found out that it takes 150W to power my personal computer which I always leave on the entire day. I felt bad that I am not contributing to the “Go Green & Save the planet” cause. I actually use my person computer for a variety of things throughout the day but there was definitely a way to optimize the usage. Here are tasks that require my computer to be on all the time:

  1. File Server (mainly used for backups)
  2. Torrents
  3. PVR System
  4. Personal FTP Server (mainly used for syncing settings with my work computer)
  5. MyCast Orb Sharing

I immediately saw that I can give up MyCast Orb Sharing, since I haven’t used it for months. Read on…

1500VA of Battery Backup for Omninoggin.com

Thaya Kareeson


I recently purchased an APC BACK-UPS XS 1500VA LCD for $120 to prepare for California rolling blackouts/brownouts. I’m not sure if this is going to be worth it yet since I still cannot supply backup internet access in case of power outage. So if the power goes out, omninoggin.com along with a few other sites will still be forced offline. The great news though is that all of my precious hardwares are completely protected from over/under power issues. Here are some interesting facts I found out while installing this battery backup unit:
Read on…

Kombucha Detox Tea – The Miracle Drink?

Thaya Kareeson

Kombucha

Have you ever seen one of these bottles selling in Whole Foods or Trader Joe’s? Do you ever wonder what it is and why the heck each bottle cost $4? A few months ago, I decided to find out what it is myself and forked out $4 for a raspberry flavored one. Once I opened the cap, the liquid started fizzing and foaming (naturally carbonated). I took a sip and it tasted nothing like what I was expecting. The drink was quite sour and had an odd after taste to it. I didn’t like it at all, but I figured that I should finish it and make it worth $4. About fifteen minutes later, I was in for a surprise. Read on…

WP-Super-Cache Released!

Thaya Kareeson

What more can I say but “GPL FTW”. This is what happens when you release something under GPL and do not put in much effort in supporting it. Someone else takes it over and releases a better version of your own code leaving the consumers to benefit! Donncha O Chaoimh from Holy Shmoly! released WP-Super-Cache, a WordPress caching plugin built on top of WP-Cache. From Holy Shmoly!, here are the differences between WP-Super-Cache and WP-Cache:

  1. A plugin and hooks system. A common complaint with WP Cache was that hacking was required to make it work nicely with other plugins. Now you can take advantage of the simple plugin system built in to change how or when pages are cached. Use do_cacheaction() and add_cacheaction() like you would with WordPress hooks. Plugins can add their own options to the admin page too.
  2. Works well with WordPress MU in VHOST or non-VHOST configuration. Each blog’s cache files are identified to improve performance.
  3. Normal WP-Cache files are now split in two. Meta files go in their own directory making it much faster to scan and update the cache.
  4. Includes this WP-Cache and protected posts fix.
  5. Automatically disable gzip compression in WordPress instead of dying.
  6. As Akismet and other spam fighting tools have improved, the cache will only be invalidated if a comment is definitely not spam.
  7. Version 0.2 supports gzip compression

Did you see that? Supports gzip compression! Finally, an easy way to enable gzip and WP-Cache. The best part of all of this is that the automatic WP-Cache enabling method still works for this plugin since it was built on top of WP-Cache. I encourage everybody to upgrade!

Bypass iTunes, Rockbox Rocks!

Thaya Kareeson

Rockbox Banner

“Rockbox is an open source firmware for mp3 players, written from scratch. It runs on a wide range of players…”
- rockbox.org

The Apple iPod line has always been the bottom of my sh*t list. Don’t get me wrong, the iPod is stylish and the music quality is great. The only beef I have against the iPod is its music management. Almost everybody I know (including my non-geeky-girlfriend) hates how you have to use iTunes to get music onto the iPod. Here is the beginning of an endless list of iTunes woes:

  1. iTunes is DRM compliant
  2. iTunes is a slow P.O.S. software.
  3. iTunes thinks you don’t know how to organize your own music, so it sticks your music into your iPod the way it thinks it ought to be organized.
  4. iTunes will automatically delete songs from your iPod if it cannot find them in your library (image if you’ve moved a few of your music folders and did not update your library)
  5. …you may add your own woes in the comments…

Notice that I did not mention “iTunes cannot be bypassed” in the list because, I have finally found a way that lets you do exactly that, bypass iTunes! Read on…

Make Your WordPress 10X faster During Traffic Storms

Thaya Kareeson


This tutorial will augment the technique of automatically enabling WP-Cache during heavy load with the ability to switch to a low-bandwidth WordPress theme at the same time.

Few reasons to do this

1. WP-Cache messes with your site statistics, so you do not want to leave it on when your site is not being hammered.
2. You don’t want to use a bandwidth efficient theme all the time because it’s not pretty-lookin’.
3. During traffic storms (e.g. Digg Effect), every 1/100 second optimization tweak counts.
4. If you host your site on a shared host, you will most likely have a bandwidth quota. Switching to a leaner theme conserves your bandwidth (duh!)
5. If you host your site on a home connection, your upload is not up to par with most hosting services, so you need to use that small pipe efficiently.
6. Each “IMG” tag, even if it’s a 1×1 pixel gif, requires an HTTP request to your web server. If you have 10 images on your page, and 10 users are loading your page, that’s 100 simultaneous calls to your server already. Leaner themes usually means less/no images, giving Apache some break.
7. If you’re server is non-uber, you don’t deserve to administer it.
Read on…

Automatically Turn on WP-Cache During Traffic Storms

Thaya Kareeson


I am a semi-fan of WP-Cache. On the good side, it reduces strain on apache by staticising WordPress pages. On the bad side, it messes with my site statistics and makes development hard (I always forget that the page I’m working on is being cached). I like my statistics, but what if I suddenly get a traffic storm? If my site gets dugg, there is no time to worry about statistics. I would need all the help I can get to serve pages efficiently. This is why WP-Cache should be off by default and automatically turned on during traffic storms. Read on…