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 an NTFS partition label

sudo umount /dev/sdb1
sudo ntfslabel /dev/sdb1
sudo ntfslabel /dev/sdb1 my_external

Ubuntu caches the drive's label so to see the full affects of the change it is not enough just to umount and mount it again. You have to umount, remove, put back, mount again.

Source: https://help.ubuntu.com/community/RenameUSBDrive

Syndicate content