MustModify Blog: Recent Posts

users and profiles

June 28, 2010
I find myself, yet again^n, considering users and profiles. Say you have the following models: - User - Doctor - Patient Of course, the concept of user is not the same as the concept of a person. User might be more accurately called Login, since it could be a bot or a guest login used by 100 various anonymous people. your views have access...


Why Ruby Complains about Nested Parentheses

June 28, 2010
Every time a dev asks me why Ruby doesn't like nested arguments without parens, I draw a blank, but I swear that it's an issue. Here's an example of the issue: --- ruby =link_to h @person.philosophy, @person.philosophy --- it seems really obvious right now. I'm not sure why I can't think of that when it's clinch time. Anyway, this can be the...


changing an agile ticket with user story and acceptance criteria from a traditional ticket

June 18, 2010
This is a real-life example of a ticket write by a client that I converted into an "agile" user story with acceptance criteria, provided for those who want to find out whether there would be value for them in transitioning and those who want to understand the differences between them. --- Title: Users can create a category from the Add Item...


dd_roundies fails for AJAX with IE8

June 14, 2010
Rounding things in IE8 is one of the biggest farses ever. After some research, I'm using dd_roundies. I won't explain how it works, because you don't deserve that kind of suffering. It seems to work for rounding objects in IE before the page is set to the "ready" state, but it's failing for me in ajax requests (and in fact any javascript that...


Getting started generating PDFs with Prince

June 11, 2010
Download and uncompress Prince: --- jw@gallifrey:~$ curl http://www.princexml.com/download/prince-7.1-linux.tar.gz -o prince.tar.gz % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 3879k 100 3879k 0 0 763k 0 0:00:05 ...


Session Data / Cookies don't persist in IE

May 21, 2010
Rails fails with 500 I spent at least six hours isolating this issue so I thought I'd save someone else some trouble. Say you have a site fu.com ... if you're doing any SEO work (or if you just want things to be clean) you'll 301 redirect all traffic from fu.com to www.fu.com. You can do this with Rails with a before_filter in your Rails...


[Valuable] parsing attributes

May 17, 2010
This post is me thinking 'out loud' about how to add custom parsing "ruby gem valuable":http://valuable.mustmodify.com In the past I ran into quite a few situations where I wanted to parse / process / format certain attributes as they came in. There seemed to be a lull in that so I hadn't implemented it, but now I find myself wanting it again....


using actual numbers with putty and vim

April 14, 2010
I'd been having troubles wherein I would try to use my numeric keypad in VIM but would get letters. Instead of 123456 I would get qrstuv. The fix for me was a putty setting... Terminal > Features > Disable application keypad mode should be checked. REFERENCE: "Putty numeric keypad...