Jul
02
Filed Under (Life) by Thejesh GN on 02-07-2008

I can’t believe! I have spent five years in blog world. My blog life started with TechMag on 25062003. Here is my previous post about my blogging life.



Jul
02
Filed Under (Technology) by Thejesh GN on 02-07-2008

The problem with using more and more social networks is with every social network you join you need to create profile then invite friends. There is no way to carry your data from one network to another network with out a hitch. Few smart people have already started working on this issue of DataPortability in detail. So lets not worry about it.
In the mean time few web apps have given users an opportunity to share the data. Take an example of adding all your Gmail contacts into Orkut. Login to Orkut and then enter your gmail id/password to invite all your contacts. This seems OK since both Gmail and Orkut is owned by the same company. Your id/password *does not* leave Google.
Linked in sharing contacts
Where as the same model is used by LinkedIn to add your professional contacts. You need to give your userid/pw details of gmail/hotmail to add the contacts. This doesn’t seem OK even with their promise of privacy and purpose.

Now how would you achieve this with out sharing the credentials?
Read the rest of this entry »



Jun
30
Filed Under (Life, Photography) by Thejesh GN on 30-06-2008


Hmm Ganesha needs some suggestion. Can you?

Note:This is test post from kablog j2me mobile blog client.



Jun
24
Filed Under (Technology) by Thejesh GN on 24-06-2008

I have seen developers writing toString method in each of their bean class. The purpose is to print the bean variables for logging or debugging purposes. I thought of reducing their effort by writing a generic toString method to have in their base bean class. It works for simple bean classes. Its no-brainer you can modify to work for others.


public String toString() {
	String lineSeaparator = System.getProperty("line.separator");
	StringBuffer buffer = new StringBuffer(lineSeaparator);
	buffer.append("|---------");
	buffer.append(this.getClass());
	buffer.append("---------|");
	buffer.append(lineSeaparator);
	Method[] methods = this.getClass().getMethods();
	if(methods != null && methods.length >0){
		Method method = null;
		for(int i =0; i< methods.length; i++){
			method = methods[i];
			if(method.getName().startsWith("get")
			&& !method.getName().startsWith("getClass")){
			buffer.append
                                (method.getName().replaceAll("get",""));
			buffer.append(" = ");
			Object[] params=null;
			try {
				buffer.append
                                   (method.invoke(this, params));
			} catch (Exception e) {
				buffer.append("  ");
			}
				buffer.append(lineSeaparator);
			}
		}
	}
	buffer.append("|---------------------------------------------|");
	buffer.append(lineSeaparator);
	return buffer.toString();
}

Any suggestions to improve are welcome.



Jun
24
Filed Under (Technology) by Thejesh GN on 24-06-2008

Note: This was the most read blog post on TechMag. Unfortunately lost all the content there. I have reproduced the same post here for the readers benefit. Thanks.

VLC is a player but also can be used to record a screen cast ( capture the screen as video).Here is the small how to do that. This works with portable VLC too. Start the VLC By going to the installation folder and running the command

>> vlc screen://

It will open the VLC and shows the screen exactly. It actually is streaming the screen


Read the rest of this entry »