-
Recent Posts
Recent Comments
- Mark Webb on Git For Windows Developers – Git Series – Part 1
- Cherif on Git For Windows Developers – Git Series – Part 1
- Jason Meridth on Git For Windows Developers – Git Series – Part 1
- sb22 on Git For Windows Developers – Git Series – Part 1
- Jason Meridth on A very good introduction to TDD, NHibernate, DDD, NUnit
Archives
- June 2011
- September 2010
- May 2010
- April 2010
- March 2010
- February 2010
- January 2010
- October 2009
- September 2009
- July 2009
- June 2009
- May 2009
- April 2009
- March 2009
- February 2009
- January 2009
- December 2008
- November 2008
- October 2008
- September 2008
- August 2008
- July 2008
- June 2008
- April 2008
- March 2008
- February 2008
- January 2008
- December 2007
- November 2007
- October 2007
- September 2007
- August 2007
- July 2007
- June 2007
- May 2007
- April 2007
- March 2007
- February 2007
- January 2007
- December 2006
Categories
- .NET
- Agile
- agile project management
- altnetconf
- apache
- apple
- ASP.NET
- ASP.NET MVC
- Automated Build
- Ayende
- bash
- blogging
- Blogs
- Books
- C#
- castle
- charity
- community
- Community Server
- continous integration
- Continuous Integration
- CruiseControl.NET
- Design Patterns
- DotNetNuke
- Events
- firefox
- friends
- funny
- gems
- git
- gitosis
- gitweb
- Good Finds
- Google Reader
- Hardware
- hosting issues
- howto
- htpasswd
- hudson
- Instant Messaging
- integrityapp
- JetBrains
- Kernel
- keyboard shortcuts
- Linux
- LosTechies
- members
- microsoft
- migrations
- Misc
- Mocking
- monorail
- movies
- MSBuild
- msdn
- MVC
- NAnt
- nginx
- NHibernate
- oauth
- Open Source
- Pair Programming
- Personal
- pragprog
- presentation
- principles
- Programming
- python
- rails
- rake
- ReSharper
- rspec
- ruby
- san antonio
- Scrum
- selenium
- selenium remote control
- shoulda
- slicehost
- SOLID
- ssh
- Stand-Up
- Subversion
- TDD
- TeamCity
- test::unit
- testing
- textmate
- Tools
- Ubuntu
- Uncategorized
- Virtual Machine
- Visual Studio
- vmware
- windows
- Windsor
- xkcd
- XP
Meta
Category Archives: ruby
Debugging Cucumber Tests With Ruby-Debug
Today I ran into a scenario where I needed to step through some ruby code and examine the state of various objects in my rails app. I’ve used the ruby-debug gem a number of times to do exactly this. However, … Continue reading
Comments Off
Making Mongoid Play Nice With Backbone.js
Backbone has some great features that make it dirt-simple to integrate with a Rails back end. For example, the Backbone models have a .fetch(), .save() and .destroy() method on them. These methods make a call back to your server, based … Continue reading
Comments Off
Partially Solving The Date Validation Deficiency Of Rails 3 And Mongoid 2 Models
A while back, I posted a question on stack overflow on how to properly validate a date input from a text field input, without throwing exceptions when the string provided is not a valid date. The core of the problem … Continue reading
Comments Off
Using ActiveSupport::Notifications and ActiveSupport::Concern To Create An Audit Trail
In my previous post, I outlined a scenario that needs to be audited for HIPAA compliance – a patient with a list of medications. Every time a medication is added, updated or deleted, an audit record has to be created … Continue reading
Comments Off
How do you handle simple pub-sub, evented architecture in rails apps?
I’ve been asking this question in various forms, via twitter, for a few days now. I’ve received a number of answers from people and have spent some time talking with Jak Charlton about the patterns that I would have used … Continue reading
Comments Off
A Couple Of Tips For Ruby Code Blocks
Ruby’s code blocks (a.k.a “lambdas” or anonymous functions in .net) are powerful little tools that get used everywhere, and for good reason. But, every now and then I run into a little trick or issue related to them. For example: … Continue reading
Comments Off
Sometimes It’s Better To Use A Ruby Hash Than Create A Custom Class
The Eloquent Ruby book talks about the use of hashes and arrays vs classes. One of the things it covers is how hashes and arrays are often used by experienced ruby developers in place of custom classes. Coming from a … Continue reading
Comments Off
Don’t Do Role-Based Authorization Checks; Do Activity-Based Checks
I’ve built a few dozen security mechanisms in my career. Unfortunately, I kept getting it wrong, hence the need to keep building them. Over the years, though, I learned a number of different ways that a security system can be … Continue reading
Comments Off
Mongoid: Polymorphic Find Or Create New On Embedded Document Collections
In the old v2.0.beta.20 version of Mongoid, I was able to call .find_or_create_by on an embedded document collection and pass a type as a second parameter to the method. This would allow me to create a document of a specific … Continue reading
Comments Off
Re-learning The Meaning of ! in Ruby Methods
Hugo Bonacci has been tweeting a lot about the Eloquent Ruby book, so I decided to pick up a copy. In spite in my year or two of working with Ruby, I still feel like a n00b most of the … Continue reading
Comments Off
