Posts

Remembering Steve Jobs

The passing of Steve Jobs came in as an instant shock that morning as I was reading the news on my phone. While it wasn't as much of a surprise as when MJ passed away, mainly because I had seen that one photo of Steve wearing a black gown coming back from the hospital, something inside me felt empty. When many flooded the social media and TV with messages of condolences and looking back at his achievements, I just watched not sure how I should express the loss. So after about a week later, when I was asked if I can do a talk on Steve Jobs for Refresh Colombo , I immediately and almost impulsively said YES! But I still wasn't sure what I wanted to say. One thing I did know was that I didn't want to recap his life or accomplishments like I knew the guy. Soon after accepting the talk, the next thing I almost instantly realized was that I needed to get Chanux in as a co presenter, not because we've recorded so many episodes of a podcast together but due to his reactio...

Getting Down With Markdown

Recently I've been looking for an alternative to docbook , which I've used for most of my tutorial handouts and internal developer documentation at Thinkcube . But the more I used it docbook the more I wanted a simpler solution which didn't require me to make sure my XML was in order. Naturally, at first I thought I'd try Latex since it had a pretty good wrap with geeks and has even surpassed usability expectations set forth by some of the mainstream wordprecessors :). What I loved about Latex was you could concentrate on the content first and formatting later. Its legendary ability to output desktop publishing quality documents and convert to a variety of formats such as html, pdf or odt was a killer. Just as I was about to dive into Latex, Chanux suggested Markdown as an alternative. Hmm, Markdown, I pondered... I even liked the sound of it. It turns out Markdown is even better! You could think of it as a simplified wiki syntax but a better description would...

There's something about Lion!

Image
So it's been a little over a month since I switched to MacOSX Lion as my primary desktop after running Ubuntu and before that Gentoo on this Macbook. So why'd I finally switch? Well I'm sure it comes at no surprise to existing mac owners who mostly run OSX anyways. I'm different! I owned two Mac's to date, first a MacMini G4 (PPC) since 2006 and now a Macbook Aluminum since 2009, both primarily ran some flavor of Linux. Sure I had OSX lying around in another partition, but I'd only boot into it once in a while, just to update or checkout an interesting app or two. Linux was what i used, not because OSX was bad (like Windows is) but because I was more comfortable with it, it was more flexible, had more innovation happening (pretty much every 6 months) and above all it was fun to use. Part of that fun was really the do-it-yourself attitude Linux has had for years but is somewhat fading away IMHO with distros such as Ubuntu. Its also no secret that I l...

Why read when you can listen?

There's an old quote, "Reading makes a full man". I'm not quite sure who said it but I know it's got to be at least a couple of years older than myself because I was introduced to the concept early on by my dad. Despite the early infusion of such words of wisdom, I really never turned out to be a good reader. For one, I could never read on a moving platform for more than 60 seconds without feeling nauseous. Forget about reading in bed either, for more than 40 - 60 minutes (my record might be about 90 minutes) before the book starts slapping my face multiple times as I loop over the same paragraph of text over and over before giving up and falling asleep! When I do get into the mood of reading, it still seems to take me much longer to finish a book when compared with, oh I don't know my sister! She's got a ton of books, almost all novels and I remember seeing her finish them fast. So early on as a kid, I realized, my reading time was precious and best spe...

It's true, I'm on a Lion

Greeting fellow bloggers and no I'm not dead. Blogging for me has got to a point where its a post or two per year! So at this point it doesn't matter what I say because I doubt any of my old followers are going to read this any time soon. As usual, I would have blamed busyness (a result of %s/y/i/) and twitter but honestly speaking it was the absence of the mood which killed it. Lately I've been doing so much of writing at work, the last thing I want to do is come home and do more of it. So instead, I'd prefer to pretend to hack on some C/C++ or Ruby or PHP and play some PS3 and call it a day. Today was different, it was our celebration of the International Sysadmin's day . So unlike my typical day, I went to a bar and talked geek with fellow sysadmins, all the while munching away on bites and sipping on some free beer (free for now, IOU Deep). During our conversation, amidst the noisy band that was playing, one of the things, I came out and confessed is the topic...

The Linux Speed Boost!

Oh my, it has been a while since I visited my Blog. While there were few worthy posts which I should have blogged about, that never happened. Recently, when I came across a post on OMG Ubuntu , about a new kernel patch which supposedly speeds up Linux, I just had to try it out. Its been a while since I've compiled my own kernel (these days I rely on stock Ubuntu), but after seeing the results myself thought it was very much blog worthy for me to share with you. First off, for the impatient or the unmotivated, let me point you to another post on Phoronix, which contains a video showing the night and day difference this patch brings. If your still not impatient, then you could wait for 2.6.38, which will hopefully have this, considering Linus's supportive comments , regarding the patch. Ok now for the glory details on getting this patch up and running. I did this on Ubuntu 10.10 but it should work the same for other Debian and Debian like distros as well as other popular distro...

Splitting a git repo

Its been almost an year since I last blogged and what can I say, micro-blogging killed blogging for me. Even micro-blogging has got to a point, I don't do as much as I used to. Perhaps the end of web 2.0 or perhaps I'm getting too old for this :) Anyhow, getting back to the subject of this quick post, it seems splitting a git repo into two separate git repos is somewhat obscure and required a bit of googling around. Fortunately I came across this great blog post , but wanted to summarize it in one place (the author made me look at several pages to put it together). Say I have a git project called foo.repo which had a subdirectory called bar, that I now want to make its own separate git project called bar.repo. Current state foo.repo/ .git/ bar/ abc/ xyz/ target state foo.repo/ .git/ abc/ xyz/ bar.repo/ .git/ Step 1 : Clone existing repo as desired repo on the local clone $ git clone --no-hardlinks foo.repo bar.repo Step 2: Filter-branch and reset to exclud...

Fedora 11: First impressions

Image
Fedora 10 (F10) was one of the best fedora release I've come to use. I liked it so much that I made it the default OS on my Mac Mini PPC. So naturally I was looking forward to the release of Fedora 11 (F11). But with a couple of release dates slipping, the wait was somewhat of a torture. This of course is to be expected with Fedora, I was told, because all good FOSS community software follow the philosophy "IT WILL BE RELEASED WHEN IT IS READY!" (oh and "RELEASE OFTEN" but thats beside the point :). Now before I give my first impressions, I must warn that if your a die hard Fedora fanboy, then please STOP reading. .... Even if your not please note that these impressions are based on the Fedora Live CDs (both standard and kde based) and I have yet to download the DVD release. I did not install the Live CDs but merely ran them Live and only for a short period of time (a little over an hour combined). I tested the Live CDs on both my older Acer TravelMate 4200 lapt...

Lights, Camera, Action!

Image
SinhalenFOSS , the audio podcast we started a little over an year ago is now available as a vidcast . A couple of months back, I got a call from Dr. Ajantha and I was thrilled to hear of UCSC.tv , the latest venture by UCSC . I was even more thrilled when Dr. Ajantha invited us to produce the SinhalenFOSS podcast on it. Despite our enthusiasm, we soon learned how hard it was to produce the show as a vidcast. We were used to recording the audio podcast at our own time, sometimes in the car, sometimes at home or office or even on the road. We would sometimes answer phone calls from loved ones in the middle of the recording and edit that out. Our podcast was pretty much a basement operation by 3 sweaty guys :) So I guess the most difficult task was to make us presentable on video. To that extent, the UCSC TV crew has done a good job with makingup us! The next challenge was time management. While our audio show was roughly 1 hour long, it wasn't strictly 1 hour long. Sometimes we went ...

Birthday gift

Image
Kanchana, my wife had an old P4 machine from back in the days before we met. It was a PC House branded G-Max. Anyways, she's been wanting to fix it up and give it to her sister to use and so we'd figure it would be a good B' day gift for her. So last weekend, about this time, I was sweating it off trying to put it back together in time for April 25th, her B' day. We'll it began a couple of days earlier, 23rd to be exact, when we picked it up from her parents place and cleaned it up and tried plugging it in. For better or worse, nothing happened - nothing worked. At least this thing wasn't going up in smoke. I removed the casing which was slightly more difficult than usual as a result of the case design. You couldn't pull out the motherboard because the CPU fan hits the CDROM and you couldn't pull out the CDROM for exact same reason. So I removed the power supply, slid the motherboard and lifted it up once the CPU fan was in the clear. The fun part was ...

Pulling along ...

Considering it's been exactly 1 year since my last post, I pondered a bit on a title for this post. "The comeback", "Still live and kicking" or "I'm back!" sprang to mind. But then I realized I'd be fooling my self and you, if I even remotely meant this blog was going to be regularly updated. Hence a title which better reflects the current state of my blog and to an extent my life - pulling a long a day at a time. Now don't get the wrong impression - I'm not depressed! As some of you already know my life's gone through a few transformations. Hmm let me see, first there was the marriage, then moving to our own (rented) place, loosing my iPod touch (oh the drama), moving again to a bigger house, moving again to a new office, moving away from Gentoo, moving back to Gentoo, buying new iPod touch 2g, getting a new macbook, buying a few ps3 titles including guitar heros 3 and buying an actual guitar and taking up lessons. Ok so that las...

24hrs Sinhala Blog Marathon Starts Today!

The Sinhala Bloggers Union is organizing a 24hrs Blog Marathon starting from 8pm local time today, 18th to the 19th. There are currently over 30 participating blogs, including our sister (or brother depending on where your from :) site sinhalenfoss.org . Each blogging site will be trying to reach a crazy difficult target of 96 posts! In otherwords, we're talking about a blog post appearing from each site every 15 min! Multiply that by 30+ sites and boy I hope the net doesn't crash :P The easiest way to catch all the fun is to constantly reload http://marathon.sinhalabloggers.com/ , the official blog aggregator (syndicator) for the event. But it doesn't stop there. These guys have created a custom Face Book application for the FB junkies, a twitter channel for twitter addicts like myself, a Yahoo Pipes mash up for the web services oriented and even IM based updates. If your interested in blogging in Sinhala Unicode, it might not be too late to enroll your self by contact...

Best Last place to listen to Music

Image
If your a music lover and also inclined to discover new (&old) music then last.fm is the place to be. I've signed up a couple of months back and have really been enjoying music surfing. Thats right! similar to channel surfing last.fm is about discovering music based on what you like and what others who are like you like. There is plenty of research in this field, some of which are headed by the folks at lastfm, but what it essentially means is a good trip down music lane :) You can sign up for a free account and search based on artist or a tag such as pop , rock , jazz or female vocalist . In any case your search result becomes a virtual radio station which goes off on all sorts of tangents discovering similar artists or similar artists, tags and so on. When you hear a song you really like, you can express your pleasure by marking it as loved, or display your hate by banning it and you shall never hear it. You can also skip tracks, unlike web streaming radio but can not see...

Sinhalen FOSS Blogcast

Recently I've been trying to start a Blog and Podcast as a means of reducing the language barrier when it comes to learning and playing around with Free and Open Source Software, aka FOSS. So a couple of months back I started the Sinhalen FOSS Blog at Wordpress.com. The idea of the blog is really to introduce various aspects of FOSS such as howto's, command line tips/tricks etc. and provide a forum for other Bloggers to contribute related articles. In this regard, I am grateful to Lakmal and Kanchana for their contributions and hope more of you will take the challenge in installing Sinhala Unicode and getting in to the habbit of remembering to write in Sinhala :). Yes it can be a pain, especially with the current state of input methods. Yes there are always complexities in writing proper Sinhala. But as far as I'm concerned writing something is better than not trying at all. In this regards, I'd have to thank my mom who is my personal Sinhala specialist (she's go...

Good bye Gentoo - Hello Leopard

Image
The following post was an April Fools Hoax :) While bits of it are true such as I did finally move away from Gentoo as my primary distro its got more to do with lack of time and laziness to reinstall gentoo. Hopefully I'll do another post on me moving to Kubuntu (Ubuntu + kubuntu-desktop package). I did find few annoyances but one should expect that running a beta software. I am happily using kubuntu with full desktop effects that is far superior that of Apple of Microsoft. I did buy the Mighty Mouse and Apple keyboard as mentioned I wanted a good portable bluetooth device and they worked effortlessly (almost :) on the latest Ubuntu 8.04. No Leopard's were harmed in creating this hoax as the desktop your seeing on my Acer laptop is actually a full screen screenshot sent to me by Siraj using his Mac notebook which I loaded before taking the picture. Its been a little over 3 years since I switched from Debian to Gentoo. I still remember my blog post titled " Goodbye Debian...

Wicked Shell Programming Workshop @ UCSC

Image
We had a nice couple of sessions on shell programming today at the LSF lab @ UCSC . Anuradha started off with a great introduction that set the stage for the rest of the day. I followed with my invent as I go style of presentation, which for the most part I believe (hope) made sense. Then Sapumal did the evening session on brining all of it together with an advanced session. There was a good geek crowd that filled the small LSF room where geeks were seen on chairs, couches, on top of tables and on their feet. All of the speeches and some interludes were recorded and could go up youtube if and when someone gets around to it. Overall it was a good first day and more will follow tomorrow. I have a session in the evening and will try to pop in and out between my usual Linux lectures at UCSC and the workshop. In the mine time, enjoy these few pics I took from day 1.

Our first IEEE paper has been published!

Dr. Ajantha came back from the "International Conference on Advanced Communication Technology" after submitting what appears to be our (that is myself and Wathsala's ) first paper at an IEEE conference. The subject of the paper which you can download and read here , is about a Next Generation Proxy caching system which fuses the idea of Cached content and Bandwidth utilization with web 2.0/x.0 trends. These ideas are the result of what we learned by implementing Bassa , an Open Source Next Generation Proxy Server (NGP) at UCSC . We are very excited about continuing our research and development to expand its scope.

Just another day @ the Sri Lanka Customs Office

Oh boy what a day it was! I spent a good 5 hrs at the Sri Lankan Airport cargo office on Friday trying to clear a 3" tiny piece of memory which I had ordered for my Toshiba L1 laptop. I didn't really expect this to be held by customs in the first place, considering its size, weight, cost and the fact it was a 256MB chip (quite outdated by todays memory standards). I was also misled by FedEx's tracking comments which gave no indication of the shipment being held at customs but stated that it was on its way for delivery. It was only when the courier guy came and handed a letter I knew what happened. What was more amusing was the next update on FedEx's tracking site - Goods delivered. I called up FedEx and they said in order for them to clear it I had to get apply for a VAT number which seemed like an unnecessary hassle. They did suggest I go to the customs and try to sort it out myself - thank you FedEx for getting me FedUp! So I made my way to Katunayake which turned o...

IMPORTANT: Upgrade Linux kernel to fix possible root exploit

Its rare but sometimes it *can* happen. This is an important one to fix! If your running a GNU/Linux server (or desktop), running kernels from 2.6.17 - 2.6.24.1, it is HIGHLY recommended that you update the system using what ever package management system your distro provided, IMMEDIATELY. If not updated, your system could be at risk allowing a normal shell user to gain root access (i.e root exploit). A technical overview of the exploit and links to POC code and source code patch can be found here .

OLPC coming to Sri Lanka

Image
Last Friday, I had the privilege to attend a workshop on "One Lap Top Per Child" or OLPC as they call it, at HNB Towers. The OLPC is a marvellous piece of technology (note, I fell short of saying hardware). For instance it has a very low power processor that was developed by AMD to only consume 2 Watts of electricity, compared to 30 - 40W on other notebooks! The battery has a life span of 4,000 hours compared to about 2,000 on others and only costs USD 10 to replace it (costs about USD 60 - 100 on our laptops). The screen works great in both indoors and in bright sunlight where it consumes less energy and has a higher resoultion in a black & white mode. The screen's back light can be replaced easily without having to replace the whole LCD panel and it only costs 25 cents to replace! It has a WiFi like no other! It supports mesh computing, a standard known as 802.11s (as opposed to 802.11b/g). And still normal wireless devices are welcomed to connect as p2p devices (...