Cross-Browser w/ Utilu IE Collection

So as of late I have been having to cross-browser test IE 6, 7 and 8. STILL ! So I turn to Utilu’s IE Collection. Independent Browser builds, able to run side by side. I run these on VMWare’s Fusion to simulate PC viewers.

The other day I ran into an issue where Flash wasn’t installed in these independent browsers. After an hour of trying to fix it, first uninstalling the old flash player, then visiting seemed to fix it.

Thanks Adobe !

Charles in charge of our days, and our HTTP data

So today I learned that if you have firebug installed on your Firefox, you can basically kiss web-surfing goodbye. But while you are taking a peek beneath the surface, you can run into some pretty cool apps, and this is no exception. According to :

Charles is an HTTP proxy / monitor / Reverse Proxy that enables a developer to view all of the HTTP and SSL traffic between their machine and the Internet, including requests, responses and HTTP headers.

This comes in mighty handy when you are passing variables to various analytics and metrics system, while not having the original source code in front of you.

In one day it has proven its weight in gold to me.

*Notable second runner up is Firefox plugin OmniBug.


Ok, I just spent the better part of ALL DAY trying to figure this out.

I want my wordpress category.php template to be able to detect whether the category it is serving is a parent category or subcategory. THATS IT. And without having to hard code any category ID’s. After perusing the forums and codex for a couple of hours, the marriage of these two functions seemed to get the job done.

get_query_var is the variable stored in the query that tells category.php what category to serve.

get_category retrieves category data given a category ID or category object.

Here’s the function that goes in your functions.php file:

function is_subcategory (){
    $cat = get_query_var('cat');
    $category = get_category($cat);
    return ( $category->parent == '0' ) ? true : false;

Then you can use this in your category.php file to determine if the category you are serving is a parent category or subcategory:

if ( is_subcategory() ):
     //displaying subcategory
    //displaying parent category

Hope this helps some people out there.

*note: both code snippets should be wrapped inside php brackets. <?php ?>

WordCamp NYC 2009. Be there, or be square.

WordCampNYC – Nov 14-15

I’m very excited to say that I will be attending WordCamp NYC 2009. I have been working with WordPress for the past two years and it has completely revoltuionized the way I design web sites.

If it weren’t for WordPress, I wouldn’t lead the life I live today. But that aside, its exciting to participate in such an awesome community. I look forward to meeting fellow WordPress users and abusers.

Go back to Google’s original size search bar

So as some of you may have noticed, Google made their search bar more accessible to the geriatric community by enlarging the search bar and font size. Now as a human being (aka ‘creature of habit’), this bothers the hell out of me. I’m totally not used to it, I don’t want to get used to it. Just put it back to normal.

In comes, GreaseMonkey.

Now I’ll be the first to admit, I have a problem with Firefox plugins, in that I use entirely too many. But this one is totally worth it. With user scripts that return the Google search bar back to normal, pimp out your google reader, AND google calendar, you can’t go wrong.

I’ve fallen in love.

Links courtesy of Lifehacker.

Firefox Copy & Paste problem

So the company I work for have been having issues with wordpress’s visual editor and copy and pasting linked images.

Basically it is a Firefox issue, clashing with’s implementation of the TinyMCE rich text editor. Javascript is causing the copied image and link in the clipboard to be changed to relative urls instead of absolute. i.e. src=”” becomes src=”../images/image.jpg”. Which then breaks the images when the post is published. I have found a tweak in firefox to correct the actual image source from being changed.

In the about:config section of firefox, a setting called dom.disable_image_src_set when set to true, will stop any javascript from altering images on every page. This then makes certain Dynamic Image plugins not work, but only for that end user.

This still leaves the surrounding anchor tag modified though. Still searching for a solution. If you know anything about this please drop me a line…