Category: Tech Talk
Whenever I do or come across something that might be interesting for fellow nerds, I’ll post that here.
Debugging a vue powered electron app with webpack in Webstorm
QMK powered hand-wired numpad/macro keyboard on Linux
Kindergarten diseases and golang – How to learn something while you die
Making a somewhat secure remote backup for my Frankencloud using gocryptfs
Continue reading
Replace symfony service in a codeception functional test
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 readingAn empty string does not need to be empty. Just empty enough.
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.
PHP, Apache, and the session that could not die
I am not really a web guy, coming from an operating systems and Java background. But for some reasons, I’ve been working on a Symfony3 project for the past year. I learned a lot and developed a deep love-hate relationship with both PHP and JavaScript. They have their strengths and weaknesses and I can respect that. But man, the way Apache and PHP are configured is just evil!
Continue reading
How use Trac – the issue tracking system – inside Phpstorm’s tasks
I outed myself as a big JetBrains a couple of times over and I am still madly in love with almost everything they do, despite them not paying me one cent for this endorsement! Heck, I even have to pay for their products, these ungrateful bastards! Still, they are the best and usually I am very happy with their products. But even they screw up sometimes.
Continue reading
Vagrant, PhpStorm and the “sudo: no tty present and no askpass program specified” error
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