XEmacs status 2015 #emacs

I stopped using XEmacs 4 years ago - stopped my buildbots and automatic Debian package building scripts, and migrated to GNU Emacs.

The stuff that I missed from XEmacs I could implement in 40 lines of elisp in GNU Emacs.

Two years ago the XEmacs packages were removed from Debian.

The XEmacs release manager - doing what the does best - has written a looong announcement about the ever slowing pace of XEmacs, and questions the future.

It has been a long time coming, but maybe a refocus for the folks left is a good thing.


Let's Encrypt!

After applying to join the Let's Encrypt beta program a while back, I got an email with an invite for the domains I registered.

Yesterday I set it up, using the '--standalone' mode of the letsencrypt-auto program - so I had to close down the webserver while it ran - and configured Apache to use the certificate obtained.

Lo and behold, it works!

Very nice, and very nice job by the people working on Let's Encrypt!

I missed a good handful of my (sub)domains, so I have applied for those, and I am planning to get a certificate for use by my mail server, and one for my XMPP server next.

And then I need to automate the renewal of certificates - Let's Encrypt have chosen than certificates are valid for 90 days, making the downside of a security breach relatively small, while also encouraging people to automate the process.


Glorious 4K #computers #hardware #x

In the beginning of the year, I got a new 4K 28" monitor. At the time I struggled a little to get my desktop computer to drive it at full resolution, but succeeded.

Later in the year I got a laptop and ditched the desktop altogether. Unfortunately I couldn't make the laptop drive the monitor at full resolution, so I ended up with a script running this command when connecting the laptop to the dock:

    xrandr --display :0 --output DP1 --mode 2560x1440 --scale 1.5x1.5 --panning 3840x2160

which is kind of ugly, because the scaling makes the display quite fuzzy.

This evening I was trying to figure out how to make the touchpad less jerky - the default settings has a too high minimum move distance, if you can dig that. So I found this nice recipe: "Get a rock-solid Linux touchpad configuration for the Lenovo X1 Carbon", and was intrigued to find a page on using a 4K display with the laptop in question, on the same website.

He got it running at 30 Hz, but mentions a BIOS update to make 60 Hz work with the displayport cable. Hey, now we're talking! So I downloaded the latest BIOS update (which is 1.11 at the time of writing this, the page linked to above talks about 1.08), which comes as a 33 MB .iso on the Lenovo homepage.

Great, I'll just dd that to a USB stick and boot from that. The docs do mention that only UEFI boot works for the iso, and that a USB CD-drive is mandatory. Regardless of what setting I put for UEFI booting in the Setup, I couldn't make it boot from the damned USB stick. I even tried another stick. Before giving up for the night, I searched for the problem, and found this page: "Updating the BIOS on Lenovo laptops from Linux using a USB flash stick".

The solution? Install the genisoimage package, and then run "geteltorito n14ur10w.iso > better.iso" to get an iso that can be dd'd to a USB stick, and booted in Legacy mode.

BIOS updated, laptop connected to screen, and after running:

    xrandr --display :0 --output DP1 --mode 3840x2160

full resolution - nice!


Xft.dpi: 150 suddenly necessary #gtk #x

I don't know why, but suddenly font sizes in menus, notifications, and Nemo went down to miniature.

Adding a file /etc/X11/Xresources/xft containing "Xft.dpi: 150" fixed the problem.

GTK - go figure...


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.


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


World AIDS Day.


Attack on Pearl Harbor (74).

magnetic-ink.dk (17).


Grace Hopper (109).


Ada Lovelace (200).


Laust Sonne (41).


Klaus' first recorded usenet-address (23).


Last men landed on the moon (so far) (43).

Quantum physics (115).


Stine Sjørslev Kelså (40).

Wright brothers took off (112).


Perl 1.000 released (28).


Adams first recorded usenet-address (23).


Ramanujan (128).

Winter solstice.


Vincent van Gogh cut off his ear (127).


Jesus (2014).


Isaac Newton (373).


Sonja Rindom (111).


Linus Torvalds (46).

0.0333 s