Wednesday, April 29, 2009

Pride Vs Shame

Hi,

Today there are few moments where i felt proud about my country at the same time felt ashamed.

Pride: I was working out in gym as usual. In the change room, i heard a background music compsed by our ARR in his slumdog millionaire. It was quite unusual for me to hear a song which is so familiar to me in the gym amidst the normal akon, justin timberlake, beyonce songs. This just gave me a feel good feeling but what made me to feel proud was one foreigner humming that background music on his way for shower. 

ARR - you made me (or rather us) feel proud. Miles to go!!

PRIDE



The other incident - Once i had my shower i was leisurely reading daily mail paper kept in leisure area of gym. There, i saw a photo of autorickshaw carrying loads of coconut fibres in a way that it entirely hides the autorickshaw itself. The comment on the photo was mockery. The below is the photo taken in our own mysore. 

SHAME



All the pride i had about my country few days before just vanished like passing clouds.

Thursday, April 16, 2009

One line find and replace string command in Linux/Unix.

Hi,

One of my friend was in urgent need for a find and replace command in set of files of some specific extension and asked me if i have one.

I gave him the following: Hope this is useful for you.

find . -name "*.extension" -exec sed -i s/strtofind/strtoreplace/g '{}' \;

where,
extension- extension of the file names where you want to find and replace.
strtofind- string to be found in those files.
strtoreplace- string to be replaced in those files.

Note: Please take caution when you want to find and replace strings having "/". You may need to use \\/ to make sure that "/" is treated as string by the sed command.

Thursday, April 09, 2009

Cleared SCJP 1.5 - 09/March/2009

Hi All,

Forgot to update you guys. I cleared SCJP1.5 exam on March 9,2009 with 87%. So here are few tips that i would like to suggest for future test takers.
  • Planning - minimum 2 hours per day for 3 weeks needs to be spent (42 person hours). 2 Weeks (28 person hours) for reading book and 1 week (14 person hours) for giving practise exams.
  • Book - Kathy Sierra.
  • Forums - www.javaranch.com
  • Mock Test - All mock exams listed in http://faq.javaranch.com/java/ScjpMockTests
  • Special mock test - Devaka Cooray (Exam Lab) mock test - listed as 46 in the above said mock test link.
  • Extra materials - To have a good understanding about Auto-boxing concepts and the generics concept along with examples, i purchased the materials from www.javabeat.com. The concepts explained in their material are very simple and intutive.
  • Scoring pattern - I was able to clear all the mock exams in the link mentioned above with score around 85%. Devaka Cooray is exception where i got only 51%,55%,57% and 60% in the assessment, first mock, second mock and final mock respectively. So dont get scared if you get low scores in Devaka's Exam Lab. Infact, the questions in the real exam were much more simpler than Devaka's Exam Lab.
If you need any further information, please mail me at thoppae.saravanan@gmail.com