Notifications for deluge

I couldn't make the 'Notifications' plugin for deluge work, and I want confirmation that a torrent has been added when I click a magnet link, so instead I configured the 'Execute' plugin to run this script on the 'Torrent Added' event:

    /usr/bin/notify-send --icon /usr/share/pixmaps/deluge.png --expire-time 2000 'Deluge' "Torrent '$2' added"

So little effort, such reward.


Timestamping presence notifications from jabber.el #emacs

Sometimes it is nice to know when a presence change alert from jabber.el happened, "X is now Online", "X is now Offline" - sure, but when was that?

defadvice to the rescue:

    (defadvice jabber-presence-default-message (after add-timestamp-to-message last activate)
      (when ad-return-value
          (setq ad-return-value (concat "[" (current-time-string) "] " ad-return-value))))

Now the *Messages* contains information like: "[Wed Aug 5 14:25:02 2015] X is now Offline" - nice!


jabber.el, OTR and notifications #emacs

A while back I switched from using Pidgin for XMPP to jabber.el, I think primarily because OTR didn't work reliably for me in Pidgin.

Or there was some other reason that I forgot.

Anyway, running jabber.el in a decidated Emacs-instance works really well, and I can - with some perspiration - fix small niggles myself.

The latest one was related to OTR: notifications would show the encrypted text, and they would display when I wrote something myself. Not ideal. The author gave some hints, and I finally hacked together a solution - it isn't pretty or the right way, but it works for now.


Gnus, reporting spam #emacs #gnus

I have been reporting spam on Gmane by going to the web-interface for years. For years, I tell you, like a savage.

Finally I got my act together and configured Gnus, so I can report spam directly from there.

On my [Gmane] topic, I added these topic parameters:

      ((spam spam-use-gmane)))
     (spam-summary-exit-behavior 'move-none)
     (spam-use-hashcash nil)
     (spam-use-crm114 nil))

I am not sure that the last three are needed, but... better safe than sorry.

The documentation had me stumped for a while, because it only says "use (spam spam-use-gmane)", and doesn't mention spam-process - but now it works (confirmed with ngrep).


Server upgraded #debian

I upgraded my server to Debian 8 (jessie) tonight.

It went quite smoothly - I had to configure ejabberd again (they've changed the configuration file from Erlang to YAML), and I had to change the names of the files in Apache's sites-enabled/ directory to end in .conf, move the stuff in conf.d/, and switch from mod_gnutls - which is in oldstable and in unstable, but not in stable - to mod_ssl, but that was basically it!

pg_upgradecluster nicely did a dump/restore of my PostgreSQL databases, upgrading from 9.1 to 9.4.

Even rebooting the machine went without a hitch.

Well done, Debian!


I wish... #haskell #programming

... that all Haskell packages had a SYNOPSIS section in the documentation, showing an example of how to use the code.

Like most Perl-modules on CPAN.

That would be really nice for learning both the language and the libraries.


Get your Haskell logo keycaps now: www.pimpmykeyboard.com/d ... You can learn the language when your keyboard is all snazzed up.

Hardware going belly up #hardware

My Samsung 305T plus started flickering in a weirdly regular pattern.

My first guess was that it was the graphics cards, as the pattern did not show when the cable was disconnected (and the monitor cycles through solid colours).

I needed to use the screen today, so I purchased a new cheap, silent Radeon graphics card, plugged it in, and ... no cigar, still flickering.

After searching some more, I realized that this is a common problem with this type of monitor. People have been fixing it by baking electronics, having the soldering refurbished, changing capacitors, and what have you.

So I decided to buy a new monitor. I went for a cheap 28" 4K monitor - it is smaller than the old monitor, but I could pick it up nearby and the price is like ¼th of a 32".

To drive it, I also needed a new graphics card, so I ended up buying a more expensive Radeon card along with the monitor. A minus is that it has fans - two. (I don't think I have bought two graphics cards on the same day before.)

Plugging in the new(est) graphics card didn't work - it seems like it isn't there at all.

Looking closer, I realized that it has a socket to plug a power cable into. A 6 pin PCI express power cable. Something my (nice, silent fanless) power supply does not provide.

So I can drive the monitor in 1920x1080 with the old(er) graphics card, until I get a molex to PCI express 6 pin cable. *sigh*

Update: Looking for a power cable like this... Jeez. You can order one that cost you 178 DKK, one that costs 123 DKK, one at 50 DKK, or you can go to Brinck Elektronik, where there is a queue on a Saturday afternoon, but the cable is in stock, and it costs 24 DKK, a whopping 2-7+x less.

First impression of 3840x2160@60 Hz on a 28" screen (which, by the way, just worked automatically with Debian unstable and a displayport cable): I need to adjust fontsizes and configure Firefox and Chromium to scale up (same as on the 3200x1800 screen on the laptop). A 32" would be nicer, but this will do.


Archive... Search... Keywords...
Publisher at Google+
Sommerhus 2015


Jesper Binzer (50).


John Cage (103).

zcmi.dk (15).


Google (17).

Troels (32).

Invention of television (88).


Programmer's Day (6).


Talk Like A Pirate Day.

Using ":-)" proposed (33).


Sophia Loren (81).


One Web Day.


Steen Lundahl Engelholt (75).


Christian Schlüter (31).


Annemette Seistrup (53).


GNU (32).


DASK ran first program (58).


Kippers in the Jungle (15).

James Dean crash (60).

0.0189 s