<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title><![CDATA[水煮人参]]></title> 
<description><![CDATA[美好的生活需要用心记录]]></description>
<link>http://www.doself.com/</link>
<language>zh-cn</language>
<generator>www.emlog.net</generator>
<item>
	<title>Linux自动挂载NTFS分区</title>
	<link>http://www.doself.com/?post=91</link>
	<description><![CDATA[<p><span style="font-size:14px;">在Linux系统上插上</span><span style="font-size:14px;">NTFS格式的U盘或者移动硬盘，能够像挂载fat32格式一样自动挂载以及读写，</span><span style="font-weight:bold;font-size:14px;"><br />
</span></p>
<p><span style="font-weight:bold;font-size:14px;">安装方法1</span></p>
<p>去http://www.tuxera.com/community/ntfs-3g-download/下载，建议下载<b><span style="color:green;">stable version</span></b></p>
<p>然后解压缩&amp;编译<b>:<span style="color:green;"><br />
</span></b></p>
<p></p>
<pre class="alt2" style="margin:0px;padding:4px;border:1px solid #c6c6c6;width:640px;height:66px;overflow:auto;">./configure
make
make install # or 'sudo make install'  if you aren't root</pre> <p>&nbsp;</p>
<p style="font-weight:bold;"><span style="font-size:14px;">安装方法2：</span></p>
<p><span style="font-weight:bold;">yum install ntfs-3g</span></p>
<p><br />
</p>
<p><span style="font-weight:bold;">安装完之后配置:<br />
</span></p>
<p>以root身份新建文件/sbin/mount.ntfs</p>
<p></p>
<p>$vi /sbin/mount.ntfs</p>
<pre class="alt2" style="margin:0px;padding:4px;border:1px solid #c6c6c6;width:640px;height:66px;overflow:auto;">#!/bin/sh
export LANG=en_US.UTF-8
exec /sbin/mount.ntfs-3g "$@"</pre><p>然后执行:</p>
<pre class="alt2" style="margin:0px;padding:4px;border:1px solid #c6c6c6;width:640px;height:34px;overflow:auto;">#chmod a+x /sbin/mount.ntfs</pre><p>最后重启reboot</p>
<p>Ok,重启以后再插上NTFS格式的盘,系统自动认出来了吧!</p>]]></description>
	<pubDate>Wed, 28 Dec 2011 01:55:07 +0000</pubDate>
	<author>Jone</author>
	<guid>http://www.doself.com/?post=91</guid>

</item>
<item>
	<title>合唱团</title>
	<link>http://www.doself.com/?post=31</link>
	<description><![CDATA[<p>一群人反复靠近　反复酝酿必要的情绪　和<br /> 不必要的冲动<br /> 我站在菊的后面　萍的左面　指挥的反面　和<br /> 欲望的中间<br /> 直对着我的校门<br /> <br /> 我高声歌唱　声音被领唱打断　被合唱淹没<br /> 被肺粗暴地压迫<br /> 当铃声响起时　我流下忧虑的泪水　因为这群人<br /> 即将解散　分赴祖国各地　退为荣誉成员<br /> <br /> 站台上　一片混乱的景象　我们和民工一起　向着<br /> 火车招手　招着招着　萍就不见了<br /> 死于火车远去的方向<br /> 这是五年以后的事情<br /> <br /> 我　我们　唱过许多歌　和　不是歌的练习曲<br /> 唱过山中故乡和水上海鸥　无望的爱和奋勇的前进<br /> 菊说　能进合唱团多好啊</p> <p>&nbsp;</p> <p>&nbsp;</p> <p>&nbsp;</p> <p>夜里浑身酸疼</p> <p>依稀好像捧着一本书</p> <p>依稀又读到了这些语句</p> <p>于是 依稀又想起了一个人的名字&mdash;&mdash;杜马兰</p> <p>读他的诗 会让你感悟生活中的心疼</p> <p>读他的诗 会告诉你 我们为什么不歌唱</p> <p>读他的诗 会让你带着希望快乐地生活！</p> <p>&nbsp;</p>]]></description>
	<pubDate>Sun, 21 Dec 2008 14:37:12 +0000</pubDate>
	<author>Jone</author>
	<guid>http://www.doself.com/?post=31</guid>

</item>
<item>
	<title>Smarty生成静态页面</title>
	<link>http://www.doself.com/?post=30</link>
	<description><![CDATA[<p>记录一个，Smarty是很聪明的</p>
<p>ob_start();//开启缓冲区<br />
$smarty-&gt;assign(&ldquo;a&rdquo;,$a);<br />
$smarty-&gt;display(&rdquo;temp.html&rdquo;);<br />
$html_content= ob_get_contents(); //读取缓冲区的数据<br />
ob_end_clean();//关闭缓冲区</p>
<p>$htm_content里头的东西就是想要的东西了，将它写入页面就可以了。</p>]]></description>
	<pubDate>Thu, 11 Dec 2008 19:08:07 +0000</pubDate>
	<author>Jone</author>
	<guid>http://www.doself.com/?post=30</guid>

</item>
<item>
	<title>进享未来——2008微软技术大会北京会场开幕式</title>
	<link>http://www.doself.com/?post=28</link>
	<description><![CDATA[<p>时间:08年11月6日</p>
<p>地点:奥体中心</p>
<p>&nbsp;<img height="450" alt="1" width="600" border="0" src="http://www.doself.com/uploadfile/tech_ed/1.jpg" /></p>
<p><img height="450" alt="2" width="600" border="0" src="http://www.doself.com/uploadfile/tech_ed/2.jpg" /></p>
<p><img height="450" alt="3" width="600" border="0" src="http://www.doself.com/uploadfile/tech_ed/3.jpg" /></p>
<p><strong>虚拟机</strong></p>
<p>介绍了两款产品及Drmo:Windows Server 2008 Hyper-V与Windows HPC Server 2008</p>
<p><strong>SQL Server 2008</strong></p>
<p>按老外的说法：很快很漂亮！</p>
<p><strong>Visual Studio 2008</strong></p>
<p>这个不用介绍了，2010版本将会2009年底推出，支持Surface开发等。</p>
<p><strong>云计算</strong></p>
<p>以前是&quot;Hello World&quot;，现在是&quot;Hello Cloud&quot;的时候了!</p>
<p><strong>WPF &amp; Silverlight</strong></p>
<p>腾讯展示了两款Silverlight开发的产品：<a target="_blank" href="http://yg.qq.com/taotao">滔滔</a>与<a target="_blank" href="http://yg.qq.com/tv">QQLive</a>的酷炫版，另外还展示了实验中的不同技术开发的QQ,其中包括用Silverlight开发的网页版。</p>
<p><strong>Windows Azure</strong></p>
<p>用于云计算的操作系统</p>
<p><strong>Surface</strong></p>
<p>支持多点触摸的玩意</p>
<p>提出了由图形化人机界面（GUI：G<font size="2">raphical User Interface）</font>向自然人机界面(NUI：Natural User Interface)转变的必然性，现场进行了震撼的交互Demo和视频Demo。</p>
<p><strong>Windows Live Mesh</strong></p>
<p>从Live Mesh可以看出，微软已迈出从PC领域转型到&ldquo;云计算&rdquo;最为野心勃勃的一步，并将重新取得主导权。</p>
<p><strong>总结:</strong></p>
<p>这次大会，介绍的大部分新技术都是基于云端计算，云计算将会是大势所趋，也是微软这次向开发者力推的新的技术趋势。另外一个信息就是：微软将来的操作系统，都会支持多点触摸操作。Coder们，你们准备好了吗。</p>
<p>&nbsp;</p>]]></description>
	<pubDate>Fri, 07 Nov 2008 01:12:51 +0000</pubDate>
	<author>Jone</author>
	<guid>http://www.doself.com/?post=28</guid>

</item>
<item>
	<title>手机的又一个惊天秘密</title>
	<link>http://www.doself.com/?post=26</link>
	<description><![CDATA[<p>手机的又一个惊天秘密！！你发现了吗？所有的手机都无法解决的一个毛病，你的有吗？据荷兰通信权威发现，今年所有手机计算器用2008除以8.032，屏幕会自动显示机主姓名，很奇怪、很神话的事情，暂时无人能破解其中奥秘。</p>]]></description>
	<pubDate>Tue, 28 Oct 2008 16:00:06 +0000</pubDate>
	<author>Jone</author>
	<guid>http://www.doself.com/?post=26</guid>

</item>
<item>
	<title>phpMyAdmin 3.0的安装配置</title>
	<link>http://www.doself.com/?post=25</link>
	<description><![CDATA[<p>郁闷，我不会用phpMyAdmin自带的那个setup步骤配置，一直都是直接通过改config.ini.php来配置的</p>
<p>过程如下：</p>
<p>1.从phpMyAdmin/libraries/下拷贝config.default.php到phpMyAdmin下，并改名为config.ini.php</p>
<p>2.用editplus或其它编辑器打开phpMyAdmin/config.ini.php,修改：</p>
<p>$cfg['PmaAbsoluteUri'] = 'http://127.0.0.1/phpMyAdmin';//phpMyAdmin的安装路径<br />
$cfg['blowfish_secret'] = 'hejone';//加密密匙，可随意更改。<br />
$cfg['Servers'][$i]['host'] = 'localhost'; // MySQL的主机名称或者IP地址<br />
$cfg['Servers'][$i]['port'] = '3306&prime;; // MySQL端口 - 空白将用默认端口3306<br />
$cfg['Servers'][$i]['auth_type'] = 'cookie'; // 认证方式 (config, http or cookie based)?<br />
$cfg['Servers'][$i]['user'] = 'root'; // MySQL用户，如 root<br />
$cfg['Servers'][$i]['password'] = 'pswd'; // MySQL用户密码</p>
<p>3：保存</p>
<p>搞定 ！</p>
<p>&nbsp;</p>]]></description>
	<pubDate>Sun, 05 Oct 2008 13:08:57 +0000</pubDate>
	<author>Jone</author>
	<guid>http://www.doself.com/?post=25</guid>

</item>
<item>
	<title>经济危机</title>
	<link>http://www.doself.com/?post=24</link>
	<description><![CDATA[<p>次贷危机、雷曼破产、美国五大投行倒了仨，英国诺森罗克银行遭储户挤兑。</p> <p>最近的经济形势，对很多人来说就像一张考卷，对我也是这样，如果做对了，会赚点小钱，做错了也不会有太大的损失。毕竟我在股市上投入的不多。</p> <p>但是，如果经济一直这么下去的话，肯定会影响明年的收入。</p> <p>唉，不怕人说我俗！谁让我太需要钱了呢～</p> <p>&nbsp;</p> <p>发点牢骚而已，抓紧看《货币战争》！</p> <p>&nbsp;</p> <p>另，书本上说的只有资本主义才有的倒牛奶事件也发生在中国了，可怜的那些奶农，成了无良商家的牺牲品。</p>]]></description>
	<pubDate>Sat, 20 Sep 2008 21:49:52 +0000</pubDate>
	<author>Jone</author>
	<guid>http://www.doself.com/?post=24</guid>

</item>
<item>
	<title>Enabling URL Rewrite for PhpLD 3.3.0</title>
	<link>http://www.doself.com/?post=22</link>
	<description><![CDATA[Nginx :<br />Here's my configure in nginx.conf:<br /><br />if (!-e $request_filename) {<br />&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; rewrite ^/latest-links/.htm[l]?$ /index.php?list=latest last;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rewrite ^/top-hits/.htm[l]?$ /index.php?list=top last;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rewrite ^/latest-articles/.htm[l]?$ /index.php?list=latestarticles last;<br />&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; rewrite ^/(.*)detail/link-(.*)\.htm[l]?$ /detail.php last;<br />&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; rewrite ^/(.*)articles/article-(.*)/.htm[l]?$ /article.php last;<br />&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; rewrite ^/(.*)authors/author-(.*)\.htm[l]?$ /author.php last;<br />&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; rewrite ^/(.*)page-[0-9]+\.html$&nbsp; /index.php last;<br />&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; rewrite ^/(.+)\.html$ /page.php?name=$1 last;<br />&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; rewrite ^/(.*)$ /index.php last;<br />&nbsp;}<br /><br />Apache:<br />Here&rsquo;s  my modified .htaccess file:<br /><br />#################################################<br />##&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Apache Server Settings&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ##<br />#################################################<br /><br /># Prevent .htaccess and .htpasswd files from being viewed by web clients<br />&lt;Files &quot;^\.ht&quot;&gt;<br />&nbsp;&nbsp;&nbsp; Order allow,deny<br />&nbsp;&nbsp;&nbsp; Deny from all<br />&lt;/Files&gt;<br /><br /># Protect files<br />&lt;Files ~ &quot;^(.*)\.(inc|inc\.php|tpl|sql)$&quot;&gt;<br />&nbsp; Order deny,allow<br />&nbsp; Deny from all<br />&lt;/Files&gt;<br /><br /># Protect directories<br />&lt;Files ~ &quot;^(backup|files|images|include|lang|libs(/.+)?|temp(/.+)?|templates(/.+)?|javascripts(/.+)?)$&quot;&gt;<br />&nbsp; Order deny,allow<br />&nbsp; Deny from all<br />&lt;/Files&gt;<br /><br /># Disable directory browsing<br />Options -Indexes<br /><br /># Follow symbolic links in this directory<br />Options +FollowSymLinks<br /><br /># Override PHP settings that cannot be changed at runtime<br /># (If your server supports PHP settings via htaccess you can comment following two lines off)<br /># php_value register_globals&nbsp;&nbsp; 0<br /># php_value session.auto_start 0<br /><br /># Customized error messages<br /># ( If you are running in a subfolder please add it, example: &quot;directory/index.php?httpstatus=404&quot; )<br />ErrorDocument 404 index.php?httpstatus=404<br /><br /># Set the default handler<br />DirectoryIndex index.php<br /><br /># URL rewrite rules<br />&lt;IfModule mod_rewrite.c&gt;<br />&nbsp;&nbsp; RewriteEngine On<br /><br /><br />&nbsp;&nbsp; #Make sure RewriteBase points to the directory where you installed phpLD.<br />&nbsp;&nbsp; #Example: &quot;/phpld&quot; if your installation is in a &quot;phpld&quot; subdirectory.<br /><br />&nbsp;&nbsp; #RewriteBase /<br /><br />&nbsp;&nbsp; ##Latest Links Rewrite<br />&nbsp;&nbsp; RewriteCond %{REQUEST_FILENAME} !-f<br />&nbsp;&nbsp; RewriteCond %{REQUEST_FILENAME} !-d<br />&nbsp;&nbsp; RewriteCond %{REQUEST_FILENAME} !-l<br />&nbsp;&nbsp; RewriteRule ^latest-links\.htm[l]?$ index.php?list=latest [QSA,NC,L]<br /><br />&nbsp;&nbsp; ##Top Hits Rewrite<br />&nbsp;&nbsp; RewriteCond %{REQUEST_FILENAME} !-f<br />&nbsp;&nbsp; RewriteCond %{REQUEST_FILENAME} !-d<br />&nbsp;&nbsp; RewriteCond %{REQUEST_FILENAME} !-l<br />&nbsp;&nbsp; RewriteRule ^top-hits\.htm[l]?$ index.php?list=top [QSA,NC,L]<br /><br />&nbsp;&nbsp; ##Latest Articles Rewrite<br />&nbsp;&nbsp; RewriteCond %{REQUEST_FILENAME} !-f<br />&nbsp;&nbsp; RewriteCond %{REQUEST_FILENAME} !-d<br />&nbsp;&nbsp; RewriteCond %{REQUEST_FILENAME} !-l<br />&nbsp;&nbsp; RewriteRule ^latest-articles\.htm[l]?$ index.php?list=latestarticles [QSA,NC,L]<br /><br />&nbsp;&nbsp; ##Details Link Page Rewrite<br />&nbsp;&nbsp; RewriteCond %{REQUEST_FILENAME} !-f<br />&nbsp;&nbsp; RewriteCond %{REQUEST_FILENAME} !-d<br />&nbsp;&nbsp; RewriteCond %{REQUEST_FILENAME} !-l<br />&nbsp;&nbsp; RewriteRule (.*)detail/link-(.*)\.htm[l]?$ detail.php [QSA,NC]<br /><br />&nbsp;&nbsp; ##Article Page Rewrite<br />&nbsp;&nbsp; RewriteCond %{REQUEST_FILENAME} !-f<br />&nbsp;&nbsp; RewriteCond %{REQUEST_FILENAME} !-d<br />&nbsp;&nbsp; RewriteCond %{REQUEST_FILENAME} !-l<br />&nbsp;&nbsp; RewriteRule (.*)articles/article-(.*)\.htm[l]?$ article.php [QSA,NC]<br /><br />&nbsp;&nbsp; ##Author Page Rewrite<br />&nbsp;&nbsp; RewriteCond %{REQUEST_FILENAME} !-f<br />&nbsp;&nbsp; RewriteCond %{REQUEST_FILENAME} !-d<br />&nbsp;&nbsp; RewriteCond %{REQUEST_FILENAME} !-l<br />&nbsp;&nbsp; RewriteRule (.*)authors/author-(.*)\.htm[l]?$ author.php [QSA,NC]<br /><br />&nbsp;&nbsp; ##Pagination Rewrite<br />&nbsp;&nbsp; RewriteCond %{REQUEST_FILENAME} !-f<br />&nbsp;&nbsp; RewriteCond %{REQUEST_FILENAME} !-d<br />&nbsp;&nbsp; RewriteCond %{REQUEST_FILENAME} !-l<br />&nbsp;&nbsp; RewriteRule (.*)page-[0-9]+\.html$&nbsp; index.php [QSA,NC,L]<br /><br />##Pages redirect<br />&nbsp;&nbsp; RewriteCond %{REQUEST_URI} !page-[0-9]+\.html?$<br />&nbsp;&nbsp; RewriteCond %{REQUEST_FILENAME} !-f<br />&nbsp;&nbsp; RewriteCond %{REQUEST_FILENAME} !-d<br />&nbsp;&nbsp; RewriteCond %{REQUEST_FILENAME} !-l<br />&nbsp;&nbsp; RewriteRule ^(.+)\.html$ page.php?name=$1 [NC,QSA,L]<br /><br />&nbsp;&nbsp; ##Category redirect<br />&nbsp;&nbsp; RewriteCond %{REQUEST_FILENAME} !-f<br />&nbsp;&nbsp; RewriteCond %{REQUEST_FILENAME} !-d<br />&nbsp;&nbsp; RewriteCond %{REQUEST_FILENAME} !-l<br />&nbsp;&nbsp; RewriteRule ^(.*)$ index.php [QSA,L]<br />&lt;/IfModule&gt;]]></description>
	<pubDate>Sun, 24 Aug 2008 02:49:22 +0000</pubDate>
	<author>Jone</author>
	<guid>http://www.doself.com/?post=22</guid>

</item>
<item>
	<title>js如何获取flash版本</title>
	<link>http://www.doself.com/?post=21</link>
	<description><![CDATA[<p>可以用下面一个来自google的函数，.</p>
<p>function _uFlash() {<br />&nbsp;var f = &quot;-&quot;, n = navigator;<br />&nbsp;if (n.plugins &amp;&amp; n.plugins.length) {<br />&nbsp;&nbsp;for (var ii = 0; ii &lt; n.plugins.length; ii++) {<br />&nbsp;&nbsp;&nbsp;if (n.plugins[ii].name.indexOf('Shockwave Flash') != -1) {<br />&nbsp;&nbsp;&nbsp;&nbsp;f = n.plugins[ii].description.split('Shockwave Flash ')[1];<br />&nbsp;&nbsp;&nbsp;&nbsp;break;<br />&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;}<br />&nbsp;} else if (window.ActiveXObject) {<br />&nbsp;&nbsp;for (var ii = 10; ii &gt;= 2; ii--) {<br />&nbsp;&nbsp;&nbsp;try {<br />&nbsp;&nbsp;&nbsp;&nbsp;var fl = eval(&quot;new ActiveXObject('ShockwaveFlash.ShockwaveFlash.&quot; + ii + &quot;');&quot;);<br />&nbsp;&nbsp;&nbsp;&nbsp;if (fl) {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;f = ii + '.0';<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;break;<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;} catch (e) {<br />&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;}<br />&nbsp;}<br />&nbsp;return f;<br />}<br />//alert(_uFlash());</p>]]></description>
	<pubDate>Fri, 22 Aug 2008 18:12:28 +0000</pubDate>
	<author>Jone</author>
	<guid>http://www.doself.com/?post=21</guid>

</item>
<item>
	<title>as3如何删除所有Sprite</title>
	<link>http://www.doself.com/?post=20</link>
	<description><![CDATA[<p>//删除所有Sprite</p>
<p>&nbsp;&nbsp;&nbsp;while(this.numChildren &gt; 0) {<br />&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;this.removeChildAt(0);<br />&nbsp;&nbsp;&nbsp;}</p>]]></description>
	<pubDate>Thu, 31 Jul 2008 21:59:02 +0000</pubDate>
	<author>Jone</author>
	<guid>http://www.doself.com/?post=20</guid>

</item></channel>
</rss>
