A few things I’d like to do
Do a study and review on Kirk’s scope library and come out a document like a bluffer’s guide
Setup WTT job for doing unit test as well as making UI automation a no brainer
These two should be enough for now…
Alpha geek wanna be. Nessun dorma! Nessun dorma!!
Do a study and review on Kirk’s scope library and come out a document like a bluffer’s guide
Setup WTT job for doing unit test as well as making UI automation a no brainer
These two should be enough for now…
說真的, 玩具這種東西, 可以看, 可以想, 但如果真的想出手去買, 還真怕不久之後就會散盡家財, 不過, 作夢無罪, 我來列列我最近有興趣的東西:
看, 很貴吧, 我甚至沒有列任何鏡頭勒.
BUG: ---------, *** leaking file handle upon operator new failure
It is hard not to be emotionally affected by *** code.
Nevertheless, ****** complains that *** leaks file handle when *********::operator new() failed. It is essentially a very simple change, but I couldn't help myself to do a clean up....
阿蛋:
"It is hard not to be emotionally affected by *** code." Ha! that's the understatement of the year. They forced you to write a GOTO? I'd be taking really long shower to make myself feel clean again.
週一的 team meeting, 老饕告訴大家 Mr. Anderson 要閃人的消息. Mr. A 算是 team 裡的第二號人物, 某方面來說, 他對team 裡的 technical decision 的影響力比老饕廣. 他這一閃人, 空出來一個大大的洞, 大概要讓老饕很多天睡不好覺吧.
今天和老饕開會, 老饕告訴我我會分到的餅, 唔, 不是最肥美的那一塊, 不過, 多分一塊算一塊就是了.
水一樣流, 日子一樣過, 太陽一樣東邊起, 晚上一樣西邊落
今天晚上心情不太好, 晃著晃, 找到了薛岳唱的 "如果還有明天". 我看過薛岳的小傳, 對他這樣個性的人, 我猜自己大概不會和他太麻吉, 但是他的歌聲, 有一種穿透力, 能潛入我心情最不願為人知的地方, 然後用力的搖. 所以我每次聽他的歌. 都不敢開大聲, 更不敢專心, 因為怕自己聽了之後, 會無法收拾碎了一地的情緒. 如果還有明天(If There Still A Tomorrow) 如果還有明天 你想怎樣裝扮你的臉 我們都有看不開的時候 總有冷落自己的舉動 我們都有傷心的時候 總不在乎這種感受 如果你看出我的遲疑 是不是你也想要問我 如果真的還能夠有明天 是否能把事情都做完
詞:劉偉仁 曲:劉偉仁
如果沒有明天 要怎麼說再見
但是我一定會提醒自己 如果還有明天
但是我要把握每次感動 如果還有明天
究竟有多少事沒有做 如果還有明天
是否一切也將雲消煙散 如果沒有明天
Today I am reinstalling software packages on my work machine. One thing I came up in mind is not to install Windows Live Messenger. The reason is simply that the Live Messenger became too distracting and frankly, an IM chat is never efficient anyways. And I realized that not having messenger installed on system actually gave me a good refreshing feeling. Another interesting alternative is that, although I avoided messenger, I still went to www.live.com and downloaded Live Writer and Live Photo Gallery. Live Writer quickly became my primary blog authoring tool because of its excellent integration with the blog hosts I use. The Live Gallery, on the other hand, out performs Windows Photo Gallery because its integration with flickr. I guess Live team can call these two features a victory…well, only over Windows Vista though.
今天在中時看到這一篇文章, 大意是說, google 讓資訊太容易取得, 但傳回結果的品質良莠不齊, 造成大學生輕信低品質資訊的現象. 原文連結: 我同意 google(或任何一個 search engine)傳回的資料良莠不齊, 或說, 在 internet 這個萬言堂, 大多數的資料都有可信度與深度的問號. 然而, 筆者主張大學生對資訊品質的辨別能力有限, 或不在乎資訊是否正確. 這個論點我不能苟同. 首先我認為筆者這樣的觀點很根本地不尊重學生. 筆者假設學生皆用得過且過, 交卷即可的態度求學. 這樣的假設對認真求學的學生很不公平. 不但對學育沒有幫助, 反而會讓學生因為被否定而降低求學的動力. 同時, 品質低落的資訊也出現在傳統媒體 (例如名文:"硬體給我報報"). 故而,資訊品質的問題不限於網路世界, 甚至, 因為網路資訊快速流通, 謬誤被發現指出的機會更多. 最後, 筆者的論點忽略網路上同時存在優質資訊. 這樣的資訊因為 search engine 而得到更多的 exposure. 因為有search engine, 學生們有機會接收更多的優質資訊, 進而做出更宏觀的研究. 我認為 search engine 是一個強大的工具. 它能幫助學生用很高的效率 (和十年前比起來)找到需要的資料. 我同意因為 search engine 的普級, 學生需要具備更多判斷能力與科學精神. 然而, 這是一個根本的教育基礎建設, 英國的狀況我不熟, 但以我所知的台灣與每天都收到的 "FW: 重要必讀"的信, 我想, 這個部份還有一些路要走. 最後, 文章的結尾說: 說真的, "積極批判的思想家" 往往是那種講得最多, 做得最少, 每天打嘴砲卻沒有真正執行能力的人, 這樣的人對社會到底能有多少貢獻, 是個問題. 呃..好, 我大概能猜想這是記者把critical thinking 直接譯成了 "批判" 了. 這樣的品質, 是不是很遜. 中時算是傳統媒體, 這樣的品質, 你說怎麼能怪 searching engine 是"大學生依賴劣質資訊" 的原罪?
With all due respect: Shell API is powerful. No doubt about it, but it is so complex that it brings all sorts of extra stuff you don't really anticipate until it is too late. This price tag made Shell API less likely to be the first choice when facing a typical programming problem. Today I witted a rare chance where the Shell API became the most reasonable choice. My problem was to validate an user input and see whether it is a network path. For example, given something like \\server\share\dir1\dir2 , if the path is valid, I should return true. When I first get this, I thought this is like a 5 minutes of work. Call FindFirstFile, if the call returns a valid handled, check whether WIN32_FIND_DATA.dwFileAttributes contains FILE_ATTRIBUTE_DIRECTORY. However, it was during my dev test, I found this FindFirstFile works fine on almost all scenario, except a very fundamental case: \\server\share. If you feed FindFirstFile with \\server\share, it will simply fail. So what do I do? With remote impression, I found an API called NetShareCheck(). According to msdn this is what I needed. So my code became something like HANDLE handle = FindFirstFile(…); If (INVALID_HANDLE_VALUE != handle) // Do what I used to do else { // // 15 lines of code or so to parse and setup // the params for NetShareCheck // If (NERR_Success == result) // ok this is what we want So go to dev test again. Bah, no luck. Unfortunately NetShareCheck doesn't work the way I expected and I always get some asynchornize I/O like error. I was blocked and having a bad headache. Problem always got resolved after a night of sleep. When I drive my wife to exam the next day, I suddenly realized there are shell API I might be able to use. After all, if explorer can see it, it is likely that your code using the same API can see it. I know Shell offers SHParseDisplayName (ref link) and SHGetPathFromIDList(ref link). The former one let you convert a path into Shell's "Item ID List" (ref link), and the later let you convert the item id list into its display name plus getting attributes we'd need. So my 3rd attempt wiped out all existing code and did something like this: Pidl = SHParseDisplayName (szPath, xxxxx); If (pidl) { hr = SHGetPathFromIDList(…pidl,…, attrResult) if (IsWhatIWanted(attrResult)) hrRet = true;.. } Did it worked? Oh yeah, flawlessly. Loved it. Alright, now let's see how much we paid for this convenient function: As soon as I called into ShParseDisplayName, the system loads all these jazz: 'Generic.exe': Loaded 'C:\Windows\System32\uxtheme.dll', No symbols loaded. 'Generic.exe': Loaded 'C:\Windows\System32\apphelp.dll', No symbols loaded. 'Generic.exe': Loaded 'C:\Windows\System32\networkexplorer.dll', No symbols loaded. 'Generic.exe': Unloaded 'C:\Windows\System32\networkexplorer.dll' 'Generic.exe': Loaded 'C:\Windows\System32\networkexplorer.dll', No symbols loaded. 'Generic.exe': Loaded 'C:\Windows\System32\oleaut32.dll', No symbols loaded. 'Generic.exe': Loaded 'C:\Windows\System32\propsys.dll', No symbols loaded. 'Generic.exe': Loaded 'C:\Windows\System32\wininet.dll', No symbols loaded. 'Generic.exe': Loaded 'C:\Windows\System32\normaliz.dll', No symbols loaded. 'Generic.exe': Loaded 'C:\Windows\System32\iertutil.dll', No symbols loaded. 'Generic.exe': Loaded 'C:\Windows\System32\mpr.dll', No symbols loaded. 'Generic.exe': Loaded 'C:\Windows\System32\ntlanman.dll', No symbols loaded. 'Generic.exe': Loaded 'C:\Windows\System32\netapi32.dll', No symbols loaded. 'Generic.exe': Loaded 'C:\Windows\System32\psapi.dll', No symbols loaded. 'Generic.exe': Loaded 'C:\Windows\System32\secur32.dll', No symbols loaded. 'Generic.exe': Loaded 'C:\Windows\System32\drprov.dll', No symbols loaded. 'Generic.exe': Loaded 'C:\Windows\System32\davclnt.dll', No symbols loaded. 'Generic.exe': Loaded 'C:\Windows\System32\cscapi.dll', No symbols loaded. 'Generic.exe': Loaded 'C:\Windows\System32\userenv.dll', No symbols loaded. Huh, warned you, didn't I
{
}
NET_API_STATUS result = NetShareCheck(…);
{
}
}
跨年當天, 我上 YouTube 找 101 的煙火給家人看,突然後知後覺地意會到, 短短的兩年之內,隨選視訊變成一種唾手可得, 理所當然的東西. 好像在不知不覺之間, 時代又向前邁進了一步似的. 我幾乎可以看到 YouTube 在不久的將來, 會變成和 google 一樣的動詞. 一旦一個產品的名字變成動詞, 那表示這家公司的"獲利"也會從名詞變成動詞. 我相信 YouTube 會變成 google 的另一顆大搖錢樹, 甚至扮演廣播世代終結者的角色. 然後又到了敝人最喜歡的趨勢猜猜猜時間了. YouTube 接下來會怎麼發展呢? 以上.
The more I stay in Windows Programming, the more I know I don't know. Windows Security has been one that I have been unconsciously avoiding. This is the time I shall confront security, then I will become Jedi……or will I? Jedi or not, I'm on the destiny of prototyping an app that creates a security property page for an object. Meaning I'll be dealing jargons like Security Descriptor, DACL, SACL, this, and that. This is so not fun. Ok, enough whiny, start the hard to read MSDN document. Long live emperor…
今天看到這篇 Getting Leopard's BSOD? Try uninstalling APE, 心裡有一種平反的爽快. 我一定是對 Mac 太 Defensive 了, 也或許是對電視上那個 Hi I am Mac 的廣告太不以為然. 總是想找 "Mac is just another ordinary OS" 的證據. 如果把 crash rate 除以 install base, 不知道它還能屌到那裡去. 到了最後, 系統穩不穩定, 還是要看使用者本身的習慣, 如果使用者熱情奔放, 什麼軟體都愛裝來玩一玩, 那不管是什麼系統, 都可以死給你看.
大概一個月前左右, 妻子的電腦開始出現一些零星的問題, 於是我們開始討論替代的機種. Mac Book Pro 是我們的侯選機種之一. 原因之一是妻子任的是 designer 的工作, 遲早會有機會需要使用 Mac. 其次是我工作的緣故, 讓我很想自己體驗 Mac 與 Windows 的差異. 好巧不巧, 妻子的電腦在今天正寢, 我們依先前的討論, 買了一台 Mac Book Pro. 於是開始了我第一次的水果接觸 所以, 我的第一印像 硬體作工與設計: 十分優良.機體美感當然是久享盛名. 除了造型之外, 鍵盤的手感也很好. 按鍵回饋的力道掌握得恰到好處. 整個機體的建構十分紮實, 完全沒有一些國產筆電那種邊角按一按會有怪聲甚至凹下去的問題. Leopard UI 第一印像: 明亮, 生動: Mac 的配色與 Windows 系統差很多. 如果說 Windows Vista 是正經八百, 一板一眼, 那 Mac 大概可以用生動活潑來型容. 很多 Window transition 用動畫處理地很棒, 讓整個系統看起來好像有生命一般. 反觀 Windows XP 與 Vista, Dialog box 不管怎麼改, 看起來都是那一副死樣子, 尤其是 XP, 配色沒品味的程度令人.. 當然也是有一些問題 首先, 三句不離本行, 我試著連上書房 Vista 系統的 HP 印表機, 但是, 雖然我能從網路連線中看到我的主電腦, 但看不到 Printer. 我試了幾次, 都無法成功. 當然, 我還不熟 Mac, 做異質平台資源共享本來就會有難度 , 我只能說, 身為一個新使用者, 這個經驗讓找感到有點挫折. 光就這一點, 我在 Vista 的流程比較容易使用, Add Printer Wizard 可以自己搜尋 subnet 裡可以使用的印表機, Driver 也可以自己下載與安裝. 一切都很自動. 第二, (目前) 無法連到 Windows 的隱藏共享目錄: 在 Windows 裡, 如果 share folder name 的後面加一個 '$' 符號 (例如: foo$), 那這個目錄就不會被列在共享清單裡, 只能直接連線. 這是很重要的功能, 然而, 我今天也試了好一下, 還是無法讓 Mac 連線到我主電腦的隱藏共享目錄. 這讓我無法把先前備份的資料拷貝到新 Mac 上. UI language 與 system default language 無法分開設定. 所以在 Mac 上無法使用英文 UI, 又同時讓 default codepage 設為中文. 這讓 iTunes 在解我的 MP3 metadata 時完全失敗. 我覺得這方面 Windows 做得比較好. Windows 的 MUI 系統與語系設定, 在 XP 時代就作得十分成熟. 到 Vista, 雖然並沒有大改, 但是在 API level 改進不少. 以上
Looks like this is a way worth trying. Citing the original post from Obsidianspider of PA: After clicking the + on the Print & Fax screen a window will come up. If you right click in the toolbar and Control-Click in the toolbar you can then select "Customize Toolbar". You can then add the "Advanced" icon to the toolbar and then by selecting "Advanced" you can manually configure your printer.
今天又加班到快三點, 想在睡前休息一下, 逛逛不用大腦的網頁, 又發現腦袋好像風乾的樹葉一樣又乾又脆. 唉, 記得年初回台灣的時候在濱江市場買了紙片肉乾, 如果我的大腦變成紙片肉乾, 大概一定會又脆又薄. 十分好賣...
唉
最後一根稻草壓垮駱駝. 今天, 我決心減少掛網站的時間. 從今天起, 不再去 dcview, photosharp 和 diggirl.net, 也要有意識地減少到 mobile01 的次數. 這種掛網真是太昂貴了. 嗚啊….
在 01 上有人起了個 "一萬多張照片怎麼備份管理" 的話頭, 我也回頭清算了一下照片的總量.
近兩年我開始毫不留情的刪圖, 通常的生活記錄, 如果沒有用心拍, 大概十張會刪個八九張, 這樣近十年下來竟然才只有二萬多張. 比我想像的少. 嘿
關於照片的備份
我的照片大概 80 幾 gig, 放在一個外接碟裡, 每隔一段時間備份到另一顆硬碟. 用 Robocopy 或 SyncToy, 很方便. 我不用 DVD, 因為前幾年曾經發生光碟兩年不到就讀不出來的慘劇, 二來是一張張的碟片收起來很佔空間, 所以我自己已經很久用 CD/DVD 備份了. 多買一顆硬碟, 差不了多少錢, 但速度快又省空間, 何樂而不為.
目錄的安排則是:
\
於是, 如果今天去淡水玩, 那大概目錄看起來大概會像
\2007\2007-05-24, 淡水出去玩 (放 Raw 檔)
\2007\2007-05-24, 淡水出去玩, JPG (放修過後的JPG)
結果帖子放上去之後, 有人問為什麼 2005 會爆大量, 是不是出國玩. Well, 2005 是結婚. 嗯, 現在大家人手一機, 也不吝分享. 結果一個晚上光是熟朋友們拍的就近六仟張的照片, 三個小時的婚禮除一除, 平均一分鐘被拍 33 張, 豬公都會以為自己和不來得彼特一樣帥...
今天發生了一件慘劇. 一件很標準的, 每一位 blogger 都會遇到最少一次的, submit fail 然後沒備份的文章從此消失的那種慘劇. 這實在是一種十分令人氣結的 error. 難道這種鳥事完全不能避免, 每次寫 blog 都得先用 word 或 notepad 先打好兼備份嗎? 我不是 DHTML 或 ASP/JSP 的專家, 我不知道, 不過, 這真是很挫折. 唉, 沒力了, 睡覺去, 別再為 blog 浪費寶貴的睡眠時間了.