Thursday, August 27, 2009

Sinhaly the wave robot

0 comments
Hello everybody,
This week I was free so I started a little wave project. To who don't know what is wave it is a new tool for communication and collaboration on the web. It is initiative from Google and will be available for public later this year. To learn more about wave go to this link.
Google wave is still in developer preview stage which have lots of bugs :-( You can get a invite from this link.
To whom who have google wave accounts my address is tharidu@wavesandbox.com
So let's start,
Google wave allows developers to use and enhance it through the APIs available. They are Robots, Gadgets and Embed. Well I developed a small functioning robot called "sinhaly" which enables user to use English-Sinhala transliteration easily. So if you type mama it will convert it to මම. It runs in the cloud and to use it you will have to add sinhaly ( sinhaly@appspot.com ) as a participant.
Sinhaly was written in python a
nd uses unicode standard to render Sinhala fonts. The algorithm was derived from UCSC Language Technology Research Laborotary's Real Time Unicode Converter.

Sinhaly in action :-)

Hope you enjoyed my post, please leave a comment!

Wednesday, August 19, 2009

How to rearm Windows 7

0 comments
Windows 7 is not yet released but the RTM version is available at MSDN. The intial trial period of Windows 7 is 30 days. However this can be extended upto 120 days!
This is legal also!!

"slmgr.vbs –rearm"


Enter the above command at a command prompt and restart. This command must be used when the trial day counter almost zero. The above command will give 30 days and can be entered 3 times.

wave

0 comments


Sunday, July 19, 2009

Techකතා Live: 24වන සජීවී වැඩසටහන හා පැන-විසඳුම්

0 comments
Techකතා Live: 24වන සජීවී වැඩසටහන හා පැන-විසඳුම්

  • High Quality (STEREO) 64Kbps (Broadband අන්තර්ජාල සම්බන්ධතා සදහා)


    [Download MP3 (32MB) or Ogg (31MB)]


  • Low Quality (STEREO) 32Kbps (Dial-up අන්තර්ජාල සම්බන්ධතා සදහා)


    [Download MP3 (16MB) or Ogg (21MB)]

  • Monday, July 13, 2009

    Windows 7 RTM build is leaked!!

    2 comments
    Today the RTM version of windows 7 which bears the 7600 build have been leaked. x64 is only available @ the moment.

    Windows 7 RTM x86 ISO: 7600.16384.090710-1945_x86fre_client_en-us_Retail_Ultimate-GRMCULFRER_EN_DVD.iso
    Windows 7 RTM x64 ISO: 7600.16384.090710-1945_x64fre_client_en-us_Retail_Ultimate-GRMCULXFRER_EN_DVD.iso

    Hashes for Windows 7 RTM Build 7600.16384.090710-1945 x64 iso is:

    Windows 7 RTM 7600.16384.090710-1945_x64fre_client_en-us_Retail_Ultimate-GRMCULXFRER_EN_DVD.iso

    7600.win7_rtm.090710-1945

    SHA1 0×31849B315290EFABFD81F967ED3C553D82925E4C


    Im gonna install a fresh copy of this bulid if time allows!

    You can get the links by googling!!



    [Images Coutesy: TechInvaders]

    update - http://forums.mydigitallife.info/showthread.php?t=6293

    torrent - Mininova


    Tuesday, June 30, 2009

    prefix-infix-postfix

    5 comments

    Welcome back after a long time!!

    @ UCSC for our data structures & algorithms course we had a assignment for converting between prefix-infix-postfix notations. So there are total of 6 conversions! I’m posting this because as i experienced this is a good project for get around in stacks, recursion and basic algorithm and data structure stuff.

    I implemented four of conversions which are infix –> prefix,

    infix –> postfix , prefix –> infix, postfix –> infix.

    Other 2 conversions will happen using the above ones.

    I wrote up the program that will support unary operators(minus numbers) 1-n digit numbers (5 , 50 , 456 , ..)

    BELOW are the pseudocodes

    Infix to Postfix algorithm
    1) Check for parenthesis errors. If found return ERROR
    2) Get the next element and store it in a variable – temp
    a. IF temp is a operand, examine the next element
    1. IF it is a operand output temp
    2. ELSE IF stack.top is unary minus --> output temp
    3. ELSE output temp and a SPACE
    ii. ELSE IF stack.top is unary minus -->output temp
    iii. ELSE output temp and a SPACE
    b. ELSE IF temp is a opening parenthesis -->push stack with temp
    c. ELSE IF temp is a operator
    i. IF stack is empty -->push stack with temp
    ii. ELSE IF stack.top is a opening parenthesis -->push stack with temp
    iii. ELSE IF temp’s precedence > stack.top precedence -->push stack with temp
    iv. ELSE output stack.pop and a SPACE AND repeat step “c”
    d. ELSE IF temp is a closing parenthesis
    i. WHILE stack.top is NOT opening parenthesis -->output stack.pop and a SPACE
    ii. IF stack.top is opening parenthesis -->pop the stack
    3) WHILE stack IS NOT empty -->output stack.pop and a SPACE


    Infix to Prefix algorithm
    Same as infix to postfix algorithm except,
    1) Before step 2 the input string will be reversed.
    2) Also the two parenthesis{ “ ( ” , ” ) ” } will be swapped where mentioned.
    3) Lastly the output will be reversed


    Prefix to Infix algorithm
    This algorithm is a non-tail recursive method.
    1) The reversed input string is completely pushed into a stack.
    prefixToInfix(stack)
    1) IF stack is not empty
    a. Temp -->pop the stack
    b. IF temp is a operator
    i. Write a opening parenthesis to output
    ii. prefixToInfix(stack)
    iii. Write temp to output
    iv. prefixToInfix(stack)
    v. Write a closing parenthesis to output
    c. ELSE IF temp is a space -->prefixToInfix(stack)
    d. ELSE
    i. Write temp to output
    ii. IF stack.top NOT EQUAL to space -->prefixToInfix(stack)


    Postfix to Infix Algorithm
    Same as Prefix to Infix algorithm except,
    1) Step 1 must be changed – The input string will be pushed into the stack
    2) Also the two parenthesis{ “ ( ” , ” ) ” } will be swapped where mentioned.
    3) The output string will be reversed.

    as i think this post will be a valuable resource for any computer science student!

    image

    Monday, June 8, 2009

    A easy way to share and store files online

    4 comments

    As i know almost of my friends @ da uni use pen drives (USB flash drives). They usually carry assignments, important documents, photos of GF or BF ;-) and etc., This is very dangerous becoz usually pen drive is not very reliable device and it can be lost or stolen by someone easily.

    Your computer’s hard disk is also vulnerable for failures and can be virus affected also.

    The result is losing ur assignment that must be given tomorrow. Then finally freaking out!!!

    The ANSWER is storing the files online. There are various free sites that give this service but i use “Dropbox”. It hav lots of features to explore.

    I will list some feature that i like most,

    1. There is a desktop client which will integrate with a folder in ur hard disk which can be synched online. There re offering clients for Windows, Linux and OSX. Cool!!!

    This means u can synch files over several computers.

    dropbox dropboxmenu

    This is a screenshot of my dropbox and the menu. U will see which files or folders are current updated or synchronizing.

    There re giving out a 2GB account free, if u want to upgrade it is possible.

    2. There is a web client which will be accessible @ www.getdropbox.com

    This site is very feature rich and easy to learn. It uses https protocol which is more secure also.

    dropboxevents dropboxweb

    3. U can also share certain folders with ur friends. They wont be allowed to other files or folders so it is great in team work.

    Hope u will give a try!

    U can get dropbox @ the link below,This my referral which will give 250 MB free for both of us so if u re interested go to it & download!

    Download Dropbox