chen.do blog relaunch

It's been almost four years since my last blog post. A lot has happened since then! I've decided to relaunch my blog to contribute some things I've discovered or learnt that may be useful to other people. Most of these…

Simulating out of order packets on OS X

I needed a way to simulate out of order packets in order to try to reproduce an issue I've been seeing at work, and I figured out a fairly simple way that only involves ipfw which is built-in on 10.…

Python-like Docstrings in Ruby!

About six months ago, I watched Peter Cooper's Ruby Trickshots and learnt that Ruby has an interesting syntax that allows you to concatenate strings by simply placing them after each other. For example: "foo" "bar" # => "foobar" I quickly realised…

Running individual specs with RubyMotion

I'm testing parts of Shortcat (which as of v0.4.0 is in Objective-C) with RubyMotion, which is pretty nifty since I'm much more comfortable in Ruby than Objective-C and writing tests is way easier in Ruby. However, it's far…