Category Archives: Open Source

Silex and Phar on Dreamhost

You can’t run Silex apps directly on Dreamhost yet. After a bit of digging around I came up with this.

You need to create a file ~/.php/5.3/phprc in your home directory, not under the website directory and put these lines in there.
detect_unicode = Off
phar.readonly = Off
phar.require_hash = Off
suhosin.executor.include.whitelist = phar

Its not immediate, but in about 15 mins it should work.


Vote up my answer if it works for you.

Get MySQL Workbench working on Ubuntu 11.10

MySQL Workbench doesn’t work out of the box in the latest Ubuntu. These steps will get it working until Oracle gets around to updating the official package ;)

sudo add-apt-repository ppa:olivier-berten/misc
sudo apt-get update
sudo apt-get install mysql-workbench-gpl


Update: Don’t know if Oracle has fixed this yet. This works in the latest Linux Mint as well.

Help Translate Shutter to Sinhala

Captured by Shutter :)

I was browsing around Launchpad looking for stuff coming up in the new Ubuntu 11.04 and found Shutter.

Shutter is a feature-rich screenshot program. You can take a screenshot of a specific area, window, your whole screen, or even of a website – apply different effects to it, draw on it to highlight points, and then upload to an image hosting site, all within one window.

I also saw this in their Launchpad page

WE WANT YOU! Please help us to translate Shutter to every possible language.

Translate the main program and shutter plugins:

So I thought I’d help out and started translating to Sinhala. It wasn’t easy at first I had to setup some fonts and get a decent keyboard working.

Have a look at Adding Unicode Sinhala to Linux if your on Linux. I found the Sinhala transliteration keyboard to be the easiest to use.

Going along that path I found Type in Sinhalese – Google Transliteration

So if you can spare some time over the holidays help to complete translating Shutter.

Selling out

The state of Java and MySql are changing. In case you missed it. Sun bought MySql and Oracle bought Sun. I’ve been working on Java for over 10 years and MySql for over 5 now. I’m not happy with what is happening.

The Java and MySql websites have changed. On the site there is no prominent link to get to the community edition. If you go to to redirects to where you can find it.

This is not good for me or a country like Sri Lanka. Most of the solutions I’ve been involved over the years have used open source foundations. So we were able to deliver solutions to clients at a very reasonable cost. If things get too commercial I’m a afraid the licensing costs will far overtake the implementation costs.

I’m sure there will always be open source or free to use versions of Java and MySql, but with a large commercial entity backing them profit comes first then community. I don’t know I think its time to look at some alternatives.

Update: They got to VirtualBox too.

Secure Email

I just setup a secure email account for myself. I needed one to exchange some passwords etc with a friend. Here are a few links that will help you setup one.

First you need an email client. My choice was Thunderbird. The rest of the setup depends on this so if you pick another client the next steps will vary a bit.

You can get Thunderbird at

Now you need a Thunderbird extension called Enigmail

Enigmail helps you with the PGP tools within Thunderbird.

Now you need to download GnuPG which is an open source PGP tool.

I got version 1.4.9 Windows command line installer gnupg-w32cli-1.4.9.exe.

How to do this in detail is on the Enigmail quick start guide.

Secure email is a good thing to have even for personal use. Most emails travel as plain text and get stored on servers for a long time. By using this setup you can exchange public keys and encrypt mails before sending. Only your private keys can open them.

I sometimes get spam or phishing mails from my friend’s computers. Those are from bad bots that got into their computers.

Also anyone can set the from field to any other email address and impersonate another person.

Using PGP you can sign your emails as well so the receiver can be pretty sure its you sending the mail.

Read more about PGP on Wikipedia.