By Unknown | Monday, March 26, 2012
Posted in: , | 0 comments

目前計畫參加路跑

最近已經開始恢復之前的訓練量,希望今年半馬的成績能進步,看來看去應該就下面這些賽事看了比較想參加,其他就再說。另外老爸今年應該會完成百馬,所以至少會要跑一場全馬,到時候再看看,我猜應該是年底。

2012/4/21,士林區路跑,10KM
2012/5/13,金城桐花杯,21KM
2012/5/27,海山路跑,21KM
2012/7/15,陽明山路跑,21KM
2012/10/6,合歡山越野
2012/10/14,議長杯,21KM


於11:42更新:

剛剛跑完5.2KM創下最快紀錄,不記一下對不起我自己,最近感覺身體狀況很不錯,已經很久沒有跑這麼勤了,只能說公司事情多加上天氣也太冷了。幸好最近一切都有轉好的跡象,如果當我們的身體變好了,就表示我們的生活變好了;而生活變好了就表示所有的事慢慢的都變得更順利了。

最近一直在思考,如何把自己所學的以及所做過的東西,展現給別人了解。雖然埋頭苦幹是必須的,但是在適當的時機還是要學習如何表現自己的能力,畢竟當你越能展現出你的實力給別人之後,也能更有信心地應付各種挑戰,當然前提是要有實力,沒有實例一切都是枉然。

昨天很無聊地在104用Perl找了一下,畢竟這不是個熱門的語言,但沒想到還是有很多公司以及工作都需要這項技能,讓我驚訝了一下。雖然現在PHP或者是Python及Ruby甚至到Javascript都紅到不行,但是很多時候卻無法讓我拋棄掉Perl,因為她最簡單卻也最Powerful。想想我在公司這幾年寫了這麼多的Module,但總是沒有辦法很有效率地把這些工具組合再一起成為一個更大的Tool,真的是很可惜,太有彈性卻也是發展的限制之一。

或許在寫程式之前,我們更應該要多思考一下....就跟跑步一樣,不是思考怎麼跑完眼前這1KM的路,而是思考如何分配體力,讓我們更輕鬆更有效率地跑完21KM。

OK,收工準備睡覺。


Read more
By Unknown | Tuesday, March 20, 2012
Posted in: | 0 comments

CNN Student news 2012/3/20


CARL AZUZ, HOST, CNN STUDENT NEWS: The end of winter brought a huge snowstorm to one U.S. state, but probably not a state you associate with snow. That story`s coming up. I`m Carl Azuz. This is CNN Student News.

First up, voters are casting ballots in Illinois today as that state holds its Republican presidential primary. A lot of experts are describing this as a showdown between former Massachusetts governor Mitt Romney, the front-runner, and former Senator Rick Santorum.

(BEGIN VIDEO CLIP)

AZUZ (voice-over): Governor Romney just enjoyed a win in Puerto Rico on Sunday. He got more than 80 percent of the vote in the primary there, so he won all of Puerto Rico`s 20 delegates.

(END VIDEO CLIP)

AZUZ: There are 54 delegates up for grabs in Illinois today, and it takes 1,144 delegates to win the Republican presidential nomination. Here`s how things stack up right now.

(BEGIN VIDEO CLIP)

AZUZ (voice-over): The latest estimates from CNN shows Governor Romney with 519 delegates. Senator Santorum has 239, former House Speaker Newt Gingrich has 138 and CNN estimates U.S. Representative Ron Paul has 69 delegates.

(END VIDEO CLIP)

AZUZ: One thing all the candidates, including the president, have been talking about recently -- gas prices. If you or your parents drive, you know they are on the way up. The national average price for a gallon of gasoline has been rising every day for more than a week now.

(BEGIN VIDEO CLIP)

AZUZ (voice-over): It`s currently $3.84. That`s the average. It`s actually more expensive in some places, and cheaper in others, because of the cost of oil, taxes and distribution. The record price was $4.11 in July of 2008.

(END VIDEO CLIP)

AZUZ: Rick Vincent now show us how gas prices are fueling political fire.

(BEGIN VIDEO CLIP)

RICK VINCENT, CNN REPORTER (voice-over): Prices at the pump climbed steadily beginning March 9th after a few days of slight declines. They rose on the back of soaring oil prices. President Obama put a spotlight on the issue in his weekly address. He outlined his energy policy and knocked Republican presidential candidate Newt Gingrich for campaigning on a promise of $2.50 gas.

BARACK OBAMA, PRESIDENT OF THE UNITED STATES: It`s easy to promise a quick fix when it comes to gas prices. There just isn`t one. Anyone who tells you otherwise, any career politician who promises some three-point plan for $2 gas, they`re not looking for a solution. They`re just looking for your vote.

VINCENT (voice-over): Campaigning over the weekend, Rick Santorum said high gas prices are leading to inflation, and he says it`s only going to get worse.

FORMER SEN. RICK SANTORUM, R-PA., PRESIDENTIAL CANDIDATE: It`s going to have a ripple effect if $4, and in some places now, $5 a gallon gasoline, and they`re talking $5 and maybe even $6 in some areas.

VINCENT (voice-over): Right now, the highest price nationally is in Hawaii at an average of $4.48 a gallon.

Mitt Romney said the president is not the right person to tackle such problems.

FORMER GOV. MITT ROMNEY, R-MASS., PRESIDENTIAL CANDIDATE: The president learned about the economy by reading about it --

(LAUGHTER)

ROMNEY: -- not by living it. Twenty-five years in business taught me how jobs come and how they go.

VINCENT (voice-over): I`m Rick Vincent reporting.

(END VIDEO CLIP)

(BEGIN VIDEO CLIP)

UNIDENTIFIED FEMALE: Today`s Shoutout goes out to Coach Streiffert`s economics classes at Waccamaw High School in Pawleys Island, South Carolina. What is the state nickname of Arizona? Here we go. Is it the Land of Enchantment, Desert State, Last Frontier or Grand Canyon State? You`ve got three seconds, now go.

Arizona gets its nickname from its most famous natural feature, the Grand Canyon. That`s your answer, and that`s your Shoutout.

(END VIDEO CLIP)

AZUZ: You might think of Arizona as the Desert State. Its usually warm weather is a big draw for tourists. Not this past weekend, though. While people all over the central and eastern U.S. were enjoying early spring temperatures --

(BEGIN VIDEO CLIP)

AZUZ (voice-over): -- parts of Arizona were dealing with this: massive snowstorms. The city of Flagstaff got 10-14 inches of snow over the weekend. Officials were worried about dangerous driving conditions, especially in some of Arizona`s mountain regions.

Around 180 miles of one major interstate was shut down because of the weather. One resident talked about the major shift in temperature, saying, quote, "The other day it was 65 degrees. Next day it`s snowing. It`s crazy."

(BEGIN VIDEO CLIP)

UNIDENTIFIED FEMALE: Is this legit? The Amazon is the largest rain forest in the world.

Totally true. The Amazon takes up more than 2 million square miles. That`s more than half the size of the entire United States.

(END VIDEO CLIP)

AZUZ: The Amazon takes up about 40 percent of Brazil, which is one of the largest countries in the world. You probably studied rain forests; you`ve learned about how they`re rich in plant and animal life. But that same land can be used for farming as well. Shasta Darlington looks at how Brazil is trying to find a balance between economics and the environment in the Amazon.

(BEGIN VIDEO CLIP)

SHASTA DARLINGTON, CNN REPORTER: From up here, you can really get a view of the difference between these massive soybean fields and the natural Amazon forest right next door.

DARLINGTON (voice-over): We flew over the native Xingu Park and neighboring farmlands to get a better perspective of a battle that has pitched environmentalists against farmers and ranchers.

Over the last six years, Brazil has cracked down on clearcutting, reducing the rate of deforestation by 80 percent. But some say environmental gains will be undermined by a controversial forest code being debated in Congress.

"It`s a setback without the precedent, after the 23 years of progress we`ve made," says former Environment Minister Marina Silva. The bill eases limits on deforestation and extends an amnesty to some who`ve cut down trees illegally in the past.

The rural lobby in Congress thinks it doesn`t do enough to protect growers who`ve helped turn Brazil into an economic powerhouse. Unable to forge a consensus, the government has repeatedly delayed voting, but it wants the law passed before June, when Rio de Janeiro will host Rio+20, the 20th anniversary of the landmark Earth Summit.

Back in Mato Grosso, farmers like Saulo Cunha are largely supportive.

"I think the forest code will solve a lot of problems," he says. "It`ll legalize producers, who are illegal not because they want to be, but because of external factors."

Under the new code, farmers who broke the law won`t have to pay fines. They can get legal by replanting native trees.

(END VIDEO CLIP)

AZUZ: Well, in the country of Nepal, dozens of kids live in jail. They haven`t done anything wrong, but because of the nation`s poverty levels, when the kids` parents are arrested, kids have to go with them.

One woman saw what was happening and decided to do something about it. That`s why she`s one of this year`s CNN Heroes. Here`s her story.

(BEGIN VIDEO CLIP)

PUSHPA BASNET, CNN HERO: In Nepal, when parents have been arrested by the police and the children don`t have a local guardian, some children go to prison with the parents. Before (inaudible) I visited the jail, I was starting my bachelor in social work. I saw a small girl, who just grabbed my shawl and she just gave me a smile. It was really hard for me to forget that.

My name is Pushpa Basnet, and my mission is to make sure no child grows up behind prison walls. In 2005, I started a daycare where the children can come out from the jail at morning and they can go back to the jail at the afternoon.

We have children who are from 2 to 4, and they have coloring, reading, starting five days a week. We started the residential home in 2007. Currently, we have 40 children living out here, mostly above 6 years old.

I don`t get a day off, but I never get tired. The children all call me Mamu. It`s a big family, with lots and lots of love.

When I started this organization, I was 21 years old. People thought I was crazy, but this is what I wanted in my life. I`m giving them what a normal child should have. I want to fulfill all their dreams.

(END VIDEO CLIP)

(BEGIN VIDEO CLIP)

AZUZ (voice-over): Well, you know about our Shoutouts. But if you`re looking for another way to get your school mentioned on the show, get in on our social media question. If you`re on Facebook, look for it at facebook.com/cnnstudentnews.

We post a new video with a new question every week, and this week it`s about time. Give us the right answer, plus the name of your school and city. You might hear it mentioned on CNN Student News.

(END VIDEO CLIP)

AZUZ: Before we go, how many turtles does it take to set a world record?

(BEGIN VIDEO CLIP)

AZUZ (voice-over): The answer? Eight hundred thirty-six. They can`t be regular turtles; they`ve got to be Teenage Mutant Ninja Turtles, or at least people dressed up like them. That was the goal of this raucous reptilian rally. Everyone who showed up to participate was given a free mask and shirt. It did set a new world record for the largest gathering of Ninja Turtles.

(END VIDEO CLIP)

AZUZ: But if you ask me, that many ninjas in one place sounds like a "sword-ed" affair. I just feel bad for the old record holders, because after losing the title, they`re probably just a shell of their former selves. That`s all the time we have for now, but we will "turtle-ly" be back tomorrow with more CNN Student News. See you then.

(MUSIC PLAYING)

END

Read more
By Unknown | Sunday, March 18, 2012
Posted in: | 0 comments

CNN Student news 2012/3/16


CARL AZUZ, HOST, CNN STUDENT NEWS: It is Friday. That is always awesome. I`m Carl Azuz. This is CNN Student News. We`re ready to take flight with 10 minutes of commercial-free headlines starting in three, two, one --

(MUSIC PLAYING)

AZUZ: One full year -- that is how long the crisis in Syria has been going on. Opposition groups blame the violence on Syria`s government. Syrian officials say armed terrorists are responsible for the fighting.

(BEGIN VIDEO CLIP)

AZUZ (voice-over): What we know is that all of this started with protests, like the ones you see in these YouTube videos. The Syrians were speaking out against their government, calling for the change. The conflict has had a significant impact on how Syria is viewed by some other countries.

(END VIDEO CLIP)

AZUZ: And that has had an impact on Syria`s economy. John Defterios looks at the shift that some investors have made over the past 12 months.

(BEGIN VIDEO CLIP)

JOHN DEFTERIOS, CNN REPORTER (voice-over): A little over a year ago, investing in Syria seemed like a good idea. The country had avoided the worst of the global economic crisis. The private sector was opening up. A virtually untapped domestic consumer market offered real opportunities and foreign direct investment was on the rise.

But a year on, and street protests against the rule of Bashar al-Assad have led to a bloody military crackdown with thousands losing their lives. International sanctions have left the Syrian economy in tatters. Trade and investment flows are all but frozen, especially from within the region.

Qatar and the United Arab Emirates have been two of the largest investors in Syria. Before the turmoil, both countries viewed Syria as a hot market for property and construction. But now those countries appear to be limiting or, in some cases, completely stopping their projects. The state-owned Qatari Diar Real Estate Company has halted work on the $350 million resort in the poor city of Latakia.

Drake and Scull, a firm based in the UAE, recently stopped its $28 million project in the Syrian city of Homs, where troops were deployed to stamp out protests. The cash surplus countries of the Gulf used to see Syria as an investment safe haven away from the economic struggles of the West. But that notion has fundamentally changed and the future of all investments in Syria have been thrown into grave uncertainty.

(BEGIN VIDEO CLIP)

UNIDENTIFIED FEMALE: Today`s first Shoutout goes out to Mr. Platner`s social studies class at the Morse School in Cambridge, Massachusetts. Johannes Gutenberg is famous for doing what? Is it creating binary code, inventing the radio, discovering a polio vaccine or inventing the printing press? You`ve got three seconds, go.

Gutenberg is credited with inventing the printing press back in the 1400s. That`s your answer, and that`s your Shoutout.

(END VIDEO CLIP)

AZUZ: Britannica has printed sets of its famous encyclopedias for 244 years, but there won`t be a 245th. The company says the 32-volume set from 2010 will be its last one in book form. The reason: at least part of it is you.

(BEGIN VIDEO CLIP)

AZUZ (voice-over): When you have to do research for a paper or a report, chances are you`re not running to grab a book off the shelf. You`re doing what we do. We go online, and that`s where Britannica says it`ll focus now, its digital encyclopedia. It`s been publishing an online version since 1994.

The company`s president says a lot of people might call the decision to stop printing encyclopedias the end of an era. But he says it`s no big deal for Britannica. Printed encyclopedias were less than 1 percent of Britannica`s total sales.

(END VIDEO CLIP)

AZUZ: We`ve reported on schools that are trying the same sort of thing as Britannica, replacing textbooks with e-readers. But our next story is about a school in Silicon Valley, a region that`s home to major technology companies. But this school is heading in the opposite direction, not just low-tech, no-tech. Dan Simon explains what this is all about.

(BEGIN VIDEO CLIP)

DAN SIMON, CNN REPORTER (voice-over): The Waldorf School of the Peninsula, a school with old-fashioned chalkboards and a curriculum centered around physical activity and hands-on tasks.

UNIDENTIFIED FEMALE: All the way over.

SIMON (voice-over): Third graders using balls to help coordinate both sides of the brain, high school students drawing on a chalkboard as a way of interpreting a book. This school has zero technology, nada, no computers, no Internet. Matthew`s daughter used to attend a school where every child had a laptop.

SABRINE MENGERINK, STUDENT: I think I prefer it much better without them, because it`s a distraction. I didn`t really feel connected to the other students as much as I do in Waldorf.

SIMON (voice-over): At a time where some schools are now embedding social media into their teaching, like this school in Los Angeles --

UNIDENTIFIED MALE: Remember, Damian, make sure you have a # in front of the wwi.

SIMON (voice-over): -- the Waldorf School looks like something from another era. Yet 75 percent of the school`s families have at least one parent working in high-tech.

SIMON: Why do you feel people who work in high technology choose to send their children to a school that preaches no technology?

LUCY WURTZ, WALDORF SCHOOL OF THE PENINSULA: Well, it`s amazing, when parents go on tour and they come on our campus, a lot of people feel like it`s just a really natural way to raise children.

SIMON (voice-over): Lucy Wurtz is the school`s development director and helped establish a Waldorf High School in 2007. Her husband is a prominent Silicon Valley executive.

WURTZ: Sometimes people feel like life is going way too fast, and they want their children to have a more natural, slow-paced developmental childhood. So I think that`s what we provide at the Waldorf School.

SIMON (voice-over): One hundred sixty Waldorf Schools are spread across the country. Students don`t take standardized tests, so its success in comparison to other schools is difficult to measure, but its leaders boast that 94 percent of its graduates go on to college.

(BEGIN VIDEO CLIP)

UNIDENTIFIED FEMALE: Time for a Shoutout Extra Credit. Which of these countries is observing a national holiday on Saturday? You know what to do. Is it Ecuador, Ireland, Morocco or Georgia? Another three seconds on that clock and go.

Saturday is St. Patrick`s Day and the national holiday of Ireland. That`s your answer and that`s your Shoutout.

(END VIDEO CLIP)

AZUZ: As you well know, the celebration isn`t limited to Ireland. St. Patrick`s Day festivities happen all over the place. They`ve been going on in the United States for 275 years.

(BEGIN VIDEO CLIP)

AZUZ (voice-over): The first St. Patrick`s Day celebration in the U.S. happened in Boston back in 1737. New York held its first St. Patrick`s Day parade 250 years ago. And these days that one is the largest St. Patrick`s Day parade in the world. More than 150,000 people march in it every year.

According to the U.S. Census information from 2010, more than 34 million Americans say they have Irish ancestors. That`s more than seven times the population of Ireland.

(END VIDEO CLIP)

AZUZ: Well, the economy is something constantly in the news. You hear the president and members of Congress talk about it, experts and analysts look at different economic indicators. But you don`t always get opinions from everyday people, and that`s exactly who you`re going to hear from in CNN.com`s new "Across the Board" segment. Watch this.

(BEGIN VIDEO CLIP)

(MUSIC PLAYING)

UNIDENTIFIED FEMALE: Stop greed.

UNIDENTIFIED MALE: My son-in-law`s been underemployed for the past two years. This really put a hardship on my daughter and my grandchildren. I really want to see something good happen to them this year.

UNIDENTIFIED MALE: People are forgetting about the middle class in the U.S. We`re so focused on the poor and the rich that we forget about actual (inaudible).

UNIDENTIFIED MALE: In general, a lot of people nowadays are spending way above and beyond their means. Basically try to, you know, live a little more frugally.

(END VIDEO CLIP)

AZUZ: All right. Before we go, get ready for some mechanized mayhem.

(BEGIN VIDEO CLIP)

AZUZ (voice-over): It is Europe`s biggest robot competition. You know, they`re supposed to be fighting here, right? OK. One of them just falls over backwards. And this year offered a new category: flying robots. All in all, nearly 300 self-built bots faced off in different competitions. Might want to test that guy. Looks like he`s on the juice.

And this mechanical monster is hoping to get a leg up on the competition. That`s the kind of event that`ll really test your "metal." We`re not too worried about the nuts and bolts of the competition. We just hope everyone was geared up to have a good time. That`s all the time we`re going to "steel" from you, though.

Quick shoutout to the Thunderbirds at Harmony Middle School, who got our social media question right for the second time. So for the rest of you, for next week, the challenge is on. Have a great weekend. We`ll look forward to seeing y`all on Monday. Bye-bye.

(MUSIC PLAYING)

END

Read more
By Unknown | Sunday, March 11, 2012
Posted in: | 0 comments

First Time Android Application Development

首先去Android Development的網站下載SDK(當然JDK也要先裝好)。然後去下載defy+的USB驅動程式,因為我在沒裝這個之前用eclipse無論如何都找不到我的手機裝置,再來就是奘eclipse及ADT。

最後用eclipse開一個新專案之後再Build configuration的Target選你的手機裝置,這樣當跑你的程式時就可以直接發布到手機上面去看,比用模擬器好太多了,不過手機內應用程式的部分要開啟USB debug才行。

其實一切都跟網路上的說明一樣,只是我一直沒有去另外灌moto的USB驅動程式,導致程式一直找不到我的機子,害我浪費了一點時間。不過其實還滿興奮的,即使他只是個簡單到爆炸的教學範例,用這麼久的iPhone這次換到Android總算可以在手機上面多搞一些花樣了...


附註,螢幕截圖目前適用SDK裡的ddbms才產生的,目前還沒去找有沒有可以直接產生截圖的APP,只好先用SDK提供的工具擋著用。還有這裡有更詳細的網路上教學,我就是看這學的。至於APP的圖示,目前查到要換圖檔必須到以下路徑更換圖片:
  • src/drawable-hdpi  72x72
  • src/drawable-mdpi  48x48
  • src/drawable-ldp  36x36
附註之二,MOTODEV有更詳細的開發設定教學,像是提供MOTO模擬器或者是已經把開發環境裝置好的Motodev Studio,以上。

收工!


Read more
By Unknown | Sunday, March 04, 2012
Posted in: | 0 comments

Word Dynamo

parable
allegorical
paradox
paragon
parallelism
paralysis
paralyze
paramount
paramour
illicit
paraphernalia
paraphrase

今天在WordDynamo學到了以para字首的字,雖然有些其實以前背過了,不過也忘了。希望可以透過 WordDynamo 來當作是複習英文單字的工具。

Read more