2008年11月29日星期六

Resolving The Dreaded java.lang.OutOfMemoryError: Java heap space Exception

http://www.javaroach.com/resolving-the-dreaded-javalangoutofmemoryerror-java-heap-space-exception.html

2008年11月13日星期四

Fixing the Snow plugin in 8.10

The plugins extra nonsupported is the wrong version in intrepid.

Download the latest source from http://releases.compiz-fusion.org/0.7.8/ (plugins unsupported)

Installed dependencies and ./configure --> make -> sudo make install
Also installed the broken plugins extra nonsupported in synaptics (just to replace the broken .so-file later)

Afterwards I replaced the original /usr/lib/compiz/libsnow.so with the new compiled /usr/local/lib/compiz/libsnow.so etc, everything works fine now...

2008年11月3日星期一

HOW TO: Install Ubuntu on MacBook Pro

Updated to Ubuntu 8.10

First, you should have the Mac OSX in the computer. Coz I have a ipod touch, so I still need the Mac. My successful method for dual boot is:

1. Install the rEFIt Boot Menu from (http://refit.sf.net). After installing it, when you reboot your system, you should see a different grub menu.
2. Use BootCamp to partition the drive (if using Tiger, don't bother burning a Windows boot CD; if using Leopard, it won't ask you). Make some space for the root partition as well as the swap.
3. Restart the computer with Ubuntu Desktop CD inserted (64-bit or 32-bit version). rEFIT should recognize the CD and give you option to "boot Linux from CD". Scroll to this option using the down arrow or click on it with your mouse.
4. Boot Into the live CD, Click on 'Install' icon on the desktop. Select the appropriate language, select 'Keyboard Layout' as 'Macintosh', select 'Manual' partitioning, then 'Forward'...
5. After installation, reboot and you will see rEFIt. But this time the Linux might not be there. Just move the selection and select the rEFIt tools or something, it will ask you if you want to repair the partition table. Repair it, then everything works fine.

In Ubuntu 8.10, the graphic card, the iSight web cam, the wireless network, the bluetooth, and even the multi-touch thouch pad etc. all woks out of the box now, so there will not be any delay for you to enjoy the incredible Intrepid Ibex :-)

For more information:
https://help.ubuntu.com/community/MacBookPro

2008年11月2日星期日

Skype finally works in 64 bit Ubuntu 8.10

When upgrading from hardy to intrepid, I decided to try out the 64 bit operating system.

Ubuntu really rocks. Even Skype now has the 64 bit version, to install it, first add the Medibuntu to the source list:

sudo wget http://www.medibuntu.org/sources.list.d/intrepid.list -O /etc/apt/sources.list.d/medibuntu.list
sudo apt-get update && sudo apt-get install medibuntu-keyring && sudo apt-get update

then:
sudo apt-get install libdvdcss2 w64codecs skype

Yes, that's right, even w64codecs is available...

But after that, when I tried to open skype to make a test call, it says: problem with audio playback. I restart everything and still nothing. I tried it in the terminal, it says:

ALSA lib ../../../src/pcm/pcm.c:2156snd_pcm_open_conf) Cannot open shared library /usr/lib32/alsa-lib/libasound_module_pcm_bluetooth.so
ALSA lib ../../../src/pcm/pcm.c:2156snd_pcm_open_conf) Cannot open shared library /usr/lib32/alsa-lib/libasound_module_pcm_bluetooth.so
ALSA lib ../../../src/pcm/pcm.c:2156snd_pcm_open_conf) Cannot open shared library /usr/lib32/alsa-lib/libasound_module_pcm_bluetooth.so
ALSA lib ../../../src/pcm/pcm.c:2156snd_pcm_open_conf) Cannot open shared library /usr/lib32/alsa-lib/libasound_module_pcm_bluetooth.so
ALSA lib ../../../src/pcm/pcm.c:2156snd_pcm_open_conf) Cannot open shared library /usr/lib32/alsa-lib/libasound_module_pcm_bluetooth.so
ALSA lib ../../../src/pcm/pcm.c:2156snd_pcm_open_conf) Cannot open shared library /usr/lib32/alsa-lib/libasound_module_pcm_bluetooth.so

I googled a little, and tried to get the 32 bit lib by:

sudo getlibs -p bluez-alsa

This obtained the lib successfully, but I have another error:

ALSA lib pcm_bluetooth.c:1619:(bluetooth_init) BT_GETCAPABILITIES failed : Input/output error(5)
ALSA lib pcm_bluetooth.c:1619:(bluetooth_init) BT_GETCAPABILITIES failed : Input/output error(5)
ALSA lib pcm_bluetooth.c:1619:(bluetooth_init) BT_GETCAPABILITIES failed : Input/output error(5)
ALSA lib pcm_bluetooth.c:1619:(bluetooth_init) BT_GETCAPABILITIES failed : Input/output error(5)
ALSA lib pcm_bluetooth.c:1619:(bluetooth_init) BT_GETCAPABILITIES failed : Input/output error(5)
ALSA lib pcm_bluetooth.c:1619:(bluetooth_init) BT_GETCAPABILITIES failed : Input/output error(5)

Then I got really desperate...

But finally, I changed the options of sound devices, change the Sound In etc from default to HDA Intel, everything works!