Latest posts

Showing rspec error line numbers in Ubuntu autotest-growl notifications

I just hacked a couple of files in my autotest-growl gem because I wanted to quickly see the line numbers when errors happen. This is what I wanted:

And these are the two files I hacked:

The code is too dirty to be worthy a pull request or a fork, so I guess a gist is good enough for now :)

How to use your N900 in Ubuntu as a remote webcam

Imagine you don’t have a webcam. But you have a N900. Can you use the phone cameras instead? Yes you can!

Create a fake webcam in /dev/video1:

Send images from the N900:

Now you can use your N900 webcam with any software (Google Hangout or whatever!)

Touchpad and trackpoint speed in Ubuntu 12.04 + Thinkpad T420

I usually disable the touchpad in the BIOS, but I wanted to try it for “smooth scrolling” in Gedit 3. I found several issues:

* I want it to scroll in the whole surface, not just the right corner. For moving the mouse I have the trackpoint.
* The scrolling speed is way too fast.

This seems to fix it:

xinput set-int-prop "SynPS/2 Synaptics TouchPad" "Synaptics Edges" 32 0 0 0 0
xinput set-int-prop "SynPS/2 Synaptics TouchPad" "Synaptics Tap Action" 8 0 0 0 0 0 0 0
xinput set-int-prop "SynPS/2 Synaptics TouchPad" "Synaptics Edge Scrolling" 8 1 1 0
synclient VertScrollDelta=500

It works, but after testing it a bit, I ended up disabling it again. But I learnt something very interesting in the process: how to tune the trackpoint speed :).

Just add this to your /etc/rc.local and enjoy a faster trackpoint:

echo -n 150 > $TPDEV/speed
echo -n 200 > $TPDEV/sensitivity

Thanks to

Testing PopcornMaker js

Disable send progress in Mozilla Thunderbird

Go to Preferences > Advanced > General > Config Editor and change a couple of settings:

mailnews.sendInBackground => true
mailnews.show_send_progress => false

Remember to restart thunderbird: if you don’t the emails will get stuck in the Outbox :).