Jim Roepcke's weblog have browser, will travel (est. 1999)

28Feb/06Off

Set up Rails on my PowerBook, just ’cause I can

Yesterday I read about Locomotive on Rafe's blog. I had never done Rails (or Ruby) before, but many friends have been trying to turn me on to it. I decided to try Locomotive because I wanted to see how a popular web platform tackled a self-contained web development environment on Mac OS X, having done it myself for Plone.

Locomotive is a nice package. Even simpler than the Plone installer, you can drag-and-drop the environment anywhere on your hard drive instead of being forced to use the installer package to put the environment in /Applications (this is a Python/extensions limitation, not inherent in the packaging of the Plone installer). There's also a nice, simple GUI Rails instance creator and controller. I've wanted to do one of those for Zope/Plone for a while but haven't had the motivation.

Mere hours later, the Apple Developer connection released an article about setting up the Rails stack, from source, on Mac OS X.

Apple Developer Connection: Using Ruby on Rails for Web Development on Mac OS X

I went through the process, and was very happy with the result. Everything worked the first time, and I was able to follow the first few steps of the tutorial to build a tiny web application.

That said, I have zero interest in doing Rails development (nay, web development) right now or any time soon, I've got bigger fish to fry so this is where I'll sit with Rails quite a while.

In advance, I'll tell you the thing I like least about Rails development. In a word, "generate". I don't care how human-readable-and-writable generated code is, it's almost always a bad idea. There are so many files generated in a new Rails instance that look like they shouldn't exist or should only contain one like of code by default. Add a rule engine to Rails and use rules to customize pages instead of explicitly changing templates you've got something that excites me.

28Feb/06Off

Just took a "caffeine nap"

Achieve-IT!: How to Take A Caffeine Nap

"The Caffeine Nap is simple. You drink a cup of coffee and immediately take a 15 minute nap. Researchers found coffee helps clear your system of adenosine, a chemical which makes you sleepy. So in testing, the combination of a cup of coffee with an immediate nap chaser provided the most alertness for the longest period of time. The recommendation was to nap only 15 minutes, no more or less and you must sleep immediately after the coffee."

I read about this a couple of weeks ago but this afternoon was my first need for it. I had last week off of school and didn't get my sleep habits back to normal before school started again this morning. I got to bed at 2am this morning and had to get up at 8:30. Six and a half hours is good for most people but I need eight hours to feel rested.

Mix lack of sleep and the first day back to lectures after my brain took a vacation and I was done by the time I got home. I poured myself a glass of Pepsi (I don't have or drink coffee), and downed it standing next to my bed and then immediately took a nap. I couldn't fall asleep right away and didn't feel good after 15 minutes so I stayed down for a few extra minutes. I've been awake now for 20 minutes and I feel extremely alert. I wonder how long this will last. :-)

Homework time!

Roepcke Computing Solutions

Jim Roepcke specializes in development and mentoring for iPhone and Mac OS X / Cocoa, WebObjects, and Python.

Contact Jim for more information.

Archive Calendar

February 2006
S M T W T F S
« Jan   Mar »
 1234
567891011
12131415161718
19202122232425
262728293031  

Blogroll

Saved Searches

Willing to Fail

Jim Roepcke is Willing to Fail

WebObjects book

I co-authored this book

Badges

Proud Member of the Association for Computing Machinery

Listed on BlogShares

Blog Directory - Blogged

Recent tweets

Meta