BLOG: Mitch Wilson, Austin TX

July 2, 2009

undefined method `install_gem_spec_stubs’

Filed under: Geek Out — Mitch Wilson @ 1:02 pm

If you know what the title of this post means, I’m sorry you are having trouble running rake in your rails project. If you have no idea what I’m saying, consider yourself lucky and move on.

Not a big deal, in the end, but just another pain in the butt that needs fixing. While updating my project from rails 2.0 to 2.3.2 I was greeted, right on cue, with exactly what I expected: an error. Rails is great but it can be love-hate sometimes.

Turns out that when running rake rails:update, to update to rails version 2.3.2, the new boot.rb file is not copied into your project’s config directory.

To fix, simple copy  vendor/rails/railties/environments/boot.rb to config/boot.rb, overwriting your existing config file.

I also found that I was completely missing the initializers directory in my project’s config directory. So I got those files as well by creating a new rails project and copying the whole config/initializers directory into my config directory.

May 16, 2009

List of states as PHP array

Filed under: Geek Out — Mitch Wilson @ 4:31 pm

Here are two PHP arrays: states and states_short. Use either of these to populate a select element drop down list used to select the state in an HTML form.

Copy, paste and enjoy!

$states_short = array(
'AL'=>'AL',
'AK'=>'AK',
'AZ'=>'AZ',
'AR'=>'AR',
'CA'=>'CA',
'CO'=>'CO',
'CT'=>'CT',
'DE'=>'DE',
'DC'=>'DC',
'FL'=>'FL',
'GA'=>'GA',
'HI'=>'HI',
'ID'=>'ID',
'IL'=>'IL',
'IN'=>'IN',
'IA'=>'IA',
'KS'=>'KS',
'KY'=>'KY',
'LA'=>'LA',
'ME'=>'ME',
'MD'=>'MD',
'MA'=>'MA',
'MI'=>'MI',
'MN'=>'MN',
'MS'=>'MS',
'MO'=>'MO',
'MT'=>'MT',
'NE'=>'NE',
'NV'=>'NV',
'NH'=>'NH',
'NJ'=>'NJ',
'NM'=>'NM',
'NY'=>'NY',
'NC'=>'NC',
'ND'=>'ND',
'OH'=>'OH',
'OK'=>'OK',
'OR'=>'OR',
'PA'=>'PA',
'RI'=>'RI',
'SC'=>'SC',
'SD'=>'SD',
'TN'=>'TN',
'TX'=>'TX',
'UT'=>'UT',
'VT'=>'VT',
'VA'=>'VA',
'WA'=>'WA',
'WV'=>'WV',
'WI'=>'WI',
'WY'=>'WY'
);


$states = array(
'AL'=>'Alabama',
'AK'=>'Alaska',
'AZ'=>'Arizona',
'AR'=>'Arkansas',
'CA'=>'California',
'CO'=>'Colorado',
'CT'=>'Connecticut',
'DE'=>'Delaware',
'DC'=>'District Of Columbia',
'FL'=>'Florida',
'GA'=>'Georgia',
'HI'=>'Hawaii',
'ID'=>'Idaho',
'IL'=>'Illinois',
'IN'=>'Indiana',
'IA'=>'Iowa',
'KS'=>'Kansas',
'KY'=>'Kentucky',
'LA'=>'Louisiana',
'ME'=>'Maine',
'MD'=>'Maryland',
'MA'=>'Massachusetts',
'MI'=>'Michigan',
'MN'=>'Minnesota',
'MS'=>'Mississippi',
'MO'=>'Missouri',
'MT'=>'Montana',
'NE'=>'Nebraska',
'NV'=>'Nevada',
'NH'=>'New Hampshire',
'NJ'=>'New Jersey',
'NM'=>'New Mexico',
'NY'=>'New York',
'NC'=>'North Carolina',
'ND'=>'North Dakota',
'OH'=>'Ohio',
'OK'=>'Oklahoma',
'OR'=>'Oregon',
'PA'=>'Pennsylvania',
'RI'=>'Rhode Island',
'SC'=>'South Carolina',
'SD'=>'South Dakota',
'TN'=>'Tennessee',
'TX'=>'Texas',
'UT'=>'Utah',
'VT'=>'Vermont',
'VA'=>'Virginia',
'WA'=>'Washington',
'WV'=>'West Virginia',
'WI'=>'Wisconsin',
'WY'=>'Wyoming'
);

May 13, 2009

Let’s dance - David Bowie

Filed under: Songs — Mitch Wilson @ 11:23 pm

Let’s dance put on your red shoes and dance the blues

Let’s dance to the song
they’re playin’ on the radio

Let’s sway
while color lights up your face
Let’s sway
sway through the crowd to an empty space

If you say run, I’ll run with you
If you say hide, we’ll hide
Because my love for you
Would break my heart in two
If you should fall
Into my arms
And tremble like a flower

Let’s dance for fear
your grace should fall
Let’s dance for fear tonight is all

Let’s sway you could look into my eyes
Let’s sway under the moonlight,
this serious moonlight

If you say run, I’ll run with you
If you say hide, we’ll hide
Because my love for you
Would break my heart in two
If you should fall
Into my arms
And tremble like a flower

Let’s dance put on your red shoes
and dance the blues

Let’s dance to the song
they’re playin’ on the radio

Let’s sway you could look into my eyes
Let’s sway under the moonlight,
this serious moonlight

You need to a flashplayer enabled browser to view this YouTube video


How to Play Bass Lines to Let’s Dance

May 12, 2009

You’ve never gone this far before

Filed under: Songs — Mitch Wilson @ 1:27 pm

I can almost hear the stillness
As it yields to the sound of your heart beating bum bum bum
And I can almost hear the echo
Of the thoughts that I know you must be thinking bum bum bum
And I can feel your body tremble
As you wonder what this moment holds in store bum bum bum
And as I put my arms around you
I can tell you’ve never been this far before bum bum bum

I don’t know what I’m saying
As my trembling fingers touch forbidden places bum bum bum
I only know I’ve waited
For so long for the chance that we are taking bum bum bum
I don’t know and I don’t care
What made you tell him you don’t love him anymore bum bum bum
And as I taste your tender kisses
I can tell you’ve never been this far before bum bum bum

And as I take the love you’re giving
I can feel the tension building in your mind uh huh huh
And you’re wondering if tomorrow
I’ll still love you like I’m loving you tonight uh huh huh
You have no way of knowing but tonight will only make me love you more
And I hope that you’ll believe me
Cause I know you’ve never been this far before bum bum bum bum bum

You need to a flashplayer enabled browser to view this YouTube video

May 10, 2009

You all everybody - Drive Shaft

Filed under: Songs — Mitch Wilson @ 10:53 pm

You all, everybody
You all, everybody
Acting like you’re stupid people
Wearing expensive clothes
You all everybody
You all, everybody

You need to a flashplayer enabled browser to view this YouTube video

Billie Jean - Michael Jackson

Filed under: Songs — Mitch Wilson @ 3:05 pm

Chords and lyrics

Example video

You need to a flashplayer enabled browser to view this YouTube video

May 7, 2009

Crying - Roy Orbison

Filed under: Songs — Mitch Wilson @ 10:12 am

D I was all right D For a while
D I could smile D For a while

D But I saw you last night D You held my hand so tight as you
G Stopped to say Gm “Hello” oh you
D Wished me well, you A7 You couldn’t tell
A7 That I’d been

D Crying F#m over you
D Crying F#m over you

G When you, so A “So long”
G Left me standing A All alone, alone and

D Crying D Crying
G Crying Gm Crying

D It’s hard to understand A7 But the touch of your hand
D Can start me crying

D I thought that I D Was over you
D But it’s true, so true

D I love you even more than I did before
G But, darling Gm What can I do?
D For you don’t love me
A7 And I’ll always be
D Crying F#m over you
D Crying F#m over you

G Yes, now A you’re gone and
G From this moment A on
D I’ll be crying, D crying
G Crying, Gm crying, yeah
D Crying, Bm crying
G A7Over D you

D A7 D G D

You need to a flashplayer enabled browser to view this YouTube video

May 6, 2009

All of me - Frank Sinatra

Filed under: Songs — Mitch Wilson @ 5:13 am

In the key of G

G All of me, why not take B7 all of me
E7 Can’t you see, I’m no good Am7 Without you
B7 Take these lips, I want to Em lose them
A Take these arms, I ‘ll never D use them D7

G Your goodbye left me with B7 eyes that cry
E7 How could I go on Am7 without you
C You took the Cm7 part that G7 once was my Em7 heart
Am7 So why not, D why not G take all of me? D7

Version 2

In the key of A.

You need to a flashplayer enabled browser to view this YouTube video

April 30, 2009

I Will Follow You Into The Dark - Death Cab for Cutie

Filed under: Songs — Mitch Wilson @ 11:26 pm

Love of mine some day you will die
But I’ll be close behind
I’ll follow you into the dark

No blinding light or tunnels to gates of white
Just our hands clasped so tight
Waiting for the hint of a spark
If Heaven and Hell decide
That they both are satisfied
Illuminate the NOs on their vacancy signs

If there’s no one beside you
When your soul embarks
Then I’ll follow you into the dark

In Catholic school as vicious as Roman rule
I got my knuckles bruised by a lady in black
And I held my tongue as she told me
“Son fear is the heart of love”
So I never went back

If Heaven and Hell decide
That they both are satisfied
Illuminate the NOs on their vacancy signs

If there’s no one beside you
When your soul embarks
Then I’ll follow you into the dark

You and me have seen everything to see
From Bangkok to Calgary
And the soles of your shoes are all worn down
The time for sleep is now
It’s nothing to cry about
’cause we’ll hold each other soon
In the blackest of rooms

If Heaven and Hell decide
That they both are satisfied
Illuminate the No’s on their vacancy signs

If there’s no one beside you
When your soul embarks
Then I’ll follow you into the dark
Then I’ll follow you into the dark

You need to a flashplayer enabled browser to view this YouTube video

April 25, 2009

The Fox In The Snow - Belle and Sebastian

Filed under: Songs — Mitch Wilson @ 11:22 pm

Fox in the snow
Where do you go
To find something you can eat?
Cause the word out on the street
Is you are starving

Don’t let yourself grow hungry now
Don’t let yourself grow cold
Fox in the snow

Girl in the snow
Where will you go
To find someone that will do?
To tell someone all the truth
Before it kills you

They listen to your crazy laugh
Before you hang a right
And disappear from sight

What do they know anyway?
You’ll read it in a book
What do they know anyway?
You’ll read it in a book tonight

Boy on the bike
What are you like
As you cycle round the town?
You’re going up, you’re going down
You’re going nowhere

It’s not as if they’re paying you
It’s not as if its fun
At least not anymore

When your legs are black and blue
It’s time to take a break
When your legs are black and blue
It’s time to take a holiday

Kid in the snow
Way to go
It only happens once a year
It only happens once a lifetime
Make the most of it

Second just to being born
Second to dying too
What else could you do?

Newer Posts »

Powered by WordPress