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
Category: Web development
Firefox 10 and Firefox 17 side by side
An enterprise-y web application that I'm using does not work with Firefox 17, Chrome 23, or IE 9. Accordingly, I've done the usual dance and installed Firefox 10 to run side by side with Firefox 17. By default, you can't open Firefox 10 while Firefox 17 is running and vice versa. There's a way around … Continue reading Firefox 10 and Firefox 17 side by side
Pixel-pushing in canvas
How to access web console from Greasemonkey userscripts
Userscript for faster deletion of MediaWiki spam
A couple weeks ago I posted a userscript that makes banning MediaWiki spammers easier by setting good defaults for the user ban form. Since then, I've had to ban a lot of spammers, so I thought I should remove another point of friction. For some reason, MediaWiki chooses to not provide direct deletion links on … Continue reading Userscript for faster deletion of MediaWiki spam
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
setTimeout() require qualification
Disabling PHP in a specific directory
To disable the PHP processor in a given directory, put the following in an .htaccess file. If one doesn't exist, create it. # Disable PHP AddHandler default-handler php RemoveType application/x-httpd-php php # Make .php files display as plain text AddType text/plain php This assumes an Apache server. PHP on IIS may involve different steps. Files … Continue reading Disabling PHP in a specific directory
ERROR: Failed to build gem native extension.
I ran into a tiny pickle while installing the ibm_db gem on Ubuntu: Select which gem to install for your platform (i486-linux) 1. ibm_db 0.9.5 (ruby) 2. ibm_db 0.9.5 (mswin32) 3. ibm_db 0.9.4 (ruby) 4. ibm_db 0.9.4 (mswin32) 5. Skip this gem 6. Cancel installation > 1 Building native extensions. This could take a while... … Continue reading ERROR: Failed to build gem native extension.