Technology Errors

Compiling ruby on OS X 10.5: readline.c:703: error: ‘filename_completion_function’ undeclared

When compiling Ruby 1.8.6 (in this case, p287) on OS X 10.5, you may encounter an error similar to the following: readline.c: In function ‘filename_completion_proc_call’: readline.c:703: error: ‘filename_completion_function’ undeclared (first use in this function) readline.c:703: error: (Each undeclared identifier is reported only once readline.c:703: error: for each function it appears in.) readline.c:703: warning: assignment makes…

Technology Insights

rails 1.2 default charset override

Ruby on Rails 1.2 and above automatically set a Content-type header including charset=UTF-8, which is well and good if you’re designing an application from scratch – JoelOnSoftware has a good introduction to character sets, for those who need a refresher – but breaks things in subtle ways if you are upgrading a legacy Rails 1.1…

Technology Insights

Purge FireFox cookies for a site

Frequently it is convenient, when testing and debugging (or even just when browsing normally), to purge all of the cookies for a particular site. Although it is possible to do so through FireFox’s cookie manager (accessible through Preferences, Privacy, “Show Cookies”), it is much easier and quicker to use the aptly named [Remove Cookies for…

Technology Insights

python introspection for unittests

Having a framework to automatically run all of your unit tests is important, but in a strongly dynamic language like Python, it can be difficult to find all of the tests to run in a batch. [nose][] makes the whole process much easier, by automatically finding all modules containing unittest.TestCase subclasses, allowing nonsubclassed simple test…

Technology Insights

pgtop – postgresql monitor like mytop

Any administrator who is responsible for one or more MySQL servers has probably run across the indispensable [mytop][], but a similar tool for PostgreSQL is less well known. However, Cosimo Streppone has ported and converted [mytop][] to [pgtop][], a Perl package to provide the same functionality – monitoring of threads, performance, reads and writes per…