Wednesday, July 30, 2008
Thursday, July 24, 2008
地盤
似乎變成每個人虛擬卻又感覺真實的地盤
每個人都有自己的空間 擺放專屬於自己的東西
當某一天 聽聞或是知道一些人進來了這個空間
似乎就好像自己家被人不敲門的闖了進來一樣
甚至會想 "他來這裡想幹麻"
就連別人的空間裡也有可能擺了些屬於自己的東西
人都是這樣 不愛撞鞋,撞衫
喜歡專屬, one and only
看到別人有類似或一樣的東西的時候
就怎麼都覺得有些疙瘩
人就是自私的吧~
We Sing, We Dance, We Steal Things.
Waiting For My Rocket to Come
-Jason Mraz
第一次接觸到Jason Mraz 的音樂
是從這張專輯開始
地點 在一家服飾店
時間 就在試穿衣服的時候聽到
當下的心情 我還記得寫 在這裡
You and I Both 這首歌
讓我聽到笑著流淚 (不是笑到流淚黑)
讓羅曼女覺得我該去當DJ
讓某人聽到怦然心動
他的歌,真的是簡單樸實純真的好聽
網誌裡擺的 Sleep all day 也是一首讓人聽了很relax的歌
覺得很適合下雨天呆在家裡懶在床上時聽
既然下雨出不了門
then why don't we sleep all day, sleep all day ~ over~~
多虧鐵男平時愛聽廣播~
某天跟我update jason mraz 似乎出了新專輯
讓我趕快上網找找
這次的新專輯 【We Sing, We Dance, We Steal Things】
很喜歡網路上找到一篇網誌的介紹,
以下擷取自
拉扣不拉扣 -Jason Mraz 之 搶糧搶錢搶娘兒們 (We Sing. We Dance. We Steal Things)
新專輯名稱叫做【We Sing. We Dance. We Steal Things.】跟投名狀的【搶錢搶糧搶娘兒們】一樣有一種逗趣順口溜的感覺,為什麼取這個名字呢?底下是 Jason 的自問自答。
What is We Sing. We Dance. We Steal Things?
We Sing, We Dance, We Steal Things is a phrase I lifted from Scotland’s Great Visual Humorist David Shrigley. (His version had the word AND between each statement where I’m using punctuation marks.) I fell in love with his work in 2006 and that phrase, taken from a drawing, stuck with me throughout the entire conceptual process of the album. I just knew it was going to be a perfect album title. Each statement seems to encompass what I was going after: A sing-a-long, danceable fervor.
靈感來自蘇格蘭的一個滑稽演員,聽了之後覺得太棒了!這就是他的專輯要追求的!可以讓人邊唱歌邊跳舞!
So, it’s no surprise the album is visited by various choirs and ensembles, as it's what we (humans) like to do. We Sing. And quite simply to accompany that celebration of music, or by accident the way we react to music; We Dance.
所以呢,這張專輯跟一堆教堂合唱團合作。我們人類就是喜歡唱歌,而伴隨而來就是對歌曲的自然反應,舞蹈。
And what things do we Steal? Practically everything.
那我們偷什麼?我們什麼都偷。
Take away anything from your life that could be changed or has changed and What do you have left?
Just yourself.
如果把你的生命中所有可以改變或已經改變的事物都抽離,你還剩下什麼?剩下你的真我啊!
Therefore, all the stuff around us, even our homes, are
borrowed, begged for, or stolen from someone or something else, past and
present. Music, land, names, ideas, fashion styles, personal choices, etc.
All have been built, designed, or practiced before by someone else. Even the carpenters know that the trees didn’t get a fee to become the house.
所以呢,所有在我們身邊的東西都是跟人家借來求來偷來的,音樂土地姓名靈感等等...就連你住的小木屋都是木匠跟樹木偷來的,樹可沒跟木匠收錢啊!
We Steal from our teachers and masters even, to be more like them.
我們跟老師與大師偷東西,以向他們看齊。
So there you go. Now you know what we're all about.
所以囉!你看我們每個人都會偷東西,這就是人生啊!
We Sing. We Dance. We Steal Things.
總之這就是我們的專輯名稱的由來啦!
(Or if you want the short answer: I thought it was funny.)
或是你想要短一點的答案:我覺得這個名字很好笑啊!
Take away anything from your life that could be changed or has changed and What do you have left?
Just yourself.
如果把你的生命中所有可以改變或已經改變的事物都抽離,你還剩下什麼?剩下你的真我啊!)
真的很喜歡這句,就如同他的音樂一樣,有種回歸最純真的自我的感覺
看了一下官網的行程表~
怎麼Japan, Korea, Singapore 都去了 ...
就是不來台灣開個小型演唱也好ㄚ
Wednesday, July 23, 2008
歪
我們是相對的走在前方的
我們是希望拉著對方往前走的
這一段曾經 都不短暫
雖然曾經跌了一跤 傷的不輕
好不容易爬了起來~
拍拍膝蓋 大步往前走
不會說"早知道不選這條路了"
只會摸著頭~ 靦腆的說 "哎呀,有誰走路不摔跤的呢"
雖然依舊往前走,但對於過去
還是會希望
Monday, July 14, 2008
Tuesday, July 8, 2008
Wednesday, July 2, 2008
Unchecked checkbox values
http://iamcam.wordpress.com/2008/01/15/unchecked-checkbox-values/
Working with form check boxes can be a bit of a pain on sites with dynamic content. Saving the checked data is easy, but how do you easily save the unchecked value without manually adding it to an array from inside your code? Keep reading.
revealCMS is working great - I’m really starting to see a lot of its strengths (and, admittedly, some weaknesses) as I use it more and begin extending it. Due to how data is saved to the database, the HTML checkboxes were a bit of a problem when trying to save their unchecked state. Typically I save the post data to the object, where it is filtered and scrubbed, as necessary.<i>Only the posted values get updated</i> in their respective rows (makes sense, right?).
The problem is that unless a box is checked, it’s not going to be sent with the form - a problem if you have a checked box, but want to save the unchecked state.The first option is easy and probably the first solution you’d think of - write a couple lines of code for every single checkbox and set it to some default value if it’s left unchecked when the form is posted. Fine, but that takes more thinking than I want to do for something so simple, and it’s somewhat prone to error. Instead…
…the solution: Insert a hidden form field with the same name as the checkbox and the default value right before the place where the checkbox is located:
|
What happens here is that when the checkbox is left unchecked, the hidden field’s value gets submitted, as-is. When the check box is checked, the hidden field’s POST value gets overwritten by the activated checkbox’s.
Unactivated: Hidden field’s value.
Activated: Check box’s value.
Told you it was easy!
If you know what you are expecting your POSTed data to be, which you should as you made the HTML form, then just create a new array from the POSTed one.
You need to name the keys of the checkbox name array:
EG
When the form is posted, make a new array using ALL the key names you KNOW are used in the checkbox names
Then use that new array to loop all keys. With each loop, check if the current key from your new array matches a key in the posted array.
If no match then that key value is NO, if it is matched then that key value is YES.
It’s IMPORTANT when you make the new array to make the keys in the same order as they appear in the html form or the loop wont match them in order and wont work correctly
Here is the full script
form.html page
|