In my line of work, you basically have to options to keep your sanity. You either become jaded or you go into full-on paranoia mode. And I recently started to catch myself looking longingly at tin foil hats. That’s why I have my very own cloud! But since I’m currently the sole breadwinner in our expanding family, I’m on a tight budget. So, I present to you, The Frankencloud 3000! Cobbled together from discarded parts I scrapped from our SysAd’s desk: A Raspberry Pi 3 Model B+ and an old 1 TB internal hard disk in an USB case. As this is far from ideal (or stable), I need a good backup strategy. Preferably remote, so that a fire won’t destroy two years of baby and puppy pictures. I have a storage box somewhere that I can rsync to, but then my pictures are on somebody else’s computer which brings me back to my tin foil hats. I don’t want that. Not without some layer of encryption. And that’s where gocryptfs comes into play. What I want is to have my data to be encrypted on the fly before being rsynced to my storage box. And here is my solution.
Continue reading

I have a love/hate relationship with codeception. When it works, it’s my prince charming on a white horse coming to rescue me from the plight of testing. But ever so often it’s a convoluted and badly documented mess that wrecks havoc to my productivity as I frantically search the net for the one blog post that could help me out. Maybe this can be one those blog posts for somebody else. It’s about how to replace a service (i.e. with a mock) inside the symfony container in a functional test.

Continue reading

PHP’s “empty” function is a weird little fellow. Basically, it tests if a given variable exists and is not evaluated to false !isset($var) || $var == false And since PHP and has a unique interpretation of what counts as false, I try to replace it with a more explicit counterparts whenever possible. It still creeps up on me sometimes, in places long forgotten, written by a much less careful version of myself. Like a few days ago, when a colleague of mine walked into my office complaining about why our internal system didn’t except his CSV file anymore.

Continue reading

Two years ago, I got my wife pregnant. That’s one of those sentences, I never imagined saying. “I got somebody else’s wife pregnant”, sure, totally possible. But “my wife”? Still sounds weird. And it wasn’t by accident, either! This kid could not have been more planned, if it had been pre-ordered online.
Continue reading

Well, this is a wordy headline. But if you are running into this problem – like I did – you might search exactly for this and this is called effective seo or something. Here is the premise: You are using Vagrant, like any self-respecting developer would do and you also have soft spot for JetBrains products, i.e. PhpStorm, then you might want to start and stop vagrant directly from your beloved IDE. As you should! You paid good money to be spared from entering commands into a terminal.
Continue reading

In 2008, my girlfriend of that time (coincidentally my wife at the moment) and I decided to go on a little adventure of our own. We bought two Interrail tickets and vowed to see as much of Europe as humanly possible within the next four weeks. It was a disaster. The good kind. A disaster I will tell my children about, like “In 2008 I almost killed your mother by accident, by trying to catch a train. And then again by catching a wave with my body board! Oh, fun times…”
Continue reading

You might have noticed the lack of new content here (all three of you). It is not the usual loss of interest that comes so often after the initial rush of writing your own blog has faded. It’s because I had to leave the US of A on a pretty short notice. Like a four-day-notice. Contradictory to popular belief I wasn’t kicked out by the authorities after they have found about my “secret hobby”*. I got sick, my condition worsened and I wanted to get home to receive the treatment I needed, in the environment that I felt comfortable in. Besides that, as I mentioned here, I didn’t want to single-handedly bring down my insurance company with outrageous bills. It’s been a couple of very rough months, not only for me but also for the people around me. Some folks claim it’s because of Saturn being in the house of Ariel the Mermaid or something but I don’t believe in that sort of stuff. Also, Nasa has declined my wish to nuke that f*cker. So there is that.
Continue reading