Tweetdeck on Ubuntu

This was actually pretty simple, you can either download the installer through your web browser or use wget to retrieve the file at: 

Change the permissions on the file:

chmod +x AdobeAIRInstaller.bin

Then install the application using:


Once the application is installed it will auto-update to the latest version (2.0 at the time of writing). With the auto-update complete you can now install TweetDeck by going to and clicking the “Download now, it’s free” button. The .air file should then be downloaded and installed automatically, this took 2-3 minutes on my netbook.

If everything worked correctly then TweetDeck should start up once it has installed

I’m a PC (Kinda)

I have been thinking about how to write this post for a long time. It amounts to the reasons why I choose and use the computers/gadgets that I do.

I have been messing around with computers since I was 11 when my parents got me an Acorn Electron for Christmas nearly a quarter of a century ago, so I have tried a lot of things out in that time. I have been a total Mac fanboy, Linux fanboy and also a Microsoft fanboy over the years.  I have concluded that I am actually a PC after all, although that is only a PC, not necessarily a Windows or Linux exclusive user.

I am a Windows Developer by trade, so it kind of means I have to use it on a daily basis. Unlike most people I actually despise having to use XP, and am probably one of the few people that actually thought Vista was pretty good. These days I am a Windows 7 convert and it is on my netbook and media server.

If I could do my work on Linux then I would, and I have done in the past, it is the getting it all working and setup that is fun and what I find interesting. It is also on my netbook, and I am planning on doing my Android development work in Ubuntu instead of Windows.

That is not to say I don’t like Mac’s and if anyone of my family or friends asked me what they should buy I would push them down the Apple route. For a certain kind of person they “just work” and that makes my life easier from a support side of things, and it makes the users happier. I would say the same for iPhones. I have both an old iPhone 3G and a newer HTC Desire running Android, and for the average user the iPhone is the clear winner. The interface is easy and simple to use, and the whole experience from the look of the phone to using it is just superior to anything Android can offer.

I bought my first iMac 6-7 years ago, it was one of the dome-based models with the movable screen, one of the prettiest computers I have ever seen. I loved it and it still has pride of place in the kitchen of our house back in the UK. From that point on it was all Apple for me, iPod, iBook, PowerBook, Time Capsule. I was the complete Apple Fanboy. Things changed however, when the first iPhone came out. Right from the Keynote where it was announced I had the “hump” with Apple. They spent 2 hours going on about a phone, OK it was the phone that changed the way we think of smartphones, but there was nothing about any of their other product lines, and basically it has been the same at every Keynote address since, it is iPhone, iPad or iOS. 

There is also the fact that the original iPhone was not as good as it could have been, in exactly the same way as the iPad isn’t. They left features off, maybe for legitimate reasons, but the fact it keeps happening has got to be more than co-incidence, or if it isn’t then it is just incompetence to not know people want some of these features that ‘mysteriously’ turn up on future versions. I have become tired with the circus-masterness of how Steve Jobs introduces all the new features and devices, as if they have never been thought of. I just feel manipulated.

What is almost as annoying as the way the company acts, is the way the Fanboys do! I guess it comes with the territory, to be a Fanboy you have to drink the Coolaid and go to the church of Apple and preach the “One True Way”. There is never a chance of having an honest open discussion with one of them about what the pro’s and con’s are of owning different devices, as there are never any con’s in their eyes. It is all very sad and frustrating.

In my backlash against this I became a Microsoft Fanboy, I moved my email to Hotmail, put Windows on everything, asked for a Zune for Christmas, the whole 9 yards! This was when I realised that there isn’t just one company that can supply everything you need to have the “Digital Nirvana” I am looking for, you have to pick and choose and find what works best. So I moved my email to Gmail, started using my iPod again for music and enjoyed using Windows 7 as my main OS.

I like to think that now I have done my rehab after being an Apple/Microsoft Addict that I am actually pretty objective when it comes to looking at what devices to use and and what gadgets I would like. I try to identify what my needs are, and then find the best tool for the job that I can afford, sometimes that is an Apple device, for example I am getting an Apple TV to replace my Windows Media PC (only so it can run Boxee, not for the actual Apple software I better point out), mobile casual gaming iPhone or iPod Touch wins out and will get taken on holiday’s. For storage, backup, server needs then Windows Home Server cannot be beaten in my opinion. 

For my own personal computing needs I love my Acer Aspire netbook, one of the originals with the 8.9″ screen. The form-factor is perfect for me, it fits in my tiny-rucksack, works brilliantly on holiday being so small, and with a nice big HDD in there it can have all of my music, photos etc. basically my whole digital identity in one place (as well as backed up to the WHS and also using iDrive it is in the cloud). Living on a little island in the Caribbean that is in the firing line for 6 months of the year with Hurricane Season it is great to know I can pick up this tiny machine and everything is on there, and at a push I could probably work from it.

I have a Kindle as I love reading, although this was a tough call, I also like the Sony eReader that my wife has as it has excellent battery life and you can fit a light over the screen easily. Both things you can’t do on the Kindle. However, it is difficult to get books in the Caribbean on the Sony eBook Store, but the Kindle will allow you to buy them wirelessly on the device. As we don’t travel all that much so I am always near a power source for the charging and thus we also don’t go on planes too often where I might need a light, the Kindle won out. This has definitely proved to be the right choice as with the Kindle app on Android, iPhone, PC it means I can always read no matter where I am.

I am also pretty big on Audible, which now I have some newer audio devices will play their enhanced format sound great. With training for events like Marathons, I have a lot of time to kill out on my own, and whilst music is OK now and again, it is nice to have something like a book to listen to which takes your mind off the fact you have another 2 hours or another 15 miles to go before you can stop for a rest.

When choosing a new device or gadget I always want to see how to fiddle with it, nothing stays in its original condition long. Phones get rooted and flashed with new Rom’s. Computers get bits upgraded and all manner or OS’s installed on them. That is what I find interesting about owning gadgets and tech in general. What can you make it do?

I generally find I get bored very quickly if I just leave something in its original state. Which probably explains why I don’t just use Apple stuff exclusively, they are not designed to be messed with very much!

As I said earlier my general philosophy is to just try and find devices that best fill the need I have, I have no qualms about buying from any particular manufacturer or another, if the device does the job better than anything else then that is the one I will try and get hold of.

This leads to the conclusion, that for now at least, I am a PC (running either Windows or Linux) and proud of it!

Last night dd saved my life!

Ok, so a bad pun on an old song, but it was kind of true.

The title should really have been “Last night dd saved my phone from a broken SD card”. The reason being, I put an 8GB MicroSD card into the nice new HTC Desire that had been doing sterling service in my work Blackberry for the last year or so, and within a couple of days it had become corrupted and I couldn’t format it, no matter what I tried. Windows couldn’t manage, Linux couldn’t delete the partitions so I basically gave up. At the end of the day if it has become corrupted do I really want to format the card and risk it happening again?

It is a strange phenomenon that I have seen with IDE HDD’s before but not flash memory; whereby the device can work perfectly for perhaps several years, sometimes having been on constantly, but then you move them to another computer, power them up and they go bang within a day or two. I am sure if I had left the SD card where it was it would have still been working in the ‘berry, but hey ho!

Anyway, having spent a good part of the previous week rooting the Desire and playing with different ROM’s (to be chronicled in another post), I had finally settled on a FroYo ROM that was working the best and had all my apps installed, including Listen and Audible with the associated Podcasts and Audiobooks downloaded to the card. I had also backed up a couple of the ROM’s to the SD card so that I could go back to them if I broke the one I was testing/messing with at the time, and so I always knew I had something to fall back on. So this left me in a bit of a hole when I thought I had lost the lot!

After much shouting and general grumpyness I realised I could actually “see” the drive through the command line on Ubuntu (I had been trying GParted to reformat the drive). So I thought I would try and see if I could image the disk:

sudo dd if=/dev/sdb1 of=/home/jigsaw/Desktop/desire.dd& pid=$!

kill -USR1 $pid; sleep 1; kill $pid

The first line is the standard dd command, pointing to my SD card and outputting to a file on my desktop. The next part is taken from the Man page for dd, it outputs the pid (process id) of the running dd process, which the second line uses and will show you how far the imaging has gone.

To my surprise this actually worked, and after about 45 mins I had a 3.7GB image file on my desktop, I performed an fdisk -l on the file it and it showed me the partitions within it.

For a test I then reversed the process and sent the files within the image to a spare USB key I had lying around, and found that I could then see the files, and everything was there that I needed.

The final stage was to put the original 4GB MicroSD card that had come with the phone back in, and perform the same operation as I had with the USB key to put the files back. Once the phone was rebooted after the transfer it was like I had never lost the files in the first place, or the 3 hours of angst while I tried to figure out how to get my backed up files off of the card!

Now I need to write a script that will either rsync or dd the SD card whenever the phone is connected, just to be on the safe side!

Securing SSH

We have been having some problems with people trying to hack on one of our webservers, the auth.log file of the Debian box is full of unsuccessful attempts. In an effort to secure the box a bit better we have restricted the users that can access the box by placing the line:

AllowUsers user1 user2

in the /etc/ssh/sshd_config file.

It is also possible to restrict access via ip address by adding lines to the host.allow and host.deny files, but as I regularly have to access the box remotely from a clients site I can’t restrict it. You can also change the port and tuen off Root logins too to help stop the hackers.

Apache mod_rewrite

In an attempt to try and sort the urls out on the websites on the new server I decided it was time to take a crack at mod_rewrite for Apache. I made a couple of mistakes, but once I got it right it was very simple.

Adding: –enable-rewrite=shared to the configure statement enabled the module. Then after a quick rebuild and install I just need to add the following line to my httpd.conf:

LoadModule rewrite_module modules/

Reload the apache conf file and enable the clean urls in Drupal!!!


On another note, it appears that my Filter Input Content Module isn’t doing the business with sorting out blogging from scribeFire so will have to look at that.

PHP Curl Support

So with my websites moved to a new server I decided to give them a quick update and added a Last.FM module to our Cayman site. I got the module from here, installed in the usual way, setup the username and password, only to find it required libcurl support. No problem I thought to myself. So SHH’d into the server to install it, only to find when I updated the packages on it (its a Debian Sarge box) it removed the running kernal, and even though a new one was installed it didn’t bother to update the menu.lst file in the /boot/grub folder with the location of the new images.

After a couple of frantic emails and trouble tickets to the hosting company in Canada and a crash course in the vi editor, things were sorted!!

Anyway, back to the install, I installed the libcurl3-dev package and then rebuilt my version of PHP using:

./configure –with-apxs2=/usr/local/apache/bin/apxs –with-mysql –with-ffmpeg=YES –with-gd –with-zlib-dir –enable-mbstring –with-jpeg-dir=/usr/lib –with-mysqli –with-mcrypt –with-curl

followed with:



make install (as root)

Then restart apache, and everything is working. Well kind of. The module worked but started throwing fopen errors, seemed to be a permissions problem. In my googling to find the problem i found a newer version of the module here, which worked better, although the layout wasn’t as good with my CSS, so looks like I will have to go fiddle with it to make it all look pretty but at least its displaying now and the server is still working…touch wood it will stay that way!!!

Server Move

If you are reading this then we are on yet another new server, and we are also in Drupal 5, not to mention the fact that this entry has been uploaded from ScribeFire via Firefox….
Add to all of this the new server is Windows (god forbid), running II6, PHP 5.0.4 (at time of writing) and MySQL 5.0. All very impressive I think you will agree.
Now I am back…more to come on a regular basis.