| Thejesh GN | A Blog, A Website and A container for all my views with excerpts from technology, travel, films, india, photography, kannada, friends and other interests. I am Thejesh GN. Friends call me Thej..more. |
![]() |
You are reading ‘Technology’ ....After Nano, TATAs are aiming high by collaborating with MDI to manufacture AIR POWERED cars. Yes you heard it right. The engines of this new model will be powered by compressed air. According to this press release by TATA Motors. They are getting into an agreement with MDI to refine the technology and license it to use in India. So air powered car is not very far away. From the press release
One of the product of MDI is Minicat. Its a small car with looks of Reva But it is as big as Nano with three passenger seats and boot for luggage. Some more details of it taken from MDI.
Looks like TATAs have great ambition of providing cheap and environmental friendly vehicles. I am not sure how their rivals will react. But for sure I will be happy to buy one. I like to have cards of different design. Now I have a new design. Which is much better than my previous card. This time its more web2.0 and geekish. It has just enough information and lots of space for other notes, mob number and address if req. Friends suggested that I should have it in my *blog colours* too. Here is the modified version. Which one do you think is better? I like black&white. 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. Now how would you achieve this with out sharing the credentials? 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. 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 |