SOS

Shane O'Sullivan's technical blog… really ties the room together

Archive for October, 2007

Upgrading Ubuntu Feisty Fawn (7.04) to Gutsy Gibbon (7.10)

Posted by Shane O'Sullivan on October 18, 2007

Today I’ve begun the process of upgrading my Ubuntu installation of version 7.04 to version 7.10. To see my previous tutorial of getting Ubuntu installed on my IBM Thinkpad X41, see http://shaneosullivan.wordpress.com/2007/02/16/installing-ubuntu-edgy-on-a-thinkpad-x41-tablet/.

This post lists whatever issues I found when upgrading, and my solutions to them. For the official instructions, see https://help.ubuntu.com/community/GutsyUpgrades.

Third Party software sources cause problems

My first problem was caused by having links to third party software distribution sites. When running the “update-manager -d” command, I received an error, saying the dbus couldn’t run.

This was caused by having third party software sources enabled that no longer existed, for whatever reason.

To fix this:

  1. click “System/Administration/Software Sources”
  2. Click the “Third-Party Software” tab
  3. Deselect any non-Ubuntu software sources. You can always reselect them after the upgrade

Modifying the software channels gets stuck

When the second step in the “Distribution Upgrade” application is running, that is, the “Modifying the software channels” step, it got stuck downloading files. It would say

Downloading file 36 of 97

and stay at that number for a long time. This was not a bandwidth issue, it simply stopped. To fix this

  1. Click the “Cancel” button.
  2. Run the “update-manager -d” command again.
  3. Repeat this each time it gets stuck downloading files. I had to do this four times for it to work completely.

Dual monitors didn’t work correctly

When booted up with an external monitor plugged in, the desktop was fixed at 640 * 480 pixels resolution. I found someone else with a similar issue at http://ubuntuforums.org/showthread.php?t=566947 , but their solution didn’t work for me. I solved this by:

  1. Unplugging the monitor.
  2. Restart the machine, and log in.
  3. Click “System/Administration/Screens and Graphics
  4. Click the “Graphics Card” tab.
  5. Click the “Driver” button
  6. From the “Driver” dropdown list, choose “i810 – Intel Integrated Graphics Chipsets
  7. Restart the machine.

Compiz has problems with dual monitors

Compiz (the 3D graphics stuff) causes problems and refuses to work at all if I am using dual monitors. Still working on this one.

Some Eclipse plug-ins no longer work

As a Java developer, I often use the Eclipse development platform. I include some non-standard plugins in the application, like plugins for Subversion support. However, when Ubuntu is upgraded to 7.10, the base Eclipse platform in upgraded, but not the non-standard plugins, which stops some of them from working.

Update: actually, this didn’t fix my Eclipse problems, please ignore :-)

The solution is to upgrade the plugins in the usual Eclipse manner:

  1. Open Eclipse
  2. Click Help/Software Updates/Find and Install
  3. Click Finish
  4. Wait a while…

Running low on disk space after upgrade

My laptop was running out of disk space after the install, as it downloaded quite a few packages. I found a very good blog post on how to clean up your Ubuntu install at http://www.ubuntugeek.com/cleaning-up-all-unnecessary-junk-files-in-ubuntu.html.

Make sure to read comment #7 also, that alone saved me 1GB.

Some Thinkpad features no longer work

I found that some things didn’t work that did work before, for example the stylus pen and the middle ‘scroller’ button of the mouse.  If this happens, just reapply the settings I describe here, as the upgrade removed them. This solved the problems for me.

Share this post:digg it|kick it|Email it|bookmark it|reddit|liveIt

Posted in Gutsy Gibbon, open source, Ubuntu | 28 Comments »

Introducing the new Dojo Image Widgets

Posted by Shane O'Sullivan on October 13, 2007

In previous posts (here for the Dojo 0.4.3 version, here and here), I wrote how I wrote an image gallery for version 0.4.3 of the Dojo Ajax Toolkit, and how I was translating it for the latest version of the toolkit, version 1.0.

Well, that work is now, finally, complete, and I have to say, I’m pretty damn happy with the results. The code is now part of the dojox.image project (dojox is the Dojo extensions project, for cool new code that may in the future make it into the core code base if enough people like/want it).

If you’d like to just see the gallery in action, have a look at the Photos page on my personal website, or see the links at the bottom of the post, otherwise, read on!

Update: changes have been made to the widgets since this post was written, resulting in some badly aligned images. This will be fixed in the next few days. (Oct 25th 2007)

Update: issue above has been fixed (Oct 29th 2007)

All For One….

The gallery is composed of three widgets:

  • dojox.image.ThumbnailPicker – a widget to list many small images in either a horizontal or vertical orientation, scroll through them, and attach click events that other widgets can listen to
  • dojox.image.SlideShow – a widget that displays one image at a time, and can run a slideshow, changing the images every ‘x’ seconds.
  • dojox.image.Gallery – A wrapper around the ThumbnailPicker, and SlideShow widgets.

Both the ThumbnailPicker and Slideshow widgets can also be used on their own, and have no dependencies on each other.

Dojo Data Is Too Cool for School

One of the coolest features of all of these widgets is that they all feed off image data provided by the dojo.data API. What this basically means is that each widget can display images from any source, with no modification whatsoever. You simply pass it a Dojo data store, and is shows the pictures. Some of the data stores currently in the Dojo toolkit include:

  • dojo.data.ItemFileReadStore – pull in simple JSON data in an array. You could use this if you simply have a directory of images on your own web server you would like to display
  • dojox.data.FlickrRestStore (demo) – query the Flickr photo sharing website for images. This is all done on the browser, with no need for any server-side redirects. This is another of my additions to the Dojo toolkit – I love Flickr, feel free to check out my photo stream here. I previously wrote another blog post on this data store here.
  • dojox.data.PicasaStore (demo) – query Google’s Picasa image sharing website for images. As with the Flickr data store, this is done on the browser, with no need for server side support.

and many more….. You can also write your own data store if you so desire, but the ones included in the toolkit should cover almost everything you might need.

Gimme, Gimme, Gimme!

So, how can I get this, you ask! Well, you can:

Update: Dojo 1.0 is now released. Get it at http://www.dojotoolkit.org/downloads
As always, any and all feedback is welcome. Also, a big thanks to Peter Higgins, owner of the dojox.image project, and Jared Jurkiewicz, owner of the dojo.data project, for all their helpful ideas, and for reviewing/committing my code to the Dojo project.
Share this post:digg it|kick it|Email it|bookmark it|reddit|liveIt

Posted in Ajax, aol, cross domain, dijit, Dojo, dojo.data, dojox, dojox.data, dojox.image, Flickr, Image Gallery, Javascript, json, open source, Technical | 78 Comments »

Dojo Grid has landed

Posted by Shane O'Sullivan on October 5, 2007

The previously announced Dojo Grid has landed in source control, and is in the nightly builds. It has all sorts of fancy functionality, like support for lazy loading huge data sets, individual styling of rows and columns, inline editing etc.

Check it out at http://archive.dojotoolkit.org/nightly/checkout/dojox/grid/tests/

Very cool stuff!

Update: The Sitepen guys have recently blogged about the grid at http://www.sitepen.com/blog/2007/10/13/dojo-grid-update/

Share this post:digg it|kick it|Email it|bookmark it|reddit|liveIt

Posted in Ajax, Dojo, grid, open source | Leave a Comment »

A TortoiseSVN replacement for Ubuntu

Posted by Shane O'Sullivan on October 4, 2007

I work on a number of open source projects, and many of them use the Subversion version control system to manage their code.  Before my switch from Windows XP to Ubuntu Linux (which I am still ecstatically happy with btw), I became a big fan of TortoiseSVN, an extremely useful Subversion client that integrates itself directly into Windows Explorer.

TortoiseSVN is simple to use, very intuitive, and does everything I need from it.  You simply right click on a folder you want to store your checked out files in, give it the URL of the Subversion server, and it checks out the code, updates it, checks it back in (if you have permission), performs file diffs ….. basically everything you need to do is integrated right in with your file browser.

So, I miss this in Ubuntu, as TortoiseSVN is Windows only.  However, I recently found a replacement, which integrates nicely with Nautilus, the Ubuntu file browser.  While it is not as slick as TortoiseSVN, it works in a very similar way.  You right click on a folder, and have a selection of SVN operations you can perform.

See http://marius.scurtescu.com/2005/08/24/nautilus_scripts_for_subversion for details.

Nautilus Subversion Menu

Nautilus Subversion Dialog

One thing that is missing from this is the display of icons in the file browser (Nautilus) to inform you of the state of a file – checked out, modified, not added to source control etc.  Another person has developed a solution to this, which unfortunately I have not, yet, been able to get working, but perhaps you will have more luck.

See http://www.kryogenix.org/days/2006/09/12/extremely-noddy-tortoisesvn-for-the-gnome-desktop for details on this.
Share this post:digg it|kick it|Email it|bookmark it|reddit|liveIt

Posted in Linux, Nautilus, open source, Subversion, Technical, TortoiseSVN, Ubuntu | 8 Comments »

 
Follow

Get every new post delivered to your Inbox.

Join 533 other followers

%d bloggers like this: