Snax

debugging with ruby-debug


over 5 years ago by Evan Weaver on Snax.
I wanted Rails-ish breakpoints in my standard, console-driven, unthreaded Ruby apps. For some reason I didn’t know how to do this. ruby-debug...

svn branching with 'sc'


over 5 years ago by Evan Weaver on Snax.
sc is a Ruby-based tool for managing subversion branches. It has some bugs, but it implements the exact feature svn needs the most. All together now: ...

benchmark


over 5 years ago by Evan Weaver on Snax.
The built-in profiler, and even ruby-prof, add a lot of overhead to the interpreter. This reduces their usefulness. If I don’t know why my program...

cgi.rb vulnerability hotfix


over 5 years ago by Evan Weaver on Snax.
I’ve constructed a hotfix for the cgi.rb vulnerability of yesterday. sudo gem install cgi_multipart_eof_fix --source blog.evanweaver.com First...

new cgi.rb vulnerability


over 5 years ago by Evan Weaver on Snax.
Another denial-of-service vulnerability has been discovered in cgi.rb’s multipart mime parsing. You can read Zed’s message about it here. ...

polymorphs 19


over 5 years ago by Evan Weaver on Snax.
Third time’s the charm. Thanks to Xardion and Agile’s efforts, more bugs were discovered in double polymorphism. But new tests that failed now...

easily stop double posts


over 5 years ago by Evan Weaver on Snax.
You have a comment form. Someone clicks it twice. Oh noes! Double post! In situations where the form triggers an abstracted behavior, a solution like...

inline rescue vs. respond_to? cage fight


over 5 years ago by Evan Weaver on Snax.
Which is faster? Inline rescue, or classic branching based on the respond_to? method? Let’s face them off. ding Download this, then run like...

has_many_polymorphs bugfix release


over 5 years ago by Evan Weaver on Snax.
Get version 18 from the usual place. now supports legacy primary key names (thanks Paul Wright) fixes a bug related to instantiating attributes...

allison released


over 5 years ago by Evan Weaver on Snax.
Allison version 1 is released. Please leave comments below. screenshot ...