Subscribe

Archive for the 'ruby' Category

The GNU linker has some trouble when you present it with multiple library archives that depend upon each other. Libraries with symbols resolved in other libraries must be presented earlier on the command line. You can work around this with a command line argument:

“–start-group”, “–end-group”, aternatively “-(” “-)”

See the man page for LD for more [...]

Austin Ruby Meetup 1-17-2008

We had a good time at the meetup tonight. Steven and I busted out the laptops and shared some code and ideas. He had a nice rails app for learning Latin that supported a tagging architecture. I know next to nothing about rails so it was interesting to see the interactive console and scaffolding at [...]

Many wonderful things can be done with binary trees. One brilliant usage of the binary tree was proposed by David Huffman in 1951 at MIT which has since become the foundation for much of the compression technology available today. Huffman discovered a simple way to generate a provable minimal binary encoding given a set of [...]

Build a Binary Tree in Ruby

Building algorithms in ruby is fun and rewarding. This binary tree doesn’t balance itself but it is simple and flexible using ruby blocks for visit and insert. Traversal style can be selected optionally to visit with :inorder, :preorder or :postorder.

Here’s your basic binary tree node representation, it holds a value and connects to a left [...]

In ruby the default way to get a name to return a value is via ruby’s lexical scoping rules. Lexical scoping rules use the way the code is written to determine what a variable name means. You can read the code and understand what a variable will mean when a certain piece of code runs. [...]

I’m working on some ruby code today on a cleanly installed vim. I decided to improve my editing experience a bit and found some a couple enhancements that work quite nice together.

Evaluate ruby with the press of a button

You can see the source of this tip from the vim wiki. I find the last bit [...]

RubyCube on Ubuntu 7.10

I spent a few minutes on my new laptop with RubyCube. Since it uses GLUT as a foundation it was simple to port the extconf.rb to build on Ubuntu.

I’m going to have to wait until after we ship TR before I do any of the real work that I want to get done on RubyCube.

DSL-FSM.. that kinda sounds like some wierd internet sub-culture. It stands for domain specific language – finite state machine. I proposed both topics as presentation material for the austin-ruby group that I meet with once a month. Steven Harms the organizer recommended both/either so I combined it into one piece of code as it [...]

A new windows binary and source distribution is ready on ruby forge with inital support for sprites.  I also took this opportunity to fix a few small bugs and update the documentation. This also marks the first public upload of the master sources to ruby forge trunk. Although the sources are included in every release [...]

RubyCube on Mac OS X

I’ve been making small incremental progress.

First problem I ran into was:

objc: failed objc_getClass(NSObject) for GLUTApplication->isa->isa objc: please link appropriate classes in your program Trace/BPT trap

This was pretty easily fixed by making sure to pass ‘-framework Foundation’ to the linker.

The next issue I’ve run into and I don’t have a good solution for so far is the GLUT [...]

Next »