out of time
mat brown on programming, politics, cooking, and assorted nerdiness
-
This is a good puppy.
Comments -
This is a good puppy.
Comments -
This is a reasonably good puppy.
Comments -
Voting rights
CommentsNon-driver ID cards in Wisconsin cost $28. Doesn’t that make this bill a poll tax? And isn’t that in violation of Section 10 of the Voting Rights Act, which is the law that enforces the 15th Amendment?
Just checking.
-
Using ENUMs with Rails
Great article by friend and former colleague John Crepezzi. John and I both think Rails developers should focus more on using databases as they were intended to be; Rails tends to move a lot of database-layer considerations (column lengths, “uniqueness”, nullability, relational integrity, etc.) improperly into the application layer. If you’re looking to take better advantage of the features your database already supports, this is a great place to start.
Comments -
This is a good puppy.
I mean, it’s really, really good.
Comments -
NewRelic metrics for Mongoid
CommentsThe rpm_contrib project provides a one-stop shop for monitoring lots of services commonly used in Rails apps. It’s got an instrumentation module for Mongoid, but unfortunately it doesn’t work (at least in Mongoid 2.0), because it’s instrumenting on methods on
Mongoid::Documentthat may or may not actually be called in the course of a query. Happily, we can add full instrumentation for Mongoid by adding traces to theMongoid::Collectionclass instead — this is the lowest layer of the Mongoid library before it starts making calls directly to the Mongo driver:Of course I’ll contribute this back upstream to rpm_contrib at some point, but until I find the time, feel free to enjoy the above.
-
This is a good puppy.
Comments -
This is a good puppy.
Comments -
http://xkcd.com/854/
Comments