Sunday, August 10, 2008

How to Fix Firefox always keeps showing "Restore Previous Session".

Today, my ubuntu crashed while I was using firefox. I rebooted and everything seem fine except one thing. Firefox show "Restore Previous Session" dialog everytime I open firefox.
Even though I've shut it down properly , the dialog keeps showing.



I googled around but I had no luck. I think that the problem is firefox config files may be some corrupted because of the crashing. So I went around in ~/.mozilla and try out some way and PONG! It's fixed! :)

Here is the solution.

1. $ cd ~/.mozilla/firefox/fwegtctl.defaults (you may change this to your firefox profile directory)
2. $ mv sessionstore.js sessionstore.js.bak
3. Restart the firefox.

Just simple. I guess that sessionstore.js saves the data about session (its filename tells that. HAHA) and firefox on opening will see whether this file exists or not.
Good Luck!
UPDATE : I've just found that there is another problem. The problem is the location bar doesn't update anyway. It's still stay blank or some url and when you change the tab it's doesn't effect. The location bar search feature also off. I don't know this problem and previous problem if it's an consequence. I spent a hour finding out the solution in the .mozilla/ (yes, again!)
at last, the solution is right down.

1. $ cd ~/.mozilla/firefox/fwegtctl.defaults (you may change this to your firefox profile directory)2. $ mv places.sqlite places.sqlite.bak
3. $ mv places.sqlite-journal places.sqlite-journal.bak

I hope that these soulutions will work for you.

Saturday, May 31, 2008

Practice English By a Song.

It's my little project. I came up with this idea while I was on the car. In Thailand, English teacher sometimes comes in the class with the radio. Then she will give students a paper. The paper is a lyric but it's not a complete lyric. There will be many blank field on the paper. She will turn on a song and She has students to fill in the blank to complete the lyric. I think it's a good idea for practice listening by a song.

So I will do it in a same way but on the internet. :)

check out this.
http://www.teerapap.net/EnglishByMySong/start.html

Thanks for "Yael Naim - New Soul" that's a sample song because I like this song very much. Actually I use this song on the website arbitrarily.

Sunday, May 4, 2008

Firefox 3 beta 5 lags on ubuntu 8.04

I upgraded from Gutsy to Hardy last week. It comes with the new Firefox 3 beta 5. After I had used for a few days, I found that firefox lags very much. When I switch the tab or scroll the page or just leave it , it start to lag the system and then system sometime freeze after that. In the system monitor, firefox process was interruptible. I noticed the harddisk light always show or blink fast but I'm not sure it's the same case.

At first I though that it resulted from upgrade process that it's not a fresh install. Maybe some configs file are not upgraded correctly. After few days passed, I felt very annoy. I started to find out what it is.

I found this bug. It's the same. In the bug page they give a method to solve this bug temporarily
There is an easy workaround.

This workaround is successful:
1. Open Firefox 3
2. Disable phishing/attack detection in the security section of the Preferences
3. Close Firefox
4. Make hidden files visible (Locations - Personal folder - View - show hidden files)
5. Delete /home/user/.mozilla/firefox/blahblahblah.default/urlclassifier*.sqlite
6. Open Firefox.
7. There is no next step. You're done. :-)

Greetz, Pjotr.


I follow this instruction. It works!!

I like the bug report system too much. haha

I hope that the patch will be published very soon. I wait for it.

Monday, March 31, 2008

Switch input language by Caps Lock

Since birth, I've used Grave Accent(`) for switching input language.
Just recent years I changed to alt+shift key instead in order to type (`) key
in unix command. I found it's not quite convenient but have to used it.
Then I found that , in ubuntu, I can set to using the caps lock key as a hotkey to switch input language. The caps lock key was useless for me long time ago. So I changed it and found that it' so easy to use and happy about moving finger.
So I'm going to set caps lock as a hotkey in Windows too. But the Windows don't allow me to do that. I spent a few hours (yes, a few hours) to find the way but rarely found. I found the closest way is to change the caps lock to grave accent key.
(Only advanced user or sure to do)
Below is how to do that.
1. Open regedit (via Run-> type regedit -> Ok).
2. Go to the (My ComputerHKEY_LOCAL_MACHINESSYSTEM
CurrentControlSetControlKeyboard Layout) key.
3. Add new key name "Scancode Map" as binary value type.
4. Double click this key and Fill the value.
"00 00 00 00 00 00 00 00 02 00 00 00 29 00 3a 00 00 00 00 00"



(In this picture my value is
"00 00 00 00 00 00 00 00 03 00 00 00 29 00 3a 00 3a 00 46 00 00 00 00 00"
because I add another keypair to remapping the Scroll lock key to work as a caps lock key.)
5. Change key setting in Control Panel->Regional and Language Options as below



6. Restart the computer!!
7. It works!

Thanks to Remap the Keyboard in Windows XP. :)

Friday, February 15, 2008

Google makes me smile

Today is Valentine's day. It's not special to me really. I visit google.com as normal. The google's logo on valentines day is so cute. It's makes me smile and I think people around the world that see this picture smile too.



I think it's so cool that just changes some small picture makes people around the world SMILE! :)
Thank you, Google.

Tuesday, February 5, 2008

Microsoft Office 2007 disable Acer wireless button

Today's morning, I found that my acer aspire 5021 can't use the wifi. The wireless button in front of the case didn't work as normal. Regularly when press the wireless button, the button turns orange and the green 'Wireless Device Enabled" appears on screen. But now nothing happened.

I'm very upset with this. I tried to press the button many times or restart the Windows but it didn't work. I wondered that the root of problem is software related to driver but I had installed Broadcom drivers and Launch manager and it used to work as well.

I tried to reinstall Broadcom driver and Launch manager. It didn't work.

I think of last night. I installed Microsoft Office 2007 before go to bed. It' seem no involvement between Office 2007 and wireless. But I don't know what to do , so I give it a try.

I uninstall the Office 2007 and It's work!!!

It's weird and I don't know why.
I may find the reason about this if I have times.

Monday, November 5, 2007

Install Brother MFC-240C (shared on Windows) in Gutsy

I bought Brother MFC-240C yesterday for using in my home. My home network is windows network that use the same workgroup name to see each other. The printer is connected to mom's pc. Then I will add this printer to my ubuntu but the ubuntu database have no drive for this model.
After I googling a few minutes, I found this page and this page. These are the answer!
Follow these steps:
1. download LPR driver from this page. (*choose the driver for Debian, The MFC 240C model)
2. open the terminal and run this commands

sudo mkdir /var/spool/lpdsudo mkdir /var/spool/lpd/mfc240c


3. double clicks the LPR driver (mfc240clpr-1.0.0-9.i386.deb) to install.
4. download cupswrapper from this page. (*choose the driver for Debian, The MFC 240C model)
5. if everything works, the printer will show in System->Administration->Printing



if you plugs the printer on this computer(via USB). It's can work now.
if this printer is shared from other computer and want to add it via network like me.(Go to step 6.)
6. open System->Administration->Printing and click MFC204C like above image. On the right,
Click the Change button on the "Device URI" line. and Find out where your printers!.
7. Try printing the test page and see what you've done.