I’ve been researching an alternative tech stack to PHP for small web applications, looking for one which can make React-quality front ends, but without having to maintain the client-server split and API middleman. Partly out of intellectual interest, And partly out of dissatisfaction with the low level of real-time interactivity provided by some apps I maintain which are still powered by PHP and Bootstrap.… Read the rest
Reading PHP serialized data quickly in a Linux Terminal
Here’s a quick script for reading a data file containing serialized data generated by PHP, and outputting it in a human readable format to a Linux command line interface. A short web search found no existing utilities for achieving this, so hopefully it will be useful.… Read the rest
Whitelisting subdirectories using Git’s .gitignore
Git’s handling of directories and wildcards doesn’t follow bash conventions. First glance at a .gitignore file can easily mislead you into thinking that typical directory references will work recursively and allow whitelisting of many directories at a time. But directories don’t really exist for Git, or at least not as you’d expect.… Read the rest
Fix Firefox fullscreen video bug on Gnome 3
Does this sound like a familiar scenario?: You’ve found your favourite Seinfeld clip, you’ve waited for it to buffer, you’ve clicked fullscreen mode, swiftly alt-tabbed to check your mail (the thousandth time today), switched back into Firefox, clicked fullscreen again, only to find the comedy genius’ face has vacated your screen, or frozen, glass-eyed and unanimated, as the sound plays on?… Read the rest
Tip: Fix Composer package 404 errors with continuous integration servers
Is PHP’s composer package manager pulling in dependencies successfully on your development machine but failing on your continuous integration server? In my case, Drone.io, the young, ludicrously simple CI platform, was failing in setup of a PHP project because of strange 404 “Not found” errors.… Read the rest