Goodbye wordpress (this time for real) - Hello Jekyll

Dec. 26, 2012, 1:57 a.m. jekyll , punch , Wordpress

The last post on this blog is from Aug 2012. Schedule pressure played a large part in my not writing anything since then is lack of time. The other reason is being sick and tired of Wordpress. Each time you login to Wordpress there is at least one plugin that needs updating. The template now looks r ...

M35

Aug. 7, 2012, 5:04 a.m. m35 , waterproof

Once upon a long ago, I used to work for Mediasolv.com Inc. They were one of the key partners when Dialog Axiata famously ambushed' Celltell's [email protected] launch. It took celltell (now Etisalat) years to recover from that trauma, Dialog never did.Those days [email protected] was the big thing (WTF is [email protected] ? go get your di ...

Two months to get a Toshiba Laptop fixed

July 4, 2012, 4:29 a.m. JKOA , toast , toshiba

Remember how I blogged about taking my toasted Toshiba laptop to the agents for repair about two months back? You would be pretty sure that I have got it back by now. Think again. It's still with them, and virtually untouched. This was the response that I recieved when I inquired on the 30th of may ...

Python list comprehension

June 10, 2012, 4:14 a.m. Python

Python list comprehension can be compared wtih  Ruby statement modifiers but it's even better. Here is an example: ...

Mixing google places and jQuery will lead to frustration

May 27, 2012, 1:30 p.m. Google , jQuery

var input = document.getElementById($("#from"));var autocomplete = new google.maps.places.Autocomplete(input, autoOptions);If you are familiar with both jquery and google places javascript API, you will raise your eyebrows wondering why I am posting such trivial code in this blog. If you really know ...

Ruby Symbols

May 14, 2012, 7:28 a.m. Ruby

In my learn Ruby in 48 hours project, I left one black box unopened, Now I am attacking it with a hammer and chisel. It's those tiny little ':' symbols scattered all over ruby code that's bugging me. You find them in many different tutorials and books with little or no explaination.Sample codes that ...

Toshiba L655D Toast

May 13, 2012, 6:25 a.m. L655D , Macbook , toast , toshiba

Well, been an year since I had this Toshiba L655D, which was a replacement for my dead macbook. What replace a macbook with a Toshiba? yes. That's pretty obvious! Though I used to own a mac doesn't mean I am a fan boy. At the time the Toshiba was bought, it was more powerful than the Macbook and per ...

Iterators and Generators and Yields

May 12, 2012, 3:04 a.m. Python , Ruby , Threads , Yield

Both python and ruby have a yield which is thoroughly confusing to Java programmers and looks like the stuff that nightmares are made of. But eventually you realize that it isn't so bad after all. But before we deal with our nightmares, we to look at iterators.Python for loops look so nifty thanks t ...

Python functions

May 8, 2012, 3:59 p.m. Python , Ruby , vargs

We've already taken quick glance at python functions elsewhere, and know that they are created with the def keyword, can have default parameters and which part of the code belongs to the function is identified by it's indentation level When using default parameters, the PHP approach is that you nee ...

Python Packages, Modules and Classes

May 4, 2012, 3:32 a.m. Python

Modules Python says Don't Repeat Yourself. This is made possible by module. A module is just a python script that is 'included' into another one. The syntax for doing that though is with the import keyword. For example if you have a file named crazyModule.py with some code in it you can import it in ...

Django

May 3, 2012, 7:25 a.m. Django , Python , ROR , Ruby , Zope

On thursday morning I set out to learn python and by saturday morning I had read through the official tutorial on the python website as well as gone on numerous side trips on additional references. Blog posts are still paying catch up. You will not find me writing a killer python app in a few days b ...

Python Collections

April 29, 2012, 6:41 a.m. Map , Python , Reduce , Ruby

Lists and Arrays. Correct me if I am wrong here but lists in python are what everyone else calls arrays right? Check this out: a = ['spam', 'eggs', 100, 1234] That's an example for a list given in the python docs. But that's how most other languages define an array. Getting an array list slice is ...

Python in 48 hours

April 28, 2012, 5:27 a.m. Python , Ruby

Spurred on by my recent success in quickly learning ruby,  I am about to embark on a (crash) course on python. Consider the following to be my study note. It may or may not be useful to you. If you are coming from a PHP, Java or C background it's perhaps more likely to be of use. Anyway, let's get s ...

Ruby vs Python

April 27, 2012, 9:17 a.m. Django , Python , religion , ROR , Ruby

Ruby and Python have been around for a long time almost as long as Java and PHP hang on a second, Python is older than java.  Both PHP and Java are decidely on the decline and according to the fan boys both Ruby and Python are on the ascendancy. But that's not exactly consistent with what Google Tre ...

So where's the trade halt

April 27, 2012, 5:20 a.m. cse , Flash Crash , MPI , Trade Halt

Call it the Colombo Lies Exchange, the Colombo Jokes Exchange or all it whatever you want but please don't call it the Colombo Stock Exchange for that would be a grave insult to the real stock exchanges elsewhere in the world. Milanka Price Index down 10%This is a screenshot of the CSE home page cap ...

Etisalat Cloud Storage

April 26, 2012, 1:24 p.m. broadband , cloud

Everyone knows about Google Drive by now even though it was announced just a day ago. No one knows about Etisalat's free 25 GB data storage. Well there is a good reason for that, it doesn't really exist. Etisalat claims to give 25gb of free storageToo bad they are going to have to change their broch ...

Ruby DBI

April 23, 2012, 11:01 a.m. DBI , mysql , Ruby

This is another left over post from my learn ruby project. Ran into trouble while learning how to use databases with Ruby. test.rb:1:in `require': no such file to load -- dbi (LoadError) from test.rb:1   Tried to do the obvious thing, which is yum install ruby-dbi without any luck. Next tried ...

Joomla Worst CMS Ever

April 22, 2012, 3:59 a.m. CMS , Joomla , lame

Been a long time since I had a look at Joomla so decided to kick the tires on Joomla 2.5.4 but things didn't go smoothly which is not entirely unexpected. PHP CMS are better named as Content Mis-Management Systems. What happens when you unzip the download? It becomes a zip bomb by extracting all th ...

Linux Professional's Institute Exam

April 21, 2012, 3:50 p.m. certification

If you are looking for a linux certification but don't want to spend thousands on dollars as exam fees LPI is for you. Currently two levels of certification are available. As you might guess they are called LPI Level 1 and Level 2. Level 1 is fairly easy, though not as easy as the sample questions o ...

Linux

April 21, 2012, 3:47 p.m.

content needs to be added ...

Ruby Rails - Could not find a JavaScript runtime

April 21, 2012, 1:22 p.m. JavaScript , Ruby , virtualization

I recently had a series of posts on learing Ruby in less than 48 hours. I managed to do so in spite of running into considerable issues with installation of Ruby or various Gems. But those issues are nothing in comparison to the stumbling blocks and pitfalls the RoR trail.  In the end what worked wa ...

CSE bugs still not fixed after two months

April 20, 2012, 4:16 a.m. ASI , cse

It's nearly two months since the automated trading system of the Colombo Stock Scam Exchange was upgraded. The upgrade came with a list of bugs as long as your arm. Nearly two months later, those bugs have not been fixed.This screenshot, captured from the CSE home page at 9:37 shows that 31 counters ...

The Colombo Lies Exchange

April 19, 2012, 2:51 p.m. ASI , COMB , CTC , sec

Well before the Colombo Stock Exchange ended trading today, I predicted that tommorow's headline in Sri Lankan business news sections will be: 'market cheers removable of the price band' which of course is a huge lie  Lanka Business Online, a journal that's miles ahead of the likes the Financial Tim ...

Ruby on Rails in a day.

April 19, 2012, 12:39 a.m. blackbox , ROR , Ruby , Scaffold , sqlite

Having set my self a goal of learning Ruby in a day and managing to achieve it with in 48 hours, i've set myself a new goal, learnings Ruby on Rails in a day. I chose to follow the  Ruby on Rails tutorial book at around 7:11 AM on monday but ran into many issues with RoR installation/setup that the ...

Ruby Rails and Sqlite

April 18, 2012, 3:32 a.m. ROR , Ruby , sqlite

When trying to create my first rails app, well it's not my first rails app, I am just trying out the examples in the Ruby on Rails Tutorial Book. this is what I got: Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/sqlite3-1.3.5 for inspection. Results logged to /usr/lib/ruby/gems/1.8 ...