Google Pages
Saliya Ekanayake
Google always come up with cool ideas. This is not boasting but they really do. I recently came across this idea of Google pages. I was searching for a place to share some of my files with others. It's then I found this and it was more than a place to share files. I gave it a try and here is my hOme up and running :)
Saliya Ekanayake
Brain and Your Fist
This is some nice fact I've noticed but it may not mean anything. Have you seen a diagram of the brain from side view? I guess you probably have. Now try to keep your fingers in the right hand as if you are going for a fight (fisted). Then see your fist from side view. You will see a similar shape to that of brain. Isn't that interesting?
This is some nice fact I've noticed but it may not mean anything. Have you seen a diagram of the brain from side view? I guess you probably have. Now try to keep your fingers in the right hand as if you are going for a fight (fisted). Then see your fist from side view. You will see a similar shape to that of brain. Isn't that interesting?
10:57 AM
life
ATI x1300 with Ubuntu Gusty (7.10)
Saliya Ekanayake
Ah! I had to give another fight to get my x1300 ATI card working properly with Ubuntu Gusty. The restricted driver that comes by default would correct the wide screen problem but video quality is changed. You will find lot of illuminant people while watching a film in totem.
So here goes the answer
Good luck and have fun :)
So here goes the answer
Good luck and have fun :)
Ubuntu 7.10 on DELL E1505 Notebook
Saliya Ekanayake
I installed Ubuntu (Gusty Gibbon) on my Dell notebook and I felt the beauty of it from the very beginning.
The two most interesting features I see:
1. Read/Write facility to NTFS (Windows) partitions
2. Easy configuration of restricted drivers (no need to worry about setting up your ATI video card :)
The two most interesting features I see:
1. Read/Write facility to NTFS (Windows) partitions
2. Easy configuration of restricted drivers (no need to worry about setting up your ATI video card :)
Saliya Ekanayake
Perceptron in Java
I'm following Neural Networks class for my final year and I felt it's a cool subject. I'm still a newbie in this field. But I gave a try to implement a simple perceptron to train few logic gates. It was a cool experience.
I'm following Neural Networks class for my final year and I felt it's a cool subject. I'm still a newbie in this field. But I gave a try to implement a simple perceptron to train few logic gates. It was a cool experience.
Saliya Ekanayake
HUAWEI ETS 2251 with Ubuntu 6.10
We recently purchased a CDMA data phone and I wanted to connect to the Internet with Linux (Ubuntu 6.10). Try the following steps:
1. plug-in the USB cable (your cable should be Serial (phone side) to USB one).
2. sudo dmesg -c
you should see the following at the bottom
ti_usb_3410_5052 2-1:2.0: TI USB 3410 1 port adapter converter detected
if you see ti_usb_3410_5052: probe of 1-1:1.0 failed with error -5 after the above line then copy the following lines,
#TI USB 3410
SUBSYSTEM=="usb_device" ACTION=="add" SYSFS{idVendor}=="0451",SYSFS{idProduct}=="3410" \
SYSFS{bNumConfigurations}=="2" \
SYSFS{bConfigurationValue}=="1" \
RUN+="/bin/sh -c 'echo 2 > /sys%p/device/bConfigurationValue'"
and save them as /etc/udev/rules.d/026_ti_usb_3410.rules
Now run sudo dmesg -c again and you'll see the following two lines,
ti_usb_3410_5052 1-1:2.0: TI USB 3410 1 port adapter converter detected
usb 1-1: TI USB 3410 1 port adapter converter now attached to /dev/ttyUSB0
3. Now configure the /etc/wvdial.conf as follows, please note that you need to replace your given username, password and phone number with my configuration (abc@prepaid, 1234, #777) given here.
[Dialer suntel]
Modem = /dev/ttyUSB0
Baud = 230400
Phone = #777
Init1 = ATZ
Stupid Mode = 1
Dial Command = ATDT
Username = abc@prepaid
Password = 1234
4. Now type sudo wvdial suntel and enjoy the Internet. If you can't browse then plese add the DNS addresses to /etc/resolv.conf (these DNS addresses can be found in the command line while connecting).
Thanks Farhan Naeem for sharing knowledge on this matter
We recently purchased a CDMA data phone and I wanted to connect to the Internet with Linux (Ubuntu 6.10). Try the following steps:
1. plug-in the USB cable (your cable should be Serial (phone side) to USB one).
2. sudo dmesg -c
you should see the following at the bottom
ti_usb_3410_5052 2-1:2.0: TI USB 3410 1 port adapter converter detected
if you see ti_usb_3410_5052: probe of 1-1:1.0 failed with error -5 after the above line then copy the following lines,
#TI USB 3410
SUBSYSTEM=="usb_device" ACTION=="add" SYSFS{idVendor}=="0451",SYSFS{idProduct}=="3410" \
SYSFS{bNumConfigurations}=="2" \
SYSFS{bConfigurationValue}=="1" \
RUN+="/bin/sh -c 'echo 2 > /sys%p/device/bConfigurationValue'"
and save them as /etc/udev/rules.d/026_ti_usb_3410.rules
Now run sudo dmesg -c again and you'll see the following two lines,
ti_usb_3410_5052 1-1:2.0: TI USB 3410 1 port adapter converter detected
usb 1-1: TI USB 3410 1 port adapter converter now attached to /dev/ttyUSB0
3. Now configure the /etc/wvdial.conf as follows, please note that you need to replace your given username, password and phone number with my configuration (abc@prepaid, 1234, #777) given here.
[Dialer suntel]
Modem = /dev/ttyUSB0
Baud = 230400
Phone = #777
Init1 = ATZ
Stupid Mode = 1
Dial Command = ATDT
Username = abc@prepaid
Password = 1234
4. Now type sudo wvdial suntel and enjoy the Internet. If you can't browse then plese add the DNS addresses to /etc/resolv.conf (these DNS addresses can be found in the command line while connecting).
Thanks Farhan Naeem for sharing knowledge on this matter
Saliya Ekanayake
TMNT Two Thumbs Up!!
I loved watching Teenage Mutant Ninja Turtles cartoon when I was a little kid and now I got hand on the movie. I really like it, two thumbs up TMNT!!
I loved watching Teenage Mutant Ninja Turtles cartoon when I was a little kid and now I got hand on the movie. I really like it, two thumbs up TMNT!!
8:00 AM
Saliya Ekanayake
Advanced OS Paper - Nightmare
Oh! boy, today we had our Advanced Operating Systems paper. It was one hello of a paper.
Anyway may be things happen for good. That's all I know :)
Oh! boy, today we had our Advanced Operating Systems paper. It was one hello of a paper.
Anyway may be things happen for good. That's all I know :)
12:55 AM
Saliya Ekanayake
Sri Lanka Telecom ADSL Service Sucks
I and my roommate took an ADSL Internet connection to the boarding from Sri Lanka Telecom. It was great in the first few months. But now it sucks. We bought the package which advertises 512Kbit/s (kilo bits per second) down load speed and 128Kbit/s upload speed. But the damn thing won't support even 100Kbit/s download speed. Damn, that sucks.
The most funny thing is that their customer service guy came and inspect the system and said that he feels it's normal. Can you believe it? He even says if we don't like it then we better disconnect it. Yea that's what we wanted as a solution, yikes.
I and my roommate took an ADSL Internet connection to the boarding from Sri Lanka Telecom. It was great in the first few months. But now it sucks. We bought the package which advertises 512Kbit/s (kilo bits per second) down load speed and 128Kbit/s upload speed. But the damn thing won't support even 100Kbit/s download speed. Damn, that sucks.
The most funny thing is that their customer service guy came and inspect the system and said that he feels it's normal. Can you believe it? He even says if we don't like it then we better disconnect it. Yea that's what we wanted as a solution, yikes.
12:46 AM
Saliya Ekanayake
Mailing list is much like Instant Messaging
Google announce that code submission for GSOC 2007 is available few minutes before. The student's mailing list got fired with the news :) Everybody (including myself) was posting questions telling that link for the submission doesn't work. Oh! Leslie (at google) must have had a nightmare replying to those emails and we really appreciate your kind and speedy responses.
The mailing list became like a chat room with mails flying within seconds :)
Google announce that code submission for GSOC 2007 is available few minutes before. The student's mailing list got fired with the news :) Everybody (including myself) was posting questions telling that link for the submission doesn't work. Oh! Leslie (at google) must have had a nightmare replying to those emails and we really appreciate your kind and speedy responses.
The mailing list became like a chat room with mails flying within seconds :)
1:45 PM
PyDev - Python Development Plug-in for Eclipse
Saliya Ekanayake
Oh! yes, I'm loving this Eclipse! Now I can use it to develop python programs. Use pydev plug-in and you can really give a go with it :) Here is a nice tutorial explaining step by step on how to use the plug-in.
Tip for Linux users: When you go to configure the python interpreter use /usr/bin/python (the tutorial explains only for Windows users )
Tip for Linux users: When you go to configure the python interpreter use /usr/bin/python (the tutorial explains only for Windows users )
Saliya Ekanayake
Fire on Ice
Is it a miracle that I'm going to talk about? No, it came to life on 17th July 2007 at CS&ES (Computer Science & Engineering Society) AGM (Anual General Meeting).
I was asked to display fire on a block of ice for the AGM. Yea, I did it at the end and it was better than expected. The simple theory behind was burning Trimethylbenzene (a.k.a. paint thinner) on top of ice. Hmm, it's easy to say than do. There were several challenges to face, i.e. what happens when ice melt down due to heat, how to stop spreading fire, how to ignite thinner automatically, how to make an ice cube with a carving to fill thinner, etc. Oh! boy it was a night mare to think all of this.
I tried with few prototypes and they all worked fine. The most interesting part was the igniter. I used two clutch pencil leads touching together with applied voltage of 12V to ignite a match stick. I created a simple stand to hold the thing (unfortunately it was burnt with the fire before I could take a picture) so that giving the power would do the job.
I'm greatly disappointed because no one had taken a picture of the burning ice. Anyway it was a great experience and I'm really happy with the success.
I need to mention few of my friends who helped me to make it a success. They are Rajika (one big thank to this guy), Dinesh (it was his idea to burn ice), Charith, Malaka and Tharindu (they helped me with the final touches).
Is it a miracle that I'm going to talk about? No, it came to life on 17th July 2007 at CS&ES (Computer Science & Engineering Society) AGM (Anual General Meeting).
I was asked to display fire on a block of ice for the AGM. Yea, I did it at the end and it was better than expected. The simple theory behind was burning Trimethylbenzene (a.k.a. paint thinner) on top of ice. Hmm, it's easy to say than do. There were several challenges to face, i.e. what happens when ice melt down due to heat, how to stop spreading fire, how to ignite thinner automatically, how to make an ice cube with a carving to fill thinner, etc. Oh! boy it was a night mare to think all of this.
I tried with few prototypes and they all worked fine. The most interesting part was the igniter. I used two clutch pencil leads touching together with applied voltage of 12V to ignite a match stick. I created a simple stand to hold the thing (unfortunately it was burnt with the fire before I could take a picture) so that giving the power would do the job.
I'm greatly disappointed because no one had taken a picture of the burning ice. Anyway it was a great experience and I'm really happy with the success.
I need to mention few of my friends who helped me to make it a success. They are Rajika (one big thank to this guy), Dinesh (it was his idea to burn ice), Charith, Malaka and Tharindu (they helped me with the final touches).
8:05 AM
Fibonacci Calculator in Visual C++
Saliya Ekanayake
#include "stdafx.h"
#include
using namespace std;
int calculate_fibonacci(int n);
int main(int argc, char* argv[])
{
int n;
cout << "Enter n: "; cin >> n;
cout << "Fibonacci of " << int="" b="1," bb="0," return="" else="" if="" n="="> 1) {
for (i = 1; i < result =" 0;" bb =" b;" b =" result;">
#include
using namespace std;
int calculate_fibonacci(int n);
int main(int argc, char* argv[])
{
int n;
cout << "Enter n: "; cin >> n;
cout << "Fibonacci of " << int="" b="1," bb="0," return="" else="" if="" n="="> 1) {
for (i = 1; i < result =" 0;" bb =" b;" b =" result;">
7:02 AM
c++
,
Fibonacci
,
non recursive
C plug-in for Eclipse - CDT
Saliya Ekanayake
Ever thought of using an IDE in Linux to type C? For pure C guys this is not a problem because they have the nice little VI or VIM. Yea it's very true that you can do a great lot of things with VI. The only problem for me was that I used to do a lot with Java using Eclipse. So suddenly when I wanted to use C for one of my assignments I found it very difficult to adapt with it.
Little bit of googling came up with this wonderful tool, CDT. It's a plug-in for Eclipse and you can do a great lot of things with C with rich IDE features. Try this tutorial to learn about the plug-in.
Little bit of googling came up with this wonderful tool, CDT. It's a plug-in for Eclipse and you can do a great lot of things with C with rich IDE features. Try this tutorial to learn about the plug-in.
9:14 AM
C development
,
CDT
,
Eclipse
Saliya Ekanayake
Dr. D. A. I. Munidradasa has Passed Away
He was one of the great lecturers in the University of Moratuwa and it's my great condolence to mention that he has passed away today. He taught us the principles of Electronics and he showed his expertise throughout his teaching, yet he was a very kind teacher.
He left us with a blank which would hardly get filled in the near future. May you attain nibbana dear sir!
He was one of the great lecturers in the University of Moratuwa and it's my great condolence to mention that he has passed away today. He taught us the principles of Electronics and he showed his expertise throughout his teaching, yet he was a very kind teacher.
He left us with a blank which would hardly get filled in the near future. May you attain nibbana dear sir!
1:49 AM
Saliya Ekanayake
Innovative Tools
Did you ever think about automatic level tools. Hmm, Black and Decker has thought about it and has given this wonderful laser level, Bulls Eye. The demo is really cool. I also like their Handisaw. I've used several Black and Decker products (can opener, vacuum cleaner, iron and toaster) and all of them were of great quality. Hmm I wish I could buy one of those Handisaws from Sri Lanka :)
Did you ever think about automatic level tools. Hmm, Black and Decker has thought about it and has given this wonderful laser level, Bulls Eye. The demo is really cool. I also like their Handisaw. I've used several Black and Decker products (can opener, vacuum cleaner, iron and toaster) and all of them were of great quality. Hmm I wish I could buy one of those Handisaws from Sri Lanka :)
1:27 AM
Saliya Ekanayake
CSE Formula
The Department of Computer Science & Engineering organizes a toy car race each year for the new comers. The first year entrants to the department are grouped and given the task of creating a remote controlled (not RF controlled actually, hmm I wonder why it is ?) toy vehicle which is to be powered by a 12V DC power source. Eventual grading (not GPA) includes a test run of each vehicle on a track made with few obstacles.
This event is really cool. Bad thing I miss this chance since this event with the batch junior to us. Anyway I'm really interested in such events because I personally believe that students should have some skills to build things rather to design them in papers. Yet it is little bit pathetic to see the construction of vehicles of some groups. One student has tried to give the power of the motor directly to the wheel. I wonder why such situations arise because even they know that it is not the case in any toy. They need to use gear wheels. I hope things would get corrected with time as students begin to like the event.
Good work CSE :)
The Department of Computer Science & Engineering organizes a toy car race each year for the new comers. The first year entrants to the department are grouped and given the task of creating a remote controlled (not RF controlled actually, hmm I wonder why it is ?) toy vehicle which is to be powered by a 12V DC power source. Eventual grading (not GPA) includes a test run of each vehicle on a track made with few obstacles.
This event is really cool. Bad thing I miss this chance since this event with the batch junior to us. Anyway I'm really interested in such events because I personally believe that students should have some skills to build things rather to design them in papers. Yet it is little bit pathetic to see the construction of vehicles of some groups. One student has tried to give the power of the motor directly to the wheel. I wonder why such situations arise because even they know that it is not the case in any toy. They need to use gear wheels. I hope things would get corrected with time as students begin to like the event.
Good work CSE :)
6:57 AM
Ency
Saliya Ekanayake
I have developed a little tool to embed text messages inside image files using Java called Ency. I'm really interested in this steganography and security stuff. Ency is in its primary stage. It needs more modifications to step into maturity. I found this nice link explaining about steganography while trying to improve Ency. Enjoy hidden messaging with Java ;-)
11:02 AM
ecny
,
steganography
Subscribe to:
Posts
(
Atom
)