Change thunderbird default http browser in Xfce

Since I migrated to Xfce it seems thunderbird does not uses the default browser setting nor the /etc/alternatives/x-www-browser. The solution to change the default browser to chrome for example is to go to Preferences/Advanced/Config editor and change the network.protocol-handler.warn-external.http to true. This way next time you will open a link you will be prompted to select a browser and you can choose to remember the setting. Comments: ghantoos - Apr 1, 2012 Thanks for the share!...

November 30, 2011 · len

Betrayed by adobe

In the last few days I tried to find as much information as possible on the Adobe Flash decision to stop developing flash on mobile platforms. Some called it “the death of flash” even if the statement issued by Adobe is much unclear to me. After reading and reading posts and comments all over the net I got increasingly frustrated and decided to write down some of my thoughts on the subject....

November 21, 2011 · len

How to skip SPF checking for an user with Postfix

This shows how to do special SPF checks for a special recipient. Since the man pages contain wrong examples I’ve decided to read the code myself, from /usr/lib/python2.6/dist-packages/policydspfuser.py. This applies to Ubuntu 10.04. 1. Create a text file containing the exceptions. I created a file called: /etc/postfix-policyd-spf-python/userconf. The man page gives the following example which is wrong: postmaster@example.com,{'Mail_From_reject'='No_Check'|'PermEr‐ ror_reject'= 'False'|'HELO_reject'='SPF_Not_Pass'|'defaultSeedOnly'= 1|'debugLevel'= 5|'skip_addresses'='127.0.0.0/8,::ffff:127.0.0.0//104,::1//128'| 'Tem‐ pError_Defer'='False'} the correct format is: Mail_From_reject=No_Check|PermError_reject=False|HELO_reject=SPF_Not_Pass|defaultSeedOnly=1|debugLevel=5|skip_addresses=127.0.0.0/8,::ffff:12\ 7.0.0.0//104,::1//128|TempError_Defer=False 2....

November 8, 2011 · len

libvirtError: Unable to deny all devices for

While trying to setup a bunch of virtual machines to test some multi-machine configuration I run into this strange error: libvirtError: Unable to deny all devices for mcc1, no such file or directory There are some threads on the net for this problem and they all relate to cgroups but I don’t have either cgroups-bin or libpam-cgroups installed. I had however this configured in rc.local: mkdir -p /dev/cgroup/cpu mount -t cgroup cgroup /dev/cgroup/cpu -o cpu mkdir -m 0777 /dev/cgroup/cpu/user echo "/usr/local/sbin/cgroup_clean" > /dev/cgroup/cpu/release_agent Unmount cgroup did not fixed the problem either and a new problem occured: cannot create cgroup for mcc1....

September 5, 2011 · len

Cut, reverse and combine GPS tracks

When I plan a cycling trip I search for tracks in the target area and try to maximize the “fun factor”. Thus I often end up with a bunch of tracks from which I want to use parts. The difficult task is to cut, sometime reverse and combine the source tracks into a planned track. Most of the times this seems a too much waste of time since it involves a number of operations in qlandkarte (cutting and combining) and gpsbabel (reversing)....

August 2, 2011 · len

When is the old hardware nothing more than junk?

Do you still have your first computer? Your first laptop? As years go by we tend to accumulate a lot of old hardware which, at least in our mind, hold some value, at least a sentimental one. Yes, I still have my first laptop but I also have many generations of hardware of all types in between. How can I throw away that server which I used for 3 years, it must be still usable somehow!...

July 22, 2011 · len

Air versus native Android applications

This weekend was cloudy and it rained so I decided to give some more time to play with my android phone. Even since I got the phone some time ago I tried on several occasions to do some fun development on it but it never seemed quite fun as expected so beside some play with the sensors, gps and camera I did not do much. However this time I was decided to do a different kind of test....

July 3, 2011 · len

My first Firefox workaround

This weekend, being stranded inside by the rain I tried to help a friend with a small flex (flash) application. The code looked very simple and I could not understand the problem. On a non-US keyboard flash seemed to ignore all special chars (like @, #) in a basic text field. After some research I found this very, very ugly and old bug laying around since FF 2. It seems it had been corrected sometime and then lost again and there is no solution for it other than setting the wmode parameter to window....

June 28, 2011 · len

Auto backup last n days on an usb stick

This is a simple script which automatically backups files modified in the last n days on a usb stick. It can be run from cron and will require the usb stick to be present only at backup times: <pre lang="bash">#!/bin/bash USB_DEV=/dev/sdb1 MOUNT_POINT=/media/backupusb DAYS=60 SYNC_DIR=/home/tomcat/backup/ find $SYNC_DIR -mtime +$DAYS | sed "s|$SYNC_DIR||" > $SYNC_DIR/exclude mount $USB_DEV $MOUNT_POINT if [ $? -eq 0 ]; then mkdir -p $MOUNT_POINT/backup rsync -rtDxL --safe-links --delete --exclude-from=$SYNC_DIR/exclude --delete-excluded --modify-window=1 -vP $SYNC_DIR $MOUNT_POINT/backup/ umount $MOUNT_POINT else echo Could not mount $USB_DEV on $MOUNT_POINT fi Some explanation on the rsync params:...

June 23, 2011 · len

Printing a large number of pdf files

All you hear about the next big improvement in Linux distributions seems to be screen oriented: “It will have a new button which will be more Mac like”. I don’t say that having a button to click isn’t nice but don’t forget the power of the command line. Take the following example: “you need to print 50 pdf files in a folder”. You can either open them one by one in evince and print them (1 click to open, one for the print icon print, one to click ok * 50) or you can issue a single command which does this job while you read the next review on linux usability:...

February 9, 2011 · len