fleshyorgans

Journal of a software engineer with a romantic heart

Ruby and processing character sets

Posting this because it’s been difficult for me to find resources on how to convert between different character encodings, such as Windows-1252 (cp1252) to UTF-8 or ISO-8859-1. It took me about a day to discover some of these libraries. Maybe I wasn’t searching for the correct keywords — dunno. require ‘iconv’ require ‘charguess’ # Reads [...]

Observation: Code cleverness == Bad

This is inspired by Ruby, but could apply to Perl as well. Situation: class with dynamic, on the fly class method definitions of the form What this does is defines some class methods role1_email_addresses, role2_email_addresses, etc on the fly. Works perfectly, until the first element returned in users is actually an empty email. This is [...]

InstantRails Bad!

According to Avira antivirus: C:\Documents and Settings\jonw\My Documents\Installs\InstantRails-1.3a-win.zip [0] Archive type: ZIP –> InstantRails/ruby/bin/ruby.exe [DETECTION] Is the Trojan horse TR/Spy.Ruby.Ka.2.C –> InstantRails/ruby/bin/rubyw.exe [DETECTION] Is the Trojan horse TR/Spy.Ruby.Ka.2.A [INFO] The file was moved to ’451431cd.qua’! I don’t know what’s up with that.

Snakes and Rubies

Adrian (left) and David (right) Yesterday, all the developers from work went to Snakes and Rubies, in Chicago. It was rather fun. This was a seminar/conference for Ruby on Rails and the Django framework for python. Adrian Holovaty is one of the three developers who created the Django framework for Python; initially for use on [...]

« go back
  • Follow me

  • Twitter

    Powered by Twitter Tools

  • RSS Tumblr Posts