<?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-7895235859378179894</id><updated>2012-02-16T03:01:10.934-08:00</updated><category term='mac osx ubuntu freebsd package'/><title type='text'>Stone Park</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://eddyxu.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7895235859378179894/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://eddyxu.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Eddy Xu</name><uri>http://www.blogger.com/profile/11468544403506125406</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>6</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7895235859378179894.post-7163208984124274811</id><published>2006-10-17T03:23:00.000-07:00</published><updated>2006-10-17T03:25:22.418-07:00</updated><title type='text'>the return value of ACE_SOCK_Stream</title><content type='html'>The "_n()" I/O methods keep looping until all the data has been transferred.  These methods also work for sockets in non-blocking mode i.e., they keep looping on EWOULDBLOCK.  &lt;timeout&gt; is used to make sure we keep making progress, i.e., the same timeout value is used for every I/O operation in the loop and the timeout is not counted down.&lt;br /&gt;&lt;br /&gt; The return values for the "*_n()" methods match the return values from the non "_n()" methods and are specified as follows:&lt;br /&gt;  *- On complete transfer, the number of bytes transferred is returned.&lt;br /&gt;  * - On timeout, -1 is returned, errno == ETIME.&lt;br /&gt;  * - On error, -1 is returned, errno is set to appropriate error.&lt;br /&gt;  * - On EOF, 0 is returned, errno is irrelevant.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7895235859378179894-7163208984124274811?l=eddyxu.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://eddyxu.blogspot.com/feeds/7163208984124274811/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7895235859378179894&amp;postID=7163208984124274811' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7895235859378179894/posts/default/7163208984124274811'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7895235859378179894/posts/default/7163208984124274811'/><link rel='alternate' type='text/html' href='http://eddyxu.blogspot.com/2006/10/return-value-of-acesockstream.html' title='the return value of ACE_SOCK_Stream'/><author><name>Eddy Xu</name><uri>http://www.blogger.com/profile/11468544403506125406</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7895235859378179894.post-4405442436917103042</id><published>2006-09-26T09:31:00.000-07:00</published><updated>2006-09-26T09:32:15.784-07:00</updated><title type='text'>Install perl module in CPAN</title><content type='html'>Just a simple line:&lt;br /&gt;&lt;br /&gt;perl -MCPAN -e 'install "IO::Socket::SSL"'&lt;br /&gt;&lt;br /&gt;all are ok!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7895235859378179894-4405442436917103042?l=eddyxu.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://eddyxu.blogspot.com/feeds/4405442436917103042/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7895235859378179894&amp;postID=4405442436917103042' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7895235859378179894/posts/default/4405442436917103042'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7895235859378179894/posts/default/4405442436917103042'/><link rel='alternate' type='text/html' href='http://eddyxu.blogspot.com/2006/09/install-perl-module-in-cpan.html' title='Install perl module in CPAN'/><author><name>Eddy Xu</name><uri>http://www.blogger.com/profile/11468544403506125406</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7895235859378179894.post-4800150755507388483</id><published>2006-09-11T09:01:00.000-07:00</published><updated>2006-09-11T09:13:00.625-07:00</updated><title type='text'>ubuntu crashed</title><content type='html'>After months no-stopping running, my vaio, which runs xubuntu, was crashed this morning. I haven't see any screen like this before, and my remote connection from office to vaio was failed for times today. &lt;br /&gt;&lt;br /&gt;When i boot my vaio, this screen appears.(I have not start X yet.) . All tty fill with the green blocks and have not place for my input. It's strange..&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.flickr.com/photos/eddyxu/240560962/" title="Photo Sharing"&gt;&lt;img src="http://static.flickr.com/84/240560962_b73885e196.jpg" width="300" height="225" alt="vaio, with crashing in ubuntu" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7895235859378179894-4800150755507388483?l=eddyxu.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://eddyxu.blogspot.com/feeds/4800150755507388483/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7895235859378179894&amp;postID=4800150755507388483' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7895235859378179894/posts/default/4800150755507388483'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7895235859378179894/posts/default/4800150755507388483'/><link rel='alternate' type='text/html' href='http://eddyxu.blogspot.com/2006/09/ubuntu-crashed.html' title='ubuntu crashed'/><author><name>Eddy Xu</name><uri>http://www.blogger.com/profile/11468544403506125406</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7895235859378179894.post-1896523942043675656</id><published>2006-09-01T09:46:00.000-07:00</published><updated>2006-09-01T09:58:19.564-07:00</updated><title type='text'>Buy books without thinking...</title><content type='html'>From today, a huge bookshop near my office take 30% off for all books. So I can't help myself go into the big shop and take three books out:(..&lt;br /&gt;&lt;ol&gt;&lt;li&gt;&lt;a href="http://www.amazon.com/Everymans-Library-Classics-Vladimir-Nabokov/dp/185715133X/sr=8-1/qid=1157129374/ref=pd_bbs_1/104-3646543-9511902?ie=UTF8&amp;s=books"&gt;Lolita&lt;/a&gt;, by Vladimir Nabokov. I hope I can finish it as i wish.&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.amazon.com/Distributed-Systems-Concepts-International-Computer/dp/0321263545/sr=1-1/qid=1157129700/ref=sr_1_1/104-3646543-9511902?ie=UTF8&amp;s=books"&gt;Distributed System: concept and design&lt;/a&gt;.Hum ,it's my homework:) Come on!&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.amazon.com/Understanding-Linux-Kernel-Daniel-Plerre/dp/0596005652/sr=1-1/qid=1157129588/ref=pd_bbs_1/104-3646543-9511902?ie=UTF8&amp;s=books"&gt;Understand linux kernel, 3rd edition.&lt;/a&gt;. God bless me...&lt;/li&gt; &lt;br /&gt;&lt;/ol&gt;Be honest, I have no idea when I can finish reading all these stuffs above and the other stuffs just lied on my bookshelfs...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7895235859378179894-1896523942043675656?l=eddyxu.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://eddyxu.blogspot.com/feeds/1896523942043675656/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7895235859378179894&amp;postID=1896523942043675656' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7895235859378179894/posts/default/1896523942043675656'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7895235859378179894/posts/default/1896523942043675656'/><link rel='alternate' type='text/html' href='http://eddyxu.blogspot.com/2006/09/buy-books-without-thinking.html' title='Buy books without thinking...'/><author><name>Eddy Xu</name><uri>http://www.blogger.com/profile/11468544403506125406</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7895235859378179894.post-654084234139936341</id><published>2006-08-26T23:17:00.000-07:00</published><updated>2006-08-26T23:39:48.310-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mac osx ubuntu freebsd package'/><title type='text'>Package management in os x</title><content type='html'>Since I got my macbook, I wanna reuse my experiences in some other unix platforms, such as &lt;a href="http://www.debian.org"&gt;debian&lt;/a&gt;/&lt;a href="http://www.ubuntu.com"&gt;ubuntu&lt;/a&gt;, &lt;a href="http://www.freebsd.org"&gt;freebsd&lt;/a&gt;. From those system, I know a package management machicsm is goodies for one system. So I try to look for something alike in os x.&lt;br /&gt;&lt;br /&gt;I got two solution:&lt;br /&gt;&lt;a href="http://www.macports.org/"&gt;MacPorts&lt;/a&gt;, which used to be called "darwinports". It is like port in Freebsd, which maintains a souce tree of whole system.  When you wanna install a package, you just input "sudo port install foo", then it will check the source tree and download the source and compile in your machine, so you could make configure of the package for your puspose. If you wanna update all source tree, just enter "sudo port sync". It's simple and clean. I prefer macports than fink. But its disadvantage is that the packages are less than fink. &lt;br /&gt;&lt;br /&gt;&lt;a href="http://fink.sourceforge.net/"&gt;Fink&lt;/a&gt;, something like "apt-get" in debian/ubuntu. It provides precompiled binary package in remote servers. Though my another laptop runs ubuntu as a server that provides web, svn services, I still like macports, the freebsd style package management.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7895235859378179894-654084234139936341?l=eddyxu.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://eddyxu.blogspot.com/feeds/654084234139936341/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7895235859378179894&amp;postID=654084234139936341' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7895235859378179894/posts/default/654084234139936341'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7895235859378179894/posts/default/654084234139936341'/><link rel='alternate' type='text/html' href='http://eddyxu.blogspot.com/2006/08/package-management-in-os-x.html' title='Package management in os x'/><author><name>Eddy Xu</name><uri>http://www.blogger.com/profile/11468544403506125406</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7895235859378179894.post-8172207482512593003</id><published>2006-08-22T22:19:00.000-07:00</published><updated>2006-08-22T22:22:39.648-07:00</updated><title type='text'>Switch from blgger.com to here</title><content type='html'>Try this new blog and I will use it as my personal blog if all stuff work right. And I hope blogspot.com will be always availble ...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7895235859378179894-8172207482512593003?l=eddyxu.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://eddyxu.blogspot.com/feeds/8172207482512593003/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7895235859378179894&amp;postID=8172207482512593003' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7895235859378179894/posts/default/8172207482512593003'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7895235859378179894/posts/default/8172207482512593003'/><link rel='alternate' type='text/html' href='http://eddyxu.blogspot.com/2006/08/switch-from-blggercom-to-here.html' title='Switch from blgger.com to here'/><author><name>Eddy Xu</name><uri>http://www.blogger.com/profile/11468544403506125406</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
