How to Fix the Flickering IE6 Bug on Background Images

Posted on October 22, 2007

First you’ll need something like this. If you don’t already have an IE6 hacks file, I don’t know how you’re livin’! (Or, chances are if you’re not targeting IE6, your site might not look so hot in this favorite browser of ours from the fine folks in Redmond.)

<!--[if IE 6]>
  <%= stylesheet_link_tag 'ie6_hacks'%>
<![endif]-->

Next in your “ie6_hacks.css” file, add the following:

* html {   /* fix flickering ie6 bug on background images */
  filter: expression(document.execCommand("BackgroundImageCache", false, true));
}

A co-worker discovered this fix for us recently. Thanks, Paul!

Quick Hack: Recursively Remove .svn Directories

Posted on September 06, 2007

This snippet comes in handy when you’re copying folders between projects and inadvertently copy over .svn folders:

find . -type d -name .svn | xargs rm -rf

This will recursively find .svn directories in your current path and kill em dead!

And an alias for your ~/.bash_login file:

alias clean_svn="find . -type d -name .svn | xargs rm -rf"