I recently upgraded my work PC to Ubuntu 9.10 and in doing so lost the ability to play mp3s in Rhythmbox. When trying to play an mp3, rhythmbox would ask for a new plugin, but after looking, say it couldn’t find “GStreamer element autoaudiosink”.
After reinstalling gstreamer and rhythmbox a few times I turned to the Ubuntu Forums. The answer is in the following thread, but I missed it on first glance so thought I’d post it here: [ubuntu] rhythmbox 9.10 mp3
To save you reading through all the posts, to fix the problem after upgrading to 9.10 (not from a clean install), you need to delete your gstream preferences. Open up the terminal and type the following:
rm -rf ~/.gconf/system/gstreamer
rm -rf ~/.gstreamer-0.10
If you log off and back on again now, you should have mp3 playback in rhythmbox again. If that doesn’t work, take a look at the other suggestions in the ubuntu forum thread.
Just a quick post to let everybody know that RB Internal Links has been updated. This latest update is mainly bug fixes and also resolved some conflicts with other common wordpress plugins.
The change log:
v2.0.7 (17/11/2009)
- Fixed conflict with WP-Super-Cache
- Fixed encoding issues with preselected text, particularly foreign characters
- Moved js and css for tinymce plugin to seperate files
- Temporary work around for wp_enqueue_script with tiny_mce_popup.js
- Post, page and category names printed using _e on tinymce plugin
I’ve also updated the support forum to bbPress, after wasting an hour trying to delete spam posts from phpBB. Sorry to anyone that has posted on the old forum, hopefully bbPress will do a better job (it seems a little toooo simple). If you need help or just want to say hi, check out the RB Internal Link support forums.
I spruced up my personal “portal” last night, its got the same content as before, but I wanted to show off my JS skills a little. The site is at http://www.arronwoods.com, and contains links to my various sites and social network pages.
The idea was to scatter faded logos of the different websites around the page and as the user draws their mouse closer to the logo, the opacity increases and the logo gets brighter. I think it looks good, although I guess I could be confused with cheesy? I like it, I’m keeping it. :p
So, if you’d like to do something similar yourself I’d suggest you take the shortcut I discovered after coding up my own class, and just download this jquery plugin: jQuery approach
But if you were interested in the logic behind it, this is the core of the code:
$().mousemove(function(e){
elements.each(function(i, element){
var box = $(element);
var distance = parseInt(Math.sqrt(Math.pow(e.pageX-element.center.x,2) + Math.pow(e.pageY-element.center.y,2)));
var distanceRatio = (settings.distance - distance) / settings.distance;
if(distance <= settings.distance)
{
var percentage = distanceRatio + settings.minimum;
box.css('opacity', percentage);
}
});
});
To save calculating the center on each mouse update, I calculate those on page load and store them on the element object using this code:
elements.each(function(i, element){
var box = $(element);
var offset = box.offset();
var center = { x: (offset.left + (box.width()/2)), y: (offset.top + (box.height()/2)) };
element.center = center;
});
Things have been extremely busy over the last few weeks, not had a chance to stay on top of the blog or the plugin. Thought I’d update everyone with some progress.
RB Internal Links
Not had a chance to update the plugin with any cool features yet. As far as I know, the only thing people are waiting on is better language/encoding support. I will get round to this soon!
Work
Works been busy but fun, we’ve just launched a new product. It’s a financial content management system (yes, shameless plug) that accepts fund data in a variety of formats and produces graphs and statistics etc. Its also bundled with the usual suite of CMS features, all tailored to the financial sector.
We’re also thinking of moving offices soon, got our eye on a very nice place not too far away. After this summer the lure of air conditioning in every office was just too tempting. It’s also got its own datacenter which will house our development server nicely!
Play
Just got back from a tranquil week away in the south of France. Got to take the new car with me, was a lot of fun! I took a picture on my phone one morning when we went to get breakfast, came out a little blurry.

My C30 in Monfort
It took my a while to find a bit of script that worked cross browser, but the jquery plugin at http://code.jdempster.com/jQuery.DisableTextSelect/ does the job!
When working on the UI of a web application text would often get selected by the browser incorrectly, for example while dragging an element, or clicking on an element with an onclick event.
If you are using jquery already; download it, include it, then use:
$(‘.elementsToDisableSelectFor’).disableTextSelect();
If you need this functionality without including the whole of jquery, take a look at the source code for the plugin. It’s only about 20 lines long. It uses a different method for Firefox and Internet Explorer, with a fallback for everything else but it should be easy to convert in to native JS or another javascript framework.