- Create a file named gandhi.xml in $CATALINA_HOME/conf/Catalina/localhost/
- Type the following configuration:
gandhi" docBase="/home/gandhi/tomcat-home" debug="0" privileged="true">
-gandhi
Learn. Contribute.
1: import java.io.*;
2: public class TestExec {
3: public static void main(String[] args) {
4: try {
5: Process p = Runtime.getRuntime().exec("ls");
6: BufferedReader in = new BufferedReader(
7: new InputStreamReader(p.getInputStream()));
8: String line = null;
9: while ((line = in.readLine()) != null) {
10: System.out.println(line);
11: }
12: } catch (IOException e) {
13: e.printStackTrace();
14: }
15: }
16: }
1: import java.io.*;
2: public class TestExec {
3: public static void main(String[] args) {
4: try {
5: String[] complexCommand = {"/bin/bash", "-c", "cat * > total"};
6: Process p = Runtime.getRuntime().exec(complexCommand);
7: BufferedReader in = new BufferedReader(
8: new InputStreamReader(p.getInputStream()));
9: String line = null;
10: while ((line = in.readLine()) != null) {
11: System.out.println(line);
12: }
13: } catch (IOException e) {
14: e.printStackTrace();
15: }
16: }
17: }
dictzip –decompress dictionary.dict.dz
There’re are lots of ranking methodology and results on the Internet. But the list of Taiwan Top Universities I wrote here will be based on QS Top Universities. You can read their university ranking on their website. I’ll list 3-6 top Taiwan Universities grouped by various categories. The Taiwan universities will be ordered based on their ranking on each categories. This post is written by Gandhi Manalu [http://gandhim.wordpress.com].
World University Rankings:
World University Rankings – Natural Sciences:
World University Rankings – Engineering/Technology:
Asian University Rankings:
Asian University Rankings – Life Sciences & Biomedicine Subject:
Asian University Rankings – Natural Sciences:
Asian University Rankings – IT and Engineering:
The number in the left is the university ranking in Taiwan on particular category whereas the number in brackets denotes the university ranking in each category.This post is written by Gandhi Manalu [http://gandhim.wordpress.com].
My Yahoo Messenger 10 suddenly crashed, I didn’t know the cause, but it might be the side effect of uninstalling several programs from my computer.
I wanted to reinstall Yahoo Messenger 10, but first I need to backup my profile that includes my chat history, so that all my recorded chats could be restored later. Usually, I could find my Yahoo profile directory at Program Files installation directory, but I couldn’t find it.
After searching through directories in my computer, I found out that Yahoo Messenger 10 stores its user profile in:
X:\Users\<windows_username>\AppData\Local\VirtualStore\Program Files\Yahoo!\Messenger\Profiles\<yahoo_id>
(where windows_username is user’s windows id and yahoo_id is user’s yahoo id).
I hope this post will be helpful for those who have the same problems as me.