nik englund's blog

Knock sensor

Original Subaru

Auto sensors:

pidgin MSN omega.contacts.msn.com certificate errors

For Ubuntu, fix below is quick and painless:

cd ~/.purple/certificates/x509/tls_peers

echo QUIT | openssl s_client -connect omega.contacts.msn.com:443 -showcerts | openssl x509 > omega.contacts.msn.com

Printing to Canon MX850 via network with Ubuntu

This wasnt actually all that hard.

Get network driver for Canon printers

wget superb-east.dl.sourceforge.net/sourceforge/cups-bjnp/cups-bjnp-0.5.3.tar.gz

Extract it

tar -xzvf cups-bjnp-0.5.3.tar.gz

Install CUPS development files

apt-get install libcups2-dev

Compile driver

./configure

make

poor_mans_docking_station_using_usb_hub_in_monitor

>> cat vid.sh
#!/bin/sh

dual_monitors()
{
        # Move panels
        gconftool-2 --set /apps/panel/toplevels/panel_0/monitor --type=int 1
        gconftool-2 --set /apps/panel/toplevels/panel_1/monitor --type=int 1
        # Move virtualbox
        VBOX=`wmctrl -lG | egrep "winxp .* VirtualBox OSE" |   awk '{print $1}'`
        wmctrl -i -r $VBOX -e 0,1921,-1,-1,-1
        sh /home/nie/swap_sound.sh docked
}



myth tv setup crash due to libx11-6

Running myttv-setup on a debian box was crashing with following error:

mythtv-setup: ../../src/xcb_lock.c:77: _XGetXCBBuffer: Assertion `((int) ((xcb_req) - (dpy->request)) >= 0)' failed.

 

Searching around found the solution at http://forum.tuxx-home.at/viewtopic.php?f=10&t=565

Noisy clothes washer

If your washer ever makes a racket and starts to smell like burning rubber, this might be it:

 

What is it?

Its called a spider, and one of its legs is broken.  This caused the drum to lean to one side if the washing was out of balance towards the 2 intact legs, and eventually it scraped into the side of the outer drum and seal.

Luckily I was near by when this happened and was able to turn the washer off before it damaged any parts beyond serviceable.

Why did it break?

Caring for the environment :P

Installing solaris 10 from linux NFS server

My old Ultra 2 only has a CDROM drive, not a DVD drive.  It doesn't have an IDE bus, and SCSI DVD drives seem to be reasonably rare.

Solaris 10 comes on 7 CDs, and after booting off the first CD there is an option to install over the network for subsequent CDs.

Rather than mucking around burning a heap of CDs, I decided to give this a go.

I mounted the CD iso images under linux, and then exported the loopback mounted CD directories via nfs.

compilers and libraries suck

I have finally found the bug which causes the popper program to crash when porting it to gnome.
 
Turns out my Make file had duplicate entries for the gnomeui libraries and header files:
 

`gnome-config gnomeui --libs `
and

`pkg-config libgnomeui-2.0`
 

Syndicate content