<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-8279642</id><updated>2024-09-07T00:01:07.789+02:00</updated><category term="life"/><category term="linux"/><category term="java"/><category term="photography"/><category term="myMark"/><category term="others"/><category term="python"/><category term="iphone"/><category term="reading"/><title type='text'>kent@world:~$man life</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://kentyuan.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8279642/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://kentyuan.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Kent</name><uri>http://www.blogger.com/profile/04729217335790123360</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>25</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8279642.post-1801072058482492060</id><published>2011-08-06T22:56:00.001+02:00</published><updated>2011-08-06T23:01:36.300+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="myMark"/><title type='text'>给孩子照相真难啊</title><content type='html'>先看照片。&lt;br /&gt;
&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMzt6rK2cprbp0nX2WopySwKaEVWK6o2iwkyre2ExqACia10JvS4KEW-OQKnB91XJjXmIUElrkXAay0cfdEa7xFd4jMAa8lSnpTmggVfx38mv1sqckUbWI6gTZyskhvSv791nY/s1600/DSC_5205.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMzt6rK2cprbp0nX2WopySwKaEVWK6o2iwkyre2ExqACia10JvS4KEW-OQKnB91XJjXmIUElrkXAay0cfdEa7xFd4jMAa8lSnpTmggVfx38mv1sqckUbWI6gTZyskhvSv791nY/s320/DSC_5205.JPG&quot; width=&quot;212&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCgJ8U1oBmHL2w33Ob1VlqugKdhpyFT4wnm0i6pO7AVygybO6f9LI83VBTGxjO9sibjNrLFipin2-lgSpuUXa8lLXfa4fmB_BmYwxWlQS1PL74tn7j7c7ke786KYm8hRTyY2CZ/s1600/DSC_5242.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCgJ8U1oBmHL2w33Ob1VlqugKdhpyFT4wnm0i6pO7AVygybO6f9LI83VBTGxjO9sibjNrLFipin2-lgSpuUXa8lLXfa4fmB_BmYwxWlQS1PL74tn7j7c7ke786KYm8hRTyY2CZ/s320/DSC_5242.JPG&quot; width=&quot;212&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;有模特的潜质吧？&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjfpcoiBN52iidWdYwt37HnRXAReFm-ppBQe-JfiVFjcN-fwaKJPtd8y6w4Pw41TPxdfyI2IqEDHL-lHQLfYB_qPNFAVGHif_uguyV_OvLXwOUYagL_eLxhb4mei9TWHyBfy6ct/s1600/DSC_5265.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjfpcoiBN52iidWdYwt37HnRXAReFm-ppBQe-JfiVFjcN-fwaKJPtd8y6w4Pw41TPxdfyI2IqEDHL-lHQLfYB_qPNFAVGHif_uguyV_OvLXwOUYagL_eLxhb4mei9TWHyBfy6ct/s320/DSC_5265.JPG&quot; width=&quot;212&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;在一棵苹果树下，发现了很多被雷阵雨打下的苹果&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEia6nqHBaIQ4jwp_3FIMIO-T8fRvFSp8QyRcTLk4MA8QLcBCwVkqYgBSstJRCQyuRkNQE91vj5QN8CpYwPTAWZtQ4fO3-IufxkDhhk9S9ZMPAW9B2Rl6amWVv1hyphenhyphenWqQCLuJr7je/s1600/DSC_5272.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEia6nqHBaIQ4jwp_3FIMIO-T8fRvFSp8QyRcTLk4MA8QLcBCwVkqYgBSstJRCQyuRkNQE91vj5QN8CpYwPTAWZtQ4fO3-IufxkDhhk9S9ZMPAW9B2Rl6amWVv1hyphenhyphenWqQCLuJr7je/s320/DSC_5272.jpg&quot; width=&quot;213&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjnHbfxplasqg8jZ9imcj8oSpfHYPH4Ntt5bhkVULy-ckBEaS-g3woVCh2mjnvMENGRt9bCVpinNP9uCrFWCsPszkUOEqAZyW7Q5iNnk9jr0mlVueBQLePSyywGNvYmu_p1gYfr/s1600/DSC_5283.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;212&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjnHbfxplasqg8jZ9imcj8oSpfHYPH4Ntt5bhkVULy-ckBEaS-g3woVCh2mjnvMENGRt9bCVpinNP9uCrFWCsPszkUOEqAZyW7Q5iNnk9jr0mlVueBQLePSyywGNvYmu_p1gYfr/s320/DSC_5283.JPG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2wXI6DXRtMWtxYfPaEiSZCkZT9ERWICwGGptLVn_DnHiUY-iXSysrZjMp6br0pPnlZV0y-94Fvp5kSHMV-79ju5QBd2QWZwH85BLHupOCLe4z1KcVx0ff7Tg-JMsObCtA9p7D/s1600/DSC_5280.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;212&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2wXI6DXRtMWtxYfPaEiSZCkZT9ERWICwGGptLVn_DnHiUY-iXSysrZjMp6br0pPnlZV0y-94Fvp5kSHMV-79ju5QBd2QWZwH85BLHupOCLe4z1KcVx0ff7Tg-JMsObCtA9p7D/s320/DSC_5280.JPG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgtTbIGOE6z_LV2LTJEeYsNkmKs8qmd3NoAREJeFf-r-Z56fprDU9yFvMQuOW0TjlrBNkF9EUC_XSIoRmhZazc9dHqcd77xxL1bTVNdxco0Iejn619KVP_i4uXnhpmnR8Qyw2fp/s1600/DSC_5282.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;212&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgtTbIGOE6z_LV2LTJEeYsNkmKs8qmd3NoAREJeFf-r-Z56fprDU9yFvMQuOW0TjlrBNkF9EUC_XSIoRmhZazc9dHqcd77xxL1bTVNdxco0Iejn619KVP_i4uXnhpmnR8Qyw2fp/s320/DSC_5282.JPG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvLYNg-7nOkJ9DmDZuhGzDbMg8eM5YtyR43syDia1VWpCEoe007f5RF8VcQx_XGxjZRonu0l86tTufrHt4ggJCjdAig3VmKHcktgirU3cQR0Pm24irMOhDFJd2F86XYrjBntcg/s1600/DSC_5288.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;212&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvLYNg-7nOkJ9DmDZuhGzDbMg8eM5YtyR43syDia1VWpCEoe007f5RF8VcQx_XGxjZRonu0l86tTufrHt4ggJCjdAig3VmKHcktgirU3cQR0Pm24irMOhDFJd2F86XYrjBntcg/s320/DSC_5288.JPG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEizqeP2TspH87zaT7ZOUrDxmo0w28Xn-4mC-I7LoPhTy3RDHHg8zGlink3PY2J4E1zO10dy5ifRX-JrPKU8EoWdglSTG5jhe0eThMFH_gnMdLRXIfGA-AhiV6UdtDne_G8iPzTa/s1600/DSC_5200.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEizqeP2TspH87zaT7ZOUrDxmo0w28Xn-4mC-I7LoPhTy3RDHHg8zGlink3PY2J4E1zO10dy5ifRX-JrPKU8EoWdglSTG5jhe0eThMFH_gnMdLRXIfGA-AhiV6UdtDne_G8iPzTa/s320/DSC_5200.JPG&quot; width=&quot;213&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;今天周末， 孩子午睡醒后一家人出去散步。我也带上了相机。想给老婆孩子照几张像。&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;机器上挂的还是35mm F/2，这头我现在用的几率最高了。没想到，到了室外不好用了。因为，如果远了照，孩子人在相片上显得太小了，这个头有点小广角。 可如果离近了，儿子不老实，根本不配合，要么就往你跟前走，来抓相机，要么就是不看你。照了几张，觉得不好用，索性回去换了85mm F/1.8 又出来，这次可以远远地瞄他了。不过近了就耍不开了。&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;出去一共大概一小时，我忙活出了一身汗。没事光做蹲起练习了。&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;最后发现就得勤按快门，回来再选。&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;传几张觉得还凑合的吧。以后还得多照。这夏天一直冷飕飕，眼看就要过去了，应该趁天气好多给儿子照点照片。&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kentyuan.blogspot.com/feeds/1801072058482492060/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kentyuan.blogspot.com/2011/08/blog-post.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8279642/posts/default/1801072058482492060'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8279642/posts/default/1801072058482492060'/><link rel='alternate' type='text/html' href='http://kentyuan.blogspot.com/2011/08/blog-post.html' title='给孩子照相真难啊'/><author><name>Kent</name><uri>http://www.blogger.com/profile/04729217335790123360</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMzt6rK2cprbp0nX2WopySwKaEVWK6o2iwkyre2ExqACia10JvS4KEW-OQKnB91XJjXmIUElrkXAay0cfdEa7xFd4jMAa8lSnpTmggVfx38mv1sqckUbWI6gTZyskhvSv791nY/s72-c/DSC_5205.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8279642.post-5875669788307565876</id><published>2011-07-01T11:41:00.000+02:00</published><updated>2011-07-01T11:41:34.991+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="reading"/><title type='text'>一盘炒猪肝，二两黄酒</title><content type='html'>从周1到周4，在上下班的路上把&amp;lt;许三观卖血记&amp;gt;看完了。余华的小说，看过的不多。很早的时候看了&amp;lt;活着&amp;gt;和&amp;lt;黄昏里的男孩&amp;gt;。《黄昏》是个中短篇的合集。现在已经印象不是十分深刻了，只有其中几篇很典型的还有印象。今年年初又看了第二遍&amp;lt;活着&amp;gt;，最近这刚看完许三观。&lt;br /&gt;
&lt;br /&gt;
他的文字好像就和他的那些主人公一样，都是朴实无华，再普通平凡不过了。可往往就是这些普通却能打动人心。 主人公大都以农村或者邻村的小城镇为背景，而且有个共同特点就是有点愚昧的老实本分人。 他总能通过这些平常人的平常生活，让人们感觉到生活的艰辛的同时，也体会到人性恶的一面。&lt;br /&gt;
&lt;br /&gt;
这个许三观，也是这群平凡的人中的一员。一本书下来，其实就像平铺直叙，没有什么大的波澜。首先说他这个人物，我感觉是：&lt;br /&gt;
老实，本分 －尽管多次卖血，但从未做过什么亏心事（林芬芳的事除外）&lt;br /&gt;
有点愚昧 － 对抽血的理解&lt;br /&gt;
很好面子，心地善良 － 我理解对于一乐的一些做法其实是面子问题，他其实是最爱这个儿子的。对于他的善良，多处都有体现。给李小勇叫魂这个片段很典型。&lt;br /&gt;
乐观的态度 － 他其实是有点阿Q精神的。不管什么多难，他其实还都是乐观地去看待。饥荒年月他生日的晚上给大家在床上炒菜是个很典型的例子。&lt;br /&gt;
一个让人尊敬的父亲 － 这就很明显了。&lt;br /&gt;
&lt;br /&gt;
网上的文化人多，总能挖掘更深层次的东西。什么更深层次的揭露和批判拉等等。 这就不评论这些了，咱也没那水平，只是对于几个情节，可能和网上一些人的看法不太一样。&lt;br /&gt;
&lt;br /&gt;
1 对林芬芳的强奸&lt;br /&gt;
这个事他做的可能并非他所愿。是为了维护心里的一种平衡或一种报复。因为那时候的林芬芳，这个全城最胖的女人，不仅已经完全没有了妩媚诱人的资质，而且当时还断着一条腿。去强奸这样的人说实话真需要点勇气。&lt;br /&gt;
2 最后一次去卖血&lt;br /&gt;
就是全文最后，新血头不收他的血，并挖苦他的那次。那时候他已经年过花甲，而且吃喝不愁了。用他的话说，是为了吃炒猪肝喝黄酒去卖血。其实他完全可以去饭店直接吃。我觉得他要的不是那些吃食，而是想回味往日里吃那些东西时的感觉。他卖血一次次帮助家里度过难关，平时他本本分分，省吃俭用。只有卖血以后到饭店点菜的时候，才有一种得意，成就感，吃着炒猪肝，喝着黄酒，他能体会到，他存在的举足轻重的意义。当年老了，儿子都成年了，生活的坎坷少了，他不用去卖血了。但他还是想去体会那种成就感，那种自豪感。一盘炒猪肝，二两黄酒，就是他那些感觉的最直接表现。恐怕是为了这，他才又一次走进医院。&lt;br /&gt;
&lt;br /&gt;
这本小说有多处能打动人，但让我印象最深的：&lt;br /&gt;
&lt;br /&gt;
－“你要是我亲生的儿子，我最爱的就是你” 我要是一乐，我可能得哭了。&lt;br /&gt;
－冬天在去上海的路上一个城镇（名字忘了）的桥边喝冰水的情景。和与旁边好心人们的对话。 &lt;br /&gt;
&lt;br /&gt;
－困难时期他卖了血，一家去吃面条，让一乐去吃烤山芋的时候。一乐可能还不懂事，但是真替他心疼。&lt;br /&gt;
&lt;br /&gt;
－结尾时，许玉兰数落三个儿子的话，想着许三观的经历，看着扎心&lt;br /&gt;
&lt;br /&gt;
这应该算个喜剧故事吧，不光是个happy ending，内容穿插也有不少让人发笑的小段。可就这么个喜剧却是让人揪着信看完的。写个blog，做个记号。&lt;br /&gt;
&lt;br /&gt;
突然这周末也想吃盘炒猪肝了...</content><link rel='replies' type='application/atom+xml' href='http://kentyuan.blogspot.com/feeds/5875669788307565876/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kentyuan.blogspot.com/2011/07/blog-post.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8279642/posts/default/5875669788307565876'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8279642/posts/default/5875669788307565876'/><link rel='alternate' type='text/html' href='http://kentyuan.blogspot.com/2011/07/blog-post.html' title='一盘炒猪肝，二两黄酒'/><author><name>Kent</name><uri>http://www.blogger.com/profile/04729217335790123360</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8279642.post-1244926408477680305</id><published>2011-06-09T11:14:00.095+02:00</published><updated>2011-06-09T11:53:21.648+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><title type='text'>根据不同网络环境快速切换系统的代理服务器</title><content type='html'>工作性质决定，我经常需要带着公司的笔记本在不同客户的不同网络环境里工作。这些网络环境有这么几种：&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;无代理，直接连外网&lt;/li&gt;
&lt;li&gt;有代理，无须登录认证，连外网&lt;/li&gt;
&lt;li&gt;有代理（多个），都需认证外连&lt;/li&gt;
&lt;/ul&gt;笔记本里很多程序或者配置文件都是与网络相关的， 比如 maven的settings.xml， ~/.hgrc， eclipse的网络, 浏览器, 终端 等等。换个客户，修改代理很烦人。 别的同事大都用windows，有个软件Proxomitron 有proxy transparent forwarding功能， 把代理设置成localhost:port，然后通过在软件选择可以帮他们快速切换，并且这个软件还可以对发送／接收的数据进行过滤等功能。我因为懒，就一直wine这个软件来实现我自己的代理切换，虽然用着还算稳定，但是总是不爽。&amp;nbsp; 搜索了一下于proxomitron功能类似的有privoxy，这个也有代理转发，消息过滤功能。 而且linux的软件好就好在配置文件都是文本，有了sed/awk可以想怎么改就怎么改，然后再reload/restart 服务就可以了。但是后来发现一个问题，无法forward到需要登录的代理，查了一下，加http header &quot;Proxy-Authorization&quot;可以，但是在那个action file里加+add-header.. 通过调试发现这个header总加不上。无奈作罢，接着wine将就吧，可这一将就将就了1年。呵呵。&lt;br /&gt;
&lt;br /&gt;
其实我挺懒的，能将就就将就了。这2天决定腾出手来要把这个问题给解决了。因为有两个资深同事几乎每次看到我用vi编辑东西就说闲话，说ultraedit/notepad++操作多简易，多快捷。有时候用我的电脑他们就抓狂地骂shit。因为我是美国英语键盘布局，而且eclipse里用了vi-plugin。他们每次都说linux阿，vi阿就是shit. 我每次都不搭理他们，心想谁爱用什么就用什么得了，不就是个干活儿么，顺手就行了。最近被他们看到wine的proxomitron，又被冷嘲热讽好一阵，郁闷。俩人资格也算挺老了，咋就这么没完没了呢。所以干脆，换！&lt;br /&gt;
&lt;br /&gt;
选了另一个代理软件:tinyproxy。这个也不支持直接的需登录代理转发，也要通过AddHeader。但是这个一次就实验通过了。关于Proxy-Authorization这个header，可以通过正常连接并登录那个代理服务器然后在firebug或者chrome的developer tool通过查看Request Header找到。 然后就是写个脚本sed 修改相应的配置行，然后reload了。当然也可以根据不同环境弄多个配置文件，然后用脚本选择cp。我觉得还是就一个文件，然后修改好。要么一旦对配置文件中其他地方修改了，还要把各个环境配置文件相应的地方都改。&lt;br /&gt;
&lt;br /&gt;
如果有一天到处都用无线就好了，可以根据无线网的ID来自动切换。其实有线的也可以根据IP地址来自动切换，可对我这里有几个客户那里不适用。:(&lt;br /&gt;
&lt;br /&gt;
目前和别的同事的proxomitron区别不大了。唯一一个就是人家是状态栏的小图标，用鼠标点点就行了，我得在终端里写个命令，不过用linux的谁不至少开着1个终端呢？也没什么问题。&lt;br /&gt;
&lt;br /&gt;
脚本在自己的版本库里，没备份的必要就不贴了，也没什么特别之处。</content><link rel='replies' type='application/atom+xml' href='http://kentyuan.blogspot.com/feeds/1244926408477680305/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kentyuan.blogspot.com/2011/06/blog-post.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8279642/posts/default/1244926408477680305'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8279642/posts/default/1244926408477680305'/><link rel='alternate' type='text/html' href='http://kentyuan.blogspot.com/2011/06/blog-post.html' title='根据不同网络环境快速切换系统的代理服务器'/><author><name>Kent</name><uri>http://www.blogger.com/profile/04729217335790123360</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8279642.post-1968779500455789948</id><published>2011-01-04T00:08:00.002+01:00</published><updated>2011-01-04T00:15:26.912+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="life"/><title type='text'>汉宝儿1周岁了</title><content type='html'>1月2日，汉宝儿一周岁了。去年在医院陪伴老婆生产的情景还像在眼前，这一年就忙忙碌碌地过去了。不由感叹时间飞的好快。&lt;br /&gt;
&lt;br /&gt;
他的生日赶的还不错，正好是个周末。顺便抱怨一下这次的圣诞节，和新年。居然都是周末，弄的公共假日2个大节日才有1天！幸好年假有存货。&lt;br /&gt;
&lt;br /&gt;
汉宝儿的生日玩了抓周游戏，老婆在网上查了一个抓周物品清单，照着准备了，没有的，我们就自由发挥了一下。总之样数不少。有图为证：&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgiivyxLM6Ne6qE1bkzFkapJsTt9R5Kc72m1Wf7oY72K48XiDTWUckSNt2Cmk8CU9mL6XXHx5vmydq6D__OSsApT8nm2LQePh68vvYUGExIkwpdLe2PE7Acm4v8c6NsCIfQfHZluA/s1600/%25E6%258A%2593%25E5%2591%25A8%25E7%2589%25A9%25E5%2593%2581.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;265&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgiivyxLM6Ne6qE1bkzFkapJsTt9R5Kc72m1Wf7oY72K48XiDTWUckSNt2Cmk8CU9mL6XXHx5vmydq6D__OSsApT8nm2LQePh68vvYUGExIkwpdLe2PE7Acm4v8c6NsCIfQfHZluA/s400/%25E6%258A%2593%25E5%2591%25A8%25E7%2589%25A9%25E5%2593%2581.JPG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
结果呢？那是很明确啊，别的一概不看，小寿星直奔主题啊！看图就知道了。第一抓的一霎那：&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg5FzWx76GtOemAJsRY4UVnXqEv_YPhEpuoUnc5tRo_foeBKgdnwLpcWHR4wWm3D1eOi6S9IiBrObBiFpUoza3ZXP_JEyufkMfrz8K3pYjT3Q4LCyZDN6kVpFZ2fDat7KuKjgBi6A/s1600/%25E6%258A%2593%25E5%2591%25A8%25E7%25AC%25AC%25E4%25B8%2580%25E6%258A%2593.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;265&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg5FzWx76GtOemAJsRY4UVnXqEv_YPhEpuoUnc5tRo_foeBKgdnwLpcWHR4wWm3D1eOi6S9IiBrObBiFpUoza3ZXP_JEyufkMfrz8K3pYjT3Q4LCyZDN6kVpFZ2fDat7KuKjgBi6A/s400/%25E6%258A%2593%25E5%2591%25A8%25E7%25AC%25AC%25E4%25B8%2580%25E6%258A%2593.JPG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;没看出来他还对音乐挺感兴趣啊，呵呵。我觉得可能是这个颜色太鲜艳了，对他来说吸引力比较大吧。旁边的笔记本电脑没开机。如果屏幕有东西，可能也会对他构成不小的吸引力。 不过不选电脑就好，做IT不是什么好职业。还有欧元票子的颜色也太土了，不吸引人，另外也可能是放的太少了，如果弄几万，厚厚的一叠票子，可能也会引起他注意。 :D &amp;nbsp;不过抓周就是个游戏，将来还是根据他的兴趣培养吧。 我也希望他通音律，最好是能掌握一件乐器。&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;午饭后，老婆就开始烤蛋糕了。说实话她对这个不是太在行，以前有过几次尝试，基本都以失败告终。这次是儿子生日，她可下了功夫，材料早早就采买好了，而且很全。把孩子哄睡后，她就开工了，只听厨房里时不时传出搅拌机的声音，过了半个来小时，飘出了刚烤熟蛋糕的香味。进去一看，这次还真不赖，但人家说这只是第一步，还有夹水果，涂奶油，再挤奶油花，写字等等工序。得，看来好事多磨啊。 。呵呵先来看个成品吧：&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiiHCAcCfqOkFathnFuTycbXh5DQq96cICvrB0dHdgbZwNtw3GYf7H5aprDqzlkyITGVPizRM9rSN5CDn1oSeS47Ev6TzBEH6NqyfN-opBjNNiw7lQWDUdNCPOPNgu07SX6EUvp1Q/s1600/%25E8%259B%258B%25E7%25B3%2595%25E8%25B4%25BA%25E5%258D%25A1%25E7%25A4%25BC%25E5%2593%2581.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;265&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiiHCAcCfqOkFathnFuTycbXh5DQq96cICvrB0dHdgbZwNtw3GYf7H5aprDqzlkyITGVPizRM9rSN5CDn1oSeS47Ev6TzBEH6NqyfN-opBjNNiw7lQWDUdNCPOPNgu07SX6EUvp1Q/s400/%25E8%259B%258B%25E7%25B3%2595%25E8%25B4%25BA%25E5%258D%25A1%25E7%25A4%25BC%25E5%2593%2581.JPG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;卖相的确不太好，不过这已经是她自己最好的作品了也是最用心的一个。问题出在涂奶油，和挤奶油花上。她要求比较高，每次完事都觉得不满意，于是抹平再来，经过几次反复，就成了这样了。不过味道还是不错的。&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;吹蜡烛是我代劳的。不过关上灯，看着那一点烛光，儿子还是很兴奋。吹了蜡烛，照个像：&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgf-EhObGgzKaIhglbplbF4TmFsCkkpYl6P_xoohyphenhyphenveAyl9w7NwpAHx2yzkNcbXAgPypprX-h7T47IckDOO2h399dNlG2N3-ZVQ-9oouoz82LlcezGuVmEULV6pv7_Gjbi9zCjaNQ/s1600/%25E5%2590%25B9%25E5%25AE%258C%25E8%259C%25A1%25E7%2583%259B%25E4%25BA%2586.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;300&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgf-EhObGgzKaIhglbplbF4TmFsCkkpYl6P_xoohyphenhyphenveAyl9w7NwpAHx2yzkNcbXAgPypprX-h7T47IckDOO2h399dNlG2N3-ZVQ-9oouoz82LlcezGuVmEULV6pv7_Gjbi9zCjaNQ/s400/%25E5%2590%25B9%25E5%25AE%258C%25E8%259C%25A1%25E7%2583%259B%25E4%25BA%2586.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;功臣得露个面儿，老婆唱生日歌&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBS7IsaIqwF6-EIgHFdn3nIpNd3RNt_DiMdojLyA4I-M-ss8eUu1q2w3zcZm5WcSnketgpSkRkoO86WS3PxABedrTtDcK__ad0p25z4algjg2IrCRAJHPFSEEz1AmjUe4DbZt2fQ/s1600/%25E5%2590%25B9%25E5%25AE%258C%25E8%259C%25A1%25E7%2583%259B%25E4%25BA%2586%25E5%2592%258C%25E5%25A6%2588%25E5%25A6%2588.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;212&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBS7IsaIqwF6-EIgHFdn3nIpNd3RNt_DiMdojLyA4I-M-ss8eUu1q2w3zcZm5WcSnketgpSkRkoO86WS3PxABedrTtDcK__ad0p25z4algjg2IrCRAJHPFSEEz1AmjUe4DbZt2fQ/s320/%25E5%2590%25B9%25E5%25AE%258C%25E8%259C%25A1%25E7%2583%259B%25E4%25BA%2586%25E5%2592%258C%25E5%25A6%2588%25E5%25A6%2588.JPG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;一周岁有了个进步，以前总是叫“爸爸”很容易，叫妈妈很困难，半天才出个妈音。生日这天有变化，已经能比较轻易发出妈妈的音了。现在可以发音的有“爸爸，爷爷，奶奶，妈妈”另外再加个“奶妈”，叫妈妈没叫好的时候叫出来过。呵呵~~&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;另外人家别人的孩子都有了小男朋友，小女朋友了，俺们汉宝儿已经一周岁了，还单身呢，所以呢，这也征下小女友啊，放个照片，小家伙有点腼腆：&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjbIDLpWCFjhTWm0hYcdDdfgnNnkVzcOWlesXjAY_UOK8ggg-a3c3FFLvWiNBM4zpBr1-MUuLY8VwdQq4xSv9mrYZHlC0z0_KMZB3BBsKty8ZkdsWEsQiA0X0yj9AaS3xu-fuL7JQ/s1600/IMG_2027.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;300&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjbIDLpWCFjhTWm0hYcdDdfgnNnkVzcOWlesXjAY_UOK8ggg-a3c3FFLvWiNBM4zpBr1-MUuLY8VwdQq4xSv9mrYZHlC0z0_KMZB3BBsKty8ZkdsWEsQiA0X0yj9AaS3xu-fuL7JQ/s400/IMG_2027.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kentyuan.blogspot.com/feeds/1968779500455789948/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kentyuan.blogspot.com/2011/01/1.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8279642/posts/default/1968779500455789948'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8279642/posts/default/1968779500455789948'/><link rel='alternate' type='text/html' href='http://kentyuan.blogspot.com/2011/01/1.html' title='汉宝儿1周岁了'/><author><name>Kent</name><uri>http://www.blogger.com/profile/04729217335790123360</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgiivyxLM6Ne6qE1bkzFkapJsTt9R5Kc72m1Wf7oY72K48XiDTWUckSNt2Cmk8CU9mL6XXHx5vmydq6D__OSsApT8nm2LQePh68vvYUGExIkwpdLe2PE7Acm4v8c6NsCIfQfHZluA/s72-c/%25E6%258A%2593%25E5%2591%25A8%25E7%2589%25A9%25E5%2593%2581.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8279642.post-6185960046935974295</id><published>2010-12-09T15:13:00.002+01:00</published><updated>2010-12-09T22:04:09.769+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="java"/><title type='text'>几道java题</title><content type='html'>前阵子有个活儿，要出几道java题，主要考察:java基本，常用算法，annotation based spring/Hibernate(JPA) 是否熟练，每个部分不超过3个问题。 回答环境没有电脑，只有嘴+白板，时间尽量控制在60分钟以内(包括交谈)。现在这题已经用完了，翻译成中文贴这了。　不知道是不是整的太简单了。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
java基础的 （2，3里选1题）&lt;br /&gt;
---------&lt;br /&gt;
1说运行结果： (预计２分钟）&lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;Integer a = 707；
Integer b = 707;
System.out.println(a&amp;gt;=b);
System.out.println(a&amp;lt;=b);
System.out.println(a==b);&amp;nbsp; 

a = 70;
b = 70;
System.out.println(a&amp;gt;=b);
System.out.println(a&amp;lt;=b);
System.out.println(a==b);&amp;nbsp; 
&lt;/pre&gt;&lt;br /&gt;
2 如果一个类的一个private属性没有setter／getter方法, 这个属性的值可以被其他类获取／修改么？（如果回答可以，how)　(3分钟)&lt;br /&gt;
&lt;br /&gt;
3 简单介绍一下jvm的&quot;warming up&quot;。&lt;br /&gt;
&lt;br /&gt;
4 通过class diagram(UML) 描述所有知道的java collection framework的classes 的相互关系。 (15-20分钟）&lt;br /&gt;
&lt;br /&gt;
简单算法 （选２个问）&lt;br /&gt;
------&lt;br /&gt;
1 描述 Quick sort　(５分钟)&lt;br /&gt;
2 描述 筛选法求质数 (５分钟)&lt;br /&gt;
3 如何存储稀疏矩阵 (3分钟)&lt;br /&gt;
&lt;br /&gt;
Spring／Hibernate／jpa&lt;br /&gt;
----------------&lt;br /&gt;
１　什么是nested transactions? 具体在hibernate和JPA 的环境下如何定义(annotation based)？(1-2分钟)&lt;br /&gt;
&lt;br /&gt;
2 下面伪代码的TryItOut class 中 tryIt()方法执行过程中，数据库会发生下面那种变化？说原因(5分钟)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; a - 执行完毕后，数据库没发生变化&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; b - 当执行processList()方法，在for loop中处理List l中的元素的时候，每执行一次doUpdate(e),　数据库的相应记录将被更新&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; c - myservice的processList方法执行过程中，数据库无变化，当该方法执行完毕，List l中的相应记录在数据库一次被更新。&lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;public interface MyService{
&amp;nbsp;&amp;nbsp;&amp;nbsp; void doUpdate(Entity e);
&amp;nbsp;&amp;nbsp;&amp;nbsp; void processList();
}

＠Service
public class MyServiceImpl implements MyService{
&amp;nbsp;&amp;nbsp;&amp;nbsp; @Autowired
&amp;nbsp;&amp;nbsp;&amp;nbsp; private EntityDao dao; // assume that EntityDao has methods doUpdate() and getAllEntries()
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; @Transactional(readOnly=false)　//declare transaction
&amp;nbsp;&amp;nbsp;&amp;nbsp; public void doUpdate(Entity e){
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; dao.update(e);
&amp;nbsp;&amp;nbsp;&amp;nbsp; }

&amp;nbsp;&amp;nbsp;&amp;nbsp; public void processList(){
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; List&amp;lt;Entity&amp;gt; l = dao.getAllEntries();
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; for(Entity e : l){
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; //here do some changes on the entity
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; e.setX(foo);
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; e.setY(bar);
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ....
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; //now we want to do database update
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; doUpdate(e);&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; }

}

public class TryItOut{
&amp;nbsp;&amp;nbsp;&amp;nbsp; @Autowired
&amp;nbsp;&amp;nbsp;&amp;nbsp; private MyService myService;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; public void tryIt(){
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; myService.processList();
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
}
&lt;/pre&gt;&lt;br /&gt;
3 下面的代码片段意图是在OneBean实例化的时候利用其它的spring bean来初始化title属性。有没有问题，为什么？如果是有问题，如何改正？ (5分钟）&lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;＠Component
public class OneBean{
&amp;nbsp;&amp;nbsp;&amp;nbsp; @Autowired
&amp;nbsp;&amp;nbsp;&amp;nbsp; private AnotherBean bean2; //Assume AnotherBean has property: String title, with getter and setter.

&amp;nbsp;&amp;nbsp;&amp;nbsp; private int a = 5;
&amp;nbsp;&amp;nbsp;&amp;nbsp; private String title = &quot;OneBean_&quot; + bean2.getTitle();

&amp;nbsp;&amp;nbsp;&amp;nbsp; //some other codes
&amp;nbsp;&amp;nbsp;&amp;nbsp; .....

}
&lt;/pre&gt;&lt;br /&gt;
&lt;b&gt;简单说下想法&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
1.1，这个可能很多人都被问过。主要就是那两个&quot;==&quot;的比较。java是比较引用的，但是有个autoboxing。如果有这个意识，很容易就能答了，707的==，是false, 70 的 == 是True。&lt;br /&gt;
&lt;br /&gt;
1.2 reflection可以实现&lt;br /&gt;
&lt;br /&gt;
1.3 这个warming up的问题曾经遇到过。尤其是那种效率要求比较高的消息处理应用，应该避免jvm warming up的这个阶段，因为这个阶段速度比较慢。&lt;br /&gt;
&lt;br /&gt;
1.4 collection恐怕是最常用的基本点之一了，所以这个得心里有数。&lt;br /&gt;
&lt;br /&gt;
2算法的都是常用或常识的，不说了。&lt;br /&gt;
&lt;br /&gt;
3.1 nested transaction JPA 不支持&lt;br /&gt;
3.2 应该是a，数据库无变化。 因为spring是proxy based aop。transaction manager也是要以proxy来管理transaction. 尽管那个update方法定义了transaction,但是调用的时候没经过proxy，是自身类里调用的，所以压根transaction manager就没起作用。虽然不报错，但是数据库没有变化。这个在spring文档关于transaction manager里有写，也是平时容易犯的错误之一。&lt;br /&gt;
&lt;br /&gt;
3.3 这个在spring bean初始化的时候会报错，也是常见错误之一。因为bean2还没injected呢。 如果非要用spring bean来初始化另一个spring bean的成员变量，可以写一个方法 init()来做，然后定义这个方法的annotation为@PostConstruct 这样在这个方法里就可以引用已经injected bean了。但spring 缺省单例模式，这个要注意。</content><link rel='replies' type='application/atom+xml' href='http://kentyuan.blogspot.com/feeds/6185960046935974295/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kentyuan.blogspot.com/2010/12/java.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8279642/posts/default/6185960046935974295'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8279642/posts/default/6185960046935974295'/><link rel='alternate' type='text/html' href='http://kentyuan.blogspot.com/2010/12/java.html' title='几道java题'/><author><name>Kent</name><uri>http://www.blogger.com/profile/04729217335790123360</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8279642.post-173039739815509590</id><published>2010-11-24T01:34:00.000+01:00</published><updated>2010-11-24T01:34:39.983+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><title type='text'>转换汉宝儿的视频</title><content type='html'>老婆夏天在国内和汉宝儿呆了3个月。拍了不少视频，都是高清质量的mov文件。1，2分钟的视频就2，300mb。 总共拍了好几十个GiB。 这回来整理的任务就交给我了。首先得转换一下，mov的格式怪特殊的，还是avi比较好，另外文件的体积也可以相应地进行压缩一下，高清质量有时候没有必要。而且找这个情形拍下去，这硬盘肯定吃紧啊。&lt;br /&gt;
&lt;br /&gt;
幸好mplayer带一个mencoder，可以执行很多视频相关的任务。 我对视频了解的也不多，只能研究man page ＋ google， 能实现我所需要的这点功能就得了。&lt;br /&gt;
&lt;br /&gt;
于是写了个小脚本，来做这个工作。 从技术上说没啥含量，就是一条命令，只不过一些参数被写死，比如bitrate, 2500 (SVCD质量)， 音频，视频压缩编码(mp3, mpeg4)等；一些参数由用户给出。主要就是原始视频文件和视频尺寸(scale)。&lt;br /&gt;
&lt;br /&gt;
脚本在这里：&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://github.com/sk1418/myScripts/blob/master/shell/ky_cv&quot;&gt;ky_cv&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
要是像这种批量处理，就可以再写个脚本遍历目录里的原始视频文件，逐个转换，然后根据原始文件的日期来重命名或者分类。最后删除(可选)原始视频文件。这个脚本没什么意思就不贴了。&lt;br /&gt;
&lt;br /&gt;
如果要快点，可以把要处理的目录分成2部分，分别进行批量转换同时进行并行处理。&lt;br /&gt;
&lt;br /&gt;
脚本启动了以后，打开很早以前下载了但却一直没看的Pacific (血战太平洋), 看了4集。再看视频文件，所有视频的压缩转换和整理都已经完毕。&lt;br /&gt;
&lt;br /&gt;
也许有更好的方法在linux里来做这种工作，谁知道的就指点一下。&lt;br /&gt;
&lt;br /&gt;
btw, 上周日第一次在linux用视频语音聊天(skype)，跟家人一起看汉宝儿的live show。效果还不错。 ;)</content><link rel='replies' type='application/atom+xml' href='http://kentyuan.blogspot.com/feeds/173039739815509590/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kentyuan.blogspot.com/2010/11/blog-post_24.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8279642/posts/default/173039739815509590'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8279642/posts/default/173039739815509590'/><link rel='alternate' type='text/html' href='http://kentyuan.blogspot.com/2010/11/blog-post_24.html' title='转换汉宝儿的视频'/><author><name>Kent</name><uri>http://www.blogger.com/profile/04729217335790123360</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8279642.post-8372585479662164196</id><published>2010-11-16T18:12:00.002+01:00</published><updated>2010-11-16T23:52:13.059+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="java"/><title type='text'>要抓问题特性，少走弯路: Jboss集群下transaction-like队列管理</title><content type='html'>最近几天一直在解决一个工作上的问题。 在这里记录下来，以后用到可以参考。&lt;br /&gt;
&lt;br /&gt;
有时候脑子真是就往一处使傻劲。看来直觉有时候是好的，但是有时候还是需要站在高处来看一下问题的特点，根据问题的特点来寻找解决方案。&lt;br /&gt;
&lt;br /&gt;
以前做了一个项目，其实是个中间件，接受客户机的HTTP (get/post) 请求，然后按照一个比较复杂的逻辑，转换成特定格式的HTTP, SOAP或REST请求，最后发送到另外一个系统(blackbox)，读取该系统的返回值，再返回给特定客户机。对那些特定的需要较长时间的请求(一个客户请求可能最终转换成包含上万个SOAP请求，并包含gpg, scp, ftp等子任务)，为客户机程序提供callback接口，来查询工作状态。&lt;br /&gt;
&lt;br /&gt;
简单图示：&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlkvwL_FLKdTeBlc2EbIUIoqGSv2wf9EXAM3_9LjAMRmgA_7yZYqlRpwxwkafIyehmEbEmgXcgHg4uAo1yXRXaA7VwQwYeBxP3dcK9J7rA6fOmNeaiMepj8i89ip5lxYjPWNM7nQ/s1600/cluster.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;185&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlkvwL_FLKdTeBlc2EbIUIoqGSv2wf9EXAM3_9LjAMRmgA_7yZYqlRpwxwkafIyehmEbEmgXcgHg4uAo1yXRXaA7VwQwYeBxP3dcK9J7rA6fOmNeaiMepj8i89ip5lxYjPWNM7nQ/s400/cluster.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
最近，客户提出一个改动，说那个blackbox的系统，会定期down掉几个小时。这个downtime是可以提前预知的。现在要求，在黑盒子down的这段时间，对于那些不是需要长时间的请求，进行队列管理，也就是我的中间件（叫它MW）要对这些请求入队，等DOWNTIME过去以后，再dequeue，发送到黑盒子系统。 &lt;br /&gt;
&lt;br /&gt;
有几个需要注意的地方。&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;&amp;nbsp;对于每个客户的请求是transaction like的。要一个接一个地发送。就是说，某客户发了请求1，2，3，向黑盒子发请求的时候，要先发1，1处理完毕，再发2，2结束再发送3。因为3个请求有可能是“创建数据”，“查询数据”，&quot;更新数据“. &lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #93c47d;&quot;&gt;【顺便说一下，尽管specification上写的是transaction-like ，但是我觉得这个词用的并不合适。因为涉及到transaction 就有ACID，就是like起码也有rollback等特性，这些在这个项目中并没体现。其实 for the same Client, a request should not be dequeued and sent to BLACKBOX until receiving the response of previous request 的描述更恰当些】&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&amp;nbsp;集群环境队列的同步以及并行dequeue的调度。&lt;/li&gt;
&lt;li&gt;&amp;nbsp;downtime过后，因为有可能我的MW仍在处理队列中的请求，所以从客户新进的请求仍然可能会进行入队操作，而不是直接转换，发送到黑盒子。&lt;/li&gt;
&lt;li&gt;&amp;nbsp;jboss(任一或全部）down再start，不影响整个队列操作。&lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
有点难的地方就是既要让集群最大发挥并行操作的作用，又要保证客户请求的transaction-like。另外还有个2个jboss的同步问题。&lt;br /&gt;
&lt;br /&gt;
开始考虑可以用JBOSS的HASingleton服务来做队列管理。后来发现，HASingleton是server层上的一个服务，用于这种情况并不合适。&lt;br /&gt;
&lt;br /&gt;
然后就想怎么才能解决上面提到的那个困难。2个JBOSS的同步，还是得通过数据库，否则要做的东西太多了。所以就一直打算数据库里有个全局的flag，根据它，MW来做enqueue还是直接发到黑盒子。但在细小的地方总不是太保险，主要体现在2个JBOSS状态同步上。而且，这样一来，其实同一时间，只有一个JBOSS在工作，另一个必须等它完成了才能取队列里下一个请求。 在这上费了些时间，总不能完美解决问题。&lt;br /&gt;
&lt;br /&gt;
前天晚上陪儿子玩的时候一想，既然这个&quot;transaction-like&quot;是存在单一的客户机身上的，为什么不每个客户设2个FLAG，一个是是否enqueue，另一个是是否有JBOSS在对这个客户进行dequeue。如果一个客户的请求在队列里已经没有了，再有从这个客户来的请求，MW就可以直接发送到黑盒子了，尽管队列里可能还有其它客户发来的requests。更重要的是，这样，就可以按客户来取队列里的请求，2个JBOSS也就可以同时工作了，效率也提高了。于是就这么设计并实现了。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
当然后来对一些小问题做了一些特殊的实现。&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;每个jboss有个heartbeat线程，这样，一个JBOSS通过heartbeat interval可以知道另外一个是不是还“活着”。如果DOWN了并且自己空闲（没有进一步的dequeuing任务），就接管当初正被它工作的那个客户的请求。&lt;/li&gt;
&lt;li&gt;当一个JBOSS着手处理一个客户的请求的时候，数据库记录下这个客户的ID。这样当这个JBOSS DOWN了，再启动后，可以知道之前的工作情况，以便继续工作 （如果还没被另一个JBOSS接管）。&lt;/li&gt;
&lt;li&gt;DOWNTIME的标志由quartz来负责维护。它本身就支持cluster，所以省了一些事。&lt;/li&gt;
&lt;/ul&gt;</content><link rel='replies' type='application/atom+xml' href='http://kentyuan.blogspot.com/feeds/8372585479662164196/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kentyuan.blogspot.com/2010/11/jbosstransaction-like.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8279642/posts/default/8372585479662164196'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8279642/posts/default/8372585479662164196'/><link rel='alternate' type='text/html' href='http://kentyuan.blogspot.com/2010/11/jbosstransaction-like.html' title='要抓问题特性，少走弯路: Jboss集群下transaction-like队列管理'/><author><name>Kent</name><uri>http://www.blogger.com/profile/04729217335790123360</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlkvwL_FLKdTeBlc2EbIUIoqGSv2wf9EXAM3_9LjAMRmgA_7yZYqlRpwxwkafIyehmEbEmgXcgHg4uAo1yXRXaA7VwQwYeBxP3dcK9J7rA6fOmNeaiMepj8i89ip5lxYjPWNM7nQ/s72-c/cluster.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8279642.post-2796499194425930357</id><published>2010-11-10T01:08:00.001+01:00</published><updated>2010-11-10T01:10:26.079+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="iphone"/><title type='text'>装一个iphone游戏</title><content type='html'>我iphone里目前就一个flight control游戏和taptap3，很少玩，0首mp3歌曲。&lt;br /&gt;
昨天装了一个iphone游戏，不为了玩，就为了装上。呵呵。&lt;br /&gt;
&lt;br /&gt;
看截图就知道了。呵呵，不多说了。&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdIfJ177RYsnr9A7Ez-nrfEsNdGEEm212hX6JQzTeW5DIp94glNaDIcoGLuSPbDzKegwRT42MR11QdiaJVUV18JqT2GISuqf4NVZ77zrKxjxb_pqB3v82sVIYNunOmrt690WhV6A/s1600/Photo+Nov+10%252C+0+57+52.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;265&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdIfJ177RYsnr9A7Ez-nrfEsNdGEEm212hX6JQzTeW5DIp94glNaDIcoGLuSPbDzKegwRT42MR11QdiaJVUV18JqT2GISuqf4NVZ77zrKxjxb_pqB3v82sVIYNunOmrt690WhV6A/s400/Photo+Nov+10%252C+0+57+52.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggAZaEeig-lbHdVJhKbgFSasz41mDOOaOEIFU_aGTwW9kvNSC_MtbBBzgjZzoI1hLgnGSr_q77a7b9HmY9K5AykSJschWorEGbjMcx1-Au8HtvPNKl5sLC0zO_QBC8T15SdefWOA/s1600/Photo+Nov+10%252C+0+58+03.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;265&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggAZaEeig-lbHdVJhKbgFSasz41mDOOaOEIFU_aGTwW9kvNSC_MtbBBzgjZzoI1hLgnGSr_q77a7b9HmY9K5AykSJschWorEGbjMcx1-Au8HtvPNKl5sLC0zO_QBC8T15SdefWOA/s400/Photo+Nov+10%252C+0+58+03.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhGCjec25KEpPMv6DwIA94vNaXtbIRvP-71HOh62mvvLJqVRqfluY7v59Ay0zlahV2inZXxJwpziSn7pDjyBi3cXEsslT85V1mYOD7fLinDRtZ2vWKZFItQaXGU1jy-uPRDoqOznA/s1600/Photo+Nov+10%252C+0+58+16.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;266&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhGCjec25KEpPMv6DwIA94vNaXtbIRvP-71HOh62mvvLJqVRqfluY7v59Ay0zlahV2inZXxJwpziSn7pDjyBi3cXEsslT85V1mYOD7fLinDRtZ2vWKZFItQaXGU1jy-uPRDoqOznA/s400/Photo+Nov+10%252C+0+58+16.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjMLkhGeiBCrz7iM4uwKpt8uk7PLVfOwzEwylj21rbVkZvz7x0_FMAZhYcfI2K0Wgslrd2vS82IK12TGvjAM2VHIQsh9H5s-_xZN6yGaRalj3ooXTmZcof9O54ZUmpW0X3AyQk-cg/s1600/Photo+Nov+10%252C+1+00+50.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;266&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjMLkhGeiBCrz7iM4uwKpt8uk7PLVfOwzEwylj21rbVkZvz7x0_FMAZhYcfI2K0Wgslrd2vS82IK12TGvjAM2VHIQsh9H5s-_xZN6yGaRalj3ooXTmZcof9O54ZUmpW0X3AyQk-cg/s400/Photo+Nov+10%252C+1+00+50.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kentyuan.blogspot.com/feeds/2796499194425930357/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kentyuan.blogspot.com/2010/11/iphone.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8279642/posts/default/2796499194425930357'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8279642/posts/default/2796499194425930357'/><link rel='alternate' type='text/html' href='http://kentyuan.blogspot.com/2010/11/iphone.html' title='装一个iphone游戏'/><author><name>Kent</name><uri>http://www.blogger.com/profile/04729217335790123360</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdIfJ177RYsnr9A7Ez-nrfEsNdGEEm212hX6JQzTeW5DIp94glNaDIcoGLuSPbDzKegwRT42MR11QdiaJVUV18JqT2GISuqf4NVZ77zrKxjxb_pqB3v82sVIYNunOmrt690WhV6A/s72-c/Photo+Nov+10%252C+0+57+52.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8279642.post-3249804054616498369</id><published>2010-11-08T01:05:00.000+01:00</published><updated>2010-11-08T01:05:53.705+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="myMark"/><title type='text'>汉宝儿近况</title><content type='html'>转眼间老婆孩子从国内回来已经快两周了。和他们回国时候比较，我们的汉宝儿变化很快，长了不少本事。会爬了，会坐了，会扶着东西站了。给他东西，也有意识去抓了... 所以觉得隔一段日子，就应该把他的近期情况记录下来。&lt;br /&gt;
&lt;br /&gt;
－ 头顶的自来卷好像不是那么”怒发冲冠”了。 汉宝儿头发有点自来卷，但是正好在头顶。这还不要紧，卷的方向是从下向上。头发稍微长点，就形成了怒发冲冠的头型。或者说，一个punk头型呵呵。最近发现，洗过头以后，他的头发不是像以前冲天翘着了，也不知道是不是还不够长的原因。&lt;br /&gt;
&lt;br /&gt;
－他应该算比较乖的孩子吧，平时基本上不哭闹，就是喜欢爬来爬去。只有当困的时候，开始叽歪。带他出去，也不像其他的孩子似的，非常兴奋，总是好奇地盯着什么东西出神地看。我心想，这也太老实了吧。可能淘气的时候还没到吧。有时候有点小脾气，有一次我抢走了他的玩具，他大拍桌子，也不哭，但表情很生气，然后我再还给他玩具，他快速摆手，把玩具打开，嘴里还不满地叫着。人家生气了。。。&lt;br /&gt;
&lt;br /&gt;
－吃副食还是比较费劲。母乳已经断了1个多月了。母乳到奶粉的过渡也比较顺利。可副食不像其他孩子似的，饿了就等着妈妈喂，勺子过来就张口吃。他总是表现的，不是很饿似的，对吃的总兴趣不大，要逗着，他吃饭的时候，高椅上总摆上各种稀奇百怪的东西来吸引他，比如，小橘子，萝卜头，玩具，鸭嘴杯，锡箔纸，饭勺... 大概10分钟以内，这些东西就会全部被他划拉到地上，然后捡起，再划拉下去。很同情楼下的邻居。。。 不过今天晚上我烤了一条鱼，没什么刺。老婆挑了一点鱼肉给他，他显的很爱吃，眼睛直勾勾盯着，筷子一过来，就马上张嘴，好像有人和他抢一样。我是第一次看他这么吃东西。 要是平时都这么吃该多好阿。&lt;br /&gt;
&lt;br /&gt;
－作为10个月的孩子，他出牙算挺晚的，人家都上下一对牙了，他才仅仅下面出了一个，另一个刚刚有点影子。不过医生说这正常。牙长的慢，头发和指甲却曾曾地窜。&lt;br /&gt;
&lt;br /&gt;
－给他东西的时候，如果是新鲜的物件，他抓东西总是表现的很谨慎。先伸一个手指头，食指，小心地去碰碰，表情很认真。隔一会才会去真正地抓起来玩。不过当什么熟悉了以后，就不在乎了。有个小鸡的不倒翁，他总是用狠力去啪啪地打它，一下能打出去1米来远。可能因为打不倒，心里着急吧。&lt;br /&gt;
&lt;br /&gt;
－爱笑！ 让他笑很容易，随便逗一下就笑了。 最喜欢我从地上举起来他，高高的，或者把他扔起来再接住。往往美的嘎嘎地笑。也有时候不知道什么事触动他什么了，没怎么逗，就自己哈哈地笑，能笑挺长时间，笑的我们都肚子疼了，他傻乎乎地，还笑~ &amp;nbsp;不过也不是每次笑都那么招人喜欢。昨天夜里四点，人家精神来了，小床是不呆了，躺在我和老婆中间，嘴里念念有词，象说又像唱，时不时爬到我身上，看我，然后嘿嘿地笑。要么就爬到妈妈那里，使劲往妈妈身下钻，嘴里还哼，哼地喊着号子。 反正就是不睡了，最后跟他周旋到6点才又睡着。&lt;br /&gt;
&lt;br /&gt;
－认人了！ 尤其是晚上。 我基本喂不进奶去，在我怀里就会哭。到妈妈那里就老实。我不甘心，又抱过来，人家立马就又哭，眼泪哗哗地。 回到妈妈那，马上哭声就没了。是不是能闻到什么味儿？&amp;nbsp;我下次还要试试，套上我老婆的睡衣抱他看看。&lt;br /&gt;
&lt;br /&gt;
－好像越长越像我老婆了。。。 :(&lt;br /&gt;
&lt;br /&gt;
最近照片拍的不怎么多，发两个上来。记录一下。&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiU4TIDQZe3aDjU6B_VeP5C6lSjiZLmqw_CQGX5YHxbMuYKvb1BidUbxkxqZULfDamCZvE6LGY1LQ7l82zSaP80RhDyUrcvTkMoO9ikT3EHpeJ4vldHueGflpjBSSw5Uo5S1Z2XDA/s1600/DSC_4476.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiU4TIDQZe3aDjU6B_VeP5C6lSjiZLmqw_CQGX5YHxbMuYKvb1BidUbxkxqZULfDamCZvE6LGY1LQ7l82zSaP80RhDyUrcvTkMoO9ikT3EHpeJ4vldHueGflpjBSSw5Uo5S1Z2XDA/s400/DSC_4476.JPG&quot; width=&quot;265&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_tWjaqJnNTAZ5NSwLDVltFT0bBH2VoFZ05FadwDzqVso5JE7IEVIJbmyf6xJK24lqOurBko5swZ-aiIlU7G32z9O170XtiKKa9O8O-j3NmmAGWZw8T8zaOuIu3t_e6Ig_pX8rnw/s1600/IMG_1632.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;300&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_tWjaqJnNTAZ5NSwLDVltFT0bBH2VoFZ05FadwDzqVso5JE7IEVIJbmyf6xJK24lqOurBko5swZ-aiIlU7G32z9O170XtiKKa9O8O-j3NmmAGWZw8T8zaOuIu3t_e6Ig_pX8rnw/s400/IMG_1632.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj31MkDC-1yYLWehUl3pUijmddq2FV0kcF-sw_lBb8UJGu7LGwy04eohtEVvUYurNbrYzcWQj1MgSRW9Fh5AGlBqckU8AddtdNy9-1RqjSsxOV35g1OUyK0XBFjyWsoCTLcSNkMEg/s1600/IMG_1639.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;300&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj31MkDC-1yYLWehUl3pUijmddq2FV0kcF-sw_lBb8UJGu7LGwy04eohtEVvUYurNbrYzcWQj1MgSRW9Fh5AGlBqckU8AddtdNy9-1RqjSsxOV35g1OUyK0XBFjyWsoCTLcSNkMEg/s400/IMG_1639.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;再贴俩在国内时候的照片&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg5UUZZG0pc_pEbL96VJPsgz9o76MzSFOd-wx89Vf6x1-8JWjAqSN5FvW6IeO9PE_f6Sa1e0XkTMihtWVzjul1Uu2uKnZ8Jkar71MqkJjZKvoT-SqiH1oHKq4HbzNZYjxmVcFaC7Q/s1600/IMG_0649.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;300&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg5UUZZG0pc_pEbL96VJPsgz9o76MzSFOd-wx89Vf6x1-8JWjAqSN5FvW6IeO9PE_f6Sa1e0XkTMihtWVzjul1Uu2uKnZ8Jkar71MqkJjZKvoT-SqiH1oHKq4HbzNZYjxmVcFaC7Q/s400/IMG_0649.JPG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgem53QMVhfz5yPE2fR7DaJhtia4AlJXErKOZlzrXDu67A9WlDu9eRf21AjJT_1zE79x9ltu2GJ_8_VA1EHzeD6FcjGmVux_nDZnouAXiSBePmgIQIF7nl_stVF4NxUR_CJAIRUsg/s1600/IMG_0542.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;300&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgem53QMVhfz5yPE2fR7DaJhtia4AlJXErKOZlzrXDu67A9WlDu9eRf21AjJT_1zE79x9ltu2GJ_8_VA1EHzeD6FcjGmVux_nDZnouAXiSBePmgIQIF7nl_stVF4NxUR_CJAIRUsg/s400/IMG_0542.JPG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
最后看一下我们第一次理发以前的朋克头型，呵呵。 这个比较早了，大概3个多月的时候。&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjYnImmJLeE35XwJTF6cGLEisR-0sX8FKuWMXqVyY3C8t-6e46G5nBJ1EwYeTVNkOSxZjLL377mKDAtJrY9HEThZG8Utry-Et6zQHoiec5oYWuNDs6UhZI3nfdh12GJskOD0SuRrw/s1600/DSC_3530.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;212&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjYnImmJLeE35XwJTF6cGLEisR-0sX8FKuWMXqVyY3C8t-6e46G5nBJ1EwYeTVNkOSxZjLL377mKDAtJrY9HEThZG8Utry-Et6zQHoiec5oYWuNDs6UhZI3nfdh12GJskOD0SuRrw/s320/DSC_3530.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kentyuan.blogspot.com/feeds/3249804054616498369/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kentyuan.blogspot.com/2010/11/blog-post_08.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8279642/posts/default/3249804054616498369'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8279642/posts/default/3249804054616498369'/><link rel='alternate' type='text/html' href='http://kentyuan.blogspot.com/2010/11/blog-post_08.html' title='汉宝儿近况'/><author><name>Kent</name><uri>http://www.blogger.com/profile/04729217335790123360</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiU4TIDQZe3aDjU6B_VeP5C6lSjiZLmqw_CQGX5YHxbMuYKvb1BidUbxkxqZULfDamCZvE6LGY1LQ7l82zSaP80RhDyUrcvTkMoO9ikT3EHpeJ4vldHueGflpjBSSw5Uo5S1Z2XDA/s72-c/DSC_4476.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8279642.post-6439118457743204776</id><published>2010-11-02T15:20:00.000+01:00</published><updated>2010-11-02T15:20:00.569+01:00</updated><title type='text'>周末早上去散步，赶上了大雾，拍了几张照片</title><content type='html'>我喜欢汉堡2个季节，夏天和秋天。 秋天可能更偏爱一点。 今年的秋天就快要过去了，想着应该散散步，踩一踩落叶去。&lt;br /&gt;
&lt;br /&gt;
上周日正好是夏时制结束的日子，气温转冷了，又逢大雾。所以即使早上8点多，路上还很清静。利用老婆正喂汉宝儿吃的时候，背上相机出去溜达了一小圈。照了几张相片。贴在这里，也算对这个秋天有交待了。&lt;br /&gt;
&lt;br /&gt;
心里盘算着，要是汉宝儿会走了就好了，可以带他拍照，他摇摇晃晃地走在金黄色落叶上走，嘿嘿地坏笑着，看着旁边湖里鸭子天鹅什么的，应该会很好奇。&lt;br /&gt;
&lt;br /&gt;
照片贴上来吧。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhF22EFnMd-3BgiWMwNmRIjDFZVgRIuwGomzSTWKy1GfMO2tV2LIEsa-MvC6JELJ4uiuF8ZSDWulo9PJxstS4jtDrHeq2lE4Bb45ZqTA5JqfF3zjdfSeGILOC-VbCnRvhSXlYnn/s1600/DSC_4485-2.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhF22EFnMd-3BgiWMwNmRIjDFZVgRIuwGomzSTWKy1GfMO2tV2LIEsa-MvC6JELJ4uiuF8ZSDWulo9PJxstS4jtDrHeq2lE4Bb45ZqTA5JqfF3zjdfSeGILOC-VbCnRvhSXlYnn/s320/DSC_4485-2.jpg&quot; width=&quot;308&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&amp;nbsp; &lt;br /&gt;
&amp;nbsp; &lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXZ6F7_ybR59pOZ_ky2pp_t45GUNeL7vpMqbyt9MkpSys5lj-YtkR0Fk7UR11RRr4n-4O6i1F1w6Syk56cFA5jJ0SwxBarAgWmTFQVj7vhqT_QcDZMXrlJzIN9kgkB2YE8EHwz/s1600/DSC_4487-2.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXZ6F7_ybR59pOZ_ky2pp_t45GUNeL7vpMqbyt9MkpSys5lj-YtkR0Fk7UR11RRr4n-4O6i1F1w6Syk56cFA5jJ0SwxBarAgWmTFQVj7vhqT_QcDZMXrlJzIN9kgkB2YE8EHwz/s320/DSC_4487-2.jpg&quot; width=&quot;292&quot; /&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjerc9OxA7T46ordYfZBjFxgco1nE4GCO8HuDMVnGXbC7lQ2LAAZ1JtZyvHqb3BXtsC6XwIp_35C5zwmKdoeWEt9cUilUG9WVjlDD0uXUjFUsfNXF6Sb9zdwv0bd-ZLycY6YcK9/s1600/DSC_4492-2.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjerc9OxA7T46ordYfZBjFxgco1nE4GCO8HuDMVnGXbC7lQ2LAAZ1JtZyvHqb3BXtsC6XwIp_35C5zwmKdoeWEt9cUilUG9WVjlDD0uXUjFUsfNXF6Sb9zdwv0bd-ZLycY6YcK9/s320/DSC_4492-2.jpg&quot; width=&quot;308&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjKxl-g49oJVSjYpsKIWeEDBRInudPcedUWP-HFxQxKoNu2eG1LRtbmG-8vBNdg-Z6kM_EmnSWmCuOrgHFsMQYZgT5C751PSl4eQ6HABg7UbZoD1NjBluZRnr4nHI-fUF16mhDP/s1600/DSC_4493-2.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjKxl-g49oJVSjYpsKIWeEDBRInudPcedUWP-HFxQxKoNu2eG1LRtbmG-8vBNdg-Z6kM_EmnSWmCuOrgHFsMQYZgT5C751PSl4eQ6HABg7UbZoD1NjBluZRnr4nHI-fUF16mhDP/s320/DSC_4493-2.jpg&quot; width=&quot;308&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9bVLb9G3S1EunU2XjLK5pj3VZNkt5z34p26WurugWVPLcXsy-T8-lroSlkqc0cjVLR2pnAkQ0qmvgstJdxCl7stOvviosfawtvirvSM1jiQeNtXfFnkFu4OqbWBoL-q09bgsC/s1600/DSC_4497-2.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9bVLb9G3S1EunU2XjLK5pj3VZNkt5z34p26WurugWVPLcXsy-T8-lroSlkqc0cjVLR2pnAkQ0qmvgstJdxCl7stOvviosfawtvirvSM1jiQeNtXfFnkFu4OqbWBoL-q09bgsC/s320/DSC_4497-2.jpg&quot; width=&quot;292&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivJn_0wQdZzxscNkz-_4KREXL0xjXIYwkqID6K7u_xgE8njvzsfel31BI4b2IlZ0JBwel5SjakwWiE-c_Hor6sTLGqDzPNpha4ypIU46S06bkfLjwb1J_eoQlc2T-63V1XcwsS/s1600/DSC_4517-2.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivJn_0wQdZzxscNkz-_4KREXL0xjXIYwkqID6K7u_xgE8njvzsfel31BI4b2IlZ0JBwel5SjakwWiE-c_Hor6sTLGqDzPNpha4ypIU46S06bkfLjwb1J_eoQlc2T-63V1XcwsS/s320/DSC_4517-2.jpg&quot; width=&quot;292&quot; /&gt;&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kentyuan.blogspot.com/feeds/6439118457743204776/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kentyuan.blogspot.com/2010/11/blog-post.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8279642/posts/default/6439118457743204776'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8279642/posts/default/6439118457743204776'/><link rel='alternate' type='text/html' href='http://kentyuan.blogspot.com/2010/11/blog-post.html' title='周末早上去散步，赶上了大雾，拍了几张照片'/><author><name>Kent</name><uri>http://www.blogger.com/profile/04729217335790123360</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhF22EFnMd-3BgiWMwNmRIjDFZVgRIuwGomzSTWKy1GfMO2tV2LIEsa-MvC6JELJ4uiuF8ZSDWulo9PJxstS4jtDrHeq2lE4Bb45ZqTA5JqfF3zjdfSeGILOC-VbCnRvhSXlYnn/s72-c/DSC_4485-2.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8279642.post-4511615099242678667</id><published>2010-10-23T02:12:00.001+02:00</published><updated>2010-11-09T13:46:01.290+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="python"/><title type='text'>Upgrade to python3.1.2 in my Arch box, phew!</title><content type='html'>When I did &lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;yaourt -Syu --aur&lt;/pre&gt;yesterday, I found that a lot of packages with new version available. Wow, what happed? &amp;nbsp;I checked those packages, most of them were python related. &amp;nbsp;I saw python3.1.2 there in the upgrade list. Archlinux will go with python3?! Did some google search, found the &lt;a href=&quot;http://allanmcrae.com/2010/10/big-python-transition-in-arch-linux/&quot;&gt;blog entry&lt;/a&gt;. &amp;nbsp;Yep, arch is a real&amp;nbsp;bleeding edge distribution.&lt;br /&gt;
&lt;br /&gt;
However I am not sure what is gonna happen if I replace python with python2 and install python3 as default python. &amp;nbsp;All python scripts with &lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;#!/usr/bin/python&lt;/span&gt; may have problem. also, those applications using old python libraries would not run smoothly either. It was late, I just added &lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;python&lt;/span&gt; &lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;python2&lt;/span&gt; to &lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;IgnorePkg&lt;/span&gt;, and did the upgrade.&lt;br /&gt;
&lt;br /&gt;
Today I rethink about it. If &amp;nbsp;Arch maintainer had done a lot of rebuild work and decided to make the transition, it is worth trying to upgrade! At least all packages in [core] should not have problem (hopefully). For the packages in aur, I can rebuild again by myself. So I removed python and python2 from IgnorePkg, executed -Syu.&lt;br /&gt;
&lt;br /&gt;
After the upgrade, I did followings.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;- link /usr/bin/python to /usr/bin/python2.&lt;/b&gt;&lt;br /&gt;
Most python scripts were still developed with python2.x. &amp;nbsp;This will make them still working without changing those scripts&#39; shebang.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;- rebuild and reinstall packages in AUR&lt;/b&gt;&lt;br /&gt;
Some changes need to be made in PKGBUILD files during installation, particularly for those marked as &#39;out-dated&#39; but no newer version available yet packages. for example, tpfand and tpfan-admin. (Thinkpad fan control) are looking for /usr/lib/python2.6/... libraries in building phase. Just pointing to /usr/lib/python2.7/... will get them rebuild and work.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;- Oops, vi/vim/gvim 7.2 doesn&#39;t work any longer!&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
since I am not yet used to working with vim 7.3. I put vim-runtime, gvim into IgnorePkg. but vim7.2 needs &lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;libpython2.6.so.1.0.&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;, which doesn&#39;t exist anymore. I can download vim source code and rebuild. But I did it in a dirty/lazy way, well, I like dirty. ;) &amp;nbsp;I think there might be other applications need libpython2.6 as well, so I made libpython2.6.so.1.0 link to the python2.7 library. &amp;nbsp;then vim is back!&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
So far so good, although&amp;nbsp;I haven&#39;t got time to test all my applications.&lt;br /&gt;
&lt;br /&gt;
probably the transition of Arch will push some teams to make python3 compatible releases, e.g. pygtk, pyqt, django...</content><link rel='replies' type='application/atom+xml' href='http://kentyuan.blogspot.com/feeds/4511615099242678667/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kentyuan.blogspot.com/2010/10/upgrade-to-python312-in-my-arch-box.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8279642/posts/default/4511615099242678667'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8279642/posts/default/4511615099242678667'/><link rel='alternate' type='text/html' href='http://kentyuan.blogspot.com/2010/10/upgrade-to-python312-in-my-arch-box.html' title='Upgrade to python3.1.2 in my Arch box, phew!'/><author><name>Kent</name><uri>http://www.blogger.com/profile/04729217335790123360</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8279642.post-814045079464313623</id><published>2010-10-21T11:39:00.001+02:00</published><updated>2010-10-21T11:52:03.437+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="python"/><title type='text'>选择不同视频清晰度，格式来下载youtube视频的脚本</title><content type='html'>因为某些原因。需要把一些youtube视频下载到本地。youtube发布视频的页面也更新了。网上一些办法有的不好用。而且youtube现在提供不同的清晰度和视频格式(flv, mp4,3gp)，如果下载到本地，能选择格式和清晰度，就比较理想了。 于是就有了这个脚本。&lt;br /&gt;
&lt;br /&gt;
因为脚本主要自用，所以不是非常完善：&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 只输出到~/Desktop&lt;/li&gt;
&lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 下载的文件名是video id,而不是title。 因为title有时包括一些文件名不允许的字符，懒得再处理了&lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
现在还没需要批量下载。如果有，下一步就加上个批量下载的功能，顺便把输出目录变成用户输入参数。&lt;br /&gt;
&lt;br /&gt;
脚本的代码在这里：&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://github.com/sk1418/myScripts/blob/master/python/ytdl.py&quot;&gt;youtube downloader&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;运行时的截图是这样的：&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/_cUfZgRn-2bs/TL93OJrxzTI/AAAAAAAAFl4/PV7X8eFnEu4/s1600/ytdl.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;http://1.bp.blogspot.com/_cUfZgRn-2bs/TL93OJrxzTI/AAAAAAAAFl4/PV7X8eFnEu4/s400/ytdl.png&quot; width=&quot;351&quot; /&gt;&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kentyuan.blogspot.com/feeds/814045079464313623/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kentyuan.blogspot.com/2010/10/youtube.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8279642/posts/default/814045079464313623'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8279642/posts/default/814045079464313623'/><link rel='alternate' type='text/html' href='http://kentyuan.blogspot.com/2010/10/youtube.html' title='选择不同视频清晰度，格式来下载youtube视频的脚本'/><author><name>Kent</name><uri>http://www.blogger.com/profile/04729217335790123360</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/_cUfZgRn-2bs/TL93OJrxzTI/AAAAAAAAFl4/PV7X8eFnEu4/s72-c/ytdl.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8279642.post-665644594721927454</id><published>2010-10-20T00:21:00.009+02:00</published><updated>2010-10-20T00:40:31.012+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="others"/><title type='text'>Time is flying... I am back!</title><content type='html'>这个blog应该是我2003年左右申请的，那时候还是blogspot。可后来因为国内访问起来有困难，就搬家到msn spaces了。 没想到，微软不想继续这个服务了，全部用户都要强行搬迁到word press. 而且word press国内访问也不是很顺畅。 干脆我就接着转到这里算了，只要我自己能看到就行了。 时间很快，一转眼几年了，又回来了。呵呵。  给blog改了个名儿，接着用了。&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;几年间变化挺多。&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;工作经历了从北到南，又从南回北的转变。&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;摄影，仍然是瘾大技术差。可装备却越折腾越高级。 从以前的D70 ＋ 18－70 到现在的D300 AF Nikkor 35mm/F2D, Nikkor 85mm f/1.8D,   Nikkor AFS 18-70mm ED, Sigma 10-20mm 还有SB-800灯。&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;常用的系统从Ubuntu已经彻底换成了Archlinux.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;生活上，最大的变化就是有了下一代啦！&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;最近有些东西需要记下来，等有空总结一下慢慢贴上来。&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;blog又重新开始了。&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kentyuan.blogspot.com/feeds/665644594721927454/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kentyuan.blogspot.com/2010/10/time-is-flying-i-am-back.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8279642/posts/default/665644594721927454'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8279642/posts/default/665644594721927454'/><link rel='alternate' type='text/html' href='http://kentyuan.blogspot.com/2010/10/time-is-flying-i-am-back.html' title='Time is flying... I am back!'/><author><name>Kent</name><uri>http://www.blogger.com/profile/04729217335790123360</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8279642.post-111839046485739801</id><published>2005-06-10T09:49:00.002+02:00</published><updated>2010-10-19T23:32:29.350+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="life"/><title type='text'>Wisdom tooth is killing me...</title><content type='html'>最初发现长智齿是27，8岁的时候，没有任何感觉，是无意发现的，咦，怎么又长了颗牙？ 慢慢地它露头了，也没感觉，再以后，就停止了生长，维持了大概2年不到。这不，最近可能觉得不长出来对不住我了，又开始长了起来，这次可不得了，把我折腾的够呛。&lt;br /&gt;&lt;br /&gt;因为实在难忍疼痛，第一次（6月8日）去见德国的牙医，先挨了一针麻醉，整个半边脸没了感觉，又照了X-RAY，发现这个智慧齿的确长的不正，开始了钻，磨，洗，最后塞上了一块药布。结果不知怎地，脸是没了感觉，单单牙床还非常敏感，把我疼的满头大汗，护士还象安慰小孩似的安慰我“好了，好了，就快好了，知道很疼，但是我们必须这么做呀....”完了事，还轻轻地抚摸着我的脸，“好了，好了。。”真不知道那针麻醉针是起什么功效，结果到当天下午4点多我的脸和嘴唇才恢复知觉。&lt;br /&gt;&lt;br /&gt;今天刚刚又去了，换了一块药布，疼痛的感觉比起上次是小了很多，但是也够呛，周三还要去。因为现在inflammation还有，所以不能拔掉，他说可能要等2周后再说。哎。。。苦啊。&lt;br /&gt;&lt;br /&gt;本来今天下午学校有个免费餐的机会，看来没希望了。&lt;br /&gt;&lt;br /&gt;这牙可害苦了我了....  唯一欣慰的就是协助大夫手术操作的护士小姐挺靓，但是看她对减轻疼痛没任何作用。&lt;br /&gt;&lt;br /&gt;希望早日脱离智齿困扰。</content><link rel='replies' type='application/atom+xml' href='http://kentyuan.blogspot.com/feeds/111839046485739801/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kentyuan.blogspot.com/2005/06/wisdom-tooth-is-killing-me.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8279642/posts/default/111839046485739801'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8279642/posts/default/111839046485739801'/><link rel='alternate' type='text/html' href='http://kentyuan.blogspot.com/2005/06/wisdom-tooth-is-killing-me.html' title='Wisdom tooth is killing me...'/><author><name>Kent</name><uri>http://www.blogger.com/profile/04729217335790123360</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8279642.post-111335412911723788</id><published>2005-04-13T02:57:00.001+02:00</published><updated>2010-10-19T23:32:56.071+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="java"/><title type='text'>General Undo Redo Framework works now</title><content type='html'>Undo and Redo some times needed in some projects. The undo/redo I meant is not talking about in GUI perspective but from object state view. This framework is a part of my master thesis. It is called &quot;General&quot; &#39;cause client programmer doesn&#39;t has to make big changes on existing codes. Just declare a &quot;command block&quot; is ok. A command block is a undo/redo unit, it can contain a number of methods or operations. In another word, it identicates a undo/redo step. With this framework, client developer just &quot;plugs&quot; it into existing project, and the project has the unlimited times (only in possible case) undo/redo feature. I think it&#39;s nice.&lt;br /&gt;&lt;br /&gt;This program is implemented by Java reflection and AspectJ. To get better performance, I didn&#39;t store whole object trees snap shot in memory or disk. It definitely will construct a heavy overhead. And it is more obvious if unlimited times undo/redo is needed. So Memento pattern is not used either.&lt;br /&gt;&lt;br /&gt;Shortly, the strategy to achieve the requirement are:&lt;br /&gt;-AOP aspect acts as undo/redo observer, it capture any attempt of changing an object(mainly fields changing)&lt;br /&gt;-Save the changing field old value into some structrue, e.g. hashtable , reflection used here.Save the method objects, owner object and arguments, which lead to an object change within a single command in certain order, reflection used as well.&lt;br /&gt;-Undo - get the right command from command manager, restore the old values of changed fields.&lt;br /&gt;-Redo - get the right command and execute all methods stored in command.methodlist again.&lt;br /&gt;&lt;br /&gt;Object references, Collections and navigation between associated classes like composition, aggregation are some points I paied attention. Especially the last one, I found a bug about it during redo, and fixing it cost me one day! (Not all the time :) )&lt;br /&gt;More testing is needed on this framework.</content><link rel='replies' type='application/atom+xml' href='http://kentyuan.blogspot.com/feeds/111335412911723788/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kentyuan.blogspot.com/2005/04/general-undo-redo-framework-works-now.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8279642/posts/default/111335412911723788'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8279642/posts/default/111335412911723788'/><link rel='alternate' type='text/html' href='http://kentyuan.blogspot.com/2005/04/general-undo-redo-framework-works-now.html' title='General Undo Redo Framework works now'/><author><name>Kent</name><uri>http://www.blogger.com/profile/04729217335790123360</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8279642.post-111335385476328499</id><published>2005-04-13T02:31:00.001+02:00</published><updated>2010-10-19T23:33:44.433+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="photography"/><title type='text'>Dust found on my Nikon D70 CCD!!</title><content type='html'>3 dots found in some pictures, they are in same postion.&lt;br /&gt;&lt;br /&gt;I blowed CCD, but made no sense.&lt;br /&gt;Fortunately, it is not so serious. Those dust-dots only can be noticed in pictures with F&gt; F16. And &#39;cause generally pictures has relative complex background, so those dots is hardly noticed.</content><link rel='replies' type='application/atom+xml' href='http://kentyuan.blogspot.com/feeds/111335385476328499/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kentyuan.blogspot.com/2005/04/dust-found-on-my-nikon-d70-ccd.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8279642/posts/default/111335385476328499'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8279642/posts/default/111335385476328499'/><link rel='alternate' type='text/html' href='http://kentyuan.blogspot.com/2005/04/dust-found-on-my-nikon-d70-ccd.html' title='Dust found on my Nikon D70 CCD!!'/><author><name>Kent</name><uri>http://www.blogger.com/profile/04729217335790123360</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8279642.post-111257749095002785</id><published>2005-04-04T03:16:00.001+02:00</published><updated>2010-10-19T23:33:35.945+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="photography"/><title type='text'>some words on my camera</title><content type='html'>I have to say, Nikon D70 is a really good camera. Gradually I am getting familiar with it. I like it. I bought a tripod for it 2 days ago in MediaMarkt. Some forum help me a lot on taking picture. This weekend the weather is really good. My girlfriend and I went out to take a walk around the little lake, and I took some pictures. See below, I hope the picture link works. I took these two pictures with CPL in sRGB III color mode. In fact I didn&#39;t do much processing with them using image processing tool, typically photoshop. I think the camera is quite ok.&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;a href=&quot;http://blog.itpub.net/get/2613/4761-10.jpg&quot;&gt;Picture1&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;http://blog.itpub.net/get/2613/4762-9.jpg&quot;&gt;Picture2&lt;/a&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://kentyuan.blogspot.com/feeds/111257749095002785/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kentyuan.blogspot.com/2005/04/some-words-on-my-camera.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8279642/posts/default/111257749095002785'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8279642/posts/default/111257749095002785'/><link rel='alternate' type='text/html' href='http://kentyuan.blogspot.com/2005/04/some-words-on-my-camera.html' title='some words on my camera'/><author><name>Kent</name><uri>http://www.blogger.com/profile/04729217335790123360</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8279642.post-111257731081057064</id><published>2005-04-04T03:14:00.000+02:00</published><updated>2005-04-04T03:15:10.810+02:00</updated><title type='text'>My thesis</title><content type='html'>I am working on the first stage. Getting some knowledge about MDA, Octopus and OCL, a good complementary of UML. I have known AOP, but based on Spring implementation. My thesis needs some implementation with AspectJ. In Spring there is no &quot;particular complier&quot; for aspects, since it uses Proxy mechanism. For AspectJ, after coding aspects, all java files and aspects must be compiled again by a &quot;aspectJ complier&quot;. And some good Eclipse Plugins are available. I picked the most famous one &quot;AJDT&quot;. It took me a lot of time to let them work properly. Why? the installation is easy, but after I create an Aspect project, when I coding, no matter .aj or .java file, the auto-complete functionality has gone. I have to exactly remember the fields and methods of each object. :( Finally I download a milestone version, and it works. (at the beginning the version I downloaded is release version) However, it only works on java file, in aspect, there is no auto-complete as well.&lt;br /&gt;&lt;br /&gt;Now I am implementing a AOP based Undo/ Redo framework, some related design patterns were used ( mainly Memento, Marker interface and Command).  Collection clone is a problem. I plan to solve it using Memento pattern. Which means I will store a lot of (maybe not too much) objects&#39; copy in memory. I don&#39;t know if this overhead is significant. But I have not thought out other solution on that yet.&lt;br /&gt;&lt;br /&gt;The implementation is supposed to be finished in 3 days.</content><link rel='replies' type='application/atom+xml' href='http://kentyuan.blogspot.com/feeds/111257731081057064/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kentyuan.blogspot.com/2005/04/my-thesis.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8279642/posts/default/111257731081057064'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8279642/posts/default/111257731081057064'/><link rel='alternate' type='text/html' href='http://kentyuan.blogspot.com/2005/04/my-thesis.html' title='My thesis'/><author><name>Kent</name><uri>http://www.blogger.com/profile/04729217335790123360</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8279642.post-110915381578133316</id><published>2005-02-15T11:16:00.001+01:00</published><updated>2010-10-19T23:33:59.388+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="life"/><title type='text'>瑞雪</title><content type='html'>小学就已经知道&quot;瑞雪兆丰年&quot;这句话, 昨夜, 下起了大雪. 新春降这样大的雪在我的记忆中只有2次. 上一次是198几年的大年初二...那年的雪是不是给所有的人带来了一年的好运已经不记得了. 现代的生活越来越紧张,各方面的竞争也愈加激烈,人们在拼搏努力的同时都希望着交个好运气. 我想这场大雪应该是好运气的象征吧.记得一位朋友说过，去年的雪是她的幸运使者. 也许该轮到我了... :)&lt;br /&gt;看了最近的新闻，欧洲大部分地区也普降大雪,看来这个&quot;丰年&quot;征兆还是横跨欧亚大陆的.  :D</content><link rel='replies' type='application/atom+xml' href='http://kentyuan.blogspot.com/feeds/110915381578133316/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kentyuan.blogspot.com/2005/02/blog-post.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8279642/posts/default/110915381578133316'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8279642/posts/default/110915381578133316'/><link rel='alternate' type='text/html' href='http://kentyuan.blogspot.com/2005/02/blog-post.html' title='瑞雪'/><author><name>Kent</name><uri>http://www.blogger.com/profile/04729217335790123360</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8279642.post-110915375212481574</id><published>2005-02-02T11:11:00.001+01:00</published><updated>2010-10-19T23:33:27.165+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="photography"/><title type='text'>Nikon D70 in hand</title><content type='html'>I said, I wanna buy a DC at the end of Jan instead of DSLR. &#39;cause the weight and expense of the lens. However finally I bought Nikon D70 with Nikkor 18 - 70mm 1:3.5-4.5G ED. Because the price of this kit is just about 150euro expensive than canon pro1 in China. And with a DSLR, I always have the opportunity to extend my lens devices. That certainly would be the issue in future. :)  Even though I got this camera in hand on 27th Jan. For some reason, I haven&#39;t tested it carefully yet. Today I tried it and felt it is really good.&lt;br /&gt;&lt;br /&gt;I am satisfied with the image quality and shortcut buttons at the back of the body, though some guys complained Nikon MMI design. I feel its MMI design is comfortable to use. :) The lens is good as well. I know there really are some shortcoming on this lens, like the dark angle problem and so on. However for studying photography, it is a quite good lens.&lt;br /&gt;&lt;br /&gt;Besides that, I found the images shot by this camera look a little bit dark, but not seriously. I don&#39;t know it is a character of D70 or the problem of my skill. Normally I use EV +0.3 to compensate it.  Ok, I hope I can have more time to use it and shoot more beautiful images.</content><link rel='replies' type='application/atom+xml' href='http://kentyuan.blogspot.com/feeds/110915375212481574/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kentyuan.blogspot.com/2005/02/nikon-d70-in-hand.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8279642/posts/default/110915375212481574'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8279642/posts/default/110915375212481574'/><link rel='alternate' type='text/html' href='http://kentyuan.blogspot.com/2005/02/nikon-d70-in-hand.html' title='Nikon D70 in hand'/><author><name>Kent</name><uri>http://www.blogger.com/profile/04729217335790123360</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8279642.post-110915347752855518</id><published>2005-01-26T11:07:00.001+01:00</published><updated>2010-10-19T23:34:10.566+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="life"/><title type='text'>回家</title><content type='html'>离家将近3年之后，今天终于又回到家，又见父母。本已激动的心情在钥匙在家门锁中旋转的同时达到顶峰。妈妈见到我后更是激动，我知道，她是非常想念我这个儿子的，尽管到现在了我还没真正地好好孝顺她。她是个非常勤劳简朴的女人，在我心里永远是可敬的。&lt;br /&gt;妈妈比以前看起来显老了，这次回来给妈妈带了一瓶“世界最高档品牌”(至少Shirley和几个化妆品专卖店的服务员都这么认为)的面霜，让她保养保养。我这连玉兰油都觉得是高档化妆品的可爱的妈妈，看着我送她这瓶她用过的最昂贵的面霜，却说，这么贵，都舍不得用了…… 嘻嘻。 不过这东西的确挺昂贵的，在这向牟取暴利的化妆品生产商小小地抱怨一下。呵呵。爸爸的白发也比以前多了。 知道我已经在车站上了出租，他就下楼在寒风里等着出租车的到来……&lt;br /&gt;&lt;br /&gt;以前和他们朝夕相处，真的没象这么深刻地体会到这种源于亲情的感动。相比之下，老外们的亲情就比我们淡的多了。用一句通用的话来说，可能因为文化背景不同吧。&lt;br /&gt;&lt;br /&gt;还要一提的是我的旅途，旅途基本算顺利，就是在北京机场的时候，让我深刻地感觉到了“嘿，现在你已经在国内了！” 为什么这么说呢？刚踏上祖国领土，诸多“中国特色”的东西就全都来了。最明显的就是出机场的检查，那种近似变态的毫无理由的挑剔，那些“长官”们“代表人民利益”的工作态度和服务态度，呵呵，无话可说。&lt;br /&gt;&lt;br /&gt;OK，不管如何，终于和家人团聚了，今天真高兴！</content><link rel='replies' type='application/atom+xml' href='http://kentyuan.blogspot.com/feeds/110915347752855518/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kentyuan.blogspot.com/2005/01/blog-post.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8279642/posts/default/110915347752855518'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8279642/posts/default/110915347752855518'/><link rel='alternate' type='text/html' href='http://kentyuan.blogspot.com/2005/01/blog-post.html' title='回家'/><author><name>Kent</name><uri>http://www.blogger.com/profile/04729217335790123360</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8279642.post-110410040263298539</id><published>2004-12-26T22:54:00.001+01:00</published><updated>2010-10-19T23:34:42.463+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="others"/><title type='text'>Christmas and Chinese traditional festival</title><content type='html'>又逢圣诞，依旧没有节日感觉。如果问起欧洲圣诞的特征，只一个字 “静”。 圣诞是欧洲家庭团聚的日子，是大吃一顿的日子，烧鹅是必然出现的一道大菜。 no demonstration, no party...  不象中国，狂欢，party... 甚至一些企业还统一组织活动。 说起圣诞在中国，有些感想……这也是这个entry 为什么用中文的原因。&lt;br /&gt;&lt;br /&gt;近年来，中国开放了，N多东西都与国际接轨了，节假日也不例外。情人节，中国的情人们开始celebrate了，圣诞节，狂欢，尤其是年轻人群，celebrating Christmas成了一种时尚，是一种跟的上时代脚步的象征，不管对圣诞的知识了解多少，不信，庆祝圣诞的各位，谁知道圣诞老人的名字？这够基本的了吧？ (答案：Santa Claus)  这本是个宗教节日，却在中国忽地流行了起来。是不是Hallowmas, Easter也要庆祝？&lt;br /&gt;&lt;br /&gt;我并不反对国人过洋节，这可以拉动消费，增进朋友同事感情等。我心里只希望我们中国的传统节日能发扬下去。看看我们的日历，有多少传统节日还占据着公共假日的地位？劳动节，国庆，春节是3个主要长假。春节的地位难以动摇，暂不说。 中秋，元宵，端午，重阳…… 这些我觉得都是中国的重要节日，现在的人对这些越来越淡，不敢说再过几代，国人还知不知道这些词背后的意思。我了解到，在台湾这些日子都公共假日，至少这能让人们知道这天是中国的节日，这是我们的文化，中国的文化。端午，重阳先不说，中秋跟元宵我觉得是仅次于春节的节日，这至少应该是假日才对，哪怕从国庆的长假弄出2天来也是值得的。为什么这些假日都不是呢？难道是反“四旧”那时侯弄的？（我对文革不太了解，瞎猜的）&lt;br /&gt;&lt;br /&gt;哎...我知道我说什么没用的，也就是发发牢骚算了。对我来说，这里圣诞对我的影响就是24号以前要买上维持3，4天的东西，因为商店，邮局，银行，一切娱乐场所包括红灯区，赌场节日期间全部停业。这可能是老外傻的地方，放弃了大好的赚钱时机，呵呵…… 此外，就是那种特殊的寂静，感觉闷的要命……&lt;br /&gt;&lt;br /&gt;希望中国人能了解每一个中国传统节日和节日身后的故事。</content><link rel='replies' type='application/atom+xml' href='http://kentyuan.blogspot.com/feeds/110410040263298539/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kentyuan.blogspot.com/2004/12/christmas-and-chinese-traditional.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8279642/posts/default/110410040263298539'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8279642/posts/default/110410040263298539'/><link rel='alternate' type='text/html' href='http://kentyuan.blogspot.com/2004/12/christmas-and-chinese-traditional.html' title='Christmas and Chinese traditional festival'/><author><name>Kent</name><uri>http://www.blogger.com/profile/04729217335790123360</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8279642.post-109991753387405998</id><published>2004-11-08T13:37:00.001+01:00</published><updated>2010-10-19T23:17:41.680+02:00</updated><title type='text'>Java Pitfalls...done!</title><content type='html'>In this &lt;a href=&quot;http://kentyuan.blogspot.com/2004/10/3-useful-books-for-java-developer.html&quot;&gt;entry&lt;/a&gt; I listed 3 books for java programmers. Today I finished the book &quot;Java pitfalls&quot;. Tomorrow I can return it to our library, phew...  Last week I paid 1 Euro for this book cause I forgot renewing it. :-(&lt;br /&gt;&lt;br /&gt;There are 50 items in this book. And there is no tight relationship among them. Then it allows me to read 3 or 5 items a day.  It&#39;s true that almost all things in that book are Java fundamental knowledges. But I really gained some benifits from reading that book, especially on Java performance issues. I think in my future programming, some knowledges from this book will remind me in my mind all the time.  It can let me write more efficient java codes, at least feels good :-). Well, I skipped some items concerning java GUI programming. I always feel sleepy when I reading something like Jbutton, Panel..stuffs.&lt;br /&gt;&lt;br /&gt;In this book, authors discussed how to debug a java application and how to use Assertion. I guess JUnit maybe not available when they wrote this book. :-)&lt;br /&gt;&lt;br /&gt;There is a series book called &quot;more Java pitfalls&quot;. I checked our library, this book is not yet there. But fortunately I have the electronic version.</content><link rel='replies' type='application/atom+xml' href='http://kentyuan.blogspot.com/feeds/109991753387405998/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kentyuan.blogspot.com/2004/11/java-pitfallsdone.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8279642/posts/default/109991753387405998'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8279642/posts/default/109991753387405998'/><link rel='alternate' type='text/html' href='http://kentyuan.blogspot.com/2004/11/java-pitfallsdone.html' title='Java Pitfalls...done!'/><author><name>Kent</name><uri>http://www.blogger.com/profile/04729217335790123360</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8279642.post-109528322186575022</id><published>2004-09-15T22:59:00.000+02:00</published><updated>2004-09-15T23:26:36.223+02:00</updated><title type='text'>Excited and Disappointed - 100M free web space </title><content type='html'>Just now I was checking &lt;a href=&quot;http://answers.google.com/answers/&quot;&gt;Google Answer&lt;/a&gt;, occasionally, I found a 100M free web space in one question. I tried to sign up it immediately, finally I &#39;ve got a 100M web space with ftp account and 1G data traffic per month limitation. It provides more useful features. Like subdomain name custermization, php , MySQL DB and web email with pop3 and smtp supports. For me, I just need the web space with http reference for the files so that I can link in this blog.&lt;br /&gt;&lt;br /&gt;However after I tested FTP and other function, I found the most important and basic feature doesn&#39;t work. I cannot access my &lt;a href=&quot;http://sk1418.ifreepages.com/test.htm&quot;&gt;test web page&lt;/a&gt; from browser. :( My internet explorer always says &quot;Opening page....&quot; in the status bar. I hope the reason of it is that their sever needs some time to add new domains...&lt;br /&gt;&lt;br /&gt;Let&#39;s see what&#39;s happend tomorrow..</content><link rel='replies' type='application/atom+xml' href='http://kentyuan.blogspot.com/feeds/109528322186575022/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kentyuan.blogspot.com/2004/09/excited-and-disappointed-100m-free-web.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8279642/posts/default/109528322186575022'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8279642/posts/default/109528322186575022'/><link rel='alternate' type='text/html' href='http://kentyuan.blogspot.com/2004/09/excited-and-disappointed-100m-free-web.html' title='Excited and Disappointed - 100M free web space '/><author><name>Kent</name><uri>http://www.blogger.com/profile/04729217335790123360</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8279642.post-109506754836792522</id><published>2004-09-11T19:19:00.001+02:00</published><updated>2010-10-19T23:35:03.931+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="life"/><title type='text'>3rd times to Heidelberg castle And the perfect Chinese speaker</title><content type='html'>Today, Wang Zhenxu came to Heidelberg. We went to Heidelberg Castle together. Although I have been living here for 5.5 month, this is my 3rd times to go there and sight seeing.&lt;br /&gt;&lt;br /&gt;I got a really big supprise during this time. When we visited the Apothic Museum, I found a guy who works there can speak really good Chinese. At that time, I wanted to buy a little box as souvenir. He spoke to my friend &quot;说中文吧，还快一点&quot;( let&#39;s speak in Chinese, it would be faster). And when I gave him the money, he also can speak &quot;x块x毛x&quot; . So typical Chinese....&lt;br /&gt;&lt;br /&gt;Suddenly I felt so shame and embarrassed. I have been in Germany for 2 years, but I still cannot speak German...:(&lt;br /&gt;&lt;br /&gt;The following picture is &quot;&lt;span style=&quot;font-family:georgia;&quot;&gt;Nackar river, Castle and I&lt;/span&gt;&quot;&lt;br /&gt;&lt;a href=&quot;http://sk1418.ifreepages.com/BlogFiles/NackarAndI.jpg&quot; border=&quot;0&quot;&gt;&lt;img height=&quot;200&quot; src=&quot;http://sk1418.ifreepages.com/BlogFiles/NackarAndI.jpg&quot; width=&quot;300&quot; /&gt;&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://kentyuan.blogspot.com/feeds/109506754836792522/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kentyuan.blogspot.com/2004/09/3rd-times-to-heidelberg-castle-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8279642/posts/default/109506754836792522'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8279642/posts/default/109506754836792522'/><link rel='alternate' type='text/html' href='http://kentyuan.blogspot.com/2004/09/3rd-times-to-heidelberg-castle-and.html' title='3rd times to Heidelberg castle And the perfect Chinese speaker'/><author><name>Kent</name><uri>http://www.blogger.com/profile/04729217335790123360</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>