Friday, August 21, 2009

New song: Everybody wants a plucking time machine



"Everybody wants a plucking time machine" by Timothy Chen Allen



WARNING: DIRTY WORDS! FOUL LANGUAGE! AWKWARD CONCEPTS!

Click here to see the decidedly adult lyrics

There are things in this world I have wished for
Love and kindness and peace with my fellow man
I can smile at the dreams of my childhood
But I still dream a dream when I can...

Tuesday, August 11, 2009

Safe SQL LIKE conditions in Ruby On Rails

This is a problem that was driving me a little nuts. In this discussion of how to write a Ruby on Rails query without leaving myself open to a SQL Injection, I found this passage:

"Building your own conditions as pure strings can leave you vulnerable to SQL injection exploits. For example, Client.first(:conditions => "name LIKE '%#{params[:name]}%'") is not safe. See the next section for the preferred way to handle conditions using an array."
However, they never show how to actually write the exact query to replace the unsafe one safely. Here it is:

escaped_query = params[:name].gsub('%', '\%').gsub('_', '\_')
@posts = Post.find(:all, :conditions=> ["subject like :eq or name like :eq", {:eq => "%" + escaped_query + "%"}])

Friday, August 7, 2009

New song: Waiting for Winter

"Waiting for winter" by Timothy Chen Allen



Where are you flying now?
The winds have all died
The heat of Summer drove the birds back inside
And if you're with me now
Don't know where to look
Somewhere inside you must be
Somewhere inside of me

I went to look for you one day in the park
I caught a glimpse of you just as it got dark
And I ran screaming for you not to fly away
It did no good I lost you then
I guess you'll always be within

Somewhere inside of me

The year is fading now
The sky has gone gray
I climb the fence and watch the leaves blow away
You're sitting with me now
Looking at the sky
Waiting for winter to be
Somewhere inside of me

Monday, August 3, 2009

Video: Daybreak Training - Parkour

This was a parkour training session I did recently. The background music is an instrumental called "Plowshares" I wrote for the film-- and since I've been too sick to get it together, this is my weekly song as well:

Friday, July 24, 2009

New song: Everything that isn't you

"Everything that isn't you" by Timothy Chen Allen



The end of this song echoes the first song I wrote this year: "If I can find a way I can find you

Sha la la la la bang bang yeah!
You... didn't leave me much to think of you
Just this house... full of everything that isn't you
What a thing to do
You got a lot of nerve
I knew that from the day we met
You're the girl I never could forget
Now you think I'm gonna wait around 'til you're back in town
Well babe, I've got no pride
Don't bother me none to cry
Sha la la la la bang bang yeah!

We... we've been through such an awful lot
Such an awful lot of stuff we've got
But it does no good
'Cause everything that isn't you
Reminds me of you
Don't know what to do
Sha la la la la bang bang yeah!

If I could find a way I could find you
If I could know a way I could touch you
If I could find a way that you want me to find you...

Sha la la la la bang bang yeah!

Friday, July 17, 2009

New song: Patient

"Patient" by Timothy Chen Allen



I'm not very good at waiting, but I have to
I'm not good at being patient, but I'm getting that way
And you are so far
And I am still here
I'm not very good at waiting, but I have to

No me gusta esperar mas te espero
No es fácil ser paciente no mi vida
Si allá es de día
Y aquí es de noche
¿Cómo debo recordarte? Quiero verte

I'm not very good at waiting, but I have to
When I said goodbye I didn't mean for always
Close my eyes and I see you
How much longer? It feels forever
I'm not very good at waiting, but I have to

Y tú llevas el mejor parte de mí
Dentro de ti
And I have got to learn to wait a little more each day
Until you find your way
Back home

I'm not very good at waiting, but I have to
I'm not good at being patient, but I'm getting that way
I'm not good at being patient
I'm not good at being patient
I'm not good at being patient

Saturday, July 11, 2009

New song: Icarus wing



I am not afraid
But I am alone here
If I were to fall here...

This place is not so high
But high enough to hurt me
There is no hand to catch me
If I were to fall

Everything is still
The air is filled with sweetness
The tide flows out beneath me

Now I'm flying
Over rooftops
Gravity talks
But I am not listening
It cannot touch me here
The ground must forget me here
If I were to fall

You look up now
You would not see me
I'm high overhead
And gaining momentum
The sun reaches out a hand
I'm not afraid of falling
But if I were to fall

The world is moving fast
The sky catches my wings now
My feathers fall away now

I am feeling calm
The sun shines on the river
The air is filled with sweetness

The final moment comes
I know the ground will catch me
I knew that this would happen
If I were to fall

Sunday, July 5, 2009

New song: Sleep this day away



I'm awake
But I'm dreaming of your face
Some other kind of place
I would rather be
Please don't ask me
If I want to stop dreaming

Tie me down
I know damn well I should be
Wide awake
It'd be a big mistake
To go back to sleep
I can't help it
I just keep on
Wishing I could keep on dreaming

Don't wake me up
I'm sleepy tired
And my head's started aching
I won't be waking
Before midday today
I'll sleep this day away
If I could only find a way
To go on dreaming

Wake me up
'Cause you're a dream
That's just too good to be true
I'm not with you
And that's the way it must be
I'll never be free
As long as you are just a dream
That's dreaming about me

Sunday, June 28, 2009

New song: It doesn't happen without you

Sònia and Daniel are in Spain for a month. I wrote this song about that.



I may think that things are going just fine
And I'll tell you everything is going my way
I may even say I'm better off like this
And maybe I'll convince you that it's true

But in the bathroom mirror facing myself
I know what's the truth
All the things that happen in my life
It doesn't happen without you

I've got a fine collection of memories
I like to polish them and hold them to the light
Times our laughter had no reason at all
Or we cried because our hope was gone

But everything looks different than I thought
The blues turn into gray
And when I only have myself to think of you
It doesn't happen without you

I know this situation comes to an end
I know the day you're coming home
And I can call you almost any time I want
It really hasn't been that bad

But then the moments drag into the days
And the days drag into weeks
My heart doesn't know what time it is today
That doesn't happen without you
Without you

Tuesday, June 16, 2009

New song: United us of you and me

The idea came from something my sister-in-law Liz said in our wedding: Sonia and I would form a nation of two, a "United States of Tim and Sonia"



"United us of you and me" by Timothy Chen Allen
Sònia, I read the paper just the other day
How life is hard in the USA
I don’t believe it and I have to say
Love's still free
United us of you and me
You know that's how it's got to be
United us of you and me
Don’t need no fence to keep folks out
It's you and me and baby there's no doubt
Our only natural resource here is love
But that's enough

Sònia, the Arabs and the Jews don’t get along
Even Andorra wants to have a bomb
I don’t get it, I just get it wrong
But peace still talks and love is free
United us of you and me
You know it's got to be us three
United us of you and me
Peace has to start with you and me
And all the folks we happen to see
We’re on to something and it might be true
Just me and you
It's us three
United us of you and me
That's how we’ll make the people free
United us of you and me
It’ll work on everything we see
United us of you and me
You know that's how it's got to be
United us of you and me