Wednesday, November 30, 2011


One of the most important features of any Linux distro, yet one of the most overlooked by many is the community surrounding it. I just want to go on record as saying that I have been using Linux for 10 years now, and I have yet to find a more friendly or helpful community as the folks surrounding openSUSE.

Tuesday, November 29, 2011

Textmate Themes in Sublime2 (Helping a reader)

I had a reader leave the following comment on my blog post about using Textmate themes in Sublime2:
Hi! I added a theme Railscasts in Sublime and noticed that she's somewhat different. In TextMate it looks softer and more pleasant, as if the color is applied a filter. In Sublime the same color more contrasting. Do not you know you are with what it can be connected and how to do so in Sublime it was like in TextMate? Heres screenshot -

I am usually pretty anal about such things myself, however I didn't notice the difference until it was pointed out, and I'm not really sure why it happens. I posted this in hopes another reader could help this fellow out.

Here is his screenshot from his comment (click for larger):

Here is the theme in Textmate on my Mac (click for larger):

Here is the theme in Sublime2 on my Mac (click for larger):

And here is the theme in Sublime2 under Linux on my home PC (click for larger):

They *all* look different to me, and I really have no answer.

Does anyone have any ideas to help out? 

Tuesday, November 8, 2011

Specifying Rails version when creating an application

As I've started working on multiple Rails apps on my machine, and using different Rails versions across applications, I've ended up with different versions of Rails installed. I've discovered a simple way to specify the Rails versions needed for an application when creating the application.
Format your command like this:

  $ rails _3.0.9_ new testapp

This will, for example create a new Rails app named 'testapp' with the Rails version of 3.0.9. You can verify by running $rails -v in the application root.

Sunday, November 6, 2011

Textmate Themes in Sublime 2

As if I needed another reason to love Sublime 2, I discovered I can import and use Textmate themes.

Here's how:

Go to Preferences  -> Browse Packages and put the tmTheme file in the User directory.
Restart Sublime 2
Then, go to Preferences  -> Color Scheme and it should be in there.

My favorite scheme is the theme created by Ryan Bates of You can find the theme on the 'about' page of

Friday, November 4, 2011

An editor that is simply Sublime

I have been a consumer of Free/Open Source software for going on 10 years now, and I love being able to use open tools whenever possible. I am also not particularly religious about it as some folks are. I'm an even bigger believer in using the best tool for the job.

Since I have started learning Ruby on Rails, I have tried out quite a few editors. Some free, some open some free but not open and some that aren't free or open. In other words, I've tried a few. I primarily use two platforms: Linux and OS X. Switching platforms doesn't bother me nearly as much as switching tools. In other words, I prefer to use the same, or very similar applications on both platforms. While I liked TextMate on the Mac, there was no TextMate on Linux (although the GMate project does a good job at making Gedit more TextMate-like). On the Mac side, I've also tried out BBEdit and TextWranger, neither of which struck any bells with me (and provided no Linux equivalent).

For most of the time I've been working with Ruby, I've been using the old standby, Vim. With Vim, I could use gVim on Linux and MacVim on OS X or Vim in a Terminal on either and feel equally at home on both platforms. While I have no real problem with fact I really love Vim, the problem is I only use about 1% of it's features and I've still only learned about 0.5% more that I don't use regularly. That leaves about 98.5% of the editor unusable by me, and I don't have time, nor do I need to take time to learn more...I have enough to learn with Ruby on Rails itself to devote a huge chunk of time to learn my main tool, the editor.

The other night, I was watching a very awesome intro to Rails screencast. I saw an editor in use during that screencast I hadn't heard of before: Sublime Text 2. Simply by just seeing it in action, I was very impressed with how elegantly simple, yet full-featured it seemed. If you check out the site, you'll see that you can evaluate it indefinitely (for now, at least), and if you decide you like it, purchase a license for around $60, which is I feel, a fair price for a powerful tool that helps you be more productive. Sublime 2 is available for all three major platforms (Lin, Win and Mac) and although I haven't tried the Windows version out yet, it feels (and looks) very similar across the Linux and OS X versions.

I'm still feeling it out, but it has some great features you can read about here.

Although I won't go into a huge amount of detail here (simply because I've spent probably only about 4 hours total using it so far), I'll mention a few of my favorite features:

  • Side by Side multi-pane editing
  • Built in automatic syntax highlighting for many languages
  • Autosave
  • Very customizable
I love the user interface - I can open a "folder" which gives me a side pane with a tree-view of my Rails project, and I can quickly breeze through multiple files, simply viewing them quickly or opening them in tabs. 

I really felt a lot more productive using it over Vim, and I'm going to continue evaluating it for a while, and see what I think, but I think my bank account is going to be $60 less full very soon.