Evan Weaver

has_many_polymorphs bugfix release


over 11 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...

inline rescue vs. respond_to? cage fight


over 11 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...

easily stop double posts


over 11 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...

polymorphs 19


over 11 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...

new cgi.rb vulnerability


over 11 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. ...

cgi.rb vulnerability hotfix


over 11 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...

benchmark


over 11 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...

svn branching with 'sc'


over 11 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: ...

debugging with ruby-debug


over 11 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...

allison 2 released


over 11 years ago by Evan Weaver on Snax.
Allison version 2 has been released. Get it here. what’s new? There are no style changes; however, Markaby is no longer a dependency. Markaby...