LakTEK A Sri Lankan, A Rubyist and A Web Dude

Building Real-time web apps with Rails3

On deciding the web framework to build Realie, one of the main considerations was should I move to a totally asynchronous framework? Most established web frameworks, including my favorite Rails is built in a synchronous manner and follows a call-stack based model. Real-time web apps needs to be asynchronous. Evented programming model ideally suits to […]


Realie Project: Data Structure & Storage

Last couple of days, I found some time to work on my individual research project for the degree course. The topic area I selected for my project was on “Real-time Web”. Real-time Web is just the opposite of the current way we use the web. Rather than we checking (polling) content providers for updates, content […]


First Meetup of LK Ruby User Group

Last Wednesday (30th September 2009), the first-ever meatspace gathering of Sri Lankan Ruby Users was held at Ridgecrest Asia (Pvt) Ltd. There were more than 20 passionate, enthusiastic Rubyists filling the room and I would call it a promising start.
For several years, myself personally knew only handful of Rubyists in the country. Though, we had […]


Ruby Best Practices

First of all sorry for letting this space go on a hiatus yet again.. Though I tried to make it a habit of posting regularly, other priorities didn’t allow me to do it as I wish. In last few months I had to run through lot of challenges in real life and in hacking, which […]


Ruby Advent Calendar

Inspired by the previous incarnations of Ruby advent calendars, I thought of running one for this year. For those who are unaware, idea is simple. To serve an interesting article on Ruby, each day for the first 24 days of December.
We saw lot of cool stuff in the Ruby throughout the year, so it would […]


I want to be a Ruby Hacker…

In the past couple of months, I heard this from number of my friends. I hope there will be more joining the club in the coming days. For the benefit of the freshers, I thought of sharing some tips I learned about Ruby hacking (though it may sound as obvious to many) .

Write something that […]


Simple command line todo list

They say pen and paper is the best way to manage a todo list. Following the popular norm, I also started tracking my todos with pen and paper. But after several unsuccessful attempts of finding a pen or deciphering tasks from torn or soaked paper, I felt keyboard and the pixel-screen would be more accessible […]


Contact Form using Merb & DataMapper

Major benefit of using Rails to develop web applications is its smart conventions, which promote developers to adapt to common patterns and avoid wasting time in reinventing the wheel. Rails is strictly bonded with a database and has a pre-defined directory structure. Though these conventions are helpful in common cases, it reduces the flexibility of […]


Refactoring Catalog

Refactoring holds same level of importance as coding the behavior.  I enjoy refactoring my code as it leads to much cleaner code and also gives you the knowledge of how to do something better. But identifying what and where to refactor is something that a programmer gains through the practice.
Recently I found a great catalog […]


Hacking made easy with Google Code Search

I was so bored while studing for the exams and just hit on this new Google Code Search. Oh! do you know what I was able to extract with several keyword combinations ? Whole bunch of FTP access and Database connection credentials of sites which are currently live on the net. Those credentials seems to […]


← Before