Skip to main content

Posts

YES WE CAN !!!

YEAH !!! WONDERFUL !! Viet Nam has won the AFF Cup for the first time in history after defeating Thailand. History has changed. Now we can say YES WE CAN. WE CAN MAKE HISTORY. NOW WE MADE HISTORY.
Recent posts

Give MOST pager LESS key-bindings

I like MOST for its ability to give color to manpages but dislike its keybindings. As a long-time user of Vim, I feel inconvenient to move my palm out of the home row. LESS offers VIM-alike keybindings which I used most of the time. I was wondering whether or not MOST can have LESS-alike keybindings. Googling around, having no answer, I decided to download MOST source-code to dig into it. But to my surprise, MOST did the thing, allowing LESS keybindings customization through configuration file. Great !!! Just follow instructions below and you will have colorful manpages with LESS keybindings. 0. You need to install MOST first (depending on your *nix system, I use Ubuntu). 1. Download MOST source code from : ftp://space.mit.edu/pub/davis/most/most-5.0.0.tar.gz 2. tar xvzf most-5.0.0.tar.gz 3. cd most-5.0.0 , you will see file called lesskeys.rc , this is key-emulation for LESS. 4. cp lesskeys.rc ~/.mostrc , restart terminal then you will have MOST with LESS keybindings ready ! You can

Split view in Eclipse

Useful trick in Eclipse "To enable this, just select the file editor you want to split and choose Window | New Editor. Eclipse will open a new editor tab on the same file as you are currently editing. You can now drag and drop the new editor tab to the side of the editor pane where you want it. The two editor tabs will automatically stay synchronized."

Ruby on Rails 2.1

Rails 2.1 has been released over 2 weeks. The first in-depth book of what's new in Rails 2.1 has also been released. Take your copy. http://www.nomedojogo.com/2008/06/09/new-free-book-ruby-on-rails-21-whats-new/

Permission problem in Vista

Vista known for its annoying permission control. I struggled with this problem after reinstalling Vista. Some of my folders on D drive which seperated from C (where Vista located) could not be able to access due to lack of permission. Hey, I'm an administrator of this computer, am I ? Spinning with the problem hours, sometimes just want to get back to XP for god's sake. Fortunately, I found solutions to this problem which make Bill happier (for I don't have to be back to XP). All you have to do is just "take own" back your folders by doing the following commands. For Files: takeown /f file_name /d y icacls file_name /grant administrators:F For Folders or Directories (will perform action recursively): takeown /f directory_name /r /d y icacls directory_name /grant administrators:F /t Be patient while waiting for the opertion to complete. http://www.tipandtrick.net/2008/how-to-take-ownership-and-full-control-permissions-of-files-and-folders-in-vista/