Uninitialized Constant GemRunner Error When Using Ruby Gem

December 9th, 2007

Here’s the problem…

me@host:~$ sudo gem update
/usr/bin/gem:23: uninitialized constant Gem::GemRunner (NameError)

… which had us on the ropes more than on the rails for a while. Unusually googl’ing on this error provided no solutions.

What led to the situation was that we used the source install of rubygems on Ubuntu Gutsy (7.10) instead of using the rubygems in Ubuntu’s repository but then changed our mind and apt-getted the Ubuntu repository version. Surprise! Surprise! These 2 versions were conflicting a bit; leading to the above error. The workaround is pretty simple, just go to your /usr/local/lib section and delete the site_ruby directory (as this is the remnant of the rubygems source install and thus cause of the problem). This removes all the gems (that were downloaded by the original rubygems which we no longer want) off our system. Perhaps you want to simply move this directory first in case something goes wrong and you need to revert (eg. sudo mv /usr/local/lib/site_ruby /usr_local/lib/site_ruby_old).

Note: In case your not aware, /usr/local/* is the set of directories under which programs that you compile yourself get installed to by default. Generally the directories will start out pretty empty on a freshly installed Linux distro and then as you (if ever!) compile and install programs from source (eg. using ./configure && make && make install) then they end up under this directory. Also not that programs installed using apt-get (or via rpms on non-Debian systems) don’t get put here - they usually end up under the /usr/ directory itself (this varies a bit from distro to distro but what we’ve just outlined holds true for Ubuntu anyway).

Now, once your finished you should find that gem works. Do a ‘gem list’ and see if the above error is gone. If this doesn’t work you may need to ’sudo apt-get install rubygems’. Next up, we need to rebuild that gem directory that we deleted (site_ruby) with the apt-gotten rubygems (if apt-gotten is a real word!). To do this run

’sudo gem update’
’sudo gem update –system’

You will notice that the result of these commands means that /usr/local/lib/site_ruby is back and populated. This is where ruby likes to put it’s gem extensions. Finally reinstall rails with

’sudo gem install rails’

Hope this solution works for you! We’re still getting to grips with this rails stuff so if you find any glaring errors in this post please comment below to let us know.


New KDE Theme - Castle at Night

December 6th, 2007

After initially being a little disappointed with Kubuntu’s default theme, The Irish Penguin new he’d have to roll his own.

Well, finally it’s been tweaked to penguin perfection and, amidst much wing flapping, uploaded as a KDE theme for everyone to enjoy. However, before it’s unleashed upon you, please be aware of a little gotcha. The KDE Theme Manager is the tool you’ll need to install/create your own themes. However it’s not to be found in ‘System Settings’ on the K-menu. Rather you must go to the command line (unless I am missing the menu icon with my dodgy eyes!) and type ‘kcontrol’. From here you navigate to ‘Appearances & Themes’ and then ‘Theme Manager’. Ok, now armed with this knowledge here’s what to do.

Save the Castle at Night zipped theme file to your ‘/home/yourusername/.kde/share/apps/kthememanager/themes/’ directory. Then unzip it and, via the KDE Theme Manager, install this file and, hey presto(!), you’re looking good.

Castle at Night Preview

(Click to view)

Note: If you are having trouble with installing this theme you can download, unzip and install some additional files (Castle at Night - Required Files) into your  /home/yourusername/.kde/share/apps/kthememanager/themes/’ folder.

To fully enjoy the theme you should right-click on the quicklauncher at left of the taskbar and configure it to have a fine big icon size - 28 looked good on the Inspiron (I think big icons always look nice in KDE’s taskbar).

Note: It’s been created on a Dell Inspiron 1520 laptop (running Kubuntu 7.10 ‘Gutsy’) so perhaps the colours might look at little different depending on your machine. Now hopefully one day we’ll all have gamma correction that works. Until then, enjoy!

Shock Horror! 18000 Pints of the Finest Irish Guiness Stolen (+ Some Bad Beer)

December 1st, 2007

It’s coming up to Christmas and it’s the time to be merry - especially if you are a certain thief, who has made off with 450 kegs of festive beer, including 180 kegs of the black stuff, from Ireland’s premier brewery! [source: Times Online] St James’s Gate, home of the famous pint that is Guiness, was the scene of the crime as the assailant drove off (staggered???) in a trailer drawing vehicle; the most exciting heist since The Cattle Raid of Cooley. Interesting it has come admist a police blitz in the nation’s capital - 160 police on the beat in the Xmas run-up. You’d think someone would have noticed the equivalent of half a mega-pint.

Guinness Thief

Only one person is believed to have been involved in the incident; who’s now shot to fame with the infamous title “The Beer Hunter”. Their whereabouts is currently unknown as a ‘thirsty-man hunt’ sweeps the nation. One thing is clear however, the sought-after thief does not have much respect for his/her taste buds - making off with an additional 180 kegs of Budweiser (which in Ireland tastes like a cross between a dog’s urine, and well… another dog’s urine - mostly drank by people who hate the taste of beer1) and 90 kegs of Carlsberg. All in all, the liquid loot was worth in the region of 65000 euro. Quote of the day goes to Grainne Mackin, spokesperson for Guinness’ owner Diageo Ireland, who said “What could they possibly want with all that beer?” Hmm… Have a very merry Christmas perhaps?

1 In your correspondent’s humble opinion


Digg!

K-k-kubuntu 7.10 on a Dell Inspiron 1520

November 22nd, 2007

Ahhh… Another day, another distro. The harddrive partitions around here are a bit like the Wizard of Oz; every day a new one joins the merry troupe. Todays turn was the KDE spin on Ubuntu Gutsy. So armed with the standard Kubuntu CD, which serves as a live distro and an install CD in one, we set on the path to enlightment (or should that be KDE - always good to end the week on a bad pun).

Generally, it seems to be recommended practice these days to install Ubunutu or its derivates off the ‘alternate’ CD when trying to set up an Inspiron to avoid things like incompatible versions of ALSA or wireless drivers working their way into the install. But the Penguin didn’t really feel like giving the whole GUI experience a miss. And so the live CD was fired up before you could say ‘Holy wireless drivers, Batman!’. A nice desktop link provided a pretty path to installation and within an hour Kubuntu was installed and ready to go.

First thing that was apparent was that the default Kubuntu appearance is quite bland. Especially when compared with something like OpenSuse’s nice crisp out-of-the-box KDE look (however nothing will ever get installed waiting around for YAST!). But the good news is that Kubuntu’s eye-candy vacuum can be fixed with a bit of tweaking. That wasn’t the initial major concern though. The lack of sound and wireless was!

The fix for the sound was easy, running ’sudo apt-get install linux-backports-modules-generic’ from the command line delivered sound after a reboot. The wireless was a lot more fiddly to get working - the strange thing is that NetworkManager was picking up all the secured networks and tantilisingly displaying them in its wireless list. But no way in the world was it going to connect to any of them. (BTW, the card is a Intel Pro Wireless 3945). However, the laptop in question is also running Ubuntu Studio out of another partition and it can connect through Gnome’s network-admin program without any probs. So there was definitely something fishy up.

Plan A at solving the problem was to install wlassistant (sudo apt-get install wlassistant) in order to try and put a different network program in the firing line. But alas still no connection. Then after a bit of head scratching we decided to install the whole bloody Gnome network admin and try and use that (sudo apt-get install gnome-system-tools) - which can be run via the ‘network-admin’ command. There was a time there when this was looking like a winning plan but no joy. Weird thing is, and the Irish Penguin has no explaination for this, is that rebooting and connecting via wlassistant did the job! Worked a charm! A lucky charm!!!

Final things on the list was to glam up that gaudy GUI. The install of Gnome’s networking stuff had left a few stray icons in the menu so they had to be wisked away as they weren’t working anyway. Then a few nice things to do are

* Right-click on the quicklauncher at left of the taskbar and configure it to have a fine big icon size - 28 looked good on the Inspiron. Big icons always look nice in KDE’s taskbar, otherwise where’s the fun?

* One of the best ways to brighten up the panel is to (right-click on the taskbar and configure) set ‘Enable background image’ for the panel and select a nice tile. This also puts a pretty sash down the left of the K-menu. Optionally choose ‘Colorize to match desktop theme’

* In the system settings keep the Style->Widget Style as ‘Polyster’ but change the Window Decoration to ‘Keramik’

* Change the window background to be a nice soft colour - a very light fawn is nice - and in keeping with the Ubuntu theme…

* And for God’s sake pic a nice desktop background!

Along the way, we flicked over to the proprietary NVidia drivers via the restricted driver management without problems. Although it did make all the fonts bigger for some reason - so they had to be tamed again using the following fix (note: changing font properties in System Settings isn’t enough to fix this). I used a dpi of 75 instead of 100 as the fix did. Another thing that was hard to track down was power management adjustment there’s no setting in System Settings - rather it can be found by right-clicking on the battery icon to the right of the task bar and selecting ‘Restore’ to bring up the dialog - of course!

So what’s the verdict after all the hard work is out of the way. Kubuntu is a fine desktop if you’re prepared to put in a little effort customising its look and feel. Because of the effort required in prettying it up - Kubuntu initially feels less polished than it’s sister Ubuntu. Package management in Adept isn’t as smooth as Synaptic. But there are some real pluses out of the K stable. Dolphin has replaced Konqueror as the default file browser and its two pane mode is great. Not quite sure why its taken so long for a two pane file manager to crop up in a modern OS but it’s not before time. All the usual great KDE apps from K3B to Amarok are in there. The Penguin’s final verdict is that it feels a little more ‘bright’ and ‘fun’ than Ubuntu which is more ‘finished’ but serious.

Microsoft to Release Windows XP as Upgrade to Vista in 2010

September 29th, 2007

An anonymous source at Microsoft’s Redmond headquarters revealed today how the software giant plans to release Windows XP as the successor to the ill-fated Vista operating system in the next decade.

“User’s want choice and Microsoft will offer customers the choice of a mandatory upgrade cycle which will deliver value to the end user and a greater end user experience. Part of that experience will include the launch of Windows XP as the next generation operating system in 2010 and will replace Windows Vista as our flagship product.”

“We have listened to customers that have told us that they would like a responsive GUI that can offer productivity gains over Windows Vista technology. In particular, usability tests have shown that Vista’s “preparing to copy - calculating” feature, which gave the users the option to go and make a cup of tea whilst the underlying OS took 5 minutes to decide how long it would take to copy those two 4 kilobyte text files, are not proving to be the win we expected. Instead we shall revert to our patented MS-DOS technology which can perform the same task in a fraction of the time. A patent which Linux infringes.”

“Additionally we will be removing the patented ‘99 OK Click’ security functionality security feature that Vista introduced as many users asked how security was improved by providing an OK click without requesting any password. We just saw some kind of similar feature when we visited our friends at Novell called ’su ‘and ’sudo’ and we thought our users would also like that. But we also knew that they wouldn’t like entering passwords. This was borne out through extensive usability testing with rabbits in our lab scenarios. The rabbits also suggested that they liked the idea of a ribbon when working with the office programs. We were determined to deliver such productivity gains and value, not only to these rabbits, but also sheep and other users of our products.”

“We found Windows XP to be the most efficient way to deliver these gains to our users through a familiar and proven user interface as well as harnessing our synergies across the Windows brand. The good news for users is that through our software assurance policy means that their subscription plan will cover the licencing cost for the XP upgrade - unless its release gets delayed like Windows Vista. Existing Windows XP licence holders will only have to pay the licence fee one more time in order to continue to use their product.”

Rumour also has it that Microsoft are already even planning the next OS release after Windows XP which will be in 2015. The provisional codename for it is to be “Long Horn, Short Memory” and it is expected that it will be built on the Windows 3.1 codebase that delivered such rich functionality through much of the nineties…


Digg!


The Quick European Fox Jumps Over the Lazy Dog

September 19th, 2007

Breaking with the blogging tradition of incredibly obvious (and search engine indexable) article titles, I think it’s fitting to have a subtle, more European perhaps, heading for this post. To cut to the chase, it deals with the great transatlantic dog fight between possibly the world’s biggest monopoly and the Eurocrats - that is Microsoft vs European Competition Commission.

This has caused great entertainment for those browsing the net as, for some, this has broken down into a full scale Europe vs America battle. The ruling is Microsoft’s first court loss of significance that stands to have genuine legal ramifications as most other similar cases have been settled out of court by deep pockets and hamstrung prosecutions. Although it’s always hard to pick the legal meat off the bones in a lot of software related court cases, other articles have mentioned that the ruling means limited scope for MS to appeal, possible requirement of protocols disclosure and of course the small matter of hundreds of millions of dollars in fines. Small change to a big fish perhaps but no one likes to throw away money.

Those who support the decision are proudly strutting the streets with their vin rouge in one hand and their petit pain in the other singing “Vive la Revolution” as they go. Some have changed to spelling color with a ‘u’ and prefer to organise their day than organize it. Those against, see the fleeting head of communism attacking capitalism’s finest hour. Cries of “Red! Reds! Under the beds” can be heard from those who shun the European Courts ruling. Particularly entertaining is the comments at the end of the article Microsoft’s Stunning Court Defeat. I don’t normally mange to keep chugging through the comments but I did find this little flame quite amusing.

So what does the future legal direction of this case hold? Well that’s anyone’s guess, but the interesting thing that FFII correctly pointed out in one of their recent press releases is that patents are where the battle is at. Whatever respect Europe can garner by being the first one to call a spade a spade - or an illegal monopoly an illegal monopoly - will be soon squandered if software patents are allowed in the back door. How anyone could be stupid enough to repeatedly bring software patents to the brink of legality in Europe is amazing. But that is what’s happened time and time again. Software lifecycles are measured in months (not decades like in big pharma) and innovation has always occurred by building on the ideas of others. But yet there are those who are scared that taking a stance against software patents means being anti-intellectual property - when the reverse is the case. Let’s hope that the next time software patents are on the European menu, that there will be enough intelligent people in the room to call the spade again.


Digg!

Kissed a QT and now I’ve caught Mono

September 2nd, 2007

The Irish Penguin branches out to a new platform this week as Mono, the Linux-y version .NET of is tackled. What wonders await…

Well, thus far, we’re not actually sure, although early signs are promising. We pulled down the MonoDevelop codebase as well as it’s dependancies via Subversion and most things built without major problems (on Ubuntu Fiesty) and a little help from the fabulous monodevelop-list AT lists.ximian.com (just replace AT with @) #. Although the holy grail of having a happily built MonoDevelop environment is proving just a little elusive - a conflict between Cario from v1.0 mono libraries and Cairo from v2.0 libraries is a spanner in the works. This should be a straightforward one to iron out.

It will be interesting to compare the Form’s/Widget designer to the fabulous QT Designer and see if MonoDevelop provides a stable and first rate environment for doing GUIs. But of course, even more interesting will be the politics…

Judge to SCO - You Don’t Own Unix!

August 12th, 2007

And so the biggest legal saga to face Linux over the last few years was that of SCO trying to sue people for copyright infringement, saying that it owned the rights to UNIX. This has dragged Novell, IBM and more into the courts to fight for the right to party. Well today that party was in full swing as the judge in the case, Dale Kimball, has ruled in Novell’s favour saying that it is Novell, and not SCO, who own the UNIX and Unixware rights.

Kudos to Novell! It’s hard to see that there is much, if anything, left in the SCO locker that they can accuse IBM of infringing. In fact, it looks like they’ll be busy trying to organise a whip-a-round to pay up to Novell who will now be due a big cheque from SCO for the UNIX rights that Microsoft and Sun had previously paid SCO for. Yes, that sentence is a bit long and confusing. Perhaps it would be better to allocate IP addresses to each note in the UNIX rights cash pile and use traceroute to track its hops from one accounting subnet to another!

Interesting it was Microsoft who were reported to have set the SCO ball rolling back in 2003 by paying them for the first UNIX licence . Here’s one of the article’s from back then when the news first broke and the world looked a bleaker place. Once details of a Microsoft-SCO association had been reported it prompted one analyst, Gordon Haff of Illuminata, to say “Microsoft should certainly be worried about even a little bit of SCO’s stench rubbing off.” Well the only stench today will be from rear end of the trousers of the SCO management as they nervously wonder where to go next from here.

Given that Microsoft stumped up the initial cash to set SCO off like a bull in a China shop, it is possibly fitting that such money will now likely pass on to Novell to fund Linux development. Mind you, it’s hard to keep track of the amount of Microsoft cash that the Novell management are rolling around in these days. Maybe the Redmond team should just give up on Windows and focus on their Linux development entirely. Let’s be honest, it’s much more fun!

Groklaw has been covering this tale from the start of the case and and PJ is in bouyant mood as she covers the details whilst downing some chocolates. Thanks for a great site PJ, to keep the great unwashed up to date on the legal rumblings over the last few years, and please continue to do so as this fish gets reeled in.

YouTube Vs Hollywood: Transformers Movie Shootout!

July 30th, 2007

And the results are in, YouTube 2 - 0 Hollywood! Mr Bay you have been beaten…

Easily, the best Transformer films of the summer are

Mee, Grimlock luv U-Tube!!!

Momentumless Linux and the Death of Open Source - A Developer’s Response

July 15th, 2007

A couple of blog and news posts on the Internet this week seemed to make the headlines with death knells for Linux and Open Source for a multitude of reasons, both chronic (less anti-Microsoft sentiment about) and recent (GPL 3). But on reading, I couldn’t help but feel that both posts sounded wrong, utterly utterly wrong in fact. No disrespect intended to the authors of course.

The first post Open Source Is Dead, Long Live Open Patents? by David DeJean, which took a commonly cited angle on GPL3 hurting Open Source by fragmenting the community. But that is to not understand the community. Bare in mind one important fact about community-oriented Open Source developers, of which I am one - we write the software because we love to. For the vast majority of SMD’s (Small-to-Medium size project Developers, for want of a better term) we don’t really care whether our project is GPL2 or GPL3 - why? Because they are both effective Open Source licences and they will both serve our personal purposes fine as either licence would suit our pet projects. Of course, we’ll all still get our goat up as to whether Linux or the GNU Compiler Tools should be GPL 2 or 3 - but that’s a separate issue - it’s won’t stop us writing the software we love. It is naive for commentators to think that because a new licence comes out that it will hurt the amount of FOSS produced. As for businesses, if it made sense to switch to Linux before GPL 3, it will still make sense after GPL3 - irrespective of what or who adopts GPL 3. It technically affects Tivo (although they will be able to stick with Linux 2.4 kernel) - so what? Such cases only make up a small part of the econosphere. Plenty of business providers seem to be happy. Even embedded solution providers are saying that GPL 3 won’t turn customers off, with Jason Wacha of MontaVista saying “Our customers are used to working with licenses that are much more restrictive than the GPL. In my opinion, typical proprietary licenses are much more restrictive in pretty much all instances than the GPL.”

Read the rest of this entry »