Fixing an exported .ics file that can’t be imported in Google Calendar

By , 23/10/2017 17:36

I sometimes receive an .ics file with multiple events that I want to import into Google Calendar but I can’t because it is malformed. I think it is exported by Microsoft Outlook but I’m not sure. The problem is that in this file the events don’t have unique UIDs, they all are the same. Google recognizes this as being one event instead of multiple so you only get the first one in your calendar.

I fix these files very easily in VIM using Python to generate unique identifiers thanks to an answer I found on Stack Overflow:

:py import uuid

Try the import again and it should work!

Flattr this!

EdgeRouter, NetworkManager, resolv.conf and domain-search

By , 07/04/2017 23:07

I was having issues with NetworkManager not properly setting the search option in resolv.conf even though I specified it in my EdgeRouter config. After some digging I found out that actually the issue is with dhclient not parsing the domain-search option. Apparently it prefers the domain-name option for that, which of course you can’t configure through the standard DHCP server config of EdgeOS. There are reports they are adding the option in a future version but for now you can use this method:

  • In the config tree browse through ‘service / dhcp-server / shared-network-name / your-dhcp-name / subnet / w.x.y.z/ab
  • Add a subnet-parameter option domain-name "";


Flattr this!

Setting up Open vSwitch with ipsec_gre

By , 21/12/2015 01:45

Lately I have been playing a lot with Docker and one of the things I want to try out is the multi-host network and perhaps even swarm support. To be able to do that however you need to expose the Docker daemon on your host machine. That’s all fine and dandy when you are working on a private network but what happens if you want to do this with hosts on multiple locations separated by public links? Even though you can secure the Docker daemon with TLS I don’t feel comfortable having service ports out in the open like that so I want to set up my own private network.

While I have set up OpenVPN links for these kind of things in the past I would now like something more flexible (easy adding of nodes, mesh topology, STP, …) so I started looking at Open vSwitch but I could not find a complete guide. Especially the part on using certificates instead of the pre-shared keys is lacking so I pieced this procedure together from different sources.

Continue reading 'Setting up Open vSwitch with ipsec_gre'»

Flattr this!

Exporting OS X Mail to a GMail account

By , 06/10/2015 02:17

I have a client that started using Google Apps but had a huge history of emails in the Mail app on OS X which they wanted to have imported into GMail. While the Outlook mailboxes worked without a problem using the program provided by Google, for Mac this doesn’t seem to be maintained any more. The information on the web on this subject is also rather scarce so this is how I did it using some scripting, Dovecot and imapsync.

Continue reading 'Exporting OS X Mail to a GMail account'»

Flattr this!

Where are my systray icons?

By , 21/08/2015 15:24

I started testing Enlightenment E19 a while back and while I like the lightweight environment, there are still some areas that could use a little TLC / better documentation. One of those is the system tray. I’m not going to elaborate on the technical and/or political details of why but it suffices to say that the Linux world is moving away from the old XEmbed standard towards libappindicator.

Here are some of the symptoms I was seeing:

  • Missing tray icons
  • Empty spaces where the icons are expected
  • Icons that were stretched across other icons

Granted, some of this is probably because of my choice of Gentoo as distribution but still this seems to be a dark area. There is a lot of wrong information to be found on Google and after a while you start feeling you went down the rabbit hole to never come out the other end. This information is probably also not restricted to Enlightenment but that’s just the environment I was working in.

First you need to unmask some packages:

dev-libs/libappindicator ~amd64
dev-libs/libdbusmenu ~amd64
dev-libs/sni-qt ~amd64
dev-libs/libdbusmenu-qt ~amd64

Next install the necessary packages:

emerge dev-libs/libappindicator dev-libs/libappindicator:2 dev-libs/sni-qt -av

Now you should have everything to make roughly 95% of all the Qt4, Qt5, GTK+2 and GTK+3 applications out there work.

The only thing that is left (if you are using E19) now is to disable XEmbed. First close all the applications that possibly are in the system tray, then right click it and select Settings where you can disable it. After that restart applications and (hopefully) marvel at the icon goodness.

There is an issue in the current stable release (0.19.8) of E19 where for example the Spotify icon is not shown because the system can’t find it. Instead you see a warning triangle with an exclamation mark. The issue is reported and will probably be fixed in the next release.

Related commit:

My overlay containing a patched ebuild:

Flattr this!

Getting started with django-allauth

By , 08/07/2015 22:41

Sarah Hagstrom wrote a really nice guide here.

Flattr this!

Separate volume channels

By , 25/01/2015 20:44

I was having issues with the volume keys on my Linux desktop when using applications like Spotify and Kodi. I found out that this is because the channel that is created by PulseAudio by default is linked to the master channel resulting in all kind of weirdness when adjusting the volume. This can be fixed by disabling the flat-volumes option in /etc/pulse/daemon.conf

  1. flat-volumes = no

Flattr this!

Corrupt SD card recovery

By , 05/06/2014 19:16

Foremost is an excellent tool for this!

Flattr this!

Cryptocoin Gentoo ebuilds

By , 13/01/2014 23:54

I was playing around a bit with cryptocoins but was missing quite some ebuilds. As most of them don’t diverge to far from the reference Bitcoin client it is however quite easy to set them up. Usually copying the ebuild is enough, sometimes some more adaptations are needed.

To make it easier for anyone I created an overlay on GitHub so you don’t have to redo my work:

I’m not going to describe how to add the overlay to your portage, there are guides enough for that. Don’t forget to unmask the packages.

At the moment there are ebuilds for following currencies:

FRC (Freicoin)
RPC (RonPaulCoin)
DOGE (dogecoin, such profit!)

If while you are testing out your shiny new client you want to donate to me for some basic copy/paste and editing work you can do so at:

FRC 12W1M5LRsCAmLWZfUhfkRzpqJfaLEzN7M5
RPC RJudw63kAs19agortQk45ks6nLXCdQZSVx
DOGE DJS6nuKu3n84zV86Qb7crFMcL8XzTc6kUv

Or you can just Flattr this post!

Flattr this!

Batch convert FLAC to MP3

By , 08/11/2013 16:15

My complete audio CD collection is ripped in FLAC format on my server. Because I also want to play the songs on MP3 players I was looking for a way to easily convert them all at the same time. This would be very easy with some easy scripting but why invent warm water again? I found this great Python script that does it for you called flac2all. It ignores files that have been converted already so I can just run it again after I ripped a new CD.

1000 interwebs to you Ziva Vatra (if that is your name).

Flattr this!

Panorama Theme by Themocracy