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
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 reading
An 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
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.
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.