Thursday, 21. August 2008Week 33
Saturday, 9. August 2008Week 31

Opera 9.25 vs Safari JavaScript syntax error forgiveness

The following definition of an Array works without problems in Safari (and probably Firefox too), but triggers an (legitimate) error in Opera 9.25:

var myArray = [

 1.2,

 2.3,

 3.4,

];

The error is triggered by the superfluous comma after the last element of the Array. It may be argued for both behaviors, but I would prefer all Browsers accepting such an Array definition also since in other languages (C, Python, PHP) such a redundant comma does not cause any trouble.

Saturday, 2. August 2008Week 30

Fast disk upgrade for my MacBook Pro

Here's how to upgrade the disk of a MacBook Pro in 45 minutes while keeping all your data/settings/applications:

  1. Uninstall rEFIt and make sure your MBP restarts with the Apple 'default' bootloader
  2. Follow the iFixit Guide to replace your disk
  3. Put the old disk in a SATA-to-USB case (they are available for $7.89 from Newegg.com)
  4. Connect the old disk to your MBP and turn the MBP on. (The MBP automagically recognizes the old system and runs it)
  5. Open the Disk Manager and partition your new disk.
  6. Select your new 'system' Volume and open the "Restore" tab.
  7. Drag your old 'system' Volume to the "Source" field and your new 'system' Volume to the "Target" field. Click on "Restore", the contents of your old disk are now copied to the new disk.
  8. After the restore process finishes, shutdown your MBP.
  9. Disconnect your old disk and turn on your MBP.
  10. VoilĂ . You are booting from the new disk and all your data/settings/applications are there too!