php升級為5.3後,程式會報 Function split() is deprecated 的錯誤。這是因為種種原因(主要是關於正則的原因,具體見後),split這個函數在新版本不支援了。在php中,再使用deprecated的函數會報錯,必須改掉。(java裡deprecated的函數只是給警告,還可以繼續用)改為什麼呢? 看第一個參數,如果第一個參數不是Regex,split改為
Chp 2 What makes a good program There are indications from other situations that it is not the meanlength of estimated time that annoys people but, rather, the standarddeviation in the actual time taken. Fisher's Fundamental Theorem:
想找一份滿意的工作嗎?面試中面對外國老闆連珠炮似的提問,有沒有覺得心慌意亂、無所適從?求職過程中面試尤為重要,回答問題,如果能簡明扼要,真誠中肯,合乎老外口味,那麼錄取機會必定大大增加。當然,有的問題,也要輕描淡寫,以免言多必失。本篇摘錄了若干面試中出現頻率較高的問題及精彩回答,希望能在您求職路上助您一臂之力。Q: Can you sell yourself in two minutes? Go for it. (你能在兩分鐘內自我推薦嗎?大膽試試吧!)
deque: The semantics of iterator invalidation for deque is as follows. Insert (including push_front and push_back) invalidates all iterators that refer to a deque. Erase in the middle of a deque invalidates all iterators that refer to the
__THROW是什麼東西?很多標頭檔裡面對函數的聲明後面都跟一個這東西,查了一下,有這麼個文章說的清楚,轉來看看。Linux/FreeBSD核心的源檔案裡常會出現這個東東。其實並不複雜,只是簡單的宏定義,可以參考以下代碼<sys/cdefs.h>;:/* GCC can always grok prototypes. For C++ programs we add throw() to help it optimize the function calls. But
Chp1 How Failure Comes to BeIn general, a failure comes about in the four stages discussed in the following. 1.The programmer creates a defect 2.The defect causes an infection. 3.The infection propagates. 4.The infection causes a failure
流微型驅動開發指南——翻譯:codewarrior@HS5@HS5注意:本節詳述了已經過時的Stream.sys類驅動。隨著Microsoft Windows XP的正式發布,Microsoft建議硬體製造商考慮使用下一代Class模型——AVStream——來開發新的,非音頻多媒體驅動程式。相關細節可參看《AVStream Overview》一章。Microsoft現在只對Stream.sys提供基本的支援。如果你要開發一個音頻Minidriver,請參看《Audio Miniport