Tuesday, December 30, 2008

Moved! Now at touchdreams.net/blog2

This blog has been moved to touchdreams.net/blog2.

Friday, August 15, 2008

Tiger in Water

Six Flags Discovery Kingdom, Vallejo, CA

Wednesday, July 30, 2008

Saturday, May 31, 2008

Enabling Suspend and Hibernate in Ubuntu 8.04 on Toshiba Tecra M9 Laptop

The following are the steps I took to make suspend and hibernate (kind of working) on the Toshiba Tecra M9 laptop. They did not work out-of-the-box in my installation. When waken up from suspend, the screen stays black and I was not able to find a way to get to my desktop.

There may be other ways to make them. These were what I did chronically. After these steps, the screen is white when waken from hibernate. I can get to my desktop by typing in my password. 'Suspend' works without any issue.

  1. Following this note,
    1. Add the following to /etc/X11/xorg.cfg.
      Section "Device"
              ...
              Option          "NvAGP"       "1"
      EndSection
             
    2. Set the following in /etc/default/acpi-support.
      POST_VIDEO=false
      SAVE_VBE_STATE=false
      
  2. Goto System/Administration/Hardware Drivers, turn on Nvidia vendor's driver.
This blog has been moved to touchdreams.net/blog2

Friday, September 21, 2007

C vs C++: an interesting debate

http://thread.gmane.org/gmane.comp.version-control.git/57643/focus=57815

Sunday, June 17, 2007

Installing SXDE Build 64a in Parallels - Screen Resolution

The screen resolution is 1024x768 after the default installation. Need to change it to 1280x800 as the native resolution of the MacBook.
  1. "cd /etc/X11"
  2. "cp .xorg.conf xorg.conf"
  3. "vi xorg.conf" so that
            Section "Monitor"
               ...
               UseModes "Modes0"
            EndSection
            Section "Screen"
               ...
               SubSection "Display"
                  Viewport 0 0
                  Depth 24
                  Modes "1280x800" "1024x768" "800x600" "640x480"
               EndSubSection
            EndSection
            Section "Modes"
               Identifier "Modes0"
               Modeline "1280x800" 104.3 280 1360 1496 1712 800 801 804 834 -Hsync +Vsync
            EndSection
    

Installing SXDE Build 64a in Parallels - Memory

Zillions of people have posted how to do this. The following are the steps I took to make it work. The setup:
  • MacBook, Core 2 Duo 2.16GHz, 1GB Ram
  • Parallels 3.0 (Build 4128, June 9, 2007)
  • Solaris Express Developer's Edition (SXDE) 5/07 Build 64a (Nevada + Sun Studio 12)
The SXDE installer quits if the memory is less than 768MB. My MacBook came with 1GB. And Parallels allows a max of only 604MB for Solaris 10 VM when I have only 1GB memory. Fortunately, in another experiment, I bought Kingston KVR667R2K2SO/2GR (1GBx2, PC5300 667MHz) which fits the specification of my MacBook. So I swapped them with the two 512MB DIMMs. Then I was able to create a VM of 1GB memory and install SXDE. The Kingston KVR667 did not work with MacBook very well and caused a panic after my installation. I swapped them out and put the old 512MBx2 in, and reset the memory of the VM to 604MB.

Sunday, May 20, 2007

Make Picture Movie Like

This web site shows how to do it.

I tried it with Photoshop Elements.