All posts by hevangel

HydroRight Dual-Flush

The chain connecting the toilet handle to the flapper is broken, I set out to Canadian Tire to buy a replacement chain. Instead of buying a $2 little chain, I end up buying the HydroRigth Dual-Flush system to retrofit my ordinarily toilet to a dual flush toilet. A dual flush toilet save water by adjusting the water flow depending on your needs. You don’t need a full tank of water if there is only pee in the toilet.

The installation is really easy. As the box claim, no tool is required. Just take out the old drop handle and flapper, drop in the new flush system and you are done. The box claims it can be installed in 10 minutes, but it took me almost 30 minutes to adjust the optimal water level for half flush and full flush. The mechanics of the dual-flush system is pretty smart. The full flush operation is pretty much the same as lifting up an old fashion flapper. The trick is on the half flush operation. It has an internal adjustable buoyant control for the half flush operation, when the water level drops below the buoyant, it will close the flapper automatically.

The dual flush system saves half tank of water for every half flush, that adds up to lots of water saving over a year. With the new dual flush toilet installed, I am proud of having a green and environmental friendly life style by using water more efficiently..

狼人(動畫版)Wolverine Anime

美國動畫反攻日本,前一季有「鋼鐵俠」先打頭炮,上季便輪到「狼人」出場。今季更是大舉出動,X-Men全家總動員到日本。若果以前有看Marvel漫畫或看過X-Men的真人電影,看這套「狼人」的第一個反應,必定是嘩一聲叫出來,問怎麼一向形像粗獷的狼人,竟然整容變成尖口尖臉的美男子。在這套動畫中,狼人沒有穿上他黃黑二色的招牌制服,只是很師氣地著風褸牛仔褲。若不是他藏在手背的利爪,和擁有不死身的設定,只看人物設定很難把他和印象中的狼人聯起來。

下文包有劇情,雖然不用看也估到結局,還是循例作出溫韾提示。

美式英雄漫畫故事一向只有直線劇情,這次當然也不倒外。狼人的女朋友真理子給黑社會父親抓了回去,迫她嫁給黑幫頭子作政治姻親。於是狼人從美國千里迢迢追到日本,過關斬將去搶新娘,還順道把兩個黑幫消滅了。雖說女朋友是正印女主角,但她出場的戲份少得可憐,每集出來擺個苦瓜面,完全看不出她有多愛狼人。反而狼人在途遇上女殺手雪緒,要找黑幫頭子報殺父之仇,興狼人目標一至並肩作戰,她比真理子更像女主角,害我還以為狼人會移情別戀。兩個女角最後難逃一死,未來很凄美的劇情,因為劇本嚴重老土而變成很搞笑。

故事是很公式化的每週一怪,戰鬥場面比「鋼鐵俠」更脫力。很多動作用分鏡和快線略過,完全看不到狼人在打什麼。最不滿意是每場戰鬥一式一樣,都是狼人先落下風,只有被敵人挨打的份兒。最後卻忽然間大發神威,不知從那裏冒出一招把對手解決。動畫中原創壞人很夾硬,完全是為打而打才存在。不知道外父還是奸夫才算是最後大佬,外父的劍氣攻擊極度跨張,凌空擘劍可以連鐵柱也斬斷。奸夫手無縛雞之力,故事打算把他塑造成智能形壞人,可是他對付狼人的計畫十分白痴,不知道他如何統治罪惡之島。罪惡之島本身的設定已經極不合理,狼人走獄道可以直抵龍宮,途中遇上的低科技陷阱完全得啖笑。最頂癮是巨投石器在地底升上來,但投石器竟然要人手操控,幾個衣著古怪的人隨機器升上來。不知道他們是獄道的警備長駐在投石器上,還是狼人入侵獄道後,才吹雞招集人手。唯一正常的敵人是從漫畫跟過來,狼人的宿敵極赤。只有那兩集的打鬥水準才算合格,其他集數的打鬥很勉強。

動畫的故事內容爛歸爛,正如電視連續劇的常用手法,每集結尾總故作緊張留下伏線,吊觀眾胃口吸引他們下個星期再回來看。儘管我邊看邊罵,我還是一個星期接一個星期追看完整套動畫。如此劇本既竟吸引到我來追看,大慨「狼人」本身差還不算差到貼地,還是只是在吃原著漫畫的老本。

The Terror of Code in the Wrong Hands

Here is a new term, software terrorist, who brings negative productivity to the team. I can attest that catching bug in poorly written code waste a lot more time than rewriting the code myself from scratch.

By Allen Holub, May 2005, SD Times

The 20-to-1 productivity rule says that 5 percent of programmers are 20 times more productive than the remaining 95 percent, but what about the 5 percent at the other end of the bell curve? Consider the software terrorist: the guy who stays up all night, unwittingly but systematically destroying the entire team’s last month’s work while “improving” the code. He doesn’t tell anybody what he’s done, and he never tests. He’s created a ticking time bomb that won’t be discovered for six months.

When the bomb goes off, you can’t roll back six months of work by the whole team, and it takes three weeks of your best programmer’s effort to undo the damage. Meanwhile, our terrorist gets a raise because he stays late so often, working so hard. The brilliant guy who cleans up the debris gets a bad performance review because his schedule has slipped, so he quits.

Valuable tools in the hands of experts become dangerous weapons in the hands of terrorists. The terrorist doesn’t understand how to use generics, templates and casts, and so with a single click on the “refactor” button he destroys the program’s carefully crafted typing system. That single-click refactor is a real time saver for the expert. Scripting languages, which in the right hands save time, become a means for creating write-only code that has to be scrapped after you’ve spent two months trying to figure out why it doesn’t work.

Terrorist scripts can be so central to the app, and so hard to understand, that they sometimes remain in the program, doubling the time required for all maintenance efforts. Terrorist documentation is a font of misinformation. Terrorist tests systematically destroy the database every time they’re run.

Terrorist work isn’t just nonproductive, it’s anti-productive. A terrorist reduces your team’s productivity by at least an order of magnitude. It takes a lot longer to find a bug than to create one. None of the terrorist code ends up in the final program because it all has to be rewritten. You pay the terrorists, and you also pay 10 times more to the people who have to track down and fix their bugs.

Given the difficulty that most organizations have in firing (or even identifying) incompetent people, the only way to solve this problem is not to hire terrorists at all; but the terrorists are masters of disguise, particularly in job interviews. They talk a good game, they have lots of experience, and they have great references because they work so hard.

Since the bottom 5 percent is indistinguishable from the rest of the bottom 95 percent, the only way to avoid hiring terrorists is to avoid hiring from the remaining 95 percent altogether.

The compelling reason for this strategy is that the 20-to-1 rule applies only when elite programmers work exclusively with other elite programmers. Single elite programmers who interact with 10 average programmers waste most of their time explaining and helping rather than working. Two elite programmers raise the productivity of a 20-programmer group by 10 percent. It’s like getting two programmers for free. Two elite programmers working only with each other do the work of at least 20 average programmers. It’s like getting 18 programmers for free. If you pay them twice the going salary (and you should if you want to keep them), you’re still saving vast amounts of money.

Unfortunately, it’s possible for a software terrorist to masquerade as an elite programmer, but this disguise is easier to detect. Programmers who insist on working in isolation (especially the ones who come to work at 4:00 p.m. and stay all night), the prima donnas who have fits when they don’t get their way, the programmers who never explain what they’re doing in a way that anyone else can understand and don’t document their code, the ones that reject new technologies or methodologies out of hand rather than showing genuine curiosity—these are the terrorists.

Avoid them no matter how many years of experience they have.

Software terrorism is on the upswing. I used to quote the standard rule that the top 10 percent were 10 times more productive. The hiring practices prevalent since the dot-com explosion—which seem to reject the elite programmers by design—have lowered the general skill level of the profession, however.

As the number of elite programmers gets smaller, their relative productivity gets higher. The only long-term solution to this problem is to change our hiring practices and our attitudes toward training. The cynic in me has a hard time believing that either will happen, but we can always hope for the best.