<?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: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-8505118</id><updated>2012-01-01T18:58:25.495+08:00</updated><category term='UML'/><category term='电影'/><category term='胡言乱语'/><category term='开心网'/><category term='JAVA'/><category term='MANIFEST'/><category term='Eclipse'/><title type='text'>HI</title><subtitle type='html'>Just a 齐海力's blog</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://qihaili.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8505118/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://qihaili.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>齐海力</name><uri>http://www.blogger.com/profile/03654192945991085495</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_0VQS-RLmA8M/SZULLRdWveI/AAAAAAAABX4/9a2-7H5rby0/S220/jump_20080714134034.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>10</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8505118.post-1238823419603365343</id><published>2009-03-16T17:15:00.002+08:00</published><updated>2009-03-16T17:17:53.280+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='胡言乱语'/><title type='text'>史上包的最完整的胡桃</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_0VQS-RLmA8M/Sb4ZHTDyAmI/AAAAAAAABbE/BJCCp_--JzA/s1600-h/IMG_5243.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 300px;" src="http://4.bp.blogspot.com/_0VQS-RLmA8M/Sb4ZHTDyAmI/AAAAAAAABbE/BJCCp_--JzA/s400/IMG_5243.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5313712223509676642" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8505118-1238823419603365343?l=qihaili.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://qihaili.blogspot.com/feeds/1238823419603365343/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://qihaili.blogspot.com/2009/03/blog-post_16.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8505118/posts/default/1238823419603365343'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8505118/posts/default/1238823419603365343'/><link rel='alternate' type='text/html' href='http://qihaili.blogspot.com/2009/03/blog-post_16.html' title='史上包的最完整的胡桃'/><author><name>齐海力</name><uri>http://www.blogger.com/profile/03654192945991085495</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_0VQS-RLmA8M/SZULLRdWveI/AAAAAAAABX4/9a2-7H5rby0/S220/jump_20080714134034.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_0VQS-RLmA8M/Sb4ZHTDyAmI/AAAAAAAABbE/BJCCp_--JzA/s72-c/IMG_5243.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8505118.post-7058200110787675933</id><published>2009-03-13T16:50:00.003+08:00</published><updated>2009-03-15T22:38:49.114+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Eclipse'/><title type='text'>Eclipse的使用习惯</title><content type='html'>以前我使用Eclipse时总是把所有工程放到一个Workspace下。导致最后发现升级Eclipse时很费劲，因为有些工程可以升级到更高版本的Eclipse中去，有些不行。并且平时做起开发来也很费劲，Eclipse启动很慢，import进来的工程也找不到去哪儿了，搜索类的时候要load半天，等等吧，反正看着一堆无关的工程觉得很不爽。&lt;br /&gt;最近发现Eclipse的启动程序有个-data参数（其实老早就有了，只是从来没注意过，而且也没有需要，现在有了）。这个参数可以指定Eclipse当前的Workspace目录。&lt;br /&gt;好了，那接下来需要做的就是根据产品创建Workspace目录，把相关的Project放到这个目录下，然后创建一个.bat文件（文件名什么都行，比如runeclipse-3.2.2.bat），内容就写：@start %ECLIPSE_HOME_3.2.2%\eclipse.exe -data %~dp0。然后设置一个叫ECLIPSE_HOME_3.2.2的环境变量（“我的电脑”上点击右键-&gt;“属性”-&gt;“高级”-&gt;“环境变量”），内容就是你的Eclipse 3.2.2的跟目录（比如我的是D:\programs\eclipse-3.2.2）。现在就运行这个.bat文件应该就能启动Eclipse了，会发现是个欢迎界面，Workspace是空的。然后通过File菜单的Import把这个产品目录下的所有Project导进来就行了，注意如果你已经把Project考到这个目录下了的话就不要勾上那个“Copy projects into workspace”选项了。如此这般把每个产品目录都这样做。如果要多个Eclipse共存的化就设置多个环境变量，如：ECLIPSE_HOME_3.3.2，ECLIPSE_HOME_3.4.1，ECLIPSE_HOME_3.4.2等等。&lt;br /&gt;这样今后每次要做开发的时候只需要找到这个产品的Workspace目录，然后运行runeclipse-X.Y.Z.bat就行了，需要更新到更高版本的Eclipse只需要在.bat文件中修改环境变量名就行了。&lt;br /&gt;唯一的缺点就是DOS窗口会闪一下，如果用vbs就不会了。感兴趣的可以试试，同理。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8505118-7058200110787675933?l=qihaili.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://qihaili.blogspot.com/feeds/7058200110787675933/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://qihaili.blogspot.com/2009/03/eclipse.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8505118/posts/default/7058200110787675933'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8505118/posts/default/7058200110787675933'/><link rel='alternate' type='text/html' href='http://qihaili.blogspot.com/2009/03/eclipse.html' title='Eclipse的使用习惯'/><author><name>齐海力</name><uri>http://www.blogger.com/profile/03654192945991085495</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_0VQS-RLmA8M/SZULLRdWveI/AAAAAAAABX4/9a2-7H5rby0/S220/jump_20080714134034.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8505118.post-181513043230643463</id><published>2009-03-13T15:22:00.005+08:00</published><updated>2009-03-13T16:29:40.341+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='开心网'/><category scheme='http://www.blogger.com/atom/ns#' term='胡言乱语'/><title type='text'>开心网种菜效率表</title><content type='html'>看看种哪种东西最划算吧！并不是越靠后的越好，红色表示一定范围内的极大值。&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_0VQS-RLmA8M/SboZMs-FyeI/AAAAAAAABZo/ijeyH2Nn2Kk/s1600-h/%E5%BC%80%E5%BF%83%E7%BD%91%E5%BA%84%E7%A8%BC%E7%A7%8D%E5%AD%90%E6%95%88%E7%8E%87.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 295px;" src="http://4.bp.blogspot.com/_0VQS-RLmA8M/SboZMs-FyeI/AAAAAAAABZo/ijeyH2Nn2Kk/s400/%E5%BC%80%E5%BF%83%E7%BD%91%E5%BA%84%E7%A8%BC%E7%A7%8D%E5%AD%90%E6%95%88%E7%8E%87.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5312586416457632226" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8505118-181513043230643463?l=qihaili.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://qihaili.blogspot.com/feeds/181513043230643463/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://qihaili.blogspot.com/2009/03/blog-post.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8505118/posts/default/181513043230643463'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8505118/posts/default/181513043230643463'/><link rel='alternate' type='text/html' href='http://qihaili.blogspot.com/2009/03/blog-post.html' title='开心网种菜效率表'/><author><name>齐海力</name><uri>http://www.blogger.com/profile/03654192945991085495</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_0VQS-RLmA8M/SZULLRdWveI/AAAAAAAABX4/9a2-7H5rby0/S220/jump_20080714134034.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_0VQS-RLmA8M/SboZMs-FyeI/AAAAAAAABZo/ijeyH2Nn2Kk/s72-c/%E5%BC%80%E5%BF%83%E7%BD%91%E5%BA%84%E7%A8%BC%E7%A7%8D%E5%AD%90%E6%95%88%E7%8E%87.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8505118.post-3315379646900879838</id><published>2009-02-27T09:27:00.003+08:00</published><updated>2009-02-27T09:37:59.062+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='胡言乱语'/><title type='text'></title><content type='html'>最近总能看到马路上发放提倡食素宣传单的人。有一次在大北窑还看到竟然是几个老太太在发，看她们的样子也不想是那种打工发小广告的。难道她们真的是在做一项公益事业么？。。。&lt;br /&gt;看看宣传单，上面无外乎列举了几点：很多名人都食素、食素能大大减少患N多病的几率、动物在被宰杀的一刻心里充满恐慌会向身体分泌某种毒素、食素能降低温室效应、素食的营养成分不比肉差甚至还更高。&lt;br /&gt;我觉得要说少吃点儿肉还能行，但如果要一点儿有肉的成分的东西都不沾，甚至连鸡蛋都不吃恐怕基本办不到。连信仰佛教或者那些印度素食主义者食素也是分好几个层次的，只有最深的一层才一点儿肉腥不沾呢。&lt;br /&gt;禁肉真的有那么多好处吗？看来值得关注一下。不过通过我自身感受觉得少吃点儿肉确实对身体有好处，至少感觉更有精神了，而且从体型上说也瘦了。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8505118-3315379646900879838?l=qihaili.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://qihaili.blogspot.com/feeds/3315379646900879838/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://qihaili.blogspot.com/2009/02/n.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8505118/posts/default/3315379646900879838'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8505118/posts/default/3315379646900879838'/><link rel='alternate' type='text/html' href='http://qihaili.blogspot.com/2009/02/n.html' title=''/><author><name>齐海力</name><uri>http://www.blogger.com/profile/03654192945991085495</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_0VQS-RLmA8M/SZULLRdWveI/AAAAAAAABX4/9a2-7H5rby0/S220/jump_20080714134034.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8505118.post-2143451720682338014</id><published>2009-02-25T13:10:00.009+08:00</published><updated>2009-02-25T14:34:04.645+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='胡言乱语'/><title type='text'>给我一个买PSP的理由</title><content type='html'>　　最近在PSP和NDS之间犹豫中。PSP的主要功能：玩儿游戏、听歌儿、看片儿、看小说、GPS。&lt;br /&gt;&lt;ul&gt;&lt;li&gt;玩儿游戏：显然PSP比不过NDS。NDS游戏数量众多而且不乏经典之作，而PSP游戏数量少不说大部分还都是移植自PS的。&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;听歌儿：我有IPOD。&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;看片儿：我看片儿比较追求影音效果。新片的DVDScr版从来不看。我现在都是下BDRip然后用家里的液晶电视看。虽说比不上电影院的效果，那也和用手持设备带着耳塞看完全不是一个感觉。&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;看小说：我有个毛病，不能在车上长时间看书、手机什么的，否则就会觉得一点儿晕车。&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;GPS：目前用不上，即使今后开车要用的话我觉得也还是专业的车载GPS更方便。&lt;/li&gt;&lt;/ul&gt;　　最终考虑良久入了NDSi。&lt;br /&gt;　　很多人都抱怨NDSi的摄像头才30万是个鸡肋，但是如果用一下就知道了，30万像素就意味着640*480的分辩率，对于NDS的小屏幕来说这个分辩率足够了，就连PSP那么大的屏幕也达不到640*480。而且如果增加摄像头的像素数就会连带需要装配更强的图形处理器，内存，CPU和存储设备，从而加大了很多成本。&lt;br /&gt;　　如果再用一下NDSi上面的照片处理小程序就会发现一个大头照就能出来很多有意思的特效，我相信这只是一个Demo，今后在游戏中会出现更多的玩儿法。所以这个摄像头肯定会有用处的。毕竟装在NDS上的摄像头最终还是要用在游戏上的，绝对不是用来搞摄影创作的。如果要旅游留影请买卡片相机，如果爱好摄影请买单反。&lt;br /&gt;　　当然，如果NDS能有PSP的强大机能再加上目前的游戏性就完美了。不过那价格肯定就不是现在的价格了，我相信再乘以3都不止。SONY卖PSP其实就已经是不赚钱的了。所以还是那句话，一切东西没有完美的，就看你更想要什么了。我买NDSi就是为了玩儿游戏，别的功能我都无视。&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://www.nintendo-dsi.org/wp-content/uploads/2008/10/cont_ts_01_white.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 448px; height: 370px;" src="http://www.nintendo-dsi.org/wp-content/uploads/2008/10/cont_ts_01_white.jpg" border="0" alt="" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8505118-2143451720682338014?l=qihaili.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://qihaili.blogspot.com/feeds/2143451720682338014/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://qihaili.blogspot.com/2009/02/psp.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8505118/posts/default/2143451720682338014'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8505118/posts/default/2143451720682338014'/><link rel='alternate' type='text/html' href='http://qihaili.blogspot.com/2009/02/psp.html' title='给我一个买PSP的理由'/><author><name>齐海力</name><uri>http://www.blogger.com/profile/03654192945991085495</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_0VQS-RLmA8M/SZULLRdWveI/AAAAAAAABX4/9a2-7H5rby0/S220/jump_20080714134034.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8505118.post-5903396825151961281</id><published>2009-02-22T14:42:00.005+08:00</published><updated>2009-02-22T14:49:02.148+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='胡言乱语'/><title type='text'>北京南站，弄的跟三号航站楼似的</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_0VQS-RLmA8M/SaD09EaialI/AAAAAAAABY4/a0fPiN9FOhU/s1600-h/P2130124.JPG"&gt;&lt;img style="cursor: pointer; width: 400px; height: 300px;" src="http://1.bp.blogspot.com/_0VQS-RLmA8M/SaD09EaialI/AAAAAAAABY4/a0fPiN9FOhU/s400/P2130124.JPG" alt="" id="BLOGGER_PHOTO_ID_5305509691036691026" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_0VQS-RLmA8M/SaD0n5_pYgI/AAAAAAAABYw/ebP2rZtozuA/s1600-h/P2130132.JPG"&gt;&lt;img style="cursor: pointer; width: 400px; height: 300px;" src="http://3.bp.blogspot.com/_0VQS-RLmA8M/SaD0n5_pYgI/AAAAAAAABYw/ebP2rZtozuA/s400/P2130132.JPG" alt="" id="BLOGGER_PHOTO_ID_5305509327462294018" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_0VQS-RLmA8M/SaD1KraLNNI/AAAAAAAABZA/VQv8j6IISLs/s1600-h/P2130127.JPG"&gt;&lt;img style="cursor: pointer; width: 400px; height: 300px;" src="http://4.bp.blogspot.com/_0VQS-RLmA8M/SaD1KraLNNI/AAAAAAAABZA/VQv8j6IISLs/s400/P2130127.JPG" alt="" id="BLOGGER_PHOTO_ID_5305509924842452178" border="0" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8505118-5903396825151961281?l=qihaili.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://qihaili.blogspot.com/feeds/5903396825151961281/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://qihaili.blogspot.com/2009/02/blog-post.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8505118/posts/default/5903396825151961281'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8505118/posts/default/5903396825151961281'/><link rel='alternate' type='text/html' href='http://qihaili.blogspot.com/2009/02/blog-post.html' title='北京南站，弄的跟三号航站楼似的'/><author><name>齐海力</name><uri>http://www.blogger.com/profile/03654192945991085495</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_0VQS-RLmA8M/SZULLRdWveI/AAAAAAAABX4/9a2-7H5rby0/S220/jump_20080714134034.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_0VQS-RLmA8M/SaD09EaialI/AAAAAAAABY4/a0fPiN9FOhU/s72-c/P2130124.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8505118.post-6620104346765897809</id><published>2009-02-18T17:13:00.006+08:00</published><updated>2009-02-18T17:32:48.738+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='UML'/><category scheme='http://www.blogger.com/atom/ns#' term='Eclipse'/><title type='text'>Eclipse UML2不再支持从Java Code生成Class Diagram</title><content type='html'>这么好的功能居然不支持了，真是可惜。但愿随着今后的升级会支持。没办法，现在只有两个选择，要么还是在Eclipse 3.x上用UML，要么就使用第三方的插件。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8505118-6620104346765897809?l=qihaili.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://qihaili.blogspot.com/feeds/6620104346765897809/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://qihaili.blogspot.com/2009/02/eclipse-uml2java-codeclass-diagram.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8505118/posts/default/6620104346765897809'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8505118/posts/default/6620104346765897809'/><link rel='alternate' type='text/html' href='http://qihaili.blogspot.com/2009/02/eclipse-uml2java-codeclass-diagram.html' title='Eclipse UML2不再支持从Java Code生成Class Diagram'/><author><name>齐海力</name><uri>http://www.blogger.com/profile/03654192945991085495</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_0VQS-RLmA8M/SZULLRdWveI/AAAAAAAABX4/9a2-7H5rby0/S220/jump_20080714134034.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8505118.post-6969184022758708996</id><published>2009-02-17T22:37:00.011+08:00</published><updated>2009-02-17T23:02:06.121+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MANIFEST'/><category scheme='http://www.blogger.com/atom/ns#' term='JAVA'/><title type='text'>MANIFEST.MF文件结构</title><content type='html'>&lt;span style="font-weight: bold;"&gt;Manifest文件也有关键字&lt;/span&gt;&lt;br /&gt;　　以前在写JAVA程序的时候一直以为MANIFEST.MF文件就是很简单的键值对的型式，就好像是个MAP一样，程序需要什么属性就从里面读就可以了。&lt;br /&gt;　　但是今天在写一段读取MANIFEST.MF文件的程序的时候发现该文件结构还不只是一个简单的MAP。&lt;br /&gt;　　MANIFEST.MF文件大体可以分为两大部分：第一部分Main　Attributes；第二部分是Entries。&lt;br /&gt;　　Main Attributes就是我们一开始所想像的那种简单的MAP。如果写成 key: value 的型式，那么键就是key值就是value。&lt;br /&gt;　　第二部分叫Entries的东西可以看成是许多个小的MAP。每一个Entry都是一个MAP，里面都有许多个key和value。对Entry的唯一索引是一个叫做"Name"的属性（不区分大小写）。也就是说"Name"属性是MANIFEST的关键字，你不可能在MANIFEST中设置一个叫Name的属性然后从程序中提取出来，如果你这样做的话JDK将返回null。&lt;br /&gt;　　举个例子：&lt;br /&gt;　　　aaa: value-aaa&lt;br /&gt;　　　bbb: value-bbb&lt;br /&gt;&lt;br /&gt;　　　name: attr-1&lt;br /&gt;　　　aa1: value-aa1&lt;br /&gt;　　　aa2: value-aa2&lt;br /&gt;&lt;br /&gt;　　　name: attr-2&lt;br /&gt;　　　bb1: value-bb1&lt;br /&gt;　　　bb2: value-bb2&lt;br /&gt;　　以上这个MANIFEST.MF文件包含了两个Main Attributes：aaa和bbb。同时包含了两个Entry：attr-1和attr-2。attr-1这个Entry中包含了aa1和aa2两个属性。attr-2这个Entry中包含了bb1和bb2两个属性。&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;如何通过JAVA程序读取MANIFEST.MF文件？&lt;/span&gt;&lt;ol&gt;&lt;li&gt;首先初始化Manifest对象，传入参数是一个InputStream。&lt;br /&gt;　　Manifest manifest = new Manifest(new FileInputStream("./TestManifest.txt"));&lt;/li&gt;&lt;li&gt;获得Main Attributes属性和值&lt;br /&gt;　　Attributes mainAttributes = manifest.getMainAttributes();&lt;br /&gt;　　String mainAttributeValue = mainAttributes.getValue("aaa");&lt;/li&gt;&lt;li&gt;获得某一个Entry并获得其中的属性和值&lt;br /&gt;　　Attributes attributes = manifest.getAttributes("attr-1");&lt;br /&gt;　　String attributeValue = attributes.getValue("aa1");&lt;/li&gt;&lt;li&gt;获得所有Entries&lt;br /&gt;　　Map entries = manifest.getEntries();&lt;br /&gt;　　Attributes attributes = (Attributes) entries.get(attributesName);&lt;/li&gt;&lt;/ol&gt;&lt;span style="font-weight: bold;"&gt;写MANIFEST.MF文件需要注意的几点：&lt;/span&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;属性名和值之间除了冒号意外一定要有空格。&lt;/li&gt;&lt;li&gt;不要有重复的属性名，除了"name"&lt;/li&gt;&lt;li&gt;不能有属性名叫做"name"&lt;/li&gt;&lt;li&gt;最后一个属性完后一定要有一行空行，否则最后一个属性将取不到&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8505118-6969184022758708996?l=qihaili.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://qihaili.blogspot.com/feeds/6969184022758708996/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://qihaili.blogspot.com/2009/02/manifestmf.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8505118/posts/default/6969184022758708996'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8505118/posts/default/6969184022758708996'/><link rel='alternate' type='text/html' href='http://qihaili.blogspot.com/2009/02/manifestmf.html' title='MANIFEST.MF文件结构'/><author><name>齐海力</name><uri>http://www.blogger.com/profile/03654192945991085495</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_0VQS-RLmA8M/SZULLRdWveI/AAAAAAAABX4/9a2-7H5rby0/S220/jump_20080714134034.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8505118.post-6309871639882052438</id><published>2009-02-13T23:34:00.005+08:00</published><updated>2009-02-14T17:59:23.714+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='电影'/><title type='text'>刚看了个片儿 - "Requiem For A Dream"</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_0VQS-RLmA8M/SZaV720vAGI/AAAAAAAABYc/YE5qgvZn5wM/s1600-h/Requiem+For+A+Dream.jpg"&gt;&lt;img style="cursor: pointer; width: 141px; height: 200px;" src="http://3.bp.blogspot.com/_0VQS-RLmA8M/SZaV720vAGI/AAAAAAAABYc/YE5qgvZn5wM/s200/Requiem+For+A+Dream.jpg" alt="" id="BLOGGER_PHOTO_ID_5302590466836856930" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;刚看了个片儿叫"Requiem For A Dream"（梦之安魂曲）。推荐给所有想要尝试下吸毒的人，哈哈。。。对毒品产生依赖的结果就只能是这样。我总觉得影片所要阐述的不只是毒品给人带来的危害，更多的是一种对社会的无奈和内心的空虚。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8505118-6309871639882052438?l=qihaili.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://qihaili.blogspot.com/feeds/6309871639882052438/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://qihaili.blogspot.com/2009/02/requiem-for-dream.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8505118/posts/default/6309871639882052438'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8505118/posts/default/6309871639882052438'/><link rel='alternate' type='text/html' href='http://qihaili.blogspot.com/2009/02/requiem-for-dream.html' title='刚看了个片儿 - &quot;Requiem For A Dream&quot;'/><author><name>齐海力</name><uri>http://www.blogger.com/profile/03654192945991085495</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_0VQS-RLmA8M/SZULLRdWveI/AAAAAAAABX4/9a2-7H5rby0/S220/jump_20080714134034.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_0VQS-RLmA8M/SZaV720vAGI/AAAAAAAABYc/YE5qgvZn5wM/s72-c/Requiem+For+A+Dream.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8505118.post-5682428529317728772</id><published>2009-02-13T14:05:00.004+08:00</published><updated>2009-02-13T15:45:51.883+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='胡言乱语'/><title type='text'></title><content type='html'>还是Blogger的博客强大，而且自由。听说近期被解封了，赶紧拿来用一下。比N年前增加了很多Widgets，而且评论可以内嵌在页面上了。不错不错...　别的愿望没有了，就希望伟大的党别再封了，悲哀啊&lt;br /&gt;随便Google了一下，好像Blogger的主题现在改成XML格式的了，然而对于这种XML格式的主题好像资源还不是很多，希望大拿们再接再厉多写一些好的主题，或者多从Wordpress移植些。&lt;br /&gt;竟然还支持不写标题！太爽了，我就喜欢不写标题。凡是遇到好玩儿的帖上去就可以了何必要写标题呢。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8505118-5682428529317728772?l=qihaili.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://qihaili.blogspot.com/feeds/5682428529317728772/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://qihaili.blogspot.com/2009/02/blogger.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8505118/posts/default/5682428529317728772'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8505118/posts/default/5682428529317728772'/><link rel='alternate' type='text/html' href='http://qihaili.blogspot.com/2009/02/blogger.html' title=''/><author><name>齐海力</name><uri>http://www.blogger.com/profile/03654192945991085495</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_0VQS-RLmA8M/SZULLRdWveI/AAAAAAAABX4/9a2-7H5rby0/S220/jump_20080714134034.jpg'/></author><thr:total>0</thr:total></entry></feed>
