Welcome to Srini's blog

Monday, October 31, 2011

Spurthi visit ....

Yesterday we visited spurthi foundation, is an organization for underprivileged childrens located near ECIL, Hyd. We are planning from last 1 month, atlsat yesterday we did this along with KSN,Pavan,Arvind & family. Actually Pavan was donating from past few years with his childhood friends. This visit not personal one, we went there as part of company social giving program. This is my first visit to this kind of organizations. Kids painted building walls very well, ofcourse they had taken google team help, but superbly painted...liked it..!! We distributed pens,pencils, chocolates and had taken some snaps with kids. We spent 2 hours there and kids taken us to show all thier rooms, library, ..etc. lastly they presented hand made diyas to all of us.








Tuesday, October 25, 2011

Diwali 2011

This is the first Diwali celebration in HYD from past 4 years. I am feeling very bad to stay here due to some stupid reasons. But one good thing is my roommate venky also with me to share this. I planned my diwali trip couple of months ago start with booking tickets, unfortunately things are went wrongly. Uhhh .... Anyway these days I am professionally upset.

 I am wishing you a very happy Diwali.. Njoy the occassion... And be careful...


Adding Quick Launch view to Taskbar in windows 7

2 days back my system formatted with windows 7 due to audio drivers issue. I don't like the win7 default Taskbar lookSome time back I adjusted taskbar as I liked, but I forgot the procedure. A quick googling I got the tips to re organize the taskbar. For future purpose I am posting the steps to adding Quick Launch ..

1. Right click on Taskbar and choose Toolbars and click on New Toolbar
2. in folder line paste the following path %userprofile%\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch
3. Click on Select Folder button
4. Now you have Quick Launch bar in your Taskbar.

 You can adjust the Quick launch in taskbar as you prefer by unlock the taskbar.

Monday, October 17, 2011

Are you thinking Y 3389 as default RDP port?? Lets chage it ..!!

To do this we need little bit knowledge on windows registry. If you are not aware of registry just follow my steps blindly.
1. Goto Registry Editor (Ctrl+R and type regedit).
2. Find the PortNumber registry subkey in HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\TerminalServer\WinStations\RDP-Tcp\PortNumber
3. On the Edit menu, click Modify, and then click Decimal.
4. Type the new port number, and then click OK.
5. Quit Registry Editor.
6. Restart the computer.

Dont complain me about these steps are copied .. Yes it is copied from MSDN. here is the link change RDP default port

Srini Back....

Hello blogers, am happy to return back to my blog. These days I am addicted to FB. Now I am trying to say Bye to FB, not in one shot.... slowly like Vodka instaed of like Vat69 .. !!

Thursday, January 13, 2011

Sankranthi Vacation 2011

Today I am going to my village to celebrate Sankranthi. To be frank I cann't njoy this trip much because of I am going for some purpose, My dream is in progress .... I need to give a hand to my family to go this op smoothly .... Don't think of other side.., new house buildng@village is in progress, So I need to address lots of issues to get some releif to my parents. I am proud to say that I am giving a nice gift to my parents in this new year, as they can live together there forever. I am sitting here and getting updates daily and arranging money on demand but my father really working hard there to get it run carefully/safely. Ohh ... sorry I am letting you bored .. forget about this .. Njoy the vacassion with your family ...make your family fills with happiness forever .. Wish you a very happy pongal ....



While surfing net I got an interesting cartoon about sankranthi .. please take look here ..Lol ...

Generate MD5 hash to a given string -- java

Yesterday I had a requirement to compute MD5 hash for a particular string to validate in my code. A quick googling I got lot of sources. Here I am posting the code which I worked out.

public class MD5Hash {
public static void main(String args[]) {
try {
String md5Hash = MD5("Give String");
System.out.println("MD5 hash is : " + md5Hash);
} catch(Exception e) {
//TODO: Nothing
}
}

private static String convertToHex(byte[] data) {
StringBuffer buf = new StringBuffer();
for (int i = 0; i < halfbyte =" (data[i]">>> 4) & 0x0F;
int two_halfs = 0;
do {
if ((0 <= halfbyte) && (halfbyte <= 9))
buf.append((char) ('0' + halfbyte));
else
buf.append((char) ('a' + (halfbyte - 10)));
halfbyte = data[i] & 0x0F;
} while(two_halfs++ < 1);
}
return buf.toString();
}

private static String MD5(String text) throws Exception {
MessageDigest md;
md = MessageDigest.getInstance("MD5");
byte[] md5hash = new byte[32];
md.update(text.getBytes("iso-8859-1"), 0, text.length());
md5hash = md.digest();
return convertToHex(md5hash);
}
}

Monday, January 10, 2011

Belated new year wishes

Belated new year wishes to all. Hope you all doing well. I had a fabulous night on Dec 31st, Loads with lots of lots of fun with frndz ... Recent days I am little bit busy with my personal as well as office works, thats why I didn't posted much posts. Now onwards I will keep on postings . May this new year fulfill your future gaols...

ur's
Srini .