General
Replace backslash character to slash in a String with JAVA
by admin on Aug.20, 2009, under General
Today I had a small problem with java, and I leave here my solution to help others who are in the same situation.
Here I give you a small trick to replace backslash special caracter to another caracter in Java. If you are doing some project, and you need to replace a backslash “\” with the forward slash “/”, you will notice you can´t do this in the normal way.
Let´s see “the normal way”:
String address = "C:\Program Files\Java\jre6"
address = address.replace("\" , "/"):
you will have a error.
try this….
String address = "C:\Program Files\Java\jre6"
String backslash= System.getProperty("file.separator") ;
address= address.replace(backslash,"/");
System.out.println(address);
OUTPUT:
C:/Program Files/Java/jre6
Install Google Web Toolkit in Ubuntu
by admin on Feb.03, 2009, under General
#!/bin/bash
wget http://google-web-toolkit.googlecode.com/files/gwt-linux-1.5.3.tar.bz2 -P /tmp
tar xjf /tmp/gwt-linux-1.5.3.tar.bz2 -C /tmp
sudo mv /tmp/gwt-linux-1.5.3 /opt/gwt-linux
Drupal Event Calendar using Date, Calendar, Views, and CCK
by admin on Jan.21, 2009, under General
Some of my good friends from the university have recently to setup upcoming event calendar on Drupal 6.x. I spent some time trying to help them and I had a hard time finding instructions…..so here’s my experience…
I used this modules:
New Year and new fresh site
by admin on Jan.19, 2009, under General
Well here is my new fresh personal website, now I have a Blog finally…