English
Solving (fixing) ubuntu 10.04 (lucid) screen flicker/distortion
by jimmy on Jun.23, 2010, under English, Linux
I experiencing random screen distortion & flicker after upgrading to Ubuntu 10.04, I’m using Acer Notebook.
After searching in internet, there’s many forum thread & bug report discuss about this but mostly they have different hardware.
Finally I tried this method and no flickering so far.
What I do is I change my grub configuration, adding kernel parameter “i915.powersave=0”.
For Linux expert probably this is not an issue, so I dedicate this step for the newbies like
- What I do is I modify the grub configuration which is located on /boot/grub/grub.cfg (backup before you edit it)
- Because the access right is set to read only, let’s change it so the owner can modify it.
> sudo chmod -c u+w /boot/grub/grub.cfg - Use vi or your other prefered editor to edit it.
> sudo vim /boot/grub/grub.cfg - Locate the menuentry of your Linux. Example:
menuentry ‘Ubuntu, with Linux 2.6.32-22-generic’ –class ubuntu –class gnu-linux –class gnu –class os {
recordfail
insmod ext2
set root=’(hd0,4)’
search –no-floppy –fs-uuid –set xxx-xxx-xxx
linux /vmlinuz-2.6.32-22-generic root=UUID=xx-xx-xxx-x-xx ro quiet splash
initrd /initrd.img-2.6.32-22-generic
} - Add “i915.powersave=0” to the linux kernel line as parameter. It will become:
menuentry ‘Ubuntu, with Linux 2.6.32-22-generic’ –class ubuntu –class gnu-linux –class gnu –class os {
recordfail
insmod ext2
set root=’(hd0,4)’
search –no-floppy –fs-uuid –set xxx-xxx-xxx
linux /vmlinuz-2.6.32-22-generic root=UUID=xx-xx-xxx-x-xx ro i915.powersave=0 quiet splash
initrd /initrd.img-2.6.32-22-generic
} - Save & restart to check if you still experiencing screen flicker
That’s it ![]()
Hope it can work on other Notebook/PC
Basic LWUIT tutorial/sample with Eclipse Pulsar
by jimmy on Apr.17, 2010, under English, Java, Programming, Technology
I was really want to try LWUIT since several months ago. It’s look promising and it’s developed by SUN so I think every Java ME developer should take a look on this technology.
I’m also still new in LWUIT so there won’t be a lot that I can share for now, but at least I will show you a basic demonstration of how to use Form, Label, Command, and 3D Form transition (sound cool huh :p)
REQUIREMENT
What you need:
- LWUIT
- Eclipse Pulsa
- Emulator like Sun WTK
- Know basic Java ME programming
(continue reading…)
Java ME (J2ME) JSON Implementation Tutorial/Sample
by jimmy on Mar.03, 2010, under English, Java, Programming
JSON is one of the most popular format used for communicating between (Java ME) J2ME client and App Server. Strangely it’s hard to find JSON implementation sample in J2ME. So I decide to write a sample.
Blackberry sending delivered notification email
by jimmy on Jun.26, 2009, under English, My Life, Technology
I just realize that when sending to blackberry device when the email received on blackberry and the sender request delivered notification, it will automatically send delivered notification back to the sender.
And there’s no option to disable this.
Maybe it’s like a ‘feature’, but in my opinion it’s suck to cannot select whether we want to sent this delivered notification or not.
For spammer this could be good ‘feature’ since they will know which email still actively receiving their spam.
In my blackberry curve there’s only option to disable ‘read notification’, which located at message – options – email settings.
But read notification is not delivered notification, when I disable sending read notification still the blackberry sending delivered notification automatically.
This is sucks, anyone know how to solve this issue?
Solving Pidgin cannot connect to Yahoo Messenger (YM)
by jimmy on Jun.19, 2009, under English, Linux
Starting June 18 I started having problem connecting to YM with Pidgin.
Somehow it’s random I can connect or not.
I google and several article/forum writing that need to flush dns cache and also about several YM server cannot be accessed from Pidgin.
I try my friend advice to change YM server configuration to IP rather than domain name.
And it’s worked..
You will need to use cn.scs.msg.yahoo.com as Pager server since June 24, or you can update to pidgin 2.5.7 to solve this problem
Some people are reporting changing the Pager server didn’t solve the problem, you can follow these instruction to update your pidgin to latest version (for Ubuntu) : Updating Pidgin to latest version in Ubuntu
The steps: (continue reading…)
Solving failed starting mysql service with non default datadir (Ubuntu)
by jimmy on Jun.19, 2009, under English, Linux
I used to put my mysql data dir to /home/mysql, just to separated the partition so when something goes wrong or upgrading the OS I won’t lose my mysql data just because I forgot to backup it.
After I upgrade from Ubuntu 8.04 to Ubuntu 9.04 suddenly my mysql failed to start.
The strange thing the only data dir seems working is putting it on /var/lib/mysql which is the default directory for mysql data dir.
After browsing around I found out that it is apparmor that prevent mysql datadir on different directory.
So the easy way to solve this is to remove apparmor : apt-get –purge remove apparmor
Unknown winmail.dat attachment in email
by jimmy on Jul.29, 2008, under English, Life, Technology
From my colleague I received an email but with unknown type : winmail.dat
He should send me office document.
I asked him to sent it again, he forwarded the email again but I still received winmail.dat in attachment.
After googling about this I found out that winmail.dat is generated by Outlook (I using thunderbird).
From About.com :
It’s Outlook’s fault, in a way. Or the recipient’s email client’s. If Outlook sends a message using the RTF format (which is not very common outside Outlook) for bold text and other text enhancements, it includes the formatting commands in the winmail.dat file. Receiving email clients that do not understand the code therein display it as a stale attachment. To make matters worse, Outlook may also pack other, regular file attachments in the winmail.dat file.Fortunately, you can get rid of winmail.dat altogether by making sure Outlook does not even try to send mail using RTF.
And there’s also a way to disable this feature on Outlook. You can open it for more detail.
I would focus on how non-Outlook user can handle this format.
I know I can not ask all Outlook user who sent me attachment to turn off this feature.
So I search a program to open this content type “application/ms-tnef”.
I encounter this good console program : WMdecode
You just need to extract this. When running the program it’ll search winmail.dat in current folder and extract it.
The program working great although it just console application, no GUI.
Other tool I search is add on for Thunderbird.
I found : LookOut
This add on will automatically decode the winmail.dat
Also working great but it won’t decode winmail.dat in emails that you received before installing the add-on.
So I think it’ll only decode winmail.dat on new email received.
Cheers
Java Application – Make sure only single/one instance running – with File Lock and ShutdownHook
by jimmy on Jul.21, 2008, under English, Java, Programming
Often we want to make sure that only 1 instance our application running.
Because something terrible could happen when more than 1 instance running (for example the whole server would exploded and that would make you fired
)
Nevertheless what the reason, one of the way to make this happen is by creating a lock file as a sign that an instance is currently running.
So you application will have this flow: (continue reading…)
Microsoft + Yahoo = ?
by jimmy on Feb.05, 2008, under English, Technology
Microsoft planning to buy Yahoo for $44.6 billion. Until now Yahoo hasn’t give final answer it.
I’m wondering why do Microsoft want to buy Yahoo, is it for fighting Google?
Or Microsoft just want to kill one of his rival.
Let’s see
IM : Microsoft has Windows Live Messenger, Yahoo has Yahoo Messenger.
Search Engine : Microsoft has Live Search, Yahoo has it’s own search engine.
Email : Microsoft has Windows Live Hotmail, Yahoo has Yahoo Mail.
Let’s wait for Yahoo’s final answer.
And how will Google respond about this
NetBeans 6 T-shirt
by jimmy on Dec.28, 2007, under English, My Life
After waiting for 16 days finally the NetBeans T-shirt arrived.
They sent me this t-shirt because my participation in NetBeans Community Docs program although I only contribute 1 article (this) :p
Thanks to Sun and James Branam (NetBeans Community Docs Manager) for this cool t-shirt ![]()
It’s a great pleasure to be part of the NetBeans community & I would love to contribute more.

