Posts

Showing posts from April, 2012

Something comeup after install git-cola

 This is an error , i got when i ran git-cola "(python:14634): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap", follow this link at #6 (https://bugs.launchpad.net/ubuntu/+source/quickly/+bug/853232) ,  Peter Würtz (pwuertz) His post will help you get through this problem by this command $ sudo apt-get install gtk2-engines-pixbuf

Some tip on nosetests

$ nosetests --where=[you folder] --tests=[testfile1,testfile2 ,testfile...] E.X.     $ nosetest --where=integrate_test --tests=test_yaya

Better setting for my machine

Currently, i'm use dell laptop core i5 with ATI graphics. It make me feel bad when I tried to focus something on screen. So i tried to do something better. Finally I found that I have option for Kubuntu ( I using ) >>> Use Anti-Aliasing ==> Enabled [RGB, hinting=> slight] >>> Force font to DPI ==> 120 DPI Now I'm feel better with my eyes and my machine :)

Replace ^M in VI

Sometime , you found ^M when you open a file in VIM This is gonna help you get through it. In VIM 1. Press colon (:) , prepare to input command 2. Use command    :%s/ (press ctrl-v, then ctrl-m) ===> you get :%s/^M    then     :%s/^M/\n\r/ , then enter finally, everything should be ok :)

Enable color for terminal ( iterm included )

refer to http://blog.imzaid.com/color-terminal-bash-on-the-mac-iterm-included :) tested with osx, not sure on linux

Command line to kill n restart skype

$ echo `ps -C skype|grep skype` | cut -d' ' -f1 | xargs kill -9 && skype &

Shortcut for Google Chrome

Move to next tab : Ctrl+Tab Move to previous tab : Ctrl+Shift+Tab Move to tab number # : Ctrl+# refer to  http://www.mydigitallife.info/google-chrome-tips-on-keyboard-shortcuts/

Enable/Disable service when start server

Two ways in order to doing this ( that I have for now ) 1. Using rcconf ( from top-infra of my company )    1.1 $ sudo apt-get install rcconf    1.2 $ sudo rcconf    1.3 let's do what you want. 2. Using command line    2.1 sudo update-rc.d [enable | disable]