Code, Strings, and Keys

    • About Thomas Powell
    • Account
    • It’s been [0] days since [program] last updated
    • Login
    • Password Reset
    • Pianist / Accompanist / Music Director Resume
    • Reading List 2025
    • Register
    • Running Gear – Shoes, Treadmill, and Bandages
    • Site Map
Illustration of a bird flying.
  • 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…

    November 1, 2012
  • 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…

    October 31, 2012
  • 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.

    October 30, 2012
←Previous Page
1 … 85 86 87 88 89 … 317
Next Page→

Code, Strings, and Keys

Proudly powered by WordPress