'ruby' Tag

  • Annoyance, colored diffs in perforce

    February 1, 2010

    Quick one-off here, let’s begin. Git has nice colored diffs, like this: Perforce does not: A simple script can remedy this: Here’s the script: Simply drop it somewhere in your $PATH and use it like so: p4 diff | p4c.rb You can find it in my one-offs directory (it’s called p4c.rb). We recently switched from […]

  • Process pooling with a Rinda Tuplespace

    August 25, 2009

    I going to talk about how I’m doing the process pooling in Forkify in this post, so let’s get started. Feel free to look up the code or fork the project from the Github Forkify project. The case for pool forking So, why even do pooling instead of serial forking? Let’s look at an example: […]

  • How to run FastRI on Ruby 1.9.1

    July 6, 2009

    Alrighty, FastRI is a sweet program written by Mauricio Fernandez (of eigenclass.org, which is down currently for some reason) for doing RI (Ruby Documentation) lookups very quickly, it supports doing all sorts of neat things like running a DRb server for lookups and other cool things Anyway, if you found this, you probably don’t want to […]

  • Forkify 0.0.1 Ruby gem released, threadify with processes

    June 24, 2009

    I’m happy to announce the release of another tiny Ruby gem, Forkify. Forkify is basically Ara Howard’s Threadify (minus a few features), but instead of using threads, it uses fork to create multiple processes to perform the operations on an Enumerable type. It was born out of the desire to have the forkoff gem work […]

  • Nesting traps in Ruby with a quick monkeypatch

    June 9, 2009

    If you end up messing with traps a lot in Ruby, you’ll find that they don’t unbind when leaving function context, so you’re either stuck ‘ensuring’ that the trap is replaced by the old trap, or just dealing with it. Well, here’s a quick monkeypatch for adding a method that will do all the ensuring/retrapping […]

  • Labview_rails and development motivation

    March 19, 2009

    Alright, my wife has been trying to convince me that I should share the one-off I wrote for our internal lab management, so today I finally got around to fixing the last *major* bug in the system, and putting it up on github. Yep, that’s right, you too can have a quasi-specialized lab management Ruby […]

  • From Newsbeuter to Instapaper with the Ruby RicePaper library

    March 3, 2009

    I love Instapaper, a truly elegant solution without any needless over-architecting. I use it every day, for queuing up articles to read during a lull in the workflow around here. However, I’ve had an extra step in my article reading, see I read my RSS feeds in Newsbeuter, so I normally have to open the […]

  • Installing HyperEstraier Ruby bindings with Ruby 1.9.1 (RC1)

    January 9, 2009

    Lately I’ve been doing a lot of coding around an awesome database called Hyper Estraier, which allows me to create large inverted-index databases to search over very quickly. I have also been playing around with the new Ruby RC release for version 1.9.1. In an effort to get some current code running, I found that […]

  • NSM-Console version 0.7 release

    April 27, 2008

    First off, I apologize for the lack of posts here lately, I’ve been trying to come up with something good to post, because I’m just not a fan of rehashing things other blogs post, or commenting on news stories. Hopefully I’ll be able to contribute more soon Now down to the real post, NSM-Console 0.7 […]

  • Yahsnarf – Sniff Yahoo IM conversations

    April 3, 2008

    Remember way back, when I released Aimsnarf? Well, it turns out that people were interested in one for Yahoo IM, so I’m happy to present Yahsnarf, the Yahoo messenger sniffing script. You can download the script on the yahsnarf project page. Yahsnarf requires Ruby, ruby-pcap and bit-struct (Thanks Matasano for introducing me to bit-struct, made […]

 
Powered by Wordpress and MySQL. Theme by Shlomi Noach, openark.org