一週雜感
最近一星期好多事想寫,打風、奧運、打仗…但拖著拖著,終於開始
(閱讀全文)
@import url( "http://www.mocasting.com/main/wp-content/sitetemplates/almost-spring/templates/wp-layout.css" );
“What's common between iMac, iPod, iTunes and iPhone?”
“They are purely imaginary, they've no real parts.”
“What's the difference between Oracle 8 and 8i?”
“… well, it is complex.”
“I can turn the imaginary to real.
“
“No you can't.”
“I mean i can, not I can. Stupid AutoCorrect!”
Reference: Complex Number
Q: You have a table storing the materials and another table storing the consumer requests on the materials. Materials are stored in different batches, each containing a different quantity of stock. Both the material and consumer tables have a sequence field, indicating which material is to be consumed first and which request is to be served first respectively. You need to allocate the material to the consumers, allocating enough quantity. For example:
Material Table
| Record ID | Material ID | Ordering | Stock |
| RM1 | M1 | 1 | 25 |
| RM2 | M1 | 2 | 15 |
| RM3 | M1 | 3 | 15 |
| RM4 | M1 | 4 | 35 |
| RM5 | M2 | 1 | 5 |
| RM6 | M2 | 2 | 35 |
Consumer Table
| Record ID | Material ID | Ordering | Requested Qty |
| RC1 | M1 | 1 | 30 |
| RC2 | M1 | 2 | 50 |
| RC3 | M2 | 1 | 10 |
| RC4 | M2 | 2 | 20 |
| RC5 | M1 | 3 | 10 |
| RC6 | M1 | 4 | 20 |
Expected Output
| Reference Matching Quantities | |||||
| Material ID | Material Record ID | Consumer Record ID | Allocated Qty | Stock | Requested Qty |
| M1 | RM1 | RC1 | 25 | 25 | 30 |
| M1 | RM2 | RC1 | 5 | 15 | 30 |
| M1 | RM2 | RC2 | 10 | 15 | 50 |
| M1 | RM3 | RC2 | 15 | 15 | 50 |
| M1 | RM4 | RC2 | 25 | 35 | 50 |
| M1 | RM4 | RC5 | 10 | 35 | 10 |
| M1 | – | RC6 | Unallocated due to no stock | 10 | |
| M2 | RM5 | RC3 | 5 | 5 | 10 |
| M2 | RM6 | RC3 | 5 | 35 | 10 |
| M2 | RM6 | RC4 | 20 | 35 | 20 |
「八大工業國」在倭國開會,協議在 2050 年之前,CO2 減排一半。
2050 減排一半,和最終達致全面普選一樣,是一個存在而不用理會的目標…這麼長遠的事,無論如何不是我搞吧,我還有更急切的工作要做(例如收油公司獻金)。這伙領導人,真是為國家和人民著想,更為自己超過六代之後的領導人著想。因為再不需要擔憂這個麻煩的問題了。畢竟,這是整個世界的問題,當然要整個世界一同承擔。而且,二氧化碳排放量越多,越能把問題排放到其他國家。誰管他?!況且,我已經排放了數百年,別人才排放了數十年,我當然要多排放幾百年,他們有什麼資格跟我?
美國啊,繼續煲熟地球,繼續製造恐怖份子,繼續推高油價吧!!
個考試原本期限是四月三日,三月尾想上去報名時發現改了為六月三十日。
於是懶散了兩個月,到最近先開始重新預備…
早兩日再想報名時,發現又為改為九月一日!(開學日即考試?!)
但決定不再拖…一鼓作氣,速戰速決…希望七月內考
…最遲八月頭。否則又全部忘記,重新溫過…
一月考的考生,等成績等到頸長(但如不再廷期,都要十一月先出…)
Oracle EBS R12: Install, Patch and Maintain Applications
不知不覺又到清假的時候,也兼且爭取時間為月尾的考試準備。
本來是想昨天開始放的,幸好因為工作纏身放不了。否則昨天「風神」襲港的八號風球的就浪費了。
今日天氣依然不穩。平時出門上班的時間更下了超級暴雨,雨水竟然撇上天花板
,嚇得以為天花板漏水,幸好只時一場虛驚。
這個假,放得太著時了。(但我仍未溫書…)