Evan Weaver

smart plaintext wrapping


~12 years ago by Evan Weaver on Snax.
Very often you need to break plaintext at a specific width while retaining readability. However, it is easy to get caught up in fencepost errors and similar...

signpost method aliasing


~12 years ago by Evan Weaver on Snax.
“Signpost method aliasing” is a technique you can use to get global-like behavior while preserving clarity. Instead of having a global flag...

learn the top 1 best way to improve any ruby/rails project!


~12 years ago by Evan Weaver on Snax.
hire me! Well, maybe it’s not the single best way. It’s an excellent way, though. I am available for hire. See the about page, as well...

coming soon, double polymorphism with activerecord


~12 years ago by Evan Weaver on Snax.
I am going to add doubly polymorphic associations to the has_many_polymorphs plugin. They will continue to support self-reference and directionality. possible...

anatomy of an attack against 1.1.4


~12 years ago by Evan Weaver on Snax.
Some people are still unclear about where exactly the flaws in the 1.1.x release series were, how they could be exploited, and what the patches did (or...

explanation of the rails security vulnerability in 1.1.4, others


~12 years ago by Evan Weaver on Snax.
introduction Core team discovered a security vulnerability in recently released 1.1.4, and then came to the conclusion, same as I did, that 1.0 and some...

gem error


~12 years ago by Evan Weaver on Snax.
eweaver@bob-ubuntu:~$ sudo gem install rails --include-dependencies ERROR: While executing gem ... (Gem::GemNotFoundException) Could not find actionpack...

a little baby ruby poem


~12 years ago by Evan Weaver on Snax.
A little Ruby poem, engendered during a discussion of how to run a block at fixed time intervals (like cron). gem install activepoem class Fixnum...

make polymorphic children belong to only one parent


~12 years ago by Evan Weaver on Snax.
What is the best way to set up a polymorphic collection such that a child is only allowed to have one parent? WheeledOne asked this recently in #polymorphs...

bee, a simple bugtracker


~12 years ago by Evan Weaver on Snax.
I am extremely proud to announce Bee: Bee is a simple bugtracker with an integrated blog, designed for small to medium-sized projects, with customer...