"Why do we fall?
So we can learn to pick ourselves up."
─ Batman Begins
"With Greater Power Comes Greater Responsibility."
─ Spiderman II
2009年5月20日 星期三
iTunes Podcast是好物 XD
如:CocoaCast、Hot Cocoa(這兩個都是教Mac平台的Cocoa programming)。
然後iTunes Store上的iTunes U裡有很多美國知名大學免費提供的課程錄影和講義,
也可以像Podcast一樣,直接訂閱,
如Stanford 提供的課程裡,有門課叫iPhone Application Programming,
目前已經有超過1百萬次的下載了。
Free Stanford iPhone dev podcasts downloaded 1 million times
目前我也只訂閱了這門課 XD
還有看到MIT開的6.035 Computer Language Engineering
看內容應該是compiler,但後面有些內容應該是advance compiler的部份。
可惜提供的錄影不夠完整。
之前就有注意到podcast上的免費資源,
只是當時硬碟容量不夠大,所以沒有抓來看。
現在容量完全不成問題了 XD
還可以同步到iPod上,隨身學習 XD
2009年5月16日 星期六
台北一日遊
感覺工作環境還蠻不錯的,
有免費的Yahoo! Bar可以取用(茶、咖啡),
休息時間可以到娛樂區(有投籃機、太鼓達人等等可以免費玩),
台灣分公司總員工有800人,其中一百多人為軟體工程師。
而yahoo也有朝向Open API的方向走,
有介紹幾個運用yahoo目曾前開放的API所做的第三方軟體,
如:斷章取義、投資客…等等。
然後正在整合內部的服務,朝社交的方向進行。
Q&A時有人問到yahoo mail的問題(垃圾信太多之類的),
工程師(清大資工學長)說目前有正在考慮用public-private key的方式來認證寄信者,
即運用數位簽章的方式來判斷,這個剛好是這學期修資訊保密有學到的東西 XD
據說Gmail好像也有在做這方面的嘗試。
晚餐時,就找幾個高中同學一起吃。
臨時找的還能找到5隻:BD、god、Jeffery、沅峰、施銘g。
施銘g還提到最近的波波事件,要god連署 XD
不過god之前好像看到某個反對波波的blog用威脅的語氣在敘述,
所以對反對方的印象不太好...
只能說…不論正、反兩方,都難免會有少數的激進份子 orz
這部份九把刀大有兩篇文章
http://www.wretch.cc/blog/Giddens/7194610
http://www.wretch.cc/blog/Giddens/7195522
BillyPan大整理的懶人包
http://www.wretch.cc/blog/billypan101/14376818
晚餐後因為BD要補家教,
施銘g要讀書,沅峰要寫作業
所以我就先到josh宿舍秏時間。
josh原本要拿一本Haskell的書給我看,
我說我現在沒有這個腦力可以看這個書 XD
看有沒有雜書之類的,
最後是拿一本"駭客與畫家"來看,
這裡有個很不錯的導讀:iThome online : : 書摘-駭客與畫家
看完了第一章,
印象最深的一句話是
"書呆子並不是不想變得受歡迎,只是和受歡迎比起來,讓自己變聰明更重要"
之後再和BD到師大夜市逛逛,
在BD提供容身之處下,在台北過了一夜才回新竹,
回程時還走錯路...
從火車站出來接市民大道後應該要向西走,
結果朝東走了15分鐘才發現走錯路了... orz
再走下去就會到光華商場了...(應該還有一大段路吧 XD)
被捷運內的地圖和自己的印象給誤導了...
(之前的印象不是走市民大道,而是火車站南邊的忠孝西路)
最後朝西邊也走過頭了…
(因為是在市民大道上…憑之前在忠孝西路的印象會以為客運總站在右手邊,
結果應該是在左手邊...orz)
結果不到10分鐘的路程花了近50分鐘才到…
這是有史以來第一次大迷路...(之前大部份都會先調查好路線,記好路名)
前一天到yahoo參觀前,
彭拓真還說不用每次都先調查好怎麼走,
不然就沒有新奇感。
偶爾隨便亂走,迷路一下也不錯之類的...
我只能說…這次我做到了...orz
事前在iPod上用google map調查路線時,
忘了放到最大仔細看附近的路名,
迷路時沒有台北wifly帳號可以上網再查,
這時iPhone就方便許多了,可以用3G電話網路上網,
不過把全台灣的離線地圖存入iPod也是ok的,只是要1.3gb
等容量夠時再來弄離線地圖(8gb真的不夠用...orz)
2009年5月5日 星期二
更新一下
最近越來越懶了,連外接硬碟的開箱文也懶得發了
等到六月份就可以和Time Machine一起運作了 XD
沒想到XP居然可以讀到GUID分割表的磁區,
這樣就方便許多了。
今天考資訊保密,
昨天居然嚴重失眠 orz
睡前真的不能想題目,會把瞌睡蟲趕走…
想完中國餘式定理的公式後,睡意也不見了 orz
不過還是硬著頭皮考了4個小時(9:00~13:00)
考卷總共有15張,不過其中14張都是一題bonus
bonus是叫我們當場破解一個加密演算法,
有提供幾組明文和密文的對照
所以是known plaintext attack
有找到點規律,不過後來還是沒解出來...
臨時抱佛腳並不是每次一都抱得起來的 orz
上次高等計結只是運氣特好罷了 XDD
目前短期內要先把研究記錄簿寫好,
就把之前meeting記錄和之前所做的事整理一下,
目前完成9/24...
2009年4月11日 星期六
Windows sucks
近幾年新病毒的數目呈指數成長
最近又以Conficker最為猖獗(災情嚴重啊,全球約有1千萬台電腦被感染)
新聞連結: 研究員:Conficker以謀財為目的 (底下還有三篇相關的新聞)
微軟還懸賞25萬美元抓Conficker的作者
連結:微軟懸賞25萬美元抓Conficker作者
此為微軟系統中的嚴重漏洞
請執行windows update更新
微軟最近還狂打說Mac用戶要繳很多「蘋果稅」
連結:檢視一下微軟所說的「蘋果稅」 (底下一樣有相關新聞)
那windows用戶是不是要繳很多病毒稅啊 XD
(防毒軟體大多要錢,還不一定能全抓到,而且還對系統效能造成不小的影響)
中毒後可能變成垃圾郵件的跳板,
可能被側錄鍵盤所打的帳號、密碼,
可能被操作去對別的網路做攻擊(如:DDoS)
最後看一下Apple的Get a Mac廣告吧
Apple - Get a Mac
(其中,Bean Counter和Security真的是超好笑的 XD)
3/11
輾轉相除法(Euclidean Algorithm)的證明,
和利用Extended Euclidean Algorithm來求出某個數在某個operation下的inverse,
Ex: 求出ax+by=1中的x和y值(a,b為已知值,可用輾轉相除法求)
晚上和牛哥談到政治話題(忘了為什麼會提到這個@@)
就講到最近通過的「公務員財產來源不明罪」
詳情可看這篇文章
「冷眼集》打折的陽光 夠強嗎」
(是聯合報的哦,兩邊的報紙都有看,超中立的啦 XDDD)
唉,看來立委們的"政績"又要多一項了...
國外先進國家如歐美日,其國會資訊都幾乎完全透明化
甚至能在網路上看到即時的開會狀況
這個連南韓都有(講到民主體制的完備性,台灣比南韓差蠻多的 orz)
南韓還有個民間團體專門來監督政府(成立至少有5~6年了吧)
台灣一直到這次立委選舉前才有這種民間組織─公民監督國會聯盟。
在選舉前有將幾個重大訴求(最重要的就是國會資訊透明化)拿給各個立委候選人簽,
大部份的人都有簽,但選完後就不認了...
然後每月公告立委出席率,又因此得罪了不少立委
就很容易被污名化
看來台灣的民主之路還有很長的一段路要走...
(不過民選總統也才選了4屆,才剛起步而已)
如果想了解一下政治的權力鬥爭,
可以看木村拓哉主演的CHANGE
會點燃對政治的熱情(來投筆從政了啦 XD)
不過片中的過程太過理想化了,還是看看就好
如果想了解一下醫療體系內的權力鬥爭的話,
可以看唐澤壽明主演的白い巨塔
最後,推薦一下嚴震生老師開的「美國政治」(每學期都有開哦)
課中對美國三權分立的平衡和待改革的亂象有不少的著墨,
現在幾乎都是政客充斥的世界了
政治家只能活在古書裡了吧
(美國歷屆的總統也只有少數幾人能稱得上是政治家)
順便分享個有關Obama的趣聞(現在Obama正夯啊 XD)
美國的憲法裡有一條規定
要參選總統的人必須要在美國的領土出生
Obama是西元1961年在Hawaii出生的
而Hawaii是在西元1959年才成為美國的領土
所以意思就是
Obama如果早個3年出生的話,就不能參選總統了 XD
我記得那時候還有提到說美國歷史上還有某個候選人的出生地是巴拿馬運河(曾為美國領土)
超酷的 XD
2009年4月7日 星期二
忙碌的一週
為了就是這星期要交四份作業外加一份科專計劃的code要改
(作業帶回家,結果進度=0 orz)
結果也是晚上才動工...(秏了不少時間看新聞,update資訊...)
晚上就和科專計劃的code PK了近5個小時
最後在GDB initial後就卡在segmentation fault,整個系統的模擬跑不起來...
幸好星期一早上重測時就正常,應該是伺服器有點問題
東西最後有達到進度(完成了7、8成吧,其他的部份要先等別人的寫好)
然後又發現了一個新的疑問,
昨天meeting後,資工學長說可以先試著用IDE的profiler測測看,
今天下午試過後發現profiler沒辦法測出我們想要的東西
(profiler只能看到模擬平台上cpu跑的程式在運作時的資訊,
沒辦法看到那顆用C++模擬出來的cpu在運作時的資訊)
可能要再想想辦法,不然就要直接寄信去問Andes了。
不過至少學長這星期五月報時有東西可以報了
(有測試過的code總比文字和圖形有說服力) XD
看來距離短期目標已不遠矣(但5月中就是下次季報了)
結果,其他四項作業的進度到現在都還是0...
(沒辦法,有拿錢的priority比較高...)
幸好今天上課時得知資訊保密HW2延一個星期交,
這個也是四個作業中最棘手的,要破解64!排列組合的加密
其他的作業,有一個是明天晚上12點前交code,
有兩個是星期四上課時交。
2009年4月1日 星期三
Stay Hungry, Stay Foolish
只是純粹想分享並記錄Steve Jobs 2005年在史丹福大學的演講。
以下是英文的演講稿:
'You've got to find what you love,' Jobs says
This is the text of the Commencement address by Steve Jobs, CEO of Apple Computer and of Pixar Animation Studios, delivered on June 12, 2005.
I am honored to be with you today at your commencement from one of the finest universities in the world. I never graduated from college. Truth be told, this is the closest I've ever gotten to a college graduation. Today I want to tell you three stories from my life. That's it. No big deal. Just three stories.
The first story is about connecting the dots.
I dropped out of Reed College after the first 6 months, but then stayed around as a drop-in for another 18 months or so before I really quit. So why did I drop out?
It started before I was born. My biological mother was a young, unwed college graduate student, and she decided to put me up for adoption. She felt very strongly that I should be adopted by college graduates, so everything was all set for me to be adopted at birth by a lawyer and his wife. Except that when I popped out they decided at the last minute that they really wanted a girl. So my parents, who were on a waiting list, got a call in the middle of the night asking: "We have an unexpected baby boy; do you want him?" They said: "Of course." My biological mother later found out that my mother had never graduated from college and that my father had never graduated from high school. She refused to sign the final adoption papers. She only relented a few months later when my parents promised that I would someday go to college.
And 17 years later I did go to college. But I naively chose a college that was almost as expensive as Stanford, and all of my working-class parents' savings were being spent on my college tuition. After six months, I couldn't see the value in it. I had no idea what I wanted to do with my life and no idea how college was going to help me figure it out. And here I was spending all of the money my parents had saved their entire life. So I decided to drop out and trust that it would all work out OK. It was pretty scary at the time, but looking back it was one of the best decisions I ever made. The minute I dropped out I could stop taking the required classes that didn't interest me, and begin dropping in on the ones that looked interesting.
It wasn't all romantic. I didn't have a dorm room, so I slept on the floor in friends' rooms, I returned coke bottles for the 5¢ deposits to buy food with, and I would walk the 7 miles across town every Sunday night to get one good meal a week at the Hare Krishna temple. I loved it. And much of what I stumbled into by following my curiosity and intuition turned out to be priceless later on. Let me give you one example:
Reed College at that time offered perhaps the best calligraphy instruction in the country. Throughout the campus every poster, every label on every drawer, was beautifully hand calligraphed. Because I had dropped out and didn't have to take the normal classes, I decided to take a calligraphy class to learn how to do this. I learned about serif and san serif typefaces, about varying the amount of space between different letter combinations, about what makes great typography great. It was beautiful, historical, artistically subtle in a way that science can't capture, and I found it fascinating.
None of this had even a hope of any practical application in my life. But ten years later, when we were designing the first Macintosh computer, it all came back to me. And we designed it all into the Mac. It was the first computer with beautiful typography. If I had never dropped in on that single course in college, the Mac would have never had multiple typefaces or proportionally spaced fonts. And since Windows just copied the Mac, its likely that no personal computer would have them. If I had never dropped out, I would have never dropped in on this calligraphy class, and personal computers might not have the wonderful typography that they do. Of course it was impossible to connect the dots looking forward when I was in college. But it was very, very clear looking backwards ten years later.
Again, you can't connect the dots looking forward; you can only connect them looking backwards. So you have to trust that the dots will somehow connect in your future. You have to trust in something — your gut, destiny, life, karma, whatever. This approach has never let me down, and it has made all the difference in my life.
My second story is about love and loss.
I was lucky — I found what I loved to do early in life. Woz and I started Apple in my parents garage when I was 20. We worked hard, and in 10 years Apple had grown from just the two of us in a garage into a $2 billion company with over 4000 employees. We had just released our finest creation — the Macintosh — a year earlier, and I had just turned 30. And then I got fired. How can you get fired from a company you started? Well, as Apple grew we hired someone who I thought was very talented to run the company with me, and for the first year or so things went well. But then our visions of the future began to diverge and eventually we had a falling out. When we did, our Board of Directors sided with him. So at 30 I was out. And very publicly out. What had been the focus of my entire adult life was gone, and it was devastating.
I really didn't know what to do for a few months. I felt that I had let the previous generation of entrepreneurs down - that I had dropped the baton as it was being passed to me. I met with David Packard and Bob Noyce and tried to apologize for screwing up so badly. I was a very public failure, and I even thought about running away from the valley. But something slowly began to dawn on me — I still loved what I did. The turn of events at Apple had not changed that one bit. I had been rejected, but I was still in love. And so I decided to start over.
I didn't see it then, but it turned out that getting fired from Apple was the best thing that could have ever happened to me. The heaviness of being successful was replaced by the lightness of being a beginner again, less sure about everything. It freed me to enter one of the most creative periods of my life.
During the next five years, I started a company named NeXT, another company named Pixar, and fell in love with an amazing woman who would become my wife. Pixar went on to create the worlds first computer animated feature film, Toy Story, and is now the most successful animation studio in the world. In a remarkable turn of events, Apple bought NeXT, I returned to Apple, and the technology we developed at NeXT is at the heart of Apple's current renaissance. And Laurene and I have a wonderful family together.
I'm pretty sure none of this would have happened if I hadn't been fired from Apple. It was awful tasting medicine, but I guess the patient needed it. Sometimes life hits you in the head with a brick. Don't lose faith. I'm convinced that the only thing that kept me going was that I loved what I did. You've got to find what you love. And that is as true for your work as it is for your lovers. Your work is going to fill a large part of your life, and the only way to be truly satisfied is to do what you believe is great work. And the only way to do great work is to love what you do. If you haven't found it yet, keep looking. Don't settle. As with all matters of the heart, you'll know when you find it. And, like any great relationship, it just gets better and better as the years roll on. So keep looking until you find it. Don't settle.
My third story is about death.
When I was 17, I read a quote that went something like: "If you live each day as if it was your last, someday you'll most certainly be right." It made an impression on me, and since then, for the past 33 years, I have looked in the mirror every morning and asked myself: "If today were the last day of my life, would I want to do what I am about to do today?" And whenever the answer has been "No" for too many days in a row, I know I need to change something.
Remembering that I'll be dead soon is the most important tool I've ever encountered to help me make the big choices in life. Because almost everything — all external expectations, all pride, all fear of embarrassment or failure - these things just fall away in the face of death, leaving only what is truly important. Remembering that you are going to die is the best way I know to avoid the trap of thinking you have something to lose. You are already naked. There is no reason not to follow your heart.
About a year ago I was diagnosed with cancer. I had a scan at 7:30 in the morning, and it clearly showed a tumor on my pancreas. I didn't even know what a pancreas was. The doctors told me this was almost certainly a type of cancer that is incurable, and that I should expect to live no longer than three to six months. My doctor advised me to go home and get my affairs in order, which is doctor's code for prepare to die. It means to try to tell your kids everything you thought you'd have the next 10 years to tell them in just a few months. It means to make sure everything is buttoned up so that it will be as easy as possible for your family. It means to say your goodbyes.
I lived with that diagnosis all day. Later that evening I had a biopsy, where they stuck an endoscope down my throat, through my stomach and into my intestines, put a needle into my pancreas and got a few cells from the tumor. I was sedated, but my wife, who was there, told me that when they viewed the cells under a microscope the doctors started crying because it turned out to be a very rare form of pancreatic cancer that is curable with surgery. I had the surgery and I'm fine now.
This was the closest I've been to facing death, and I hope its the closest I get for a few more decades. Having lived through it, I can now say this to you with a bit more certainty than when death was a useful but purely intellectual concept:
No one wants to die. Even people who want to go to heaven don't want to die to get there. And yet death is the destination we all share. No one has ever escaped it. And that is as it should be, because Death is very likely the single best invention of Life. It is Life's change agent. It clears out the old to make way for the new. Right now the new is you, but someday not too long from now, you will gradually become the old and be cleared away. Sorry to be so dramatic, but it is quite true.
Your time is limited, so don't waste it living someone else's life. Don't be trapped by dogma — which is living with the results of other people's thinking. Don't let the noise of others' opinions drown out your own inner voice. And most important, have the courage to follow your heart and intuition. They somehow already know what you truly want to become. Everything else is secondary.
When I was young, there was an amazing publication called The Whole Earth Catalog, which was one of the bibles of my generation. It was created by a fellow named Stewart Brand not far from here in Menlo Park, and he brought it to life with his poetic touch. This was in the late 1960's, before personal computers and desktop publishing, so it was all made with typewriters, scissors, and polaroid cameras. It was sort of like Google in paperback form, 35 years before Google came along: it was idealistic, and overflowing with neat tools and great notions.
Stewart and his team put out several issues of The Whole Earth Catalog, and then when it had run its course, they put out a final issue. It was the mid-1970s, and I was your age. On the back cover of their final issue was a photograph of an early morning country road, the kind you might find yourself hitchhiking on if you were so adventurous. Beneath it were the words: "Stay Hungry. Stay Foolish." It was their farewell message as they signed off. Stay Hungry. Stay Foolish. And I have always wished that for myself. And now, as you graduate to begin anew, I wish that for you.
Stay Hungry. Stay Foolish.
Thank you all very much.
出自:
http://news.stanford.edu/news/2005/june15/jobs-061505.html
中文翻譯可以參考肇烜的blog:
http://www.wretch.cc/blog/chaohsuan/16648067
youtube上有史丹福大學提供的完整影片:
http://www.youtube.com/watch?v=Hd_ptbiPoXM&feature=related