Wednesday, November 05, 2008

Creating Large FAT32 Paritions

Recently I have come to many scenarios where I need to transport and share a lot of large files among platforms - Windows, Mac, and XBOX 360. While the latest Mac OS X can read NTFS flawlessly, but it is read only. Ironically, XBOX 360, a product of Microsoft, cannot even read NTFS.

So I have found the common ground would be the good old FAT32. Soon I realize Windows only allows up to 32GB FAT32 partition creation, and XBOX can only the first partition!

With a little google search, I have found the solution on Mac OS X:

  1. Open Disk Utility. Find the disk in the list that you want to format, control-click and select "Information". You're looking for the "Disk Identifier," which should be something like disk1, disk2, disk3 etc.
  2. Create the DOS partition table. Open Terminal and type fdisk -e /dev/rdisk#, where # is the disk number you got from step one. Now type auto dos to create one big FAT32 partition. Finally, type write and then quit to save the new partition table.
  3. Format the FAT32 partition. Type newfs_msdos -F 32 -v "MyVolumeName" /dev/rdisk#s1, where # is the disk number you got in step one. This will format the drive as FAT32.
  4. Check if the volume is mounted. If it isn't, close and reopen Disk Utility, select "MyVolumeName" and choose File -> Mount."

Tuesday, November 04, 2008

A Faster Flex 3.1 Compiler

Apparently someone at Brightcove feels the pain of performance of Flex SDK 3.1 -- for a larger project, Flex SDK seems to be unreasonably slow. At some point I would have to turn off automatic compile to speed my development time, or use FlashDevelop.

http://www.deitte.com/archives/2008/10/a_faster_flex_3.htm

Saturday, October 25, 2008

Best Way to Entertain Telemarketer

http://www.youtube.com/watch?v=un_PjRXV5l8

Friday, October 17, 2008

Flash Optimization per MouseMove

This is a straight ripped from http://labs.bigspaceship.com/2008/10/16/as3-optimization-tip/

stage.addEventListener(Event.MOUSE_LEAVE, _onLeaveStage, false, 0, true);
// followed by:
private function _onLeaveStage($evt:Event):void
{
// disable site code
stage.addEventListener(MouseEvent.MOUSE_MOVE, _onReturnToStage, false, 0, true);
};
private function _onReturnToStage($evt:MouseEvent):void
{
stage.removeEventListener(MouseEvent.MOUSE_MOVE, _onReturnToStage);
//re-enable site code
};