Posts tagged on

Feb28

Ruby whenever and day of month crontab syntax

Ruby cron | comments

Whenever by Javan Makhmali is an excellent way to manage the cron tasks that relate to your ruby app. It provides a very powerful and readable ruby syntax for planning a job schedule.

Continue reading »

Sep02

JavaScript optional parameter hash with default values

default values javascript optional parameter hash | comments

I have dealt with optional parameters with default values in JavaScript plenty of times in the past. But for some reason it wasn’t immediately obvious to me how to create a nice options hash like I use so frequently when writing my Ruby code. It really is quite simple.

Continue reading »

Aug21

Five years old

consumption creativity work life balance | comments

This blog turns five today. Over the past year the blog has been relatively quiet, though I’ve put in a lot of time on a specific series of posts. I’m a little disheartened to see that the most frequently visited blog posts for the past year were all written in 2008 or 2007.

Continue reading »

Jul14

So you're motivated by a tech conference. Now what?

blogging conference futureruby motivation oss technology | comments

HTML parse error: 
<div class="flair">
  <img src="http://farm3.static.flickr.com/2613/3717759035_c0b60e1ca4_m.jpg" width="240" height="180" alt="Den Heinemeier Hansson" /><br />
  <div class="text-backing">&nbsp;</div>
Continue reading »

Jun30

Security of ignorance

career corporate world passion | comments

HTML parse error: 
<div class="flair">
  <img src="http://farm1.static.flickr.com/25/35198403_2c4f9921bc_m.jpg" width="240" height="180" alt="Ignorance is Bliss Road" /><br />
  <div class="text-backing">&nbsp;&nbsp;</div>
Continue reading »

Jan07

Hardware and software

office workarea workstation | comments

John Nunemaker at RailsTips recently asked the Tubes what hardware and software was being used to complete work. Here’s my rundown.

Hardware

Continue reading »

Dec22

Educating software developers

bjarne stroutstrup computer science software development software education | comments

HTML parse error: 
<div class="flair">
  <img src="http://farm4.static.flickr.com/3225/2473208638_fc748f5963_m.jpg" width="240" height="180" alt="knuth" /><br />
  <div class="text-backing">&nbsp;</div>
  <div class="text">Photo by <a href="http://www.flickr.com/photos/hvc/2473208638/">bitmask</a></div>
Continue reading »

Nov11

Announcing time warp ruby gem

change time gem rails ruby time manipulation time warp | comments

When writing tests, it is often desirable to bend time to test limits and edges of the day. It is especially useful to warp time to test results across the timezones of the world. Manipulating time is also useful to assure a day of the week, month or year every time the test runs.

Continue reading »

Nov03

Filter unwanted tweets from your Twitter stream

filter filtering fluid greasemonkey twitter | comments

Ever find yourself annoyed by frequent talk of elections, memes and kitty-cats on Twitter? I have created a user script to apply to your Twitter Fluid instance or Firefox Greasemonkey install to enable regex whitelists and blacklists for filtering out tweets in your Twitter stream.

Continue reading »

Sep17

Security of income

career corporate world employment income generation | comments

HTML parse error: 
<div class="flair">
  <img src="http://farm4.static.flickr.com/3117/2780063730_d5079ac01d_m.jpg" width="192" height="240" alt="Book : How To Use Internet To Earn A MAssive PassivBook : How To Use InBook : How To Use Internet To Earn ternet To Earn e Income In Your Pyjamas" /><br />
Continue reading »

Aug29

Windy City Rails

conference rails ruby | comments

HTML parse error: 
<div class='flair'>
<a href="http://www.windycityrails.org">
<img src="http://m.windycityrails.org/images/windycityrails_125.gif" width="125" height="125" alt="WindyCityRails - September 20, 2008 - I'm attending!" style="border:none;" />
Continue reading »

Jul15

Fixing slow rake on Leopard

mysql rails rake ruby ruby on rails | comments

HTML parse error: 
<div class="flair">
  <img src="http://farm1.static.flickr.com/96/225360722_8ef2a43077_m.jpg" width="240" height="160" alt="Hay Rake Third Version" /><br />
  <div class="text-backing"> </div>
  <div class="text">Photo by <a href="http://www.flickr.com/photos/jbat/">JBAT</a></div>
Continue reading »

Jun01

Presentation: an audience perspective

rails railsconf railsconf08 RailsConf RailsConf ‘08 Rails | comments

HTML parse error: 
<div class="flair">
  <img src="http://farm3.static.flickr.com/2032/2541589315_d20f683b6c_m_d.jpg" width="240" height="180" alt="Baked NYC" /><br />
  <div class="text-backing">&nbsp;</div>
  <div class="text">Photo by <a href="http://www.flickr.com/photos/peterhellberg/">Peter Hellberg</a></div>
Continue reading »

May28

RailsConf '08

rails railsconf railsconf08 RailsConf RailsConf '08 | comments

Just wanted to drop a note in my blog, here, that I will be attending RailsConf from Friday through Sunday. If any lurkers out there are gonna be in attendance, do drop me a note. Let’s meet each other!

Continue reading »

Mar29

ActiveResource HTTP basic auth with email address

ActiveResource Rails authorization | comments

As I’ve started to play around here and there with ActiveResource, I’ve noticed lots of complaints about how ActiveResource’s implementation of HTTP basic auth leaves a lot to be desired. Specifically with regard to its lack of support for email addresses as usernames. This won’t work:

Continue reading »

Jan02

Integrating Rails and WordPress

WordPress Ruby on Rails | comments

HTML parse error: 
<div class="flair">
  <img src="http://farm1.static.flickr.com/4/9183721_1ec8cf6ef4_m.jpg" width="240" height="180" alt="Mad code rewrite" /><br />
  <div class="text-backing"> </div>
  <div class="text">Photo by <a href="http://flickr.com/photos/zhartley/">zhartley</a></div>
Continue reading »

Oct22

Ruby console spacebar problems

Ruby Rails irb script/console readline spacebar problem | comments

Since early this summer, I have had a severely annoying problem with my Ruby consoles (irb and script/console). My spacebar quit functioning, making quick testing of Ruby and Rails functionality quite limited and in some cases impossible. I’ll give you two versions of my story. First the short version.

Continue reading »

Oct01

A model diagram for your Rails application

Ruby on Rails Rails model visualization data diagram class visualization class diagram Ruby on Rails Rails model visualization data diagram class visualization class diagram | comments

HTML parse error: 
<div class="flair">
  <img src="http://farm1.static.flickr.com/218/507682952_8b4eda2922_m.jpg" width="240" height="160" alt="51907_35.jpg" /><br />
  <div class="text-backing">&nbsp;</div>
  <div class="text">Photo by <a href="http://flickr.com/photos/always13/">always13</a></div>
Continue reading »

Sep12

Rails auto select text field tag

Ruby on Rails Rails Ruby on Rails Rails | comments

On a recent project, I needed to simulate the YouTube-ish text field selection box. You know the one where you can easily select and copy a link or embed code to send on to your friends. You click in the box, the text is automatically selected, and you can quickly copy the text.

Continue reading »

Sep05

TextMate find in project slow in Rails

TextMate Rails Ruby on Rails TextMate Rails Ruby on Rails | comments

Update: Don’t bother with the crap I spewed below. Just head over to Rail Spikes. There are a couple options if you read the post and comments.

Continue reading »

Aug29

Adding a mongrel instance to a Slicehost Rails app

Ruby on Rails mongrel Slicehost Ruby on Rails mongrel Slicehost | comments

HTML parse error: 
<div class="flair">
  <img src="http://farm1.static.flickr.com/204/524123975_bed8ab7cbb_m.jpg" width="240" height="160" alt="Cindy" /><br />
  <div class="text-backing">&nbsp;</div>
  <div class="text">Photo by <a href="http://flickr.com/photos/georgiap/r">caribbean</a></div>
Continue reading »

Aug27

Make sure to properly scope your Ruby mixins

Ruby on Rails Ruby Rails Ruby on Rails Ruby Rails | comments

HTML parse error: 
<div class="flair">
  <img src="http://farm2.static.flickr.com/1012/1025919868_ebf0df1a71_m.jpg" width="240" height="160" alt="Matt - rifle" /><br />
  <div class="text-backing">&nbsp;</div>
  <div class="text">Photo by <a href="http://flickr.com/photos/amagill/">AMagill</a></div>
Continue reading »

Aug21

Apple ain't all that all the time

Apple keyboard ergonomics Apple keyboard ergonomics | comments

I’m on a quest to build an ergonomic Valhalla in my workspace. It’s a grueling, tireless quest for a freelancer on a budget. Herman Miller just ain’t in the cards. But Office Max and IKEA are, as long as I focus on what I really need to be comfortable.

Continue reading »

Aug08

John Carmack on constraints

John Carmack constraints John Carmack constraints | comments

John Carmack, master of trial and error Continue reading »

Aug06

Rails maintenance page with images and styles

Ruby on Rails Apache Ruby on Rails Apache | comments

Recently I implemented a true maintenance page on Scrawlers using Mike Clark’s excellent HOWTO. Clark’s directions show you how to create a more dynamic maintenance page than the standard HTML version we all know and love. It’s a good technique.

Continue reading »

Jul30

Don't forget the return value on Rails callbacks

Ruby on Rails programming Ruby on Rails programming | comments

This morning I spent a good while hashing on a problem in some new code I’m updating for a freelance project. I added a couple callbacks to an ActiveRecord model, and things that previously worked were broken. Unfortunately there were no errors in the model or exceptions in the system to give me a hint as to what went wrong. When I finally uncovered the problem, I was thankful that it was something I had never run into before.

Continue reading »

Apr24

Minnebar and David Heinemeier Hansson

Minnebar BarCamp David Heinemeier Hansson Minnebar BarCamp David Heinemeier Hansson | comments

(Note: David Heinemeier Hansson detests being called DHH. So I will be referring to him as Hansson. As if that is any better.)

Continue reading »