'ruby' Category

  • 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 […]

  • 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 […]

  • Rebuilding TCP streams with Ruby part 2: fuzzysort

    March 19, 2008

    This is part 2 of a series on rebuilding TCP streams using Ruby, for more information, visit the previous post: Rebuilding TCP streams with Ruby part 1: fuzzymatch In my previous post, I talked about using fuzzy sequence/acknowledge numbers to split a network capture file into streams. Using fuzzymatch was pretty successful for cutting streams […]

  • Rebuilding TCP streams with Ruby part 1: fuzzymatch

    March 11, 2008

    I have undertaken the (not so small) task of attempting to use Ruby to rebuild TCP data streams. I was originally planning on using ruby-libnids, but after running into considerable trouble with dynamic library linking on OSX, I decided it’d be a good experiment to write my own. This is not a small feat. In […]

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