Tuesday, September 25, 2007
Friday, August 3, 2007
Legal Immigrants rally in Washingtron DC on 13 Sept 2007
Legal Immigrant community under the leader ship of Immigration Voice(IV) is planning a major rally on Sep13th. With the success of Flower campaign and San Jose rally on 13 July IV planned for a massive rally with almost 10,000 legal immigrants and their families. The goal of the rally is to get the attention of law makers about the green card backlogs faced by the legal immigrant community.
Some of the interesting things about this rally are
1) People are voluntarily coming from all the states.
2) IV is managing this event with very minimal funds and lot of moral support.
3) Lot of IV people are volunteering for planning and managing the event
4) Date sept 13th was a right choice as the congress comes from the month long recess starting from Monday(Aug 03).
Having seen the success of IV so far, I am confident that this rally will be a major success and brings some relief to the Immigrant community.
Some of the interesting things about this rally are
1) People are voluntarily coming from all the states.
2) IV is managing this event with very minimal funds and lot of moral support.
3) Lot of IV people are volunteering for planning and managing the event
4) Date sept 13th was a right choice as the congress comes from the month long recess starting from Monday(Aug 03).
Having seen the success of IV so far, I am confident that this rally will be a major success and brings some relief to the Immigrant community.
Friday, July 6, 2007
Programmatically setting appenders log4j
Here is the code to initialize the appenders programmatically(java)
Logger logger = Logger.getLogger(CURRENT_LOGGER_NAME);
logger.removeAllAppenders();
FileAppender fa = new FileAppender(new SimpleLayout(),filename,true);
fa.activateOptions();
logger.addAppender(fa);
Monday, October 9, 2006
Printing the Hex equivalent of a unicode character (Java)
/*
* Converts the byte to hex
*/
public String byteToHex(byte b) {
char hexDigits[] = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9','A', 'B', 'C', 'D', 'E', 'F' };
char[] array = { hexDigits[(b >> 4) & 0x0f], hexDigits[b & 0x0f] };
return new String(array);
}
/*
* Returns the hex equivalent of a character
*/
public String charToHex(char c) {
//get the hex of a higher byte
byte hi = (byte) (c >>> 8);
//get the hex equivalent of lower byte
byte lo = (byte) (c & 0xff);
return byteToHex(hi) + byteToHex(lo);
}
* Converts the byte to hex
*/
public String byteToHex(byte b) {
char hexDigits[] = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9','A', 'B', 'C', 'D', 'E', 'F' };
char[] array = { hexDigits[(b >> 4) & 0x0f], hexDigits[b & 0x0f] };
return new String(array);
}
/*
* Returns the hex equivalent of a character
*/
public String charToHex(char c) {
//get the hex of a higher byte
byte hi = (byte) (c >>> 8);
//get the hex equivalent of lower byte
byte lo = (byte) (c & 0xff);
return byteToHex(hi) + byteToHex(lo);
}
Sunday, September 11, 2005
How to write blogs in telugu?
తెలుగు లో బ్లొగులు రాయడము ఎలా
Creating telugu blog is as simple as writing your script in Unicode. We write the telugu character equivalent in unicode(escaped html character).... The unicode telugu characters are defined at http://www.unicode.org/charts/PDF/U0C00.pdf
For examle to say namaskaaramulu you have to type నమస్కారములు
where
english character | decimal equivalent of unicode |
---|---|
na | న (3112) |
ma | ;మ(3118) |
skaa | స్కా (3128 3149 3093 3134) |
ra | ర (3120) |
mu | ము (3118 3137 ) |
lu | లు (3122 3137) |
The following site translates the english text into equivalent html character.. so you just jave to copy the html code there and add into this box ;)
http://www.iit.edu/~laksvij/language/telugu.html
First telugu Blog (మొదటి తెలుగు భ్లొగు)
ఇది నా మొదటి తెలుగు బ్లాగు.. ఈ బ్లొగ్ ని ఇలాగే నడిపిన్చా లని నా ప్రయటనమ్ --శ్రీ
Saturday, September 3, 2005
Printing the unicode characters to console from java program
I did bit of R and to print the unicode characters from Java.. and finally i found that its a very simple thing and can be done in couple of ways
1) using the java file.encoding system parameter -Dfile.encoding=UTF8. the advantage with this is your program can be run with multiple encodings
2) in java program like
public class InternationalHello {
public static void main (String[] argv) {
String helloInTelugu = "\U0C39\U0C32\UoC4B";
PrintStream out = System.out;
out.println(helloInTelugu );
}
}
cool and easy right..................
1) using the java file.encoding system parameter -Dfile.encoding=UTF8. the advantage with this is your program can be run with multiple encodings
2) in java program like
public class InternationalHello {
public static void main (String[] argv) {
String helloInTelugu = "\U0C39\U0C32\UoC4B";
PrintStream out = System.out;
out.println(helloInTelugu );
}
}
cool and easy right..................
Subscribe to:
Posts (Atom)