Setting up ATI Raedon X1300 (128MB) for Ubuntu Edgy on Dell Inspiron E1505
I was trying to configure my graphics card in Ubuntu Edgy and I found this blog which explained the procedure in a nutshell. However, there is a link to setup repositories which directs to a lengthy page. So to get it done in a nutshell too follow this link.
I was trying to configure my graphics card in Ubuntu Edgy and I found this blog which explained the procedure in a nutshell. However, there is a link to setup repositories which directs to a lengthy page. So to get it done in a nutshell too follow this link.
Java Threads - Simple Example
public class MyThreadExtendingThread extends Thread{public void run(){
for(int i = 0; i < 100000; i++){
System.out.println("child 1 says - " + i);
}
}
}
public class MyThreadImplementingRunnable implements Runnable{
public void run(){
for(int i = 0; i < 100000; i++){
System.out.println("child 2 says - " + i);
}
}
}
public class ThreadTester {
public static void main(String[] args) {
/* Ok think of a thread as a child in your class. You ask the child
to count from 0 to 100000. You as the teacher starts counting with the child.
But you two count on two different "threads" so you don't have to wait till
the kid is finish counting.
Let's see this in java - run and see
*/
//MyThreadExtendingThread extends java.lang.Thread class
MyThreadExtendingThread t1 = new MyThreadExtendingThread(); // create a kid to count
t1.start(); // ask the kid to start his job (in this case counting)
/*MyThreadImplementingRunnable implements java.lang.Runnable interface
so if you have to create an instance out of java.lang.Thread class
and pass an instance of your MyThreadImplementingRunnable to it. Then call start()
method of the java.lang.Thread instance
*/
Thread t2 = new Thread(new MyThreadImplementingRunnable()); // create another kid
t2.start(); // ask the kid to start his job (in this case counting)
// you also start counting
for(int i = 0; i < 100000; i++){
System.out.println("Teacher says - " + i);
}
}
}
Enable Opening of .rar Files from Ubuntu Archive Manager
Download the (latest) rar http://files.rarlab.com/rar/rarlinux-3.6.0.tar.gzExtract the content using tar -xvvzf rarlinux-3.6.0.tar.gz
Copy the file "rar" inside the extracted folder to "usr/bin"
That's it and now archive manager can open .rar files.
Internship at WSO2
Tragedy struck for entire world when passenger air planes were used as "bombs" to attack USA. But for my part of the story I started my internship at WSO2, Inc. exactly after 5 years.
It's the fourth day of my training and the most interesting thing is that all the team members are so helpful and friendly. Wow what a relief to be with such great spirits.
Thanks WSO2
Tragedy struck for entire world when passenger air planes were used as "bombs" to attack USA. But for my part of the story I started my internship at WSO2, Inc. exactly after 5 years.
It's the fourth day of my training and the most interesting thing is that all the team members are so helpful and friendly. Wow what a relief to be with such great spirits.
Thanks WSO2
Sinhala New Year
It is Sinhala New Year in Sri Lanka. 13th and 14th of April are the Sinhala New Year days in our country. There are lots of traditional events are organized through out the country to celebrate the up coming Sinhala New Year. Ah! I almost forgot the sweets. The sweetest traditional sweets and various other food stuff also come in to play.
Ok guys and gals keep in touch with blogs to see some cool pics of the Sinhala New Year after 14th.
Have a nice day!
It is Sinhala New Year in Sri Lanka. 13th and 14th of April are the Sinhala New Year days in our country. There are lots of traditional events are organized through out the country to celebrate the up coming Sinhala New Year. Ah! I almost forgot the sweets. The sweetest traditional sweets and various other food stuff also come in to play.
Ok guys and gals keep in touch with blogs to see some cool pics of the Sinhala New Year after 14th.
Have a nice day!
Subscribe to:
Posts
(
Atom
)
No comments :
Post a Comment