A Brundage Web-log

Things Adrienne & Dean Do, Think and Write

Browsing Posts in Brewsession

It is a pretty well known fact that using javascript to add decimals 0.1 with 0.2 does not result in 0.3. [1] Try it yourself with the FireBug console. For the uninitiated, the problem stems from javascript’s internal representation of numbers. They are actually binary numbers that are usually exact, but sometimes for example, are [...]

acts_as_commentable is a nice little ruby on rails plugin. It extends your ActiveRecord classes giving them comments. We are going to use comments on all kinds of things, starting with recipes, of course. However, AAC lacks a critical feature: the ability for users to approve comments before they are displayed. In this post I am [...]

I was extending acts_as_commentable and needed a good RSpec test to check the returned objects from its finder methods belonged to the correct user. For example, Comment.find_comments_by_user( :some_user ) should all belong_to :some_user. I’ll be darned if that doesn’t look like a RSpec description. Since there is no all_belong_to matcher, I wrote one. module ActiveRecordValidations [...]

Login, Signup We are presented with these quick forms all the time. While it is easy to create standard login and signup pages, Amazon.com has a good one: What makes it good? First of all, the prompts are written in plain English. Amazon sells to a wide slice of the population, meaning that about 15% [...]

My wife got an offer to do her Forensic Entomology PhD at Texas A&M university. It is her dream job to teach and do Forensics work, and since I work from anywhere we packed up and moved to Bryan. We arrived a week ago, signed a lease, dropped off the dogs and cats and headed [...]

Hi Reader, I am going to tell you the truth. I was not looking forward to writing the javascript necessary to get BrewSession going. For one thing I am a stickler for strict separation of behavior and content. Cascading Style Sheets are great because they keep the page content from getting lost in the necessary [...]

Hi Reader, Before I get to a serious post I want to share two things in the forefront of my mind. If you like my writing I have a personal brewing-related blog at the home of my brewery. Secondly, I discovered an enchanting bitter at Magnolia a few weeks ago. Sadly, San Francisco is an [...]

Hi Reader, It has been a little while since an update, but do not get the impression that we are slacking off here.  Greg and I will put up some calculators for you to break.  Keep an eye on this blog. –Dean

Hi Reader, Has it ever occured to you that your brewing software should be smart enough to figure out what type of recipe you are composing? It bothers me that I have to change this for every recipe I make. Now, with a few simple rules BrewSession will determine if you are making an all [...]

Hi reader, When BrewSession goes live we should have an automated brew-day timeline generator! What does that mean? Once you create a recipe there will be a link to the timeline which will analyze your recipe and try to intelligently list the steps you should take to brew it up. The boil is easiest and [...]