Ninetynine is a creative design & coding agency

Fix random crashes Firefox, Thunderbird and Evolution on Ubuntu 8.10

without comments

What do you expect of a decent modern OS? A great browsing experience and a decent mail client. Since I upgraded to Ubuntu 8.10 I had troubles with random crashes of Firefox when loading pages, and entirely random crashes of Evolution mail client.

So I switched to Thunderbird. But then same symptoms started showing. Giving me 5-10 crashes of Thunderbird a day, and serious troubles on heavy browsing.

The first things to do when getting crashes of Mozilla products are:

  1. Make sure you don’t have a lethal combination of add-ons
  2. Check if Flash isn’t the evil spirit haunting your browser, try the Flashblock add-on
  3. Make a new profile for Firefox and Thunderbird, by renaming your old configuration. You can find the configuration folders in your home. Mostly ~/.mozilla for Firefox, and ~/.mozilla-thunderbird for Thunderbird.
  4. Completely remove Firefox (make a backup of your configuration) and reïnstall it

I tried every possible thing I could do to fix Thunderbird or Firefox. But then again, why was Evolution suffering as well? Well the deal was that I had WINS resolution enabled in Samba. Found it in this bug report.

When upgrading to 8.10, Samba was upgraded too. This bug has been reported and hopefully will be solved in Ubuntu 9.04, launching 23rd of April.

So how do we fix this?

Read the rest of this entry »

Written by ruben

April 12th, 2009 at 3:22 pm

Posted in Ubuntu

Tagged with , , , ,

Growl messages with AIR

with one comment

For an AIR application that I’m creating (more about that later), I needed some way to show the users some event happened while the application was running in the background. So what’s better on Mac OS than showing growl notifications ;) ?

Growl message with as3

Adobe has worked together with the Growl team to add support for AIR and flash applications.
Mike Chambers has put together an open source project named as3growl which provides an API to work with the new Growl build.

Read the rest of this entry »

Written by michiel

March 31st, 2009 at 4:21 pm

Posted in AIR,AS3,Flex,Mac OSX

Tagged with , , , ,

Thickbox: reinitialize Thickbox after change by Ajax

with 10 comments

Hi,

Thickbox is a very nice javascript library based on jQuery (which is also a very neat library). It is used to show images and documents in a sort of popup like Lightbox does.

Let me sketch the problem:

1) I load my page (also loading thickbox.js)
2) I change my content in one dom-element, for example a div element, through Ajax.
3) Then I want to call thickbox on an element in the new div.

You will that see nothing happens, because Thickbox hasn’t been able to register this object.

So basically we need to reinitialize Thickbox.
Read the rest of this entry »

Written by ruben

March 31st, 2009 at 4:08 pm

Posted in Ajax,Javascript

Tagged with ,

Ubuntu: backup to USB drive on mount

with 10 comments

Hi everyone,

I always was sloppy with my backups and I really needed to do something about it. I bought a new Freecom HDD 500GB and what I wanted to do is quickly backup my files every time I plug the device in, and it should give me a proper notice when the backup is done.

Doesn’t sound that hard, or does it?

It became clear that I needed a little thingy called “udev”. And with big help from unutbu from ubuntuforums.org I managed to get a very nice script up and running.

First thing you have to do is to know how your system recognizes your USB drive.

I followed this great tutorial here. (Don’t bother the fstab!)

My rules look like these.

1
2
 
SUBSYSTEMS=="usb", KERNEL=="sd?1", ATTRS{product}=="Freecom Network Drive", NAME="freecomHD", RUN+="/usr/bin/usb_backup.sh"

Note that I have saved them under “/etc/udev/rules.d/81-local.rules”, because /etc/udev/rules.d/README says. It would also be safer I you select your device using UUID.

Files should be named xx-descriptive-name.rules, the xx should be
chosen first according to the following sequence points:

80 rules that run programs (but do not load modules)

After adding your rule, you need to restart udev.

$ sudo /etc/init.d/udev restart

Next install libnotify-bin through synaptic. This will make it possible for us to show notifies as if it were GNOME itself ;)

Next we’ll need to hack the script a little bit:

Read the rest of this entry »

Written by ruben

March 25th, 2009 at 12:37 pm

Posted in Ubuntu

Tagged with , ,