﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>C++博客-linux&amp;c++  R&amp;D</title><link>http://www.cppblog.com/uglystone/</link><description>programing is a pleasure!</description><language>zh-cn</language><lastBuildDate>Thu, 23 Apr 2026 10:11:07 GMT</lastBuildDate><pubDate>Thu, 23 Apr 2026 10:11:07 GMT</pubDate><ttl>60</ttl><item><title>a shortcut for linux( from linux journal )</title><link>http://www.cppblog.com/uglystone/archive/2008/03/25/45378.html</link><dc:creator>丑石</dc:creator><author>丑石</author><pubDate>Tue, 25 Mar 2008 11:21:00 GMT</pubDate><guid>http://www.cppblog.com/uglystone/archive/2008/03/25/45378.html</guid><wfw:comment>http://www.cppblog.com/uglystone/comments/45378.html</wfw:comment><comments>http://www.cppblog.com/uglystone/archive/2008/03/25/45378.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/uglystone/comments/commentRss/45378.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/uglystone/services/trackbacks/45378.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: &nbsp;&nbsp;<a href='http://www.cppblog.com/uglystone/archive/2008/03/25/45378.html'>阅读全文</a><img src ="http://www.cppblog.com/uglystone/aggbug/45378.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/uglystone/" target="_blank">丑石</a> 2008-03-25 19:21 <a href="http://www.cppblog.com/uglystone/archive/2008/03/25/45378.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>10 things you should do to protect yourself on a public computer (from TechRepublic )</title><link>http://www.cppblog.com/uglystone/archive/2008/03/21/45037.html</link><dc:creator>丑石</dc:creator><author>丑石</author><pubDate>Fri, 21 Mar 2008 04:41:00 GMT</pubDate><guid>http://www.cppblog.com/uglystone/archive/2008/03/21/45037.html</guid><wfw:comment>http://www.cppblog.com/uglystone/comments/45037.html</wfw:comment><comments>http://www.cppblog.com/uglystone/archive/2008/03/21/45037.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/uglystone/comments/commentRss/45037.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/uglystone/services/trackbacks/45037.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: &nbsp;&nbsp;<a href='http://www.cppblog.com/uglystone/archive/2008/03/21/45037.html'>阅读全文</a><img src ="http://www.cppblog.com/uglystone/aggbug/45037.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/uglystone/" target="_blank">丑石</a> 2008-03-21 12:41 <a href="http://www.cppblog.com/uglystone/archive/2008/03/21/45037.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>the tips of Yum</title><link>http://www.cppblog.com/uglystone/archive/2008/03/20/44947.html</link><dc:creator>丑石</dc:creator><author>丑石</author><pubDate>Thu, 20 Mar 2008 06:22:00 GMT</pubDate><guid>http://www.cppblog.com/uglystone/archive/2008/03/20/44947.html</guid><wfw:comment>http://www.cppblog.com/uglystone/comments/44947.html</wfw:comment><comments>http://www.cppblog.com/uglystone/archive/2008/03/20/44947.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/uglystone/comments/commentRss/44947.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/uglystone/services/trackbacks/44947.html</trackback:ping><description><![CDATA[(1) when installing or updating the software by Yum, you maybe come across the unexpected exit from the Yum tools and then report some errors which indicate some incorrect Yum sources!&nbsp; It&nbsp; maybe result from some obsolete Yum sources,so you'd better delete these problematic sources from /etc/yum.conf or /etc/yum.repos.d/ .<br>(2)pub－key,some Yum sources need to authorize and you should find pub－key which belongs to the source and import&nbsp; the pub-key:&nbsp; rpm －－import pub－key<br>
<img src ="http://www.cppblog.com/uglystone/aggbug/44947.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/uglystone/" target="_blank">丑石</a> 2008-03-20 14:22 <a href="http://www.cppblog.com/uglystone/archive/2008/03/20/44947.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Thinking recursively</title><link>http://www.cppblog.com/uglystone/archive/2008/03/16/44620.html</link><dc:creator>丑石</dc:creator><author>丑石</author><pubDate>Sun, 16 Mar 2008 10:54:00 GMT</pubDate><guid>http://www.cppblog.com/uglystone/archive/2008/03/16/44620.html</guid><wfw:comment>http://www.cppblog.com/uglystone/comments/44620.html</wfw:comment><comments>http://www.cppblog.com/uglystone/archive/2008/03/16/44620.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/uglystone/comments/commentRss/44620.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/uglystone/services/trackbacks/44620.html</trackback:ping><description><![CDATA[<p>First,Let's know&nbsp;the principle:<br>Recursive leap of faith-<br>When you try to understand a recursive program,you must be able to put the underlying details aside and focus instead&nbsp;on a single level of the operation. At that level,you are allowed to assume that any recursive call automatically gets the right answer as long as the arguments to that call are simpler than the original arguments in some respect.The psychological strategy-assuming that any simpler recursive call will work correctly-is called the recursive leap of faith!<br>The idea may be difficult to newers! Take an example for it:<br>We all know the Fibonacci function:<br>F(n)=F(n-1)+F(n-2)<br>Recursive implementation of the Fibonacci funtion:<br></p>
<div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><img id=Codehighlighter1_14_74_Open_Image onclick="this.style.display='none'; Codehighlighter1_14_74_Open_Text.style.display='none'; Codehighlighter1_14_74_Closed_Image.style.display='inline'; Codehighlighter1_14_74_Closed_Text.style.display='inline';" src="http://www.cppblog.com/Images/OutliningIndicators/ExpandedBlockStart.gif" align=top><img id=Codehighlighter1_14_74_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_14_74_Closed_Text.style.display='none'; Codehighlighter1_14_74_Open_Image.style.display='inline'; Codehighlighter1_14_74_Open_Text.style.display='inline';" src="http://www.cppblog.com/Images/OutliningIndicators/ContractedBlock.gif" align=top><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000">&nbsp;Fib(</span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000">&nbsp;n)</span><span id=Codehighlighter1_14_74_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.cppblog.com/Images/dot.gif"></span><span id=Codehighlighter1_14_74_Open_Text><span style="COLOR: #000000">{<br><img src="http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #0000ff">if</span><span style="COLOR: #000000">&nbsp;(n</span><span style="COLOR: #000000">&lt;=</span><span style="COLOR: #000000">1</span><span style="COLOR: #000000">)<br><img src="http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">return</span><span style="COLOR: #000000">&nbsp;n;<br><img src="http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif" align=top>&nbsp;</span><span style="COLOR: #0000ff">else</span><span style="COLOR: #000000"><br><img src="http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">return</span><span style="COLOR: #000000">&nbsp;Fib(n</span><span style="COLOR: #000000">-</span><span style="COLOR: #000000">1</span><span style="COLOR: #000000">)</span><span style="COLOR: #000000">+</span><span style="COLOR: #000000">Fib(n</span><span style="COLOR: #000000">-</span><span style="COLOR: #000000">2</span><span style="COLOR: #000000">);<br><img src="http://www.cppblog.com/Images/OutliningIndicators/ExpandedBlockEnd.gif" align=top>}</span></span></div>
<p>&nbsp;if n is 5,Fib(5) is computed by the sum of Fib(4) and Fib(3).<br>Applying the faith,you can assume that&nbsp; the program correctly computes each of these values,without going through all the steps that Fib(4) and Fib(3) is computed!<br></p>
<img src ="http://www.cppblog.com/uglystone/aggbug/44620.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/uglystone/" target="_blank">丑石</a> 2008-03-16 18:54 <a href="http://www.cppblog.com/uglystone/archive/2008/03/16/44620.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Teach Yourself Programming in Ten Years</title><link>http://www.cppblog.com/uglystone/archive/2007/05/30/25154.html</link><dc:creator>丑石</dc:creator><author>丑石</author><pubDate>Wed, 30 May 2007 13:46:00 GMT</pubDate><guid>http://www.cppblog.com/uglystone/archive/2007/05/30/25154.html</guid><wfw:comment>http://www.cppblog.com/uglystone/comments/25154.html</wfw:comment><comments>http://www.cppblog.com/uglystone/archive/2007/05/30/25154.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/uglystone/comments/commentRss/25154.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/uglystone/services/trackbacks/25154.html</trackback:ping><description><![CDATA[The article is worth reading,please refer to<a href="http://www.norvig.com/21-days.html"><br>http://www.norvig.com/21-days.html</a>
<img src ="http://www.cppblog.com/uglystone/aggbug/25154.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/uglystone/" target="_blank">丑石</a> 2007-05-30 21:46 <a href="http://www.cppblog.com/uglystone/archive/2007/05/30/25154.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>separate-array-of-pointers technique</title><link>http://www.cppblog.com/uglystone/archive/2007/05/30/25143.html</link><dc:creator>丑石</dc:creator><author>丑石</author><pubDate>Wed, 30 May 2007 10:45:00 GMT</pubDate><guid>http://www.cppblog.com/uglystone/archive/2007/05/30/25143.html</guid><wfw:comment>http://www.cppblog.com/uglystone/comments/25143.html</wfw:comment><comments>http://www.cppblog.com/uglystone/archive/2007/05/30/25143.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/uglystone/comments/commentRss/25143.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/uglystone/services/trackbacks/25143.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: &nbsp;&nbsp;<a href='http://www.cppblog.com/uglystone/archive/2007/05/30/25143.html'>阅读全文</a><img src ="http://www.cppblog.com/uglystone/aggbug/25143.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/uglystone/" target="_blank">丑石</a> 2007-05-30 18:45 <a href="http://www.cppblog.com/uglystone/archive/2007/05/30/25143.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>One size does not fit all</title><link>http://www.cppblog.com/uglystone/archive/2007/05/15/24153.html</link><dc:creator>丑石</dc:creator><author>丑石</author><pubDate>Tue, 15 May 2007 05:57:00 GMT</pubDate><guid>http://www.cppblog.com/uglystone/archive/2007/05/15/24153.html</guid><wfw:comment>http://www.cppblog.com/uglystone/comments/24153.html</wfw:comment><comments>http://www.cppblog.com/uglystone/archive/2007/05/15/24153.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/uglystone/comments/commentRss/24153.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/uglystone/services/trackbacks/24153.html</trackback:ping><description><![CDATA[<p>People who spout off one-size-fits-all rules presume to make your design decisions without knowing your requirements. They don't know where you're going but know how you should get there. <br>Don't trust an answer from someone who doesn't know the question.</p>
<img src ="http://www.cppblog.com/uglystone/aggbug/24153.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/uglystone/" target="_blank">丑石</a> 2007-05-15 13:57 <a href="http://www.cppblog.com/uglystone/archive/2007/05/15/24153.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>How do you define a copy constructor or assignment operator for a class that contains a pointer to a (abstract) base class?</title><link>http://www.cppblog.com/uglystone/archive/2007/05/15/24152.html</link><dc:creator>丑石</dc:creator><author>丑石</author><pubDate>Tue, 15 May 2007 05:48:00 GMT</pubDate><guid>http://www.cppblog.com/uglystone/archive/2007/05/15/24152.html</guid><wfw:comment>http://www.cppblog.com/uglystone/comments/24152.html</wfw:comment><comments>http://www.cppblog.com/uglystone/archive/2007/05/15/24152.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/uglystone/comments/commentRss/24152.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/uglystone/services/trackbacks/24152.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: &nbsp;&nbsp;<a href='http://www.cppblog.com/uglystone/archive/2007/05/15/24152.html'>阅读全文</a><img src ="http://www.cppblog.com/uglystone/aggbug/24152.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/uglystone/" target="_blank">丑石</a> 2007-05-15 13:48 <a href="http://www.cppblog.com/uglystone/archive/2007/05/15/24152.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Understand decorator design pattern </title><link>http://www.cppblog.com/uglystone/archive/2007/05/11/23938.html</link><dc:creator>丑石</dc:creator><author>丑石</author><pubDate>Fri, 11 May 2007 13:38:00 GMT</pubDate><guid>http://www.cppblog.com/uglystone/archive/2007/05/11/23938.html</guid><wfw:comment>http://www.cppblog.com/uglystone/comments/23938.html</wfw:comment><comments>http://www.cppblog.com/uglystone/archive/2007/05/11/23938.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/uglystone/comments/commentRss/23938.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/uglystone/services/trackbacks/23938.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: Understand decorator design pattern&nbsp;&nbsp;<a href='http://www.cppblog.com/uglystone/archive/2007/05/11/23938.html'>阅读全文</a><img src ="http://www.cppblog.com/uglystone/aggbug/23938.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/uglystone/" target="_blank">丑石</a> 2007-05-11 21:38 <a href="http://www.cppblog.com/uglystone/archive/2007/05/11/23938.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>How to limit instantialization? </title><link>http://www.cppblog.com/uglystone/archive/2007/04/30/23250.html</link><dc:creator>丑石</dc:creator><author>丑石</author><pubDate>Mon, 30 Apr 2007 08:44:00 GMT</pubDate><guid>http://www.cppblog.com/uglystone/archive/2007/04/30/23250.html</guid><wfw:comment>http://www.cppblog.com/uglystone/comments/23250.html</wfw:comment><comments>http://www.cppblog.com/uglystone/archive/2007/04/30/23250.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/uglystone/comments/commentRss/23250.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/uglystone/services/trackbacks/23250.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要:  How to limit instantialization? <br>&nbsp;&nbsp;<a href='http://www.cppblog.com/uglystone/archive/2007/04/30/23250.html'>阅读全文</a><img src ="http://www.cppblog.com/uglystone/aggbug/23250.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/uglystone/" target="_blank">丑石</a> 2007-04-30 16:44 <a href="http://www.cppblog.com/uglystone/archive/2007/04/30/23250.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>