Complement and partial in javascript

I started learning Clojure last week using the online book "Clojure for the brave and true". (If you are doing the same and having trouble with getting the REPL working in Emacs then see this post on the Google group.) Clojure is the first functional programming language that I have…

Light Table: Edit file in split window

This is a handy but not necessarily obvious command in Light Table: File: Open another view of the current file It is especially useful when used with: Tab: Move tab to new tabset I failed to find "Open another view" through many minutes of using Google search for two reasons…

Google spreadsheet, jsapi Datatable, header row

Embedded in google's visualization jsapi is a simple way to grab data from a google spreadsheet. The data is captured in the form of a DataTable. Google's dev docs mention this in the context of using their charting/visualisation library but it is such a simple way to maintain and…

Silent failure to catch exceptions in PHP

Just a quick post to mention an annoying PHP gotcha and the solution. (I'm using PHP 5.5.) If you write code that is not in the root namespace, and if you write a try-catch block, the catch block will never execute unless you write a use statement to bring…

How I learn stuff

Ashley McNamara wrote a blog post in which she described an almost pointless coding course that she attended and paid a lot of money for. I had a similar experience a long time ago. I'm writing this post because Ashley asked me for my 'opinion on what the “right” way…

How to secure PhpMyAdmin on your local network

If you're developing web applications on a *AMP stack then you may well have PhpMyAdmin installed, even if you're not using it to manage your databases. Unlike your deployed websites, your local ones are not advertising their existence, but they may still contain sensitive data. When did you last take…