2011年9月15日 星期四

終於可以在Android平板上寫Scratch小貓咪程式了

Jimmy's papa參考了scatsqueakvm-tablet兩個專案,經過一番努力後,終於將兩者成功安裝到我的XOOM平板電腦,實在非常感謝兩個專案的開發人員的努力奉獻,讓Jimmy's papa也可以在Android平板上寫Scratch小貓咪程式!!!

ps.現在Sratch 2.0也可以囉!!!


安裝過程請參考這裡
寄件者 scratchlab

2011年9月11日 星期日

幾首簡單的英文歌

平常Jimmy's papa會找些簡單的英文歌讓Jimmy聽聽

下面兩首Nicholas Alan的blog找到的,歌詞超簡單,放給Jimmy聽時,他總是搖擺著身體,隨著歌詞哼哼唱唱

Lyrics:
Hello. How are you? How are you today? (4x)

I’m good. I’m great. I’m okay.
I’m happy you’re my friend.
Let’s go out and play.

Hello. How are you? How are you today? (4x)

I’m sleepy, so sleepy.
I’m tired, so tired.
I… (yawn)

Hello. How are you? How are you today? (4x)

Hello. Hello. Hello. (2x)

Hello. How are you? How are you today? (8x)

Lyrics:
My name is Erika. I’m from America.
I like hamburgers and potatoes.
She likes hamburgers and potatoes.

My name is Ray. I’m from the U.K.
I like fish, gravy, and potatoes.
He likes fish, gravy, and potatoes.

It’s twelve o’clock.
It’s time for lunch.
Let’s go to a restaurant.

My name is Joshua. I’m from Canada.
I like cheese, gravy, and potatoes.
He likes cheese, gravy, and potatoes.

My name is Donovan. I’m from Ireland.
I like butter, onions, and potaotes.
He likes butter, onions, and potatoes.

It’s twelve o’clock.
It’s time for lunch.
Let’s go to a restaurant.

這首Gary come home小蝸回家吧!!!對Jimmy來說有點難,不過他很喜歡聽

Gary, now I know I was wrong
I messed up, and now your gone

Gary, I'm sorry I neglected you
Oh, I never expected you to run away and leave me
Feeling this empty
Your meow right now would sound like music to me
Please come home, 'cause I miss you, Gary

(Gary come home...)
Gary come home
(Gary come home...)

Gary, can't you see I was blind

I'll do anything to change your mind

More than a pet, your my best friend
Too cool to forget, come back
'Cause we are family
And forgive me for making you wanna roam
And now my heart is beating like the saddest metronome
Somewhere I hope you're reading my latest three-word poem:
Gary come home

(Gary come home...)
Gary come home
(Gary come home...)
Gary come home
(Gary come home...)
Gary come home
(Gary come home)
Ahh... 
Gary, come home
Gary, come home
Gary, won't you come home

Android + Pharo + CogVM

上回安裝安裝squeakvm-tablet在XOOM Android平板之後,最近作者又釋出了CogVM(CogDroid)版本CogDroid-alpha-20110903.apk,Jimmy's papa安裝上去後並且載入Pharo,參考Pharo-the collaborActive book寫了個CreateWindow範例測試看看,嗯!漂亮,不過有個缺點是,找不到方法在Workspace視窗以do it(d)執行,只好先以TestRunner先頂著跑跑看

以下是Smalltalk程式碼及畫面

window := StandardWindow labelled: 'Painter'.

chooser := ColorChooserMorph new.
window addMorph: chooser.

window openInWorld.
寄件者 scratchlab