Just installed the XML-Mapping Gem (http://xml-mapping.rubyforge.org/) and kept getting a require error every time I tried to use it. /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require’: no such file to load — xml/mapping (LoadError) Everything seemed okay, until eventually I noticed that the Gem files themselves were rather restrictive on permissions – owner read and write only. So I had [...]
Since I’m forever forgetting my Oracle command line stuff, a note to myself for the most common things: Logging in sqlplus database_user@host Will then be prompted for the password. Oracle being more user orientated than databases like MySQL where the separation from user and database is very distinct. Exporting to a file Saving the output [...]
Just found this rather nifty little network traffic monitoring tool. From the blurb… vnStat is a console-based network traffic monitor for Linux and BSD that keeps a log of network traffic for the selected interface(s). It uses the network interface statistics provided by the kernel as information source. This means that vnStat won’t actually be [...]
Since I was busy explaining how to do this to people at work yesterday I thought I might post it here. The problem encountered involved copying a 5GB file from a Mac to an external drive (to move it elsewhere), the drive in question was formatted with Fat32. They therefore hit the 4GB file size [...]
One problem it took me ages to spot was that my test database wasn’t up to date with my migrations and therefore my tests kept failing for no obvious reason! So remember to: rake db:test:prepare To ensure the test database is up to date with migrations, etc.
Sometimes it’s useful to be able to extract the attachment from an email when you’ve just got the plain text (well the encoded attachment) file to hand. You can make use of OpenSSL to decode the attachment data. Copy the encoded attachment bit of the email into a new file and use openssl thus: openssl [...]
© Chillibear | Theme DePo Skinny | Header image from: Andrews, William: 'Curiosities of the Church: Studies of Curious Customs, Services and Records' (1891)