-
Recent Posts
- Installing and running MacRuby (Ruby 1.9.2) on 32-bit Intel Macs
- Getting Sikuli Script working with Ruby(JRuby) on the Mac
- XML to YML conversion using ruby
- Recovering from Subversion checksum error corruption
- Acts as state machine with legacy database – (rubyist aasm)
- Executing the Unix find command to determine real file types from ruby
- Automatically creating . for Ruby Hashes
- Enhancing Streamlined Enumerations
- Realplayer streaming BBC to mp3 files
- Rails IDE – Komodo 4.1
Recent Comments
- blackrat on Rails IDE – Komodo 4.1
- blackrat on Rails IDE – Komodo 4.1
- mferrier on Rails IDE – Komodo 4.1
- blackrat on Rails IDE – Komodo 4.1
- paulbutcher on Rails IDE – Komodo 4.1
Categories
Category Archives: ruby
Automatically creating . for Ruby Hashes
I recently had to so some testing of an in-memory OLE object, which also allowed persistance to an XML file. The structure of the two (in-memory and in-file) were similar enough for me to look at XMLSimple, which creates a … Continue reading
Posted in ruby
Leave a comment
Enhancing Streamlined Enumerations
Recently, I’ve been looking at the Streamlined framework. For those of you who don’t know, Streamlined is an Ajaxified Scaffold currently under development. The edge version shows promise and is stable enough for my personal use as an administration tool. … Continue reading
Posted in rails, ruby, rubyonrails, streamlined
Leave a comment
Rails IDE – Komodo 4.1
I’m a great believer in free software, most of my systems are run using Apache, MySQL, Linux, and Ruby, as I’m sure quite a lot of you are running also. I’m also a great believer in the right tool for … Continue reading
Posted in rails, ruby, rubyonrails
5 Comments
Faster approach to identifying duplicates in a Ruby array
Not mine, this one. Came from bshow here a = [1,1,5,5,2,3,99,54,54,3,7,54,54,3,19] a.inject({}) {|h,v| h[v]=h[v].to_i+1; h}.reject{|k,v| v==1}.keys.inspect # => [1, 3, 5, 54]
Posted in ruby
Leave a comment
Ruby Fnord Generator – Part Two
In Part 1, I took you through the beginnings of the Fnord generator up to the point we could create Fnords using random words and optional parts of speech. This gave us a class Fnord which contained the following functions. … Continue reading
Posted in fnord, ruby
Leave a comment