How to install Latex on Ubuntu 14.04LTS

You may often get error messages like “missing subfigure.sty”, “missing url.sty”, or missing other .sty files. The problem is caused by missing packages. This post outlines the steps to correctly install latex on Ubuntu latest version 14.04LTS. It should also work for most previous other versions. 1. Install Latex on Ubuntu In the terminal, type … Read more

Java Runtime.exec() Linux Pipe

If you want to utilize Linux pipe advantages, you can do it in Java. You may want to do the following, which is wrong. String cmd = "ls" Process p = Runtime.getRuntime().exec(cmd);String cmd = "ls" Process p = Runtime.getRuntime().exec(cmd); The correct way of executing shell command is the following: String[] cmd = { "/bin/sh", "-c", … Read more

5-Minutes Guide for Commonly Used Linux Commands

I’m not a serious Linux user, but sometimes I need to use Linux. In a long time, I frequently searched a limited number of Linux commands. So I think it is a good idea to list those frequently-used ones and remember them finally. This definitely improved my work effectiveness. Here is my list. 1. cp/scp … Read more

Enter password to unlock your login keyring Ubuntu 12.10

Here is a note for how to disable this password prompt under Ubuntu 12.10. The problem looks like this whenever you open browser first time after you start your computer. Error Message: “Enter password to unlock your login keyring” Ubuntu 12.10. Alt + F2 and then type in “seahorse” Click view → keystring Right-click login … Read more

Firefox is already running – linux .parentlock problem

While using a Ubuntu linux machine, this can happen for a lot of people. This is the solution. Error Message: “Firefox is already running but is not responding …” The problem: Many packages (like firefox) create lock files in your account to prevent database corruption with multiple copies of the application. Look in your account … Read more

Trace Source Code in Eclipse: Attaching source to a JAR file

The API document only list the description of class, interface, and methods. If you want to trace back to the original implementation code by clicking “F3” button in Eclipse, then source file need to be attached. The source file under window is here: C:Program FilesJavajdk1.6.0_24src.zip http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/org.eclipse.jdt.doc.user/tasks/tasks-115.htm