by David Orriss Jr | Jun 10, 2012 | Mac OS X, Programming, Ruby
While tinkering with Ruby 1.9 in TextMate I found that Ruby was segfaulting on the TextMate Ruby Bundle output screen. /Users/codethought/Applications/TextMate.app/Contents/SharedSupport/Bundles/Ruby.tmbundle/Support/RubyMate/catch_exception.rb:16: [BUG] Segmentation...
by David Orriss Jr | Jan 27, 2010 | Programming, Rails, Ruby
I’m sure you’ve probably seen this question in your programming classes.. I decided I wanted to play with Ruby again and was remind of this problem, so thought it might be fun as a simple exercise to do this in Ruby. The problem is to take a long integer...
by David Orriss Jr | Jan 27, 2010 | Programming, Ruby
While I was getting some old Ruby code of mine out to convert ruby code to pretty HTML-formatted code suitable for blogging from Wolfman’s Howlings I got the following error: $ ./ruby2html.rb ./ruby2html.rb: line 9: require: command not found ./ruby2html.rb:...
by David Orriss Jr | Jul 22, 2008 | Mac OS X, Programming, Rails, Ruby
While I was playing with Rails 2.1 I decided to try the SQLite3 support that comes built into OS X instead of using MySQL. Upon trying to run a migrate command via rake I was created with: rake aborted! no such file to load — sqlite3/database After some digging...
by David Orriss Jr | Feb 13, 2008 | Rails, Ruby
I don’t know why this isn’t better documented or stated anywhere so I’ll just iterate it here. If you want to peruse the documentation for Rails and your installed Gems type the following gem server And in your terminal prompt you should see Starting...
by David Orriss Jr | Jan 4, 2008 | J2EE, Java, Rails, Ruby
Mongrel Developer/Creator, Zed Shaw, cut loose on the Ruby and Rails communities in a recent posting to his website. He gives some interesting insights into who the major players are, and cuts through some of the hype surrounding rails. While caustic in his delivery,...
by David Orriss Jr | Oct 20, 2007 | Programming, Ruby
My friend Lori noted a great way to Add to the Ruby Library Path. She also noted that I had no way to put comments on my blog. Users would get sent to a page telling them to log in, but I never provided the login link Fixed — check out the “Links”...
by David Orriss Jr | Oct 20, 2007 | Programming, Ruby
In Ruby not library management is not always as simple as running gem install. Some Ruby code is distributed simply as libraries. So where do you put these libraries? The clue is in the Ruby $LOAD_PATH variable. irb(main):001:0> puts $LOAD_PATH...
by David Orriss Jr | Oct 9, 2007 | Programming, Ruby
I just saw on the Codegear Ruby newsgroups that a vulnerability on the net/https library was reported. Basically the library doesn’t validate the server certificate CN (Common Name). You can read the details here:...
by David Orriss Jr | Sep 23, 2007 | Mac OS X, Ruby
I saw this article on formatting ruby code for blogs. Nice article, but the code is Linux/KDE-specific. Also, OS X threw an error about the order of the require statements. Being that I use OS X (and so should you) I needed to make a couple of changes to the code that...