Friday, December 25, 2009
Free Blog Templates
Posted by Mohan at View blog reactions 7:37 AM 0 comments
Labels: Blogging Tips
Thursday, December 24, 2009
Swing Invokelater Example
Here we can see How to write a responsive User interfaces using Swing.
Most post-initialization GUI work naturally occurs in the event-dispatching thread. Once the GUI is visible, most programs are driven by events such as button actions or mouse clicks, which are always handled in the event-dispatching thread. A program that uses separate worker threads to perform GUI-related processing can use invokelater and invokeandwait methods to cause a Runnable object to be run on the event-dispatching thread.
Posted by Mohan at View blog reactions 7:22 PM 0 comments
Labels: Results
Tuesday, December 22, 2009
Madras University Results
Posted by Mohan at View blog reactions 9:37 AM 0 comments
Labels: Results
How to Execute Shell Script From Java
Here is an example shows how to execute the shell scripts from java programs.
If you want to execute the below program set the java path in Unix environment.
export PATH=$PATH:/usr/jdk1.5.0/bin
export CLASSPATH=$CLASSPATH:/usr/jdk1.5.0/bin
create a shell script like shellscript.sh
#!/bin/bashclearecho "Good morning, world."
then change the permission for this script.if you execute the shell script you need execute permission.
chmod 777 shellscript.sh
try
./shellscript.sh
From java program
import java.io.IOException;
public class JavaScript {
public static void main(String[] args) {
try {
Runtime.getRuntime().exec("/root/shellscript.sh");
System.out.println("Working Fine");
} catch (IOException e) {
e.printStackTrace();
}
}
}
Posted by Mohan at View blog reactions 9:09 AM 0 comments
Labels: CoreJava
Sunday, December 20, 2009
Blog Templates
Blog templates are important for blog to become more popular.For new blogger, they usually start blogging from existing templates available in the blogger or wordpress.
Before you start blogging choose the right template for your blog topic and blog intention.if you like to earn something from blog(using adsense or other ads) means choosing right template is more important,otherwise if you chose a template and started writing about something and later you planning to change means you may lose some widgets or scripts.
There are lot of customized templates are available for BlogSpot and wordpress.
http://www.eblogtemplates.com/
http://webtalks.blogspot.com/2007/04/downlaod-three-column-new-blogger.html
3 column templates are most popular design templates,especially minima series and 3 column rounder series are commonly used blog templates.
above templates are well suits for adsense also.
After template selection add some featured widgets for your blog it will useful for you.
wowzio live activity feed widgets and more widgets are available in
wowzio.
related post
http://techieidea.blogspot.com/2009/11/best-blog-widgets.html
or you can use feedjit live widjet.
and add some more suitable widgets for your blog and customize your template as you wish.
Posted by Mohan at View blog reactions 7:57 AM 0 comments
Labels: Blogging Tips
Saturday, December 19, 2009
Java Date Format
SimpleDateFormat Example
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
public class DateFormatExample {
public static void main(String args[]) {
Date date = new Date();
String DATE_FORMAT = "MM:dd:yyyy";
// or
// String DATE_FORMAT = "MM/dd/yyyy";
SimpleDateFormat simDateFormat = new SimpleDateFormat(DATE_FORMAT);
System.out.println("Today is " + simDateFormat.format(date));
// or If you want display time with AM/PM
String TIME_FORMAT = "HH:mm:ss a";
SimpleDateFormat timeFormat = new SimpleDateFormat(TIME_FORMAT);
System.out.println("Now time is " + timeFormat.format(date));
// Today date and Time
System.out.println("Date and time is " + simDateFormat.format(date)
+ " " + timeFormat.format(date));
}
}
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
public class StrToDate {
public static void main(String[] args) {
String stri = "18/12/2009";
DateFormat simDateForm = new SimpleDateFormat("dd/MM/yyyy");
Date dstr;
try {
dstr = (Date) simDateForm.parse(stri);
System.out.println("Date is" + dstr);
} catch (ParseException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
Posted by Mohan at View blog reactions 2:11 AM 0 comments
Labels: CoreJava
Thursday, December 17, 2009
Google Chrome Extensions
Google Chrome Extensions
Add new features to google chrome by adding extensions (beta). But these features are useful for some people, but not for all.
Extensions currently available for Windows and Linux.
Most Popular Features
1.Google Mail Checker
It is displays the number of unread messages in your Google Mail inbox.
2. AdThwart
we can blocks ads on websites using this feature.
3.Dotspots
Dotspots is an annotation service.It is also useful for blogger.
You can connect blog posts, links, photos, videos and docs to any text on the web or into your social stream for all to see.
You can add these extensions by clicking bottom right corner of your google chrome browser.
4.Google Translate
5.Google Wave Notifier
Add the above the extensions and make your google chrome browser as more powerful.
Posted by Mohan at View blog reactions 8:28 AM 0 comments
Labels: Google
