making the world a stranger place

Site menu:

Archives

Links:

Amazon Ad

Tags

Meta

ZOMG I’m Famouse!!!1oneone

For real. Sorta. I gave a lightning talk about God+Merb at this year’s Ruby Hoedown in Huntsville, Alabama. It’s not much, but here is my 5 min. rundown of what I’ve done to god, and how I use it. It’s available here from the confreaks website.

Source Code

View Video Online Here

Download Here

Tags: , , , , ,

model_stubbing makes testing easy

Jeremy McAnally has a post about model_stubbing that pretty much explains how to do what you need to do in your test to use it. It’s a pretty meaty post, and has a couple of tricks in it, so if you’re dying from fixture usage, check it out at omgbloglol.com.

Tags: , , , , , , ,

more Merb & God

Working on a web ui for God some more. I’ve moved the logs to their own pages. I also got some basic system information up on the index page, like uptime, os version, and disk usage. There is still no authorization, but i’ll work on that sometime soon. If anyone wants to help, i’d be more than grateful.

Tags: , , , , ,

God + Merb = Awesome!

I hacked togeather a simple webUI for god this weekend, and it’s now in alpha stages. It will start, stop, Monitor, Unmonitor, and Restart services, and also give logs for the past 5 min. It’s powerd by merb, and is actually my first foray into merb, having used rails for the past 2 years. Read more »

Tags: , , , , ,

Apache 2.2 +mod_balancer, Rails and You

At work, we have a couple of internal applications powered by Ruby on Rails, such as our jobs board, and our customer management system. We use several technologies to make sure that our internal applications have 99.999% uptime. Over the next few weeks, I’m going to go over some of the things that we use to keep our uptime high and ease of development…umm…easy. Read more »

Tags: , , , , ,

My 5 Favorite Rails 2.1 & Edge Features

http://walksalong.wordpress.com/2007/05/08/bruce-on-rails/Rails 2.1 has certainly added a wealth of features for developers using the framework to take advantage of. There are enough improvements in 2.1 and edge Rails that no developer type should be unhappy… well, not for the next few weeks or so. Some features, such as Time Code based migrations, will make it eaiser to keep teams of developers from stepping on each others toes, while others, such as named scopes will keep complex conditional statements out of the way of view and controller code, making things easier to read and digest when looking at someone’s work.  There are also additional features for scalability and deployment that will make all of our lives eaiser.

Read more »

Tags: , , , ,

RSpec Stories On Rails

Congrats on Passing that Test SuiteUsing a story to drive your development tasks is a good idea, even when there is only 1 team member. Writing stories helps you stay focused on the requirements without getting side-tracked into something that isn’t working toward the end goal of your app. There’s always time for script.aculo.us later! Using RSpec stories also means you have tests to run against your code so you know that fixing something probably didn’t break something else.

First thing you want to do is get the RSpec on Rails plugin installed, and generate the RSpec code.

$ ./script/plugin install git://github.com/dchelimsky/rspec.git
$ ./script/plugin install git://github.com/dchelimsky/rspec-rails.git
$ ./script/generate rspec

Stories are broken down into 2.5 files:

  • 1. The Story file - Where the plain text story resides
  • 2. The Step file - Where the different steps in your story are defined.
  • 2.5 The Story runner file - The ruby code that kicks everything off.

Read more »

Tags: , , , , , ,

Compiling MySQL Native Bindings on OS X + MacPorts

 Playing around with the partitions on my mac yesterday, i accidently deleted the efi partition (dumb of me, i know), but I figured it was about time for a reload, so i just sucked it up and wiped the mac clean. 

Going through and installing all the stuff i needed for development, i ran into a problem installing the native mysql bindings for ruby.

Read more »

Tags: , , , , ,