libdb2.so.1: cannot open shared object file: No such file or directory – … ibm_db.so

Got this error while deploying a Rails app on Nginx: libdb2.so.1: cannot open shared object file: No such file or directory - ... ibm_db.so This means that the ibm_db adapter is installed, but it can't find the DB2 libraries. The issue is that IBM_DB_HOME and some other environment variables are not set. The best solution … Continue reading libdb2.so.1: cannot open shared object file: No such file or directory – … ibm_db.so

TypeScript’s doomed embrace of JavaScript

Microsoft recently announced TypeScript. From what I can tell, it's Javascript with optional types. The type annotation syntax is the same as in Adobe's ActionScript and in the sadly defunct ECMAScript 4. TypeScript also includes a new class syntax based on the one proposed in ECMAScript 6. I'm dubious about the addition of class-based features … Continue reading TypeScript’s doomed embrace of JavaScript

How to access web console from Greasemonkey userscripts

Userscripts are helper Javascript programs that you can add to your browser to automate and optimize the web pages you visit. Greasemonkey is a Firefox extension to run userscripts. The web console is a tool built into Firefox and other browsers that can be helpful during userscript development. How can you access the web console … Continue reading How to access web console from Greasemonkey userscripts

Userscript to make banning MediaWiki spammers easier

Somehow, I've come to be responsible for administering two MediaWiki-powered wikis. The main burden is having to ban spammers, which sometimes sign up in batches of 20 at a time. To help with process, I've put together the following browser userscript. On Firefox, you can easily set it up using the Greasemonkey extension. Opera and … Continue reading Userscript to make banning MediaWiki spammers easier