Hacking around memory limitations in shared hosting.

May 30 2019

Longtime readers are aware that I've been a customer of Dreamhost for quite a few years now, and by and large they've done all right by me.  They haven't complained (much) about all the stuff I have running there, and I try to keep my hosted databases in good condition.  However, the server they have my stuff on is starting to act wonky.  Periodic outages mostly, but when my Wallabag installation started throwing all sorts of errors and generally not working right, that got under my skin in a fairly big hurry.  I reinstalled.  I upgraded to the latest stable release.  I installed the latest commit from the source code repository401 and 500 errors as far as the eye could see whenever I tried to do anything regardless of what I did.

In a misguided attempt to figure out what was going on, I bit the bullet and installed PHP on one of my servers, along with all of the usual dependencies and tried to replicate my setup at Dreamhost.  What that was a bit tricky and took some debugging I eventually got it to work.  It was getting my data out of the sorta-kinda-broken setup that proved troublesome.

Autostarting Kodi on an Arch Linux media box.

Jan 20 2017

Not too long ago, when the USB key I'd built a set-top media machine died from overuse I decided to rebuild it using Arch Linux with Kodi as the media player.  The trick, I keep finding every time, lies in getting Kodi to start up whenever the machine starts up.  I think I've re-figured that out six or seven times by now, and each time after it works I forget all about it.  So, I guess I'd better write it down for once so that I've got a snapshot of what I did in case I need to do it again later.

The instructions in the Arch Linux wiki work, but you need to pick the right ones to follow.  The short-and-sweet ones with the automagickal AUR package don't work.  Forget it.

Install LightDM from the Arch package repository (sudo pacman -S lightdm).  Then install the instructions I linked to above to the letter.  That means carrying out the following tasks:

Create the file /etc/X11/Xwrapper.config.  The file should contain only the following text in bold (no double quotes): "needs_root_rights = yes"

Follow the LightDM "Enabling autologin" and "Enabling interactive passwordless login" instructions.  Create a user named "kodiuser" (you don't need to set a password" and give it access to system groups necessary to access resouces in the system.  I used the following command to do this: sudo useradd -c "Kodi Service Account" -G dbus,network,video,audio,optical,storage,users -m kodiuser

Create two additional groups which LightDM needs to enable autologin:

  • sudo groupadd -r autologin
  • sudo groupadd -r nopasswdlogin

Add kodiuser to those groups:

  • sudo gpasswd -a kodiuser autologin
  • sudo gpasswd -a kodiuser nopasswdlogin

A thought on memorization and memory techniques.

Dec 12 2016

In many memorization techniques it is often taught that you should make use of overly vivid, even absurd imagery to make sure that bits of information stick in whatever organizational technique you might use, be it a ladder of pegs or something as elaborate as the method of loci. Sometimes you have to work to make something stick, and sometimes the absurd makes itself known spontaneously.

Have you ever pondered why there are so many things that you simply can't unsee on the Internet?

Stop and think about all the things that you wish you'd never seen over the years. All the stingers and nasty surprises that gave you a nasty jolt. No, I won't list any, I've no shortage of my own memories that routinely invade my nightmares... the point I'm making is that those things are so far off the beam, so far removed from our daily experience (regardless of what it may be), so... there's probably a word in German for the concept. The best I've got it ho'polis d'l'Byr (Horror of the Other) that it wraps around into Lovecraftian or possibly Gigeresque surrealism or disgust (sometimes with a bouncy, catchy techno remix playing in the background) that it burns itself indelibly into one's long-term memory in exactly the same way that Musashi Miyamoto rolling out pizza dough with a shinai on a wicker papsan chair in the back yard does.