If you’re trying to use a newer (e.g. 1.3.6) version of the ruby “gem” system to install ruby packages (like rails, rake, etc.) on a legacy system with an older (v. 1.9.0) ruby installed, you might find yourself running into problems like this: $ gem install rake ERROR: While executing gem … (ArgumentError) illegal access [...]
Posts under ‘bugfix’
Concentrating in History and Science at Harvard
This post was originally at my Harvard Law / Berkman Center blog, but has since been removed. Though it is certainly outdated with respect to the current practices and personalities of the History of Science department, it still may hold some value for prospective students. I originally wrote it as advice to my younger self, [...]
SWI-Prolog from MacPorts on OS X 10.5
Tried installing the binary of SWI-Prolog (swi-prolog-5.8.2-leopard-intel.mpkg) on my Mac OS X 10.5 box. For whatever reason, it was bombing out with some nasty errors (Libary not loaded … image not found). Read about others’ troubles and decided to try MacPorts. Couldn’t get SWI-Prolog to install using a standard: $ sudo port -v install swi-prolog [...]
CGI.pm hangs in read_from_client under Catalyst / TT
Aahhh. The joys of a Monday evening with the Perl debugger. I have a quite simple Web front-end to a relatively complex back-end system. The Web app is written in Perl with Catalyst as a framework, and Template Toolkit (TT) as the templating engine. Since we are smart-asses, we aped the Ruby on Rails “link_to” [...]
Create blank objects in Perl’s Class::DBI
Perl’s Class::DBI is something I’ve had a bit of a love-hate relationship with. It’s definitely been useful. And, like with Ruby’s ActiveRecord, it can sometimes rocket-propel you 10x with a development task. However, it’s got a lot of weird gotchas built in. One of them seems to be the inability to instantiate an object with [...]
Fixing Net::Google error with 404 File does not exist
I was trying to install Net::Google 1.0 using CPANPLUS on my Mac OS X 10.5 machine, and kept getting a pesky error: Service description ‘file:’ can’t be loaded: 404 File `’ does not exist One thing I had to do to fix it was install an apparent prerequisite, SOAP::WSDL. It wasn’t included by CPANPLUS. Another [...]
Entering a Hard Line Break in a Text Cell in Excel 2004 for Mac OS X
No cutesy commentary for once: The equivalent on Mac OS X of alt-enter for entering a hard line break within a cell in Excel is command-control-enter (open apple-control-enter).
wxPerl on Mac OS X must be run with special binary
If you are having trouble with your “hello world” wxPerl script on Mac OS X, check your shebang (#!) line and make sure you’re running /usr/bin/wxPerl (or which ever wxPerl you have) rather than merely /usr/bin/perl — the normal perl will display the main window but won’t allow interaction between the window and the interface [...]
Rails form_tag Changes in Rails 1.2
I recently updated my dev machine (Mac OS X) to the latest Rails gems, and was getting deprecation warnings for using form_tag in its old, non-block, pre-Rails 1.2 way. Then, in moving between my development and acceptance-testing boxes (you do have a mirror of your production environment running as an acceptance testing server before you [...]
God Help You If You Get Derailed: "Model is Deprecated"
The comprehensible but often superfluous model method in Rails is used in an ActionController to tell it about an ActiveRecord model that it ought to have loaded in order to have the AR classes available to it. It’s kind of got the feeling of a require or a use in Perl. It’s fairly straightforward to [...]