-
Experimenting with Rails’ String Manipulation from ActiveSupport::CoreExtensions::String::Inflections
This is my experimentation with the string manipulation methods used [largely internally] in Rails. This is largely a repeat of the documentation here, but I did dig into pluralize/singularize and a couple of other examples more in depth. Look at [path to active_support gem version]/lib/active_support/inflections.rb for the full list of plural, singular, irregular, and uncountable…
-
Background on Mac OS X Lion Gets Stuck on Gray Linen Background and Menu Bar is Black
I’ve been having this problem intermittently when plugging in and unplugging my external monitor. I found a fix to the black menu bar that involved going into System Preferences->Desktop & Screen Saver and toggling the “Translucent Menu Bar” setting. However, my backgrounds were still the gray linen background. Upon further searching for that system, I…
-
Script to Change the Title of Your Terminal Window
I decided to create a small bash script to change the title of my current terminal window in bash on my Mac: change_title: #!/bin/bash echo -ne “33]0;” $* “07” The script then runs as: change_title Your title goes here.
