Thursday, December 4, 2008

Easy Web services with Grails

It was quite interesting to see Samisa's blog post about the ease of creating web services using Visual Studio.

True enough doing the same in PHP/JAVA may involve a little bit of more coding.

However, doing the same in Open Source is equally simple with the advent of technologies like GRAILS (

With the Axis2 Plugin for grails,

a service class can be very simply exposed as a web service by adding


static expose=['axis2']

to the top of the service class code.


mport javax.jws.WebParam;

class TestService {

static expose=['axis2']

String sayHello(String yourName) {
return "Hello ${yourName}!"

Friday, September 5, 2008

3G (Mobitel) for HUAWEI E220 -- Workaround for kernels < 2.6.20

Sunday, March 23, 2008


මෙහි සිංහල ලිවිය හැක.

Sunday, February 17, 2008

Free SMS to Sri Lankan Networks

These sites are free and require no login or registration.
(for the moment :-)

    • Dialog
    • Mobitel
    • Mobitel

Sunday, February 10, 2008

Eye Saver

A simple shell script that would have made my spectacle lenses a lot thinner, had I run into this some years ago.

Eye Saver pops up a message in X Windows, every 30 minutes, reminding you to take a eye break.

Version 0.1 is available for download at:

The latest version will be maintained at sourceforge.

The CVS of the sourceforge project is at:

Saturday, February 9, 2008

Kopi kade at Deyata Kirula 2009

Yours truly with the Kopi Kade cast at Deyat Kirula ....

Thursday, February 7, 2008

Deyata Kirula 2008 - BMICH

The national exhibition Deyata Kirula 2008 - BMICH is happening from 7-10th February 2008.

The ICTA stall was blazing away with 17" LCD panels show casing localized content and educational resources. The best part IMHO was the use of acceclerated 3D desktops like compiz-fusion blazing away with effects.

Some video clips of the happenings on the night before ...

Tuesday, February 5, 2008

Muliti Partitioned Bootable Thumbdrive

This is WIP

The Idea is as follows.

Device Boot Start End Blocks Id System
/dev/sdb1 1 8 64228+ 83 Linux
/dev/sdb2 9 124 931770 b W95 FAT32

sdb1 = Damn Small Linux
sdb2 = fat32 for data

1. get DSL iso
2. mount dsl iso and copy files over to sdb1
3. setup extlinux

elaborate soon.....

Thursday, January 24, 2008

Steve Jobs' speech at Stanford in 2005

This is the Apple co-founder. Very inspirational speech.

Sunday, January 20, 2008

RMS visits Sri Lanka

I had the good fortune of being with RMS during his visit to SL.

In the good name of avoiding duplication of work, here is a list of pointers that have covered the event in good detail.

gives a vivid description of the happenings.

Photos (courtesy of Suchetha and his SLR :)

The local news paper "The Nation" interviewed RMS and the online version is available here.

Saturday, January 19, 2008

Internet thru dialog GPRS

Many thanks to AR ( for sharing the wvdial script during RMS' visit to sigiriya :)

To install wvdial (thought it comes preloaded with most distros)

# apt-get install wvdial

The /etc/wvdial.conf file for dialog GPRS/EDGE.

[Dialer Defaults]
Modem = /dev/ttyACM0
Baud = 115200
Init = AT
Init2 = ATE0
Init3 = ATV1
Init4 = AT+CGDCONT=5,"IP",""
Init5 = ATS0=0
Init6 = AT+CGQREQ=5,0,0,0,0,0
Init7 = AT+CGQMIN=5,0,0,0,0,0
Init8 = AT+CGATT?
Dial Command = ATDT
Phone = *99***5#
Username = 777123123 (Your mobile no.)
Password = 777807190test (this doesnt really matter)
Stupid Mode = yes

This worked with my w810i using the USB data cable on Ubuntu 7.10

Can't really boast of fast connectivity but its a life saver in emergencies :)