BLC~大檸樂,尋晚激嬲左阿媽
事緣我懶,唔想在電腦上幫阿媽執相,又想拖多陣先做
結果當然係慘敗,戰敗國要作出賠償,勁蝕兩粒鐘,整到三點幾先有得訓
早前阿媽去聚餐,帶埋部新數碼相機去影相,沖晒出來發覺色溫有問題,都偏紅了。佢話部機係新買的(其實係上季了)但影出黎唔好睇,更係心翕(不過供緊部機果個好似係我喎),所以要我在電腦上執相。有四十幾張,我又唔係PRO,上次執張大合照既紅眼問題,已經令我覺得好痛苦。逐張執,每張個SETTINGS都唔同,個PREVIEW格仔又豆腐潤咁細,唉,眼都濛埋。
前晚執左幾張合照,叫阿媽去沖多次看看效果如何。佢去了兩間沖晒舖印,其中一間要今日才有相。似乎同一張相在兩間舖印出來效果唔一樣。個六和個二比較,個六比較清但偏紅,個二就?退貨再晒會好靚喎,似乎平既質素唔穩定呢。
個六和個二,只差四毫。
近排發覺阿媽好似對呢D花費無咁著緊。係好事。
佢會唔會有日講:「果一百幾十唧,豪俾佢咯~」
p.s. 尋日終於搵到厚海綿,而且是免費的,只是有點髒。pack好隻harddisk了,等機會溜出去去郵局寄先。
Wednesday, 3 August 2005
Monday, 1 August 2005
coin weighting problem: my solution
let's label the coins into letters: ABCDEFGHIJKL
- on weight #1: ABCD vs EFGH
- on weight #2: AEIJ vs CDFK
- on weight #3: ACEI vs BHJL
this will yeilds only 24 results, which each one indicates which coin is counterfeit and whether the counterfeit is heavier or lighter. for each weight there are three possible outcome: left side lighter than right side, left side heavier than right side, and even. therefore, there should be 3 to the power 3 combinations. however, three of them will not happen (for ex. three even because every coin is weight at least once and one of them is counterfeit). the results are list as below:
| Weight #1 | Weight #2 | Weight #3 | Result |
| L = R | L = R | L = R | * cannot happen * |
| L = R | L = R | L < R | L is heavier |
| L = R | L = R | L > R | L is lighter |
| L = R | L < R | L = R | K is heavier |
| L = R | L < R | L < R | I is lighter |
| L = R | L < R | L > R | J is lighter |
| L = R | L > R | L = R | K is lighter |
| L = R | L > R | L < R | J is heavier |
| L = R | L > R | L > R | I is heavier |
| L < R | L = R | L = R | G is heavier |
| L < R | L = R | L < R | H is heavier |
| L < R | L = R | L > R | B is lighter |
| L < R | L < R | L = R | F is heavier |
| L < R | L < R | L < R | A is lighter |
| L < R | L < R | L > R | * cannot happen * |
| L < R | L > R | L = R | D is lighter |
| L < R | L > R | L < R | C is lighter |
| L < R | L > R | L > R | E is heavier |
| L > R | L = R | L = R | G is lighter |
| L > R | L = R | L < R | B is heavier |
| L > R | L = R | L > R | H is lighter |
| L > R | L < R | L = R | D is heavier |
| L > R | L < R | L < R | E is lighter |
| L > R | L < R | L > R | C is heavier |
| L > R | L > R | L = R | F is lighter |
| L > R | L > R | L < R | * cannot happen * |
| L > R | L > R | L > R | A is heavier |
Sunday, 31 July 2005
車隊飯局
今日xbox車會轉會長,凍魚終於搵到佢既接班人:好人。
原本忘記了,還打算去買外賣,好彩有PDA提醒。不過佢報早了一小時。
早到了就在老麥等,睇下新聞睇下XBOX NEWS。好期望360到來,基本上一出我就會買,三千蚊,豪俾佢啦。希望可以慳到位,加上有無線,很好。舊機,真可惜,係衰大份。
原本期望在Netvigator可以用平少少價錢去供360,不過車會d人話似乎唔可能,因為Netvigaotr同Sony聯盟了。算吧,等吉之島九五折啦。
更期望是GBM Gameboy Micro,快D出啦。到時會換掉部GBA SP吧。
原本忘記了,還打算去買外賣,好彩有PDA提醒。不過佢報早了一小時。
早到了就在老麥等,睇下新聞睇下XBOX NEWS。好期望360到來,基本上一出我就會買,三千蚊,豪俾佢啦。希望可以慳到位,加上有無線,很好。舊機,真可惜,係衰大份。
原本期望在Netvigator可以用平少少價錢去供360,不過車會d人話似乎唔可能,因為Netvigaotr同Sony聯盟了。算吧,等吉之島九五折啦。
更期望是GBM Gameboy Micro,快D出啦。到時會換掉部GBA SP吧。
Saturday, 30 July 2005
Warranty Service
I want to send my old 120 GB harddisk back for service, before its 3 years warranty expired. For over one and a half years the harddisk was not working well. It will roars when spinning. That's scary.
I just registered at Hitachi's website. Now I've to send it back via mail. The troublesome job is to find some thick foam to wrap the harddisk. Netiher bubble wrap nor styrofoam peanuts is allowed. Otherwise, warranty will be voided immediately. The harddisk only worth just $300 but the cost of shipment and handling make it not worth the price. (see Hitachi Packaging instructions)
It might be easier for me to just throw it away rather than having it fixed. Sigh.
I just registered at Hitachi's website. Now I've to send it back via mail. The troublesome job is to find some thick foam to wrap the harddisk. Netiher bubble wrap nor styrofoam peanuts is allowed. Otherwise, warranty will be voided immediately. The harddisk only worth just $300 but the cost of shipment and handling make it not worth the price. (see Hitachi Packaging instructions)
It might be easier for me to just throw it away rather than having it fixed. Sigh.
coin weighting problem
coin weighting (ref: http://www.techinterview.org/Puzzles/fog0000000090.html)
you have 12 coins. one of them is counterfeit. all the good coins weight the same, while the counterfeit one weights either more or less than a good coin.
your task is to find the counterfeit coin using a balance-scale in 3 weights. moreover, you want to say whether the coin weighs more or less than is should and, and this is the real kicker, your weighs must be non-adaptive.
that is, your choice of what to put on the balance for your second weigh cannot depend on the outcome of the first weigh and your decision about what to weigh for round 3 cannot depend on what happened on either your first or second weigh.
for example, you can't say something like "take coin #1 and coin #2 and weigh them. if they balance, then take coins 3,4,5 and weight them against 6,7,8...if 1 and 2 don't balance, then weigh #1 vs #2..." you have to say something like:
round #1: do this
round #2: do this
round #3: do this
if the results are left tilt, balanced, and right tilt, respectively, then coin #11 is heavier than it should be.
this problem is solveable...it took me about 1-2 hours of working on it to get it. i think even finding the counterfeit using an adaptive solution is tough. then non-adaptive constraint makes it quite hard and having to find whether it's heavier and lighter is cruel and unusual riddling ;-)
have fun...
Since the official website does not have a solution (not a sound solution), so I posted my solution online.
you have 12 coins. one of them is counterfeit. all the good coins weight the same, while the counterfeit one weights either more or less than a good coin.
your task is to find the counterfeit coin using a balance-scale in 3 weights. moreover, you want to say whether the coin weighs more or less than is should and, and this is the real kicker, your weighs must be non-adaptive.
that is, your choice of what to put on the balance for your second weigh cannot depend on the outcome of the first weigh and your decision about what to weigh for round 3 cannot depend on what happened on either your first or second weigh.
for example, you can't say something like "take coin #1 and coin #2 and weigh them. if they balance, then take coins 3,4,5 and weight them against 6,7,8...if 1 and 2 don't balance, then weigh #1 vs #2..." you have to say something like:
round #1: do this
round #2: do this
round #3: do this
if the results are left tilt, balanced, and right tilt, respectively, then coin #11 is heavier than it should be.
this problem is solveable...it took me about 1-2 hours of working on it to get it. i think even finding the counterfeit using an adaptive solution is tough. then non-adaptive constraint makes it quite hard and having to find whether it's heavier and lighter is cruel and unusual riddling ;-)
have fun...
Since the official website does not have a solution (not a sound solution), so I posted my solution online.
Friday, 29 July 2005
大鑊事
正所謂「公事私事麻煩事,唔關我事;
黑鑊鐵鑊炒大鑊,你要咩鑊。」
出事了,又多個新project;
大鑊了,舊project又出現問題。
唉,是我功力未夠嗎?已經封印了XBOX、封印了PS2、封印了SP,還要封印什麼呢?
真想一日有80小時~
黑鑊鐵鑊炒大鑊,你要咩鑊。」
出事了,又多個新project;
大鑊了,舊project又出現問題。
唉,是我功力未夠嗎?已經封印了XBOX、封印了PS2、封印了SP,還要封印什麼呢?
真想一日有80小時~
weighting problem: classical
Classic Weighting (ref: http://www.techinterview.org/Puzzles/fog0000000046.html)
Problem: The evil king from before sends his own assassin to take care of the evil queen who tried to poison him. Of course, her trusty guards catch the assassin before any harm is done. The queen notices that the assassin is quite handsome and doesn't really want to punish him by death. She decides to test his wisdom.
The queen gives the assassin 12 pills which are all completely identical in shape, smell, texture, size, except 1 pill has a different weight. The queen gives the man a balance and tells him that all the pills are deadly poison except for the pill of a different weight. The assassin can make three weighings and then must swallow the pill of his choice. If he lives, he will be sent back to the bad king's kingdom. If he dies, well, thats what you get for being an assassin.
Only one pill is not poison and it is the pill which has a different weight. The assassin does not know if it weighs more or less than the other pills. how can he save his skin?
Solution: Official solution
An easier version of this question is that you knew the non-poison bill is heavier (or lighter, similiar logic apply).
Problem: The evil king from before sends his own assassin to take care of the evil queen who tried to poison him. Of course, her trusty guards catch the assassin before any harm is done. The queen notices that the assassin is quite handsome and doesn't really want to punish him by death. She decides to test his wisdom.
The queen gives the assassin 12 pills which are all completely identical in shape, smell, texture, size, except 1 pill has a different weight. The queen gives the man a balance and tells him that all the pills are deadly poison except for the pill of a different weight. The assassin can make three weighings and then must swallow the pill of his choice. If he lives, he will be sent back to the bad king's kingdom. If he dies, well, thats what you get for being an assassin.
Only one pill is not poison and it is the pill which has a different weight. The assassin does not know if it weighs more or less than the other pills. how can he save his skin?
Solution: Official solution
An easier version of this question is that you knew the non-poison bill is heavier (or lighter, similiar logic apply).
Tuesday, 26 July 2005
Friday, 22 July 2005
私伙架
Subscribe to:
Posts (Atom)
