Windoze

Resolved: Logging to Firebug console breaks IE

The firebug console is great for debugging javascript -- but it's really annoying when you want to quickly check something in IE and can't without first removing all your debug statements to avoid a bunch of javascript errors.

Here's a handy log function which checks first that firebug is in use before trying to log to the console. The function is a no-op in IE.

log_debug = function() {
  if(window.console && window.console.firebug) console.log.apply(this, arguments)
}

log_debug('foo', 'bar', 'bash')

IE7 on linux using ies4linux

Installing IE6 and IE7

sudo apt-get install cabextract wine
wget http://www.tatanka.com.br/ies4linux/downloads/ies4linux-2.5beta6.tar.gz
tar -xvzf ies4linux-2.5beta6.tar.gz
cd ies4linux-2.5beta6
./ies4linux --beta-install-ie7 --no-gui

IE7-WindowsXP-x86-enu.exe Error

If you get an error like so:

99% IE7-WindowsXP-x86-enu.exe!! An error ocurred when downloading. Please run IEs4Linux again. Corrupted file: IE7-WindowsXP-x86-enu.exe

Changing partition labels

Change an ext2/ext3 partition label

View current label

sudo e2label /dev/niobe/home

Change label

sudo e2label /dev/niobe/home home

Change a fat32 partition label

$ sudo apt-get install mtools
$ mount   # note device path (e.g. /dev/sda2)
$ cp /etc/mtools.conf ~/.mtoolsrc
$ echo 'drive i: file="/dev/sda2"' >> ~/.mtoolsrc   # use the device path noted earlier
$ mcd i:
$ sudo mlabel -s i:   # display current label
$ sudo mlabel i:foo-bar   # change label to foo-bar
$ sudo mlabel -s i:   # check label

Syndicate content