Generating Atom feeds from your Lektor site

by Sander on Feb 17, 2017, 2:50:00 PM

After quickstarting a Lektor site, a next obvious thing to do is to add a feed to the site's blog. Fortunately, Lektor has a growing ecosystem of plugins, one of them creates atom feeds.

Installation of lektor-atom

The plugin to install is lektor-atom, and is installed via the terminal:

lektor add plugin lektor-atom
lektor build

This adds a reference to the myproject.lektorproject file with the plugin and installs the plugin into the lektor pipeline.

Configure a feed

However, notice that after building the site no feed is generated! This is because no feeds have been setup yet.

Create a configs/atom.ini containing the following lines (full documentation)

name = My Blog feed 
source_path = /blog
item_model = blog-post
url_path = /blog/feed.xml

Change the url_path to suit your preferences. Trying to build now would result in an error: E blog/feed.xml (RuntimeError: To use absolute URLs you need to configure the URL in the project config.)

To resolve the build process myproject.lektorproject must be updated with two lines within the project section to indicate the site's live URL and an absolute URL style:

name = My Project
url_style = absolute
url =

lektor-atom = 0.2

The site can then build and the resulting feed can be accesssed from

by Sander on Jan 9, 2017, 9:41:59 AM

After a while  Fusion Drives stop being fast when accessing files not recently modified as they are backed by 5400rpm drives.

You too can improve Firefox

by Sander on Jan 6, 2017, 11:11:54 AM

Google Chrome is too dominating, this is not good for the web. So I'm switching back to Firefox, but it can be pretty ugly by default in places.

I like to apply the following tweaks to make it pretty again:

Increase the Address Bar font size

Edit userChrome.css to make style changes to the Firefox UI. My Profile is located at %appdata%\Mozilla\Firefox\Profiles\<Gibberish>, use the previous link to find the location on your system. Inside your profile create a chrome folder and inside that create a userChrome.css. Add the following line:

#urlbar { font-size: 13px; }
The possibilities are endless but this does the trick for me. Restart Firefox after saving the file.

Remove unwanted buttons and the searchbox

Right click on any of the toolbar buttons > Customize... to bring up the Customize Firefox screen. Remove unused buttons and the search box (search via the address bar instead) by dragging them to the Additional Tools and Features panel --  or the hamburger menu panel to access them with a click.

Make the tabs square again

Firefox tabs have this rounded look to them, which I find displeasing: install the Squared Australis Tabs addon to add square corners instead.

Hide the menu bar

Did you know you can access the menu bar by pressing the Alt key on your keyboard? The menu bar is visible by default but it is not frequently accessed, so press Alt+V or bring up the View menu bar menu and untick the Menu Bar and optionally the Bookmark Toolbar items.

Hide bookmark toolbar item names

You can blank out the Name of a bookmark to have it display just the icon in the toolbar, which tidies up those frequently accessed sites.

Just Walk Out technology

by Sander on Dec 6, 2016, 1:16:51 PM

Amazon Go, shopping without checkouts:

Amazon Go is a new kind of store with no checkout required. We created the world’s most advanced shopping technology so you never have to wait in line. With our Just Walk Out Shopping experience, simply use the Amazon Go app to enter the store, take the products you want, and go!

With the amount of recorded prior art they will find it difficult to patent the Just Walk Out technology  ;-)

Recognising Ogg Vorbis streams in WinAmp

by Sander on Dec 5, 2016, 2:16:15 PM

I'm working on a side project where I am broadcasting an OGG Vorbis stream using Icecast. Google Chrome played the stream, and so did VLC, but WinAmp was unable to. It connected to the stream with an HTTP 200 status but could not interpret it.

As it turns out WinAmp requires the mount point to have a file extension for it to detect the stream correctly, so updating the mount point to stream.ogg instead of stream in the icecast configuration did the job.