July 29, 2015

Reloading TouchPad driver

I often switch input devices on my T420 and seems that X server doesn't like that.

The thing is that my touchpad, from time to time became weird, especially after I switch off external mouse; instead of normal mouse pointer moving, touchpad will start to scroll pages or desktops randomly and the only way to move the mouse is to use trackpad, which I don't like. Close inspection of X log reveals this:

(EE) BUG: triggered 'if (priv->num_active_touches > priv->num_slots)'
(EE) BUG: synaptics.c:2643 in UpdateTouchState()
(EE)
(EE) Backtrace:
(EE) 0: /usr/bin/X (xorg_backtrace+0x3d) [0x57b11d]
(EE) 1: /usr/lib64/xorg/modules/input/synaptics_drv.so (0x7fad4d2b6000+0x2d27) [0x7fad4d2b8d27]
(EE) 2: /usr/lib64/xorg/modules/input/synaptics_drv.so (0x7fad4d2b6000+0x4c70) [0x7fad4d2bac70]
(EE) 3: /usr/lib64/xorg/modules/input/synaptics_drv.so (0x7fad4d2b6000+0x6872) [0x7fad4d2bc872]
(EE) 4: /usr/bin/X (0x400000+0x721b8) [0x4721b8]
(EE) 5: /usr/bin/X (0x400000+0x9a2fd) [0x49a2fd]
(EE) 6: /lib64/libpthread.so.0 (0x7fad517a0000+0xf670) [0x7fad517af670]
(EE) 7: /lib64/libc.so.6 (__select+0x13) [0x7fad4f9e31d3]
(EE) 8: /usr/bin/X (WaitForSomething+0x19c) [0x57880c]
(EE) 9: /usr/bin/X (0x400000+0x35c51) [0x435c51]
(EE) 10: /usr/bin/X (0x400000+0x2546a) [0x42546a]
(EE) 11: /lib64/libc.so.6 (__libc_start_main+0xf5) [0x7fad4f913d85]
(EE) 12: /usr/bin/X (0x400000+0x257b1) [0x4257b1]
Continue reading →

July 23, 2015

Fixing negation in clojure.test

I find myself to often use clojure.test for writing application or library unit tests in Clojure. Sure, there are more quality alternatives like Midje, Speclj or test.check (although test.check is different kind of approach for testing), but I'm fond of clojure.test for a couple of simple reasons:

  • it is already bundled with Clojure
  • easy to start with
  • customizable enough
  • no funky syntax

However, clojure.test simple design is, well, weird sometimes.

Continue reading →

July 22, 2015

Communion After Dark

In case you are into Industrial/EBM/Electro music, I highly recommend you Communion After Dark channel. Fresh releases (weekly I think), not-so-boring DJ's and hours of great music.

alt tag

If you are like me and runs music in the background, keeping Youtube channel will just waste your browser resources. In that case check their feed with links to mp3 files.

Continue reading →