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 ...

Mysql Incremental Backup

April 17, 2012, 3:51 p.m. innobackupex , mysql , Percona , xtrabackup

Still using mysql? about time you gave up on it and switched to Percona. It is a drop in replacement for mysql. That means your existing data, and stored procedures, or data retrieval methods don't need to undergo any changes. Even if you don't switch to Percona, you can still use their xtrabackup a ...

Ruby classes reloaded

April 16, 2012, 7:36 a.m. Ruby

Whilst learning Ruby with the help of the Humble Little Ruby Book, I needed to do a little bit of extra reading to get a clear picture on classes and objects. This a study note made from that. write, << and puts all expect objects that are strings or can be converted to strings (object that h ...

Learn Ruby in just under 48 hours

April 15, 2012, 2:27 a.m. ROR , Ruby

So the learn Ruby in a day project has been transformed into Learn Ruby in 48 Hours. I sure hope it does not eventually end up being Learn Ruby in a week, so let's get down to business quickly.   Databases. This is where I got stuck the last time, partially because of a difficulty in setting ...

Learn Ruby in 48 Hours

April 14, 2012, 3:31 p.m. Ruby

The plan was to finish reading Humble Little Ruby Book within one day, but that didn't quite work out, so the Learn Ruby in a day project, became the Learn Ruby in 24 hours project. Now it's officially been rename to Learn Ruby in 48 hours.  What's my excuse? Did you know that yesterday Sri Lankan n ...

Learn Ruby in 24 hours

April 14, 2012, 2:42 a.m. Ruby

Continuing live coverage of my attempt to learn Ruby in a day. Well the day had only 53 minutes left when I started this post. Thus the project name is here by changed to learn ruby in 24 hours out of necessity.  By the way, is there a book by that title? What I am reading though is Mr Neighbourly's ...

Learning Ruby in a Day

April 13, 2012, 5:36 p.m. religion , Ruby , Wordpress

I've made two previous attempts and learning Ruby and both attempts were total failures. This time I was determined to succeed and set myself a rather lofty goal of learning it in a day. Reading the Humble Little Ruby Book seemed like the way to go.  It's very generous of Jeremy McAnally to make thi ...

F#$!king Wordpress

April 11, 2012, 3:54 a.m. Wordpress

I am thinking of forking Wordpress. Did you think I meant something else? You have a dirty mind. Wordpress is probably the best blogging platform out there at the moment but some aspects are plain horrible. That's what I want to address. These are some of the specific things that I want to improve c ...

Open Exam

April 9, 2012, 1:33 a.m.

Are you a lecturer or a student? do you need to prepare examinations for your students? or maybe you are a student who would like to create some mock exams for practising? Then Open Exam is for you.It's an open source exam delivery application written in java. It was originaly created because the au ...

A full circle

April 6, 2012, 4:37 a.m. Wordpress

The other day I blogged about a new look to the website. What powers the new look? Wordpress. Yes, the same wordpress that I swore to keep away from.  But then there really isn't anything that's much better. Wordpress is the best of a bad lot.After spending at least 40-50 hours looking through all t ...