Google Summer of Code 2007
Saliya Ekanayake
My proposal on implementing C14N based on Axiom for Google Summer of Code 2007 has been accepted. Wow! I really feel excited. Thanks specially for Ruchith Fernando for being the mentor of this project. Thanks for everyone else as well who thought to give a vote for the proposal.
10:43 AM
2007
,
gsoc
,
XML canonicalization
Saliya Ekanayake
ADSL is Up and Running
Ah! I was able to configure the ADSL router at last. The username and password provided by the ISP did not work. Can you believe it? I was astonished when I received the "authentication failed" error. The 24hr help center, however, gave me the clue to change the password. Luckily I had a dial-up connection as well. At last it worked. Gosh! what a fun it is to play with something new.
Ah! I was able to configure the ADSL router at last. The username and password provided by the ISP did not work. Can you believe it? I was astonished when I received the "authentication failed" error. The 24hr help center, however, gave me the clue to change the password. Luckily I had a dial-up connection as well. At last it worked. Gosh! what a fun it is to play with something new.
10:35 AM
Saliya Ekanayake
8:20 PM
Installing ATI X1300 Raedon Mobility Display Driver in Ubuntu Edgy(6.10)
Saliya Ekanayake
I was able to configure my graphics card (ATI X1300 Raedon Mobility) on my Dell Inspiron E1505 laptop from this nice link. However, I was bugged with the error "Xlib: extension "XFree86-DRI" missing on display ":0.0".". Then I found out that deactivating the composite extension in /etc/X11/xorg.conf would do the job.
Here's what I did from the beginning:
Here's what I did from the beginning:
sudo apt-get update
sudo apt-get install xorg-driver-fglrx
sudo apt-get install linux-restricted-modules-2.6.17-10-generic
sudo depmod -a
sudo aticonfig --initial
sudo aticonfig --overlay-type=Xv
Now edit the /etc/X11/xorg.conf to include following three lines
Section "Extensions"
Option "Composite" "0"
EndSection
Note: You need to have root privileges to edit this file. So use the command sudo vim /etc/X11/xorg.conf
Then add the following line to /etc/modules
fglrx
Note: You need to have root privileges to edit this file. So use the command sudo vim /etc/modules
Finally press ALT+CTRL+Backspace to restart XServer
Type fglrxinfo in a terminal to verify your installation. You should see something like this
display: :0.0 screen: 0
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: ATI Mobility Radeon X1300 Generic
OpenGL version string: 2.0.6011 (8.28.8)
Now it's DONE :)
Saliya Ekanayake
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.
10:31 PM
Java Threads - Simple Example
Saliya Ekanayake
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);
}
}
}
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
Saliya Ekanayake
Download the (latest) rar http://files.rarlab.com/rar/rarlinux-3.6.0.tar.gz
Extract 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.
Extract 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.
Saliya Ekanayake
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
2:27 AM
Saliya Ekanayake
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!
8:44 PM
Subscribe to:
Posts
(
Atom
)