Showing posts with label linux. Show all posts
Showing posts with label linux. Show all posts

Saturday, May 15, 2010

remove accidentally inserted words from your spelling dictionary for emacs

somehow, I accidentally inserted an incorrect word to my spelling dictionary in emacs.  Wow, it took me a while to figure out where my private dictionary is.

Below are my only configuration script for ispell in emacs:
(global-set-key (kbd "") 'ispell-word)
(global-set-key (kbd "") 'ispell)



So i thought I am using ispell and noticed  the following documenation for ispell:

Whenever ispell is started the file `.ispell_words' is read from
your home directory (if it exists). This file contains a list of
words, one per line. The order of the words is not important, but
the case is. Ispell will consider all of the words good, and will
use them as possible near misses.

Unfortunately, I didn't find such a file in my home directory. It turned out that I was using aspell in ispell mode. What the hell!

The private dictionary for aspell is located at
~/.aspell.en.pws

Finally solved the problem.




Wednesday, April 7, 2010

how to make backspace working for firefox in Ubuntu?

http://embraceubuntu.com/2006/12/21/fix-firefox-backspace-to-take-you-to-the-previous-page/

 

Fix Firefox Backspace to Take You to the Previous Page December 21, 2006

Posted by Carthik in bugsquashing, snippets, ubuntu.
trackback
In a surprising development that seems really strange and unnecessary, Firefox 2.0 won’t go to the previous page when I press the “backspace” button on the keyboard. I have grown used to this over the period I have used Firefox. The fact that I can’t use backspace the way I am used to has been annoying me no end. So I decided to dig a little deeper.
The feature was removed to fix a bug. The bug that was caused by fixing the previous bug, which is that the backspace does not behave like it should has been fixed too (Thank heavens!)
But then, until the bug fix propagates to a firefox build available on Ubuntu, one has to resort to a little scratching to fix the matter. Here’s how you resurrect the backspace button in Firefox 2.0 (current as of this date):
Type “about:config” in the address bar of Firefox and press Enter.
`Filter` for ‘browser.backspace_action’ and change its value to 0 (zero).

Wednesday, December 12, 2007

Daily Linux (1) -- FreeNX, remote access, list files

1. Here is a very useful instruction to install FreeNX server on Ubuntu Gusty,

and it works pretty cool! Much much faster than VNC.

2. To list files matches certain pattern in one directory, use the following command:

find . -name "*.c"

This basically find all the c-files in a directory.

Friday, May 4, 2007

linux trick

I just found the rdesktop tool in linux is better to remote access windows system. Especially in the full-screen mode.

One trick to quit full screen mode:
Ctrl+Alt+Enter

Tuesday, May 1, 2007

Windows Backup & Norton Ghost

After my system crashed, I have to reinstall a windows system on my laptop, which is horrible. It takes almost three days to finish all the installation and configuration process. Suffering from reinstall system, I decided to try to use Norton Ghost to backup the system to make my life easier. Unfortunately, GHOST requires a floppy drive to make sure your system is bootable when crashed. More serious, I installed a dual-boot system on my laptop (ubuntu7.04+windows xp pro (sp2)) with the first parition for windows being NTFS. So the MBR of windows is actually modified by linux, and ghost can not find the proper MBR infor for windows. To backup linux system is easy, just compress all the stuff into one tar file would be OK.

So I'm wondering whether or not I can backup the whole hard disk under linux system. But the problem is, even if I can backup the windows partition in linux, I cannot restore it as Ubuntu 7.04 does not support modification on NTFS. Haha, really frustrated with this backup research work.

It seems that linux backup is way too much easier than windows. But I'm still a newbie to linux. Maybe, after sometime, I can get rid of windows.