Lucky Tec

July 12, 2008

XQuery plugin - Journey continues…

Filed under: Eclipse, FOSS, Fun, GSoC, Java, My Activities — Laknath @ 11:26 pm
Tags: , ,

Last few weeks had been good for the new plugin. Nothing too fnacy yet, but now I think it has a firm basic structure and other necessary classes to name it as an “Eclispe SSE based editor”.

Regarding how it’s processing is done (since that’s what really matters), we have thought of following a somewhat same structure as in HTML+CSS plugins. This is due to the syntax of XQuery which is like a combination of XML and SQL, as you can see from these user cases. So as David suggested, the easiest way is to first understand how HTML plugin handles embedded CSS and then use the same technique to add syntax colouring in the new XQUERY_XPATH context after going through the XQuery Parser.  So now I’m currently going through adding required classes for line styling  and parsing.

So my immediate targets are,

1) Add line colouring and parsing XQuery partition

2) Add content assistance through re-parsing

It’s not easy to materialize a parser out of nowhere. But it has to begin from somewhere, is it not ?

Other than that the plugin now has basic support for Preference pages & Outline so they will also be improved as the project goes on.

Here is a peek at the new editor.

A peek at new XQuery Editor

As I may have mentioned previously, without the help of David and other guys at Eclipse IRC I would have been totally lost. There are gaping holes in Eclipse main documentation and most clsss references on SSE aren’t complete. So as that is what any newcomer will look in to when faced with a tricky situation, I truly think more attention must be put into improving Eclipse documentation and who knows, that alone could attract new energy into Eclipse community.

June 22, 2008

Eclipse XQuery Editor - What’s going on ?

Filed under: Eclipse, FOSS, Fun, GSoC, Java, My Activities — Laknath @ 4:53 pm
Tags: , , ,

/* Will be some what Greek to someone who hasn’t worked with Eclipse, so you have been warned */

Yes, some must be wondering on this. But it all comes to the fact that planning a software project is the hardest part of the procedure, and that I was having a hectic period for last 2 weeks because of my academic stuff. But it’s settling to a steady phase now and I’m having some time to start coding again after a while. Also about planning of the project, my mentor and I talked heavily on the best and easiest path to take by using already existing resources such as the existing XPath parser (which is mostly done by David himself) and XSL plugin.

So now what I’m trying to do now is (and somewhat stuck at),

1) Partition the editor into content types.

2) Use existing content types to read patterns such as XML.

3) Create parsers for XPath2 and XQuery content types.

4) Make AST out of these 2 new content types to do more fancy stuff like content assistance

IMHO these 4 steps are the heart of this plug-in since almost all other fancy UI stuff are based on the success of this. In order to implement those so called fancy UI stuff I will be extending the Structured Source Editor(SSE) since it’s the best course of action for a XML editor.

Another factor that has been lagging the speed of this project is the lack of documentation for SSE and how to make partitioning based on content types. Best support materials I found that could be used practically were few slides from EclipseCon and other editor plugins similar to this such as XSL, XPath, JSP and PHP editors, which David helped a lot suggesting and finding them. It was somewhat hard at first to comprehend the structure of SSE but reviewing these existing plugins helped it.

I’ve created the project at SourceForge Eclipse incubator for now and you can check it out from there as the project goes and I will use this post series to bring news of the progress of my new buddy.

ViewCVS: eclipse-incub.cvs.sourceforge.net/eclipse-incub/org.eclipse.wst.xquery

CVS: eclipse-incub.cvs.sourceforge.net/cvsroot/eclipse-incub/org.eclipse.wst.xquery

More News: http://wiki.eclipse.org/New_Eclipse_Plugin_for_XQuery

May 12, 2008

Uni. Moratuwa, Sri Lanka - #1 GSoC contribution in 2008

Filed under: Eclipse, FIT, FOSS, Fun, GSoC, My Activities — Laknath @ 10:21 am

This is just to share the great news that (Drums and ovations) University of Moratuwa, Sri Lanka is by far the most contributed university in the world for this year GSOC in both applied and accepted student number wise .

Google Open Source Blog: This Week’s Top 10’s: Universities for Google Summer of Code 2008

How cool is that ? :)

Proud to be a contributor for this glory as a student from University of Moratuwa and a GSoC participant.

PS: Now I’m thinking of why we can’t have a get together with this year GSoC participants from Uni. of Moratuwa. 93 students applied, wow! That’s a whole lot of crowd. Will need lot of drinks ;)

May 3, 2008

Another GSoC on the air

Filed under: Eclipse, FOSS, Fun, GSoC, Java, My Activities, Uncategorized — Laknath @ 5:46 pm
Tags: , ,

Ok, here is another post after a long desert - no excuses here, I’ve forgoton that I even have a blog.  But now feel like writing something after seeing the new WordPress dashboard :)

First thing on the agenda is GSoC 2008. As you all know Google Summer of Code 2008 is on the way this year too and in case you have been living under a rock, here is the event.

GSoC is a good breeding ground for fresh FOSS developments and had been one for me last year when I tried GSoC for the first time. Even though initially I wasn’t planning to try out for GSoC this year, after seeing some cool ideas from few organizations I felt like giving a try.

I found 2 ideas from Eclipse foundation and Apache very exciting but finally had to leave out one because I hadn’t enough energy nor time for 2 proposals. So I tried for Eclipse - creating a new plug-in for XQuery syntax editing which I found the idea is most appealing. One reason is I had been working with XML and Java stuff for a longest of my time and second one is I’ve been using Eclipse for my python works, so felt like returning the favour.  So I prepared the proposal, submitted it and got accepted this year round too :) All thanks should go to my mentor David and congrats to my fellow Vesess colleague Sameera, who also got accepted for GSoC this year for Coppermine photo gallery. By the way, if this helps any future GSoCer, here is my complete proposal.

But beyond my not-so-dramatic GSoC tale, I was able to give something else for GSoC.

First thing is I submitted a translated Sinhala version of GSoC flyer this year. The second is I was able to put a small guiding doc for Gnome GSoCers, doing my things right as a responsible Gnome GSoCer last year.  Other than that, I was able to encourage few of my buddies to apply for GSoC rather than trying for evil MS Imagine Cup :D

So the end of the line is that I’m hoping for another nice, fruitful 3 months with GSoC working for Eclispe and hope the experience will be great as was in last year.

February 13, 2008

An unexpected guest

Filed under: Fun, My Activities — Laknath @ 1:24 pm

An unexpected guest dropped by (literally) my home today.

If the image is not clear, it’s a poor porcupine -wandering near by woods and dropped into pit where a new house is being built. Seems these poor guys don’t have enough room with all the construction works going with horrible humans.

January 18, 2008

RMS in Sri Lanka

Filed under: FIT, FOSS, Fun, My Activities — Laknath @ 8:28 pm

It’s one of the (may be ‘The one’) greatest free software event that has been held in Sri Lanka. RMS - The founder of the FSF (free software foundation), GNU project & the licence and Emacs is now in Sri Lanka which in itself is pretty cool, but today I got the chance to attend one of three public gatherings organized in his tour of Sri Lanka and it’s an unforgettable experience in my life.

I always liked reading about prehistoric free software details (in 1950’s when software was inherently free because computer wasn’t an industry yet) ,how commercial software came to the arena in about 1970’s, downfall of MIT and born of GNU, born of GNU/Linux and born of OSI and such, but it’s just that - “reading”; but hearing from a person who has been the main figure or a catalyst of all these events is so wonderful, it’s like meeting Sir Arthur Conan Doyle after reading all Sherlock Holmes stories :-)

But this doesn’t mean that I agree 100% with RMS. I don’t believe proprietary software are inherently evil or Open Source is bad. Some technologies such as compression technologies may be hidden from the public eye because the owning company may completely depend on that technology and releasing the source may mean basically the destruction of the firm. So my opinion is that sometimes we should be flexible enough to work with proprietary software and also Open Source should be used when adapting free software to a business model. But that’s me anyway.

However it has been a privilege to meet with this visionary man and to hear his speech. I sincerely hope that his speech today has turned many more young hearts to free software ideology.

RMS group photo

(From left) Nadun, Sameera, RMS, Lakshan, me

Btw, also got a chance to play with a OLPC lap. Pretty cool stuff considering the price and very cute (eew, sounds …).

OLPC lap

 

Updated:

More Photos

January 1, 2008

Coming of another year and last year in retrospection

Filed under: Fun, My Activities — Laknath @ 9:44 pm

First I have to say it’s absolute true in saying “time is gold”, because it seems to pass so quickly in front of our very eyes. However, last year was a fairly successful one for me, specially considering getting selected into GSoC and having a chance to do a project with Gnome. In addition to that, I also did some contributions to Drupal community in regards of modules and also can’t forget getting a new laptop :).

Also at Vesess we launched Plex - the job portal which is continuously gaining popularity and also got the chance to work in several other projects. So all and all, it can be called as one of the best years of my life so far.

Now here comes a new year, new hopes and new challenges. Yeah, It’s common in each passing year but I feel like it’ll be more challenging for me this year than in previous years when considering my personal expectations and expected of me in new year.

Whatever stocked there for the new year, I wish everyone that their stocks contain more pleasant surprises and all hopes may become true !

December 19, 2007

Two new LOTR movies - Yey!

Filed under: Fun, Movies, Novels — Laknath @ 9:02 pm

I loved reading Prof. J.R.R. Tolkien’s Lord of The Rings and all other Middle Earth related books written during WW II season. And there’s no need to talk about LOTR movies done by Peter Jakson because they made a land mark in modern Hollywood movies, specially in Special Effects arena. Then LOTR games done by EA Sports also became one of my favourites. So all and all I’m a huge fan of Lord of The Rings in every aspect.

After the success of LOTR movies it was reported that there has been some issues between New Line Cinema and Peter Jakson. But it made my day hearing that Peter Jakson and Fran Walsh are going to build another two more movies based on “The Hobbit”, which is the preclude to Lord of The Rings trilogy.

PETER JACKSON AND NEW LINE CINEMA JOIN WITH MGM TO PRODUCE “THE HOBBIT” Movie

Hopefully we will be able to see another two great LOTR movies in another few years time.

December 16, 2007

Vista to Ubuntu (100%)

Filed under: FOSS, Fun, Gnome, My Activities, Python, Web Designing, ubuntu — Laknath @ 1:26 pm

I had enough with eating crap with Vista. My last line of patience warned off when I happened to wait about 5 seconds when changing from one MS Doc file to another and also happened that I was running with time to finish a project report. No, I’m not running on 256 ram, it’s 1 GB and this kind of a time wastage is totally unacceptable. You may ask why I put up with Vista in the first place. That’s thanks to HP’s decision to embrace Vista so my laptop was pre-built with Vista and no chance to downgrade because there are no drivers. So where to go now ? Easy….Gutsy.

So I’m now another guy who left windows permanently because of their own defects. I was playing dumb with Vista for this long had nothing to do with Vista being better, it’s because of substitutions not being available for some applications that I was used to in Windows environment - mainly Macromedia(now Adobe) Dreamweaver and Fireworks. Now before biting my head off, yes - there are good web developer editors in Linux such as NVu or KompoZer but they will need another few developing years to get into the same line as Dreamweaver (which had a long time to develop into the state now in) and I have to have some thing until then.

But my worries were groundless as Wine now supports Macromedia 8 series like a babe. Dreamweaver, Fireworks and Flash all works perfectly with Wine - installation to Execution. Another great thing with Gutsy is that my Broadcom network card support is inbuilt and with some additional applications I can search networks and connect to them like a charm. Also I’m using AWN manager to manage desktop (here is a great article on desktop styling - thanks to Lakshan) and now it looks like a hybrid between Leopard and Vista. So what else I can ask for ?

Here is my application list in Ubuntu.

Web developments = Wine + DreamWeaver 8

Web images = Wine + Fireworks 8

Photo Editing = Gimp

Java editor = NetBeans for Linux

Python = Eclipse with PyDev plugin

IM client = Pidgin

Wifi manager = gtkwifi and wifi radar

Skype = Skype for Linux

Btw, My machine is AMD 64 X2, therefore had some issues and had to do some tweaks when installing some applications but nothing I can’t handle with some effort. The catch is that I can work with all comforts like in Windows with half the memory usage as in Windows.

Vista-Leopard Look

DreamWeaver in Ubuntu

GTKwifi

December 6, 2007

Favour returned to Drupal

Filed under: Drupal, FOSS, Fun, My Activities, PHP, Web Designing — Laknath @ 8:57 am

As I mentioned in an earlier post we, people at Vesess now use Drupal heavily for our developments. We built our new job protal Plex using Drupal as the base and through heavy use of modules provided by Drupal community. Therefore we felt we need to make a return contribution to the Drupal community.

While we were building the Plex site we had to make considerable amount of module customizations and also created some new modules. The best way to pay back the favour was contributing our home made modules to Drupal community. So here is my first Drupal module release ( and hope it will be only one in many to come).

Name : RequestInvitation

Dependencies : Invite

Licence : GPL

Backend and front of requestinvitation module

Next Page »

Blog at WordPress.com.