Tuesday, November 16, 2010

Multiple-Line Comments in Shell

This is a comment line.
This is another comment line.

Note: "COMMENT" can be anything. Just make sure they are paired.

Tuesday, November 9, 2010

Change Default Terminal Size in Ubuntu 10.04

Go to System -> Preferences -> Preferred Applications -> System (tab)

Change Terminal Emulator to "Custom".
Command: gnome-terminal --geometry=86x24
Execution flag: -x

Thursday, September 23, 2010

Reinstall the ATI Driver in Ubuntu

  1. Remove old fglrx drivers
    1. sudo apt-get remove xorg-driver-fglrx fglrx-kernel-source fglrx
    2. sudo /usr/share/ati/amd-uninstall.sh
  2. Restart your computer, so that these old drivers are not in use. 
  3. Download the correct ATI driver from amd.com. 
  4. Install the downloaded driver, e..g, sudu sh amd-driver-installer-12-4-x86.x86_64.run
  5. Modify the screen resolution in /etc/X11/xorg.conf if necessary: 

Section "Screen"
Identifier "aticonfig-Screen[0]-0"
Device "aticonfig-Device[0]-0"
Monitor "aticonfig-Monitor[0]-0"
DefaultDepth 24
SubSection "Display"
Modes "1280x1024" "1024x768" "800x600"
Viewport 0 0
Depth 24

Sunday, September 12, 2010

Merge Multiple PDFs

  1. install pdftk: sudo apt-get install pdftk
  2. pdftk <a.pdf> <b.pdf> <c.pdf> cat output <all.pdf>

Monday, August 23, 2010

Thursday, April 29, 2010

Small Tricks in LaTeX

  • Make a figure span two columns in LaTeX
  • Change column spacing of a table

Saturday, February 13, 2010

VNC server

x11vnc -forever -usepw -httpdir /usr/share/vnc-java/ -httpport 5800