Articles

reverting files

This is a topic that is a constant source of confusion for many git users, basically because there’s more than one way to skin the proverbial cat. Let’s go over some of the basic commands that you’ll need to undo your work.

So, you just want to revert one file back to its original state:

git checkout

Mepisto to WordPress Converter

As a recent experiment, I tried converting a blog from Mephisto to WordPress. After some quick Googling, I found out that Jason Gill had already largely solved the problem.

Unfortunately, his solution didn’t completely work for me because I didn’t want to launch Mephisto to do it and I have an aversion with that much code in a controller. Even if it’s just going to be run once. Even if it’s just locally. I know, I have a problem. Anyway, I wanted to launch it from the command line also.

The Coming Decline of Rss and Atom

Ever since I discovered Bloglines some years ago, I’ve been hooked on RSS. I subscribed to a slew of feeds and treated it like a to do list, always trying to get it to zero. Subscribing to those feeds enabled me to see and learn about a lot of things I wouldn’t have seen otherwise.

stashing your changes

Stashing is a great way to pause what you’re currently working on and come back to it later. For example, if you working on that awesome, brand new feature but someone just found a bug that you need to fix. Add your changes to the index using

git add .

Or add individual files to the index, your pick. Stash your changes away with:

git stash

And boom! You’re back to your original working state. Got that bug fixed? Bring your work back with:

git stash apply

Selecting the locale for a request

Rails I18N gives you a way to translate your views and easily switch between different languages. However, you still need to set the locale for each request, i.e. you have to choose a method to select the right locale for a request. This can be done in various ways, depending on how you perfer it to behave. Here are some examples.

January

January

Building a Gem Using BDD(2009-01-09)

I wrote this article for the first edition of “The Rubyist”, and having left it a good set of months, I’m posting it here for your perusal.

The internet is full of tutorials and blogs on Rails, but lacking in the...

Give back to the community

In our latest client project, we make use of at least 20 open source projects, from our beloved Rails, to great testing frameworks like RSpec, to plugins like Paperclip, to server-side software like Passenger, and many more. While we are appreciative of the hard work that goes into creating those projects for the first 2 seconds after we find them, we often take these libraries for granted.

Rails Hackathon in Madrid

Last month some friends of mine organized a great event called Monsters of Ruby. The topic was Ruby without Rails, and the challenge was mix random technologies and create a simple web app, my teammates and I suffered with SproutCore, Ramaze and Sequel.

A sleep hack

A quick aside. I’m experimenting with the Everyman polyphasic sleep schedule for the next 3+ weeks.

Update: The experiment ended early, but was still very successful. Feel free to contact me if you’re interested in this sort of thing.

And Max ask how to find the user name? (Automatic Logon)

This answer varies depending on if you doing linux or windows.
The key is NTLM. If the client is coming from the local net, and part of a domain,
you can use NTLM based login, this is also know as Integrated Windows Authentication.

If you using NTLM to automatically logon, there is a nice plugin you can using with
mongrel on windows.

See my post
http://mentalpagingspace.blogspot.com/2008/12/rails-to-windows-integrati...

This is idea for light-duty applications hosted on a windows machine or vm. I use this when my

Things I mentioned in my Ruby Nation presentation | Rails Fire

Things I mentioned in my Ruby Nation presentation

I had a great time at Ruby Nation this weekend. After my presentation I got a number of questions asking about things I referenced during the talk. Here’s an attempt to point to some of them. If you weren’t there, you won’t have any context but feel free to follow the links anyway You might find something interesting.

My Book

Bureau of Labor Statistics Time Use Survey

Stockholm Syndrome

Karlheinz Stockhausen whose name I accidentally used when trying to refer to Stockholm Syndrome.

4d Database

John Coltrane

da Vinci Sketches

Eight Hour Burn

XP (Agile) Immersion

Pat Metheny – “Whenever young guys ask me what they should do to get better, I always say try to be the worst guy in whatever band you’re in. That’s the secret.”

I Will Teach You To Be Rich

Purple Cow

4-Hour Work Week

Wozzeck by Alban Berg

Drepung Gomang Institute (for whom we translated Hindi)

What Would You Rather Be Doing?

Ask Sunday – the company I mentioned that helped me with research

My exercise bike

Arduino – I used this to create the interface to my exercise bike

Gosu – The game library I used to write my exercise bike “game”

Building Games with Ruby – Andrea O.K. Wright’s presentation on game development in Ruby

You and Your Research – Richard Hamming at Bell Labs

Fixing Broken Windows: Restoring Order And Reducing Crime In Our Communities

The Pragmatic Programmer

Discussion Panel: Women in Rails

14 Worst Health Mistakes Even Smart Women Make – Referenced Harvard and University of Texas studies on the effect of the company you keep

How to Call Attention to Your Music – Derek Sivers free ebook

15 Things Kurt Vonnegut Said Better Than Anyone Else Ever Has Or Will