<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" gd:etag="W/&quot;D08NQHw_cCp7ImA9WhRWGUk.&quot;"><id>tag:blogger.com,1999:blog-6703018954569486143</id><updated>2012-01-07T22:18:11.248+08:00</updated><title>Yonggang Meng's BlogSpot</title><subtitle type="html">Enjoy Life ( Try what I want, do what I can! )</subtitle><link rel="http://schemas.google.com/g/2005#feed" type="application/atom+xml" href="http://ralaxmyself.blogspot.com/feeds/posts/default" /><link rel="alternate" type="text/html" href="http://ralaxmyself.blogspot.com/" /><author><name>Yonggang Meng</name><uri>http://www.blogger.com/profile/16242954946162096327</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://1.bp.blogspot.com/_f74lP7NpDhU/TJRwZloQSpI/AAAAAAAABQg/27Y68CnlaWc/S220/0.gif" /></author><generator version="7.00" uri="http://www.blogger.com">Blogger</generator><openSearch:totalResults>7</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/YonggangMengBlogSpot" /><feedburner:info uri="yonggangmengblogspot" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><entry gd:etag="W/&quot;CkMDSH86eCp7ImA9Wx5XEU4.&quot;"><id>tag:blogger.com,1999:blog-6703018954569486143.post-7629656334975667505</id><published>2010-09-10T22:54:00.001+08:00</published><updated>2010-09-10T22:54:39.110+08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-09-10T22:54:39.110+08:00</app:edited><title>Some syntaxes of ruby language</title><link rel="replies" type="application/atom+xml" href="http://ralaxmyself.blogspot.com/feeds/7629656334975667505/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://ralaxmyself.blogspot.com/2010/09/some-syntaxes-of-ruby-language.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6703018954569486143/posts/default/7629656334975667505?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6703018954569486143/posts/default/7629656334975667505?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/YonggangMengBlogSpot/~3/bj6NYpI77P4/some-syntaxes-of-ruby-language.html" title="Some syntaxes of ruby language" /><author><name>Yonggang Meng</name><uri>http://www.blogger.com/profile/16242954946162096327</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://1.bp.blogspot.com/_f74lP7NpDhU/TJRwZloQSpI/AAAAAAAABQg/27Y68CnlaWc/S220/0.gif" /></author><thr:total>0</thr:total><content type="html">brackets are optionalif then end if, then is optional if there's line-break after ifsometimes, return is optional in a method, it will return the last valuelocalVar, $globalVar, @instanceVar, ConstantVar   
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/0YHxDVLT_3g7Xp0nIykjcRfKznc/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/0YHxDVLT_3g7Xp0nIykjcRfKznc/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/0YHxDVLT_3g7Xp0nIykjcRfKznc/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/0YHxDVLT_3g7Xp0nIykjcRfKznc/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/YonggangMengBlogSpot/~4/bj6NYpI77P4" height="1" width="1"/&gt;</content><feedburner:origLink>http://ralaxmyself.blogspot.com/2010/09/some-syntaxes-of-ruby-language.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DUMERnszeCp7ImA9Wx5REks.&quot;"><id>tag:blogger.com,1999:blog-6703018954569486143.post-4422453331861454155</id><published>2010-08-20T09:23:00.001+08:00</published><updated>2010-08-20T09:23:27.580+08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-08-20T09:23:27.580+08:00</app:edited><title>How to change the UUID of virtual box hard disk</title><link rel="replies" type="application/atom+xml" href="http://ralaxmyself.blogspot.com/feeds/4422453331861454155/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://ralaxmyself.blogspot.com/2010/08/how-to-change-uuid-of-virtual-box-hard.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6703018954569486143/posts/default/4422453331861454155?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6703018954569486143/posts/default/4422453331861454155?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/YonggangMengBlogSpot/~3/9NTPWc5xSuU/how-to-change-uuid-of-virtual-box-hard.html" title="How to change the UUID of virtual box hard disk" /><author><name>Yonggang Meng</name><uri>http://www.blogger.com/profile/16242954946162096327</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://1.bp.blogspot.com/_f74lP7NpDhU/TJRwZloQSpI/AAAAAAAABQg/27Y68CnlaWc/S220/0.gif" /></author><thr:total>0</thr:total><content type="html">When you want to create a new hard disk using a existed vdi, you will find the error,solution is change the uuid of the hard disk which you copyed.Command:VBoxManager internalcommands setvdiuuid #Path#For example:VBoxManager internalcommands setvdiuuid D:\Win2008.vdi----------------Kind Regards,Yonggang Meng 		 	   		  
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/6riPcNxLjKk0I0rA2gQmnVRzJ58/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/6riPcNxLjKk0I0rA2gQmnVRzJ58/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/6riPcNxLjKk0I0rA2gQmnVRzJ58/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/6riPcNxLjKk0I0rA2gQmnVRzJ58/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/YonggangMengBlogSpot/~4/9NTPWc5xSuU" height="1" width="1"/&gt;</content><feedburner:origLink>http://ralaxmyself.blogspot.com/2010/08/how-to-change-uuid-of-virtual-box-hard.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0MFRHc5fCp7ImA9Wx5SE0o.&quot;"><id>tag:blogger.com,1999:blog-6703018954569486143.post-3225240742220153986</id><published>2010-08-10T00:29:00.002+08:00</published><updated>2010-08-10T00:30:15.924+08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-08-10T00:30:15.924+08:00</app:edited><title>Python standard library --- Built-in Functions (2)</title><link rel="replies" type="application/atom+xml" href="http://ralaxmyself.blogspot.com/feeds/3225240742220153986/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://ralaxmyself.blogspot.com/2010/08/python-standard-library-built-in_10.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6703018954569486143/posts/default/3225240742220153986?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6703018954569486143/posts/default/3225240742220153986?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/YonggangMengBlogSpot/~3/t-U4lBA7acc/python-standard-library-built-in_10.html" title="Python standard library --- Built-in Functions (2)" /><author><name>Yonggang Meng</name><uri>http://www.blogger.com/profile/16242954946162096327</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://1.bp.blogspot.com/_f74lP7NpDhU/TJRwZloQSpI/AAAAAAAABQg/27Y68CnlaWc/S220/0.gif" /></author><thr:total>0</thr:total><content type="html">callable(object) : return true if the object appears callable, false if not. If the object is callable, it's still possible a call fails. If not, calling object will never succeed. Classes are callable, but class instances are not callable except that the class has a method __call__().     &amp;gt;&amp;gt;&amp;gt; callable(bool)    True    &amp;gt;&amp;gt;&amp;gt; callable(True)    False    &amp;gt;&amp;gt;&amp;gt; c =bool()    &amp;gt;&amp;gt;&amp;gt; c    False    &amp;gt;&amp;gt;&amp;gt; callable
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/Yqa8a9-buOfSL-f-R-_-ndPG064/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Yqa8a9-buOfSL-f-R-_-ndPG064/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/Yqa8a9-buOfSL-f-R-_-ndPG064/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Yqa8a9-buOfSL-f-R-_-ndPG064/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/YonggangMengBlogSpot/~4/t-U4lBA7acc" height="1" width="1"/&gt;</content><feedburner:origLink>http://ralaxmyself.blogspot.com/2010/08/python-standard-library-built-in_10.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0QNR308cSp7ImA9Wx5SE0o.&quot;"><id>tag:blogger.com,1999:blog-6703018954569486143.post-3947388677907867965</id><published>2010-08-10T00:29:00.001+08:00</published><updated>2010-08-10T00:29:56.379+08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-08-10T00:29:56.379+08:00</app:edited><title>Python standard library --- Built-in Functions (1)</title><link rel="replies" type="application/atom+xml" href="http://ralaxmyself.blogspot.com/feeds/3947388677907867965/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://ralaxmyself.blogspot.com/2010/08/python-standard-library-built-in.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6703018954569486143/posts/default/3947388677907867965?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6703018954569486143/posts/default/3947388677907867965?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/YonggangMengBlogSpot/~3/2WyUZKv5oE4/python-standard-library-built-in.html" title="Python standard library --- Built-in Functions (1)" /><author><name>Yonggang Meng</name><uri>http://www.blogger.com/profile/16242954946162096327</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://1.bp.blogspot.com/_f74lP7NpDhU/TJRwZloQSpI/AAAAAAAABQg/27Y68CnlaWc/S220/0.gif" /></author><thr:total>0</thr:total><content type="html">What is built-in functions?  It means that the functions are built into python interpreter itself, so you don't need to import anything.Here is the list:abs(x) : return the absolute value of the x, x can be a plain or long integer or float point number or complex number.      &amp;gt;&amp;gt;&amp;gt; abs(-1),abs(1),abs(0.1),abs(-0.1),abs(3+4j)     (1, 1, 0.10000000000000001, 0.10000000000000001, 5.0) #0.1000....1 is 
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/7wlOhxn_VGxShTtkwJEwyFX2vuY/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/7wlOhxn_VGxShTtkwJEwyFX2vuY/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/7wlOhxn_VGxShTtkwJEwyFX2vuY/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/7wlOhxn_VGxShTtkwJEwyFX2vuY/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/YonggangMengBlogSpot/~4/2WyUZKv5oE4" height="1" width="1"/&gt;</content><feedburner:origLink>http://ralaxmyself.blogspot.com/2010/08/python-standard-library-built-in.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0QERn04cCp7ImA9Wx5SE0o.&quot;"><id>tag:blogger.com,1999:blog-6703018954569486143.post-1674592976917055557</id><published>2010-08-10T00:28:00.001+08:00</published><updated>2010-08-10T00:28:27.338+08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-08-10T00:28:27.338+08:00</app:edited><title>Python methods --- instance method, classmethod, staticmethod</title><link rel="replies" type="application/atom+xml" href="http://ralaxmyself.blogspot.com/feeds/1674592976917055557/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://ralaxmyself.blogspot.com/2010/08/python-methods-instance-method.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6703018954569486143/posts/default/1674592976917055557?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6703018954569486143/posts/default/1674592976917055557?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/YonggangMengBlogSpot/~3/zEBgLYaEpok/python-methods-instance-method.html" title="Python methods --- instance method, classmethod, staticmethod" /><author><name>Yonggang Meng</name><uri>http://www.blogger.com/profile/16242954946162096327</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://1.bp.blogspot.com/_f74lP7NpDhU/TJRwZloQSpI/AAAAAAAABQg/27Y68CnlaWc/S220/0.gif" /></author><thr:total>0</thr:total><content type="html">Do you know what are the differences?instance method, must be called by an instance: d.instance_method(), demo.instance_method(d)class method(the first arg must be the class itself), can be called by class or instance: d.class_method(), demo.class_method()   static method, can be called by class or instance: d.static_method(), demo.static_method()   class demo:       def __init__(self):
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/KVCBt4lqBtvECN0wKzlEEJ0EDLw/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/KVCBt4lqBtvECN0wKzlEEJ0EDLw/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/KVCBt4lqBtvECN0wKzlEEJ0EDLw/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/KVCBt4lqBtvECN0wKzlEEJ0EDLw/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/YonggangMengBlogSpot/~4/zEBgLYaEpok" height="1" width="1"/&gt;</content><feedburner:origLink>http://ralaxmyself.blogspot.com/2010/08/python-methods-instance-method.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0cBRXs7eip7ImA9Wx5TE08.&quot;"><id>tag:blogger.com,1999:blog-6703018954569486143.post-4390378314983279715</id><published>2010-07-28T20:43:00.000+08:00</published><updated>2010-07-28T20:44:14.502+08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-07-28T20:44:14.502+08:00</app:edited><title>Linux run levels</title><link rel="replies" type="application/atom+xml" href="http://ralaxmyself.blogspot.com/feeds/4390378314983279715/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://ralaxmyself.blogspot.com/2010/07/linux-run-levels.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6703018954569486143/posts/default/4390378314983279715?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6703018954569486143/posts/default/4390378314983279715?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/YonggangMengBlogSpot/~3/v7o8gk8884I/linux-run-levels.html" title="Linux run levels" /><author><name>Yonggang Meng</name><uri>http://www.blogger.com/profile/16242954946162096327</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://1.bp.blogspot.com/_f74lP7NpDhU/TJRwZloQSpI/AAAAAAAABQg/27Y68CnlaWc/S220/0.gif" /></author><thr:total>0</thr:total><content type="html">Linux has seven levels.0, down1, single user2, multi user, but can not use NFS3, complete multi user, mainly used by server4, not used5, GUI login &amp;amp; multi user  6, restart------------------------Kind Regards,Yonggang Meng 
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/uYl1wIrAnDEGpmMz9kfyIkcU41E/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/uYl1wIrAnDEGpmMz9kfyIkcU41E/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/uYl1wIrAnDEGpmMz9kfyIkcU41E/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/uYl1wIrAnDEGpmMz9kfyIkcU41E/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/YonggangMengBlogSpot/~4/v7o8gk8884I" height="1" width="1"/&gt;</content><feedburner:origLink>http://ralaxmyself.blogspot.com/2010/07/linux-run-levels.html</feedburner:origLink></entry><entry gd:etag="W/&quot;Ck4CSH8-cSp7ImA9Wx5TE08.&quot;"><id>tag:blogger.com,1999:blog-6703018954569486143.post-1970861755535148496</id><published>2010-07-28T20:42:00.001+08:00</published><updated>2010-07-28T20:42:49.159+08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-07-28T20:42:49.159+08:00</app:edited><title>How to search or find files in Linux OS</title><link rel="replies" type="application/atom+xml" href="http://ralaxmyself.blogspot.com/feeds/1970861755535148496/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://ralaxmyself.blogspot.com/2010/07/how-to-search-or-find-files-in-linux-os.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6703018954569486143/posts/default/1970861755535148496?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6703018954569486143/posts/default/1970861755535148496?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/YonggangMengBlogSpot/~3/E7guuCwGFbs/how-to-search-or-find-files-in-linux-os.html" title="How to search or find files in Linux OS" /><author><name>Yonggang Meng</name><uri>http://www.blogger.com/profile/16242954946162096327</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://1.bp.blogspot.com/_f74lP7NpDhU/TJRwZloQSpI/AAAAAAAABQg/27Y68CnlaWc/S220/0.gif" /></author><thr:total>0</thr:total><content type="html">1, findfind everything you want to findfind /etc -name "*in*" -ls2, whereisused to find the programwhereis grep-b binary -m man -s source  whereis -b grep3, grepfind the content in the file, not used to find file itselfgrep abc file14, locateequals to "find -name", but faster than latter  locate /etc/sh find all files start with sh in /etclocatedb is in /var/lib/locatedbupdatedb5, whichfind where
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/70oezbYHiN0cxZAravDy1eMuTnQ/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/70oezbYHiN0cxZAravDy1eMuTnQ/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/70oezbYHiN0cxZAravDy1eMuTnQ/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/70oezbYHiN0cxZAravDy1eMuTnQ/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/YonggangMengBlogSpot/~4/E7guuCwGFbs" height="1" width="1"/&gt;</content><feedburner:origLink>http://ralaxmyself.blogspot.com/2010/07/how-to-search-or-find-files-in-linux-os.html</feedburner:origLink></entry></feed>

