<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>榆树网</title>
	<atom:link href="http://www.wenzk.com/feed" rel="self" type="application/rss+xml" />
	<link>http://www.wenzk.com</link>
	<description>http://www.wenzk.com</description>
	<lastBuildDate>Sun, 29 Jan 2012 15:15:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>将 Zimbra Desktop 设为默认电子邮件程序</title>
		<link>http://www.wenzk.com/archives/1509</link>
		<comments>http://www.wenzk.com/archives/1509#comments</comments>
		<pubDate>Sun, 29 Jan 2012 15:03:13 +0000</pubDate>
		<dc:creator>ELM</dc:creator>
				<category><![CDATA[榆树网-杂项]]></category>
		<category><![CDATA[Zimbra]]></category>
		<category><![CDATA[Zimbra Desktop]]></category>
		<category><![CDATA[电子邮件]]></category>
		<category><![CDATA[默认电子邮件]]></category>

		<guid isPermaLink="false">http://www.wenzk.com/?p=1509</guid>
		<description><![CDATA[在浏览器或其他应用程序中，当您单击一个电子邮件链接时，打开的是计算机上默认的电子邮件程序。 您可将 Zimbra Desktop 设为主要的应用程序。当在其他程序中单击电子邮件链接时，Zimbra Desktop 中的默认帐户的写信窗口随即打开。 要设置默认电子邮件程序： 1、选择首选项-常规。 2、在其他部分中，对于系统默认值，勾选将 Zimbra Desktop 设为默认的邮件应用程序复选框。 3、重启Zimbra Desktop程序。 相关文章OutLook如何使用Zimbra LDAP提供的地址簿 (0)zmmailbox导入邮件提示：Code:zclient.UPLOAD_SIZE_LIMIT_EXCEEDED (0)为什么不能用Outlook、Foxmail收取Zimbra的邮件 (0)Zimbra如何支持SPF、DCC及Razor (0)Zimbra如何启用DSPAM (0)]]></description>
			<content:encoded><![CDATA[<p>在浏览器或其他应用程序中，当您单击一个电子邮件链接时，打开的是计算机上默认的电子邮件程序。<br />
您可将 Zimbra Desktop 设为主要的应用程序。当在其他程序中单击电子邮件链接时，Zimbra Desktop 中的默认帐户的写信窗口随即打开。<br />
要设置默认电子邮件程序：<br />
    1、选择<strong>首选项</strong>-<strong>常规</strong>。<br />
    2、在<strong>其他</strong>部分中，对于<strong>系统默认值</strong>，勾选<strong>将 Zimbra Desktop 设为默认的邮件应用程序</strong>复选框。<br />
    3、重启Zimbra Desktop程序。</p>
<h2  class="related_post_title">相关文章</h2><ul class="related_post"><li><a href="http://www.wenzk.com/archives/1407" title="OutLook如何使用Zimbra LDAP提供的地址簿">OutLook如何使用Zimbra LDAP提供的地址簿</a> (0)</li><li><a href="http://www.wenzk.com/archives/1501" title="zmmailbox导入邮件提示：Code:zclient.UPLOAD_SIZE_LIMIT_EXCEEDED">zmmailbox导入邮件提示：Code:zclient.UPLOAD_SIZE_LIMIT_EXCEEDED</a> (0)</li><li><a href="http://www.wenzk.com/archives/1477" title="为什么不能用Outlook、Foxmail收取Zimbra的邮件">为什么不能用Outlook、Foxmail收取Zimbra的邮件</a> (0)</li><li><a href="http://www.wenzk.com/archives/1451" title="Zimbra如何支持SPF、DCC及Razor">Zimbra如何支持SPF、DCC及Razor</a> (0)</li><li><a href="http://www.wenzk.com/archives/1449" title="Zimbra如何启用DSPAM">Zimbra如何启用DSPAM</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.wenzk.com/archives/1509/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>解决smbclient与Windows 7之间的共享问题</title>
		<link>http://www.wenzk.com/archives/1506</link>
		<comments>http://www.wenzk.com/archives/1506#comments</comments>
		<pubDate>Fri, 20 Jan 2012 16:09:26 +0000</pubDate>
		<dc:creator>ELM</dc:creator>
				<category><![CDATA[榆树网-杂项]]></category>
		<category><![CDATA[Samba]]></category>
		<category><![CDATA[smbclient]]></category>
		<category><![CDATA[Win7]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[共享]]></category>
		<category><![CDATA[网上邻居]]></category>

		<guid isPermaLink="false">http://www.wenzk.com/?p=1506</guid>
		<description><![CDATA[由于备份数据的需求，所以需要通过使用smbclient访问win7，起初只是遇到无法访问 C$ 一类共享问题，可以通过： 如何使windows7的默认共享可以被访问 来解决，使用windows也不是每次都那么幸运。 今天在处理smbclient与win7共享问题的时候，却遇到了一个更头疼的问题，却总是提示“session setup failed: SUCCESS &#8211; 0”，试过了很多办法，都是google的，但是仍然未成功，最终还是通过 [ubuntu] Sharing Files and Folders with Windows 7 文中多人提到卸载“windows live sign-in assistant”后就正常了，于是我也卸载了Windows Live相关的程序，果真成功了。 之前还做了一些操作，不知道对成功是否有影响，如果卸载后仍然不好使，尝试修改这些注册表。 之后还参考了这个 做完这些操作后，删除windows live sign-in assistant就可以访问了。 相关文章如何使windows7的默认共享可以被访问[转载] (0)IOBlazer-跨平台的IO压力测试程序 (0)Windows下循环启动VLC的脚本 (0)Windows下VLC状态检查脚本 (0)让Windows XP自动登录的两种方法 (0)]]></description>
			<content:encoded><![CDATA[<p>由于备份数据的需求，所以需要通过使用smbclient访问win7，起初只是遇到无法访问 C$ 一类共享问题，可以通过： <a href="http://www.wenzk.com/archives/1131" target="_blank">如何使windows7的默认共享可以被访问</a> 来解决，使用windows也不是每次都那么幸运。<br />
<span id="more-1506"></span><br />
今天在处理smbclient与win7共享问题的时候，却遇到了一个更头疼的问题，却总是提示“session setup failed: SUCCESS &#8211; 0”，试过了很多办法，都是google的，但是仍然未成功，最终还是通过 <a href="http://ubuntuforums.org/archive/index.php/t-1273419.html" target="_blank">[ubuntu] Sharing Files and Folders with Windows 7</a> 文中多人提到卸载“windows live sign-in assistant”后就正常了，于是我也卸载了Windows Live相关的程序，果真成功了。</p>
<p>之前还做了一些操作，不知道对成功是否有影响，如果卸载后仍然不好使，尝试修改这些注册表。</p>
<pre class="brush: plain; title: ; notranslate">HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa
&quot;LmCompatibilityLevel&quot;=dword:1         -allow older Lan manager style messages
&quot;NoLmHash&quot;=dword:0                       -store the older, less secure Lan Manager encrypted password

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Netlogon\Parameters
&quot;AllowNT4Crypto&quot;=dword:1                -allow less secure encrypted passwords (intermediate keys must be created)

HKLM\System\CurrentControlSet\Services\LanmanServer\Parameters
&quot;RequireSecuritySignature&quot;=dword:0   -don't require new message signatures
This value may have already existed, I don't remember</pre>
<p>之后还参考了这个</p>
<pre class="brush: plain; title: ; notranslate">1) in hklm\system\currentcontrolset\control\lsa, created LmCompatibilityLevel = dword &quot;1&quot;, changed NoLmHash from &quot;0&quot; to &quot;1&quot;
2) in hklm\software\policies\microsoft created key netlogon
    in hklm\software\policies\microsoft\netlogon created key Paramaters
    in hklm\software\policies\microsoft\netlogon\paramaters created AllowNT4Crypto = dword &quot;1&quot;
3) in hklm\system\currentcontrolset\services\netlogon\paramaters created AllowNT4Crypto = dword &quot;1&quot;
4) in hklm\system\currentcontrolset\services\lanmanserver\paramaters requiresecuritysignature was already = dword &quot;0&quot;</pre>
<p>做完这些操作后，删除windows live sign-in assistant就可以访问了。</p>
<h2  class="related_post_title">相关文章</h2><ul class="related_post"><li><a href="http://www.wenzk.com/archives/1131" title="如何使windows7的默认共享可以被访问[转载]">如何使windows7的默认共享可以被访问[转载]</a> (0)</li><li><a href="http://www.wenzk.com/archives/1443" title="IOBlazer-跨平台的IO压力测试程序">IOBlazer-跨平台的IO压力测试程序</a> (0)</li><li><a href="http://www.wenzk.com/archives/940" title="Windows下循环启动VLC的脚本">Windows下循环启动VLC的脚本</a> (0)</li><li><a href="http://www.wenzk.com/archives/938" title="Windows下VLC状态检查脚本">Windows下VLC状态检查脚本</a> (0)</li><li><a href="http://www.wenzk.com/archives/891" title="让Windows XP自动登录的两种方法">让Windows XP自动登录的两种方法</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.wenzk.com/archives/1506/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>zmmailbox导入邮件提示：Code:zclient.UPLOAD_SIZE_LIMIT_EXCEEDED</title>
		<link>http://www.wenzk.com/archives/1501</link>
		<comments>http://www.wenzk.com/archives/1501#comments</comments>
		<pubDate>Mon, 16 Jan 2012 05:14:47 +0000</pubDate>
		<dc:creator>ELM</dc:creator>
				<category><![CDATA[榆树网-杂项]]></category>
		<category><![CDATA[Maildir]]></category>
		<category><![CDATA[Zimbra]]></category>
		<category><![CDATA[导入邮件]]></category>
		<category><![CDATA[迁移]]></category>
		<category><![CDATA[邮件]]></category>

		<guid isPermaLink="false">http://www.wenzk.com/?p=1501</guid>
		<description><![CDATA[解决办法： 相关文章如何将Maildir邮件导入到Zimbra中 (0)如何让Zimbra支持https (0)Zimbra如何启用IM插件 (0)将 Zimbra Desktop 设为默认电子邮件程序 (0)为什么不能用Outlook、Foxmail收取Zimbra的邮件 (0)]]></description>
			<content:encoded><![CDATA[<p>解决办法：</p>
<pre class="brush: plain; title: ; notranslate">su - zimbra
 zmprov gacf | grep zimbraFileUploadMaxSize
 zmprov gacf | grep zimbraMtaMaxMessageSize

 zmprov mcf zimbraFileUploadMaxSize xxxxxxxx
 zmprov mcf zimbraMtaMaxMessageSize xxxxxxx</pre>
<h2  class="related_post_title">相关文章</h2><ul class="related_post"><li><a href="http://www.wenzk.com/archives/1398" title="如何将Maildir邮件导入到Zimbra中">如何将Maildir邮件导入到Zimbra中</a> (0)</li><li><a href="http://www.wenzk.com/archives/1185" title="如何让Zimbra支持https">如何让Zimbra支持https</a> (0)</li><li><a href="http://www.wenzk.com/archives/1182" title="Zimbra如何启用IM插件">Zimbra如何启用IM插件</a> (0)</li><li><a href="http://www.wenzk.com/archives/1509" title="将 Zimbra Desktop 设为默认电子邮件程序">将 Zimbra Desktop 设为默认电子邮件程序</a> (0)</li><li><a href="http://www.wenzk.com/archives/1477" title="为什么不能用Outlook、Foxmail收取Zimbra的邮件">为什么不能用Outlook、Foxmail收取Zimbra的邮件</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.wenzk.com/archives/1501/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Weathermap如何使用Zabbix作为数据源</title>
		<link>http://www.wenzk.com/archives/1499</link>
		<comments>http://www.wenzk.com/archives/1499#comments</comments>
		<pubDate>Fri, 13 Jan 2012 01:08:37 +0000</pubDate>
		<dc:creator>ELM</dc:creator>
				<category><![CDATA[榆树网-杂项]]></category>
		<category><![CDATA[榆树网-网络]]></category>
		<category><![CDATA[Cacti]]></category>
		<category><![CDATA[MRTG]]></category>
		<category><![CDATA[RRD]]></category>
		<category><![CDATA[RRDtools]]></category>
		<category><![CDATA[WeatherMap]]></category>
		<category><![CDATA[zabbix]]></category>

		<guid isPermaLink="false">http://www.wenzk.com/?p=1499</guid>
		<description><![CDATA[I&#8217;ve started playing around with it and after some tinkering, I have a working weathermap. This adds an excellent visualization tool to ZABBIX, especially for complex networks. A very quick HOWTO: 1) Install php-weathermap somewhere. 2) Read the fine manual 3) Create a weathermap of the hosts you want to monitor. 4) Configure WeatherMapDataSource_zabbix.php (and [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve started playing around with it and after some tinkering, I have a working weathermap. This adds an excellent visualization tool to ZABBIX, especially for complex networks.</p>
<p>A very quick HOWTO:<span id="more-1499"></span></p>
<p>1) Install php-weathermap somewhere.<br />
2) Read the fine manual<br />
3) Create a weathermap of the hosts you want to monitor.<br />
4) Configure WeatherMapDataSource_zabbix.php (and put it in the right place at weathermap/lib/datasources &#8211; not in the ZABBIX directory).<br />
5) To get the id&#8217;s of the Items to put in the map, I&#8217;ve named all my traffic Items “Traffic&#8230;” so I ran the following MySQL query:</p>
<p>SELECT * FROM items i where description LIKE &#8216;Traffic%&#8217;;</p>
<p>this gets me the itemid I need to put into the weathermap configuration file. Note that I got error messages around lines 44 and 45 of the php file because my root MySQL user has a password. I guess these are for debugging purposes. I&#8217;ve also hardcoded the host, username and password of the database at around line 52 and hardcoded the datbase name at line 54. The variables didn&#8217;t seem to work. Also note that the Items must be Integers or the script won&#8217;t work.</p>
<p>6) Create the weathermap using “php ./weathermap &#8211;config mymap.conf”<br />
7) Enjoy<br />
8) If you want your map to auto-update itself, create a cron job or a Windows Scheduled Task to run the command at step 6)</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php
// Zabbix Pluggable datasource for PHP Weathermap 0.9
// - read a pair of values from a database, and return it
// Actually the plugin look only in history_uint table
// TARGET zabbix:in:out

class WeatherMapDataSource_zabbix extends WeatherMapDataSource {

        function Init(&amp;$map)
        {
                if(! function_exists(&quot;mysql_real_escape_string&quot;) ) return FALSE;
                if(! function_exists(&quot;mysql_connect&quot;) ) return FALSE;

                return(TRUE);
        }

        function Recognise($targetstring)
        {

         if(preg_match(&quot;/^zabbix:([\-a-zA-Z0-9_]+):([\-a-zA-Z0-9_]+)$/&quot;,$targetstring,$matches))

                {
                        return TRUE;
                }
                else
                {
                        return FALSE;
                }
        }

        function ReadData($targetstring, &amp;$map, &amp;$item)
        {
                $data[IN] = NULL;
                $data[OUT] = NULL;
                $data_time = 0;

                if(preg_match(&quot;/^zabbix:([\-a-zA-Z0-9_]+):([\-a-zA-Z0-9_]+)$/&quot;,$targetstring,$matches))
                {
                        $database_user = $map-&gt;get_hint('zabbix_dbuser');
                        $database_pass = $map-&gt;get_hint('zabbix_dbpass');
                        $database_name = $map-&gt;get_hint('zabbix_dbname');
                        $database_host = $map-&gt;get_hint('zabbix_dbhost');

                        $raw_in = mysql_real_escape_string($matches[1]);
                        $raw_out= mysql_real_escape_string($matches[2]);

                        debug (&quot;Found for IN Value :  $raw_in \n&quot;);
                        debug (&quot;Found for OUT Value :  $raw_out \n&quot;);

                        $SQL_IN = &quot;select value from history_uint where itemid=$raw_in order by clock desc limit 1&quot;;
                        $SQL_OUT = &quot;select value,clock from history_uint where itemid=$raw_out order by clock desc limit 1&quot;;
                        if(mysql_connect($database_host,$database_user,$database_pass))
                        {
                                if(mysql_select_db($database_name))
                                {
                                        $result_IN = mysql_query($SQL_IN);
                                        if (!$result_IN)
                                        {
                                            warn(&quot;Zabbix ReadData: Invalid query for IN Value: &quot; . mysql_error().&quot;\n&quot;);
                                        }
                                        else
                                        {
                                                $row_IN = mysql_fetch_assoc($result_IN);
                                                $data[IN] = $row_IN['value'];
                                        }
                                        $result_OUT = mysql_query($SQL_OUT);
                                        if (!$result_OUT)
                                        {
                                            warn(&quot;Zabbix ReadData: Invalid query for OUT Value: &quot; . mysql_error().&quot;\n&quot;);
                                        }
                                        else
                                        {
                                                $row_OUT = mysql_fetch_assoc($result_OUT);
                                                $data[OUT] = $row_OUT['value'];
                                                $data_time = $row_OUT['clock'];
                                        }

                                }

                                else
                                {
                                        warn(&quot;Zabbix ReadData: failed to select database ($database_name): &quot;.mysql_error().&quot;\n&quot;);
                                }
                        }
                        else
                        {
                                warn(&quot;Zabbix ReadData: failed to connect to database server: &quot;.mysql_error().&quot;\n&quot;);
                        }

                //      $data_time = now();
                }

                debug (&quot;RRD ReadData: Returning (&quot;.($data[IN]===NULL?'NULL':$data[IN]).&quot;,&quot;.($data[OUT]===NULL?'NULL':$data[IN]).&quot;,$data_time)\n&quot;);

                return( array($data[IN], $data[OUT], $data_time) );
        }
}
?&gt;</pre>
<p>转自: http://www.zabbix.com/forum/showthread.php?t=9873</p>
<h2  class="related_post_title">相关文章</h2><ul class="related_post"><li><a href="http://www.wenzk.com/archives/880" title="Zabbix Agentd在Windows下如何获得网卡流量">Zabbix Agentd在Windows下如何获得网卡流量</a> (0)</li><li><a href="http://www.wenzk.com/archives/586" title="FreeBSD下运行Zabbix出现错误">FreeBSD下运行Zabbix出现错误</a> (0)</li><li><a href="http://www.wenzk.com/archives/494" title="Zabbix在FreeBSD启动错误">Zabbix在FreeBSD启动错误</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.wenzk.com/archives/1499/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Newest GoDaddy Promo Code for 2012</title>
		<link>http://www.wenzk.com/archives/1496</link>
		<comments>http://www.wenzk.com/archives/1496#comments</comments>
		<pubDate>Wed, 04 Jan 2012 03:20:13 +0000</pubDate>
		<dc:creator>ELM</dc:creator>
				<category><![CDATA[榆树网-杂谈]]></category>
		<category><![CDATA[Discount]]></category>
		<category><![CDATA[Domain]]></category>
		<category><![CDATA[Godaddy]]></category>

		<guid isPermaLink="false">http://www.wenzk.com/?p=1496</guid>
		<description><![CDATA[More Godaddy promo code Visit: http://dayscoupons.com GoDaddy promo code: gdz1229c for 31% off saving for any order.(new,renewal or transfer). iap599v for $5.99 .COMs, ORGs and .NET for $7.49, MIN20 for 20% off hosting, GAM2 for $5 off, YES15 for 15% off.Use the promo code at checkout, You will get big saving. 用gdz1229c为.net域名续了5年，总共花费30美元，折合人民币190多元，不到200元，应该比较实惠吧 相关文章新网互联禁止域名迁移解决办法 (0)更新了Wordpress for [...]]]></description>
			<content:encoded><![CDATA[<p>More Godaddy promo code Visit: http://dayscoupons.com<br />
GoDaddy promo code: gdz1229c for 31% off saving for any order.(new,renewal or transfer). iap599v for $5.99 .COMs, ORGs and .NET for $7.49, MIN20 for 20% off hosting, GAM2 for $5 off, YES15 for 15% off.Use the promo code at checkout, You will get big saving.</p>
<p>用gdz1229c为.net域名续了5年，总共花费30美元，折合人民币190多元，不到200元，应该比较实惠吧</p>
<h2  class="related_post_title">相关文章</h2><ul class="related_post"><li><a href="http://www.wenzk.com/archives/771" title="新网互联禁止域名迁移解决办法">新网互联禁止域名迁移解决办法</a> (0)</li><li><a href="http://www.wenzk.com/archives/737" title="更新了Wordpress for Blacberry客户端">更新了Wordpress for Blacberry客户端</a> (0)</li><li><a href="http://www.wenzk.com/archives/723" title="庆祝wenzk.net成功迁出">庆祝wenzk.net成功迁出</a> (0)</li><li><a href="http://www.wenzk.com/archives/576" title="我也应该把域名转出去了">我也应该把域名转出去了</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.wenzk.com/archives/1496/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>网上购票取票方法</title>
		<link>http://www.wenzk.com/archives/1494</link>
		<comments>http://www.wenzk.com/archives/1494#comments</comments>
		<pubDate>Sun, 01 Jan 2012 08:13:15 +0000</pubDate>
		<dc:creator>ELM</dc:creator>
				<category><![CDATA[榆树网-杂谈]]></category>
		<category><![CDATA[春运]]></category>
		<category><![CDATA[火车票]]></category>
		<category><![CDATA[黄牛党]]></category>

		<guid isPermaLink="false">http://www.wenzk.com/?p=1494</guid>
		<description><![CDATA[到火车站售票窗口，一般有窗口表明“电话、互联网预订取票窗口”，但是在天朝，很多人是不搭理你这套的（沈阳和北京都遇到了），不管他是否有预订或购买，直接排队买票，耽误大家的时间。 直接出示二代身份证，如果你购买了多张票，售票员会问你是否全部取出还是只取部分，异地发车的票需要加收手续费5元。 如果12306能挺住，以后买票就方便多了，黄牛党也就不用那么嚣张了。 相关文章铁路客户服务中心网站还真的提前上线了 (0)我的火车票搞定啦 (1)火车票网上购票-沈阳 (0)最近那些事 (2)中国铁路客户服务中心-网站 (0)]]></description>
			<content:encoded><![CDATA[<p>到火车站售票窗口，一般有窗口表明“电话、互联网预订取票窗口”，但是在天朝，很多人是不搭理你这套的（沈阳和北京都遇到了），不管他是否有预订或购买，直接排队买票，耽误大家的时间。</p>
<p>直接出示二代身份证，如果你购买了多张票，售票员会问你是否全部取出还是只取部分，异地发车的票需要加收手续费5元。</p>
<p>如果12306能挺住，以后买票就方便多了，黄牛党也就不用那么嚣张了。</p>
<h2  class="related_post_title">相关文章</h2><ul class="related_post"><li><a href="http://www.wenzk.com/archives/593" title="铁路客户服务中心网站还真的提前上线了">铁路客户服务中心网站还真的提前上线了</a> (0)</li><li><a href="http://www.wenzk.com/archives/572" title="我的火车票搞定啦">我的火车票搞定啦</a> (1)</li><li><a href="http://www.wenzk.com/archives/1492" title="火车票网上购票-沈阳">火车票网上购票-沈阳</a> (0)</li><li><a href="http://www.wenzk.com/archives/563" title="最近那些事">最近那些事</a> (2)</li><li><a href="http://www.wenzk.com/archives/560" title="中国铁路客户服务中心-网站">中国铁路客户服务中心-网站</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.wenzk.com/archives/1494/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>火车票网上购票-沈阳</title>
		<link>http://www.wenzk.com/archives/1492</link>
		<comments>http://www.wenzk.com/archives/1492#comments</comments>
		<pubDate>Thu, 29 Dec 2011 07:40:49 +0000</pubDate>
		<dc:creator>ELM</dc:creator>
				<category><![CDATA[榆树网-杂谈]]></category>
		<category><![CDATA[定票]]></category>
		<category><![CDATA[火车票]]></category>
		<category><![CDATA[网站]]></category>
		<category><![CDATA[黄牛党]]></category>

		<guid isPermaLink="false">http://www.wenzk.com/?p=1492</guid>
		<description><![CDATA[很久以前就希望火车票能和飞机票一样实现网上购票，这样可以不用去拍大长队，也可以通过信用卡支付，出差可以带更少的现金了。 前一段时间看到很多消息，关于高铁网上购票、D字头的、T字头的陆续支持网上购票，但是一直没实践过，由于最近有出差需求，于是尝试网上购票，还是挺方便的，购买了一张K54 沈阳北-北京的车票。 暂时还未取票，到时候去北站看看如何取票。 购票还是很方便的，首先登录 http://www.12306.cn 注册一个帐号，（注意用IE登录，用别的浏览器有问题）。 记得激活帐户（就是点一下那封邮件的URL，认证一下即可，否则无法购票）。 然后选择需要出发的日期、起始地址，然后查询，如果有合适的车次，点击预订即可 填写相关信息，然后跳转到支付页面，这里需要确认一下证书，铁老大居然是用自签名的证书，难道铁老大差这点钱？ 然后到使用相应的支付方式支付即可，接下来手机就可以收到车票的相关信息了。 哈哈，挺简单的吧。 相关文章网上购票取票方法 (0)铁路客户服务中心网站还真的提前上线了 (0)我的火车票搞定啦 (1)中国铁路客户服务中心-网站 (0)最近那些事 (2)]]></description>
			<content:encoded><![CDATA[<p>很久以前就希望火车票能和飞机票一样实现网上购票，这样可以不用去拍大长队，也可以通过信用卡支付，出差可以带更少的现金了。</p>
<p>前一段时间看到很多消息，关于高铁网上购票、D字头的、T字头的陆续支持网上购票，但是一直没实践过，由于最近有出差需求，于是尝试网上购票，还是挺方便的，购买了一张K54 沈阳北-北京的车票。</p>
<p>暂时还未取票，到时候去北站看看如何取票。</p>
<p><span id="more-1492"></span>购票还是很方便的，首先登录</p>
<p>http://www.12306.cn</p>
<p>注册一个帐号，（注意用IE登录，用别的浏览器有问题）。</p>
<p>记得激活帐户（就是点一下那封邮件的URL，认证一下即可，否则无法购票）。</p>
<p>然后选择需要出发的日期、起始地址，然后查询，如果有合适的车次，点击预订即可</p>
<p>填写相关信息，然后跳转到支付页面，这里需要确认一下证书，铁老大居然是用自签名的证书，难道铁老大差这点钱？</p>
<p>然后到使用相应的支付方式支付即可，接下来手机就可以收到车票的相关信息了。</p>
<p>哈哈，挺简单的吧。</p>
<h2  class="related_post_title">相关文章</h2><ul class="related_post"><li><a href="http://www.wenzk.com/archives/1494" title="网上购票取票方法">网上购票取票方法</a> (0)</li><li><a href="http://www.wenzk.com/archives/593" title="铁路客户服务中心网站还真的提前上线了">铁路客户服务中心网站还真的提前上线了</a> (0)</li><li><a href="http://www.wenzk.com/archives/572" title="我的火车票搞定啦">我的火车票搞定啦</a> (1)</li><li><a href="http://www.wenzk.com/archives/560" title="中国铁路客户服务中心-网站">中国铁路客户服务中心-网站</a> (0)</li><li><a href="http://www.wenzk.com/archives/563" title="最近那些事">最近那些事</a> (2)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.wenzk.com/archives/1492/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>一个能“记忆”上次读取位置的cat程序</title>
		<link>http://www.wenzk.com/archives/1489</link>
		<comments>http://www.wenzk.com/archives/1489#comments</comments>
		<pubDate>Sat, 17 Dec 2011 15:24:47 +0000</pubDate>
		<dc:creator>ELM</dc:creator>
				<category><![CDATA[榆树网-杂项]]></category>
		<category><![CDATA[cat]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[readline]]></category>
		<category><![CDATA[write]]></category>

		<guid isPermaLink="false">http://www.wenzk.com/?p=1489</guid>
		<description><![CDATA[这是用python写的第一个程序，每句话都是查手册写出来的，呵呵。 大家拍砖吧。 随机文章经过4.6天的无法连接后，今天终于正常了 (0)列车信息查询 火车票 车票查询 (1)Gmail for BB感觉不错 (0)Google地图的WIFI定位技术 (1)arping for windows (0)]]></description>
			<content:encoded><![CDATA[<p>这是用python写的第一个程序，每句话都是查手册写出来的，呵呵。<br />
大家拍砖吧。</p>
<pre class="brush: python; title: ; notranslate">
#!/bin/env python

import os
import sys

if os.path.isfile(&quot;/tmp/workfile&quot;):
   f = open('/tmp/workfile', 'r')
   size = int(os.fstat(f.fileno())[6])
else:
   sys.exit()

if os.path.isfile(&quot;/tmp/workfile.s&quot;):
   s = open('/tmp/workfile.s', 'r+')
   if int(os.fstat(s.fileno())[6]) == 0 :
      last_stats = 0
   else:
      last_stats = int(s.readline())
else:
   s = open('/tmp/workfile.s', 'w')
   last_stats = 0

if size &lt; last_stats :
   last_stats = 0

f.seek(last_stats)

notend = 1
while notend :
  string = f.readline()
  if len(string) == 0 :
     notend = 0
  else:
     string = string.strip(' \t\n\r')
     print string

s.seek(0)
s.write( str( f.tell() ) )

s.close()
f.close()
sys.exit()
</pre>
<h2  class="related_post_title">随机文章</h2><ul class="related_post"><li><a href="http://www.wenzk.com/archives/167" title="Nokia 6070换壳热身">Nokia 6070换壳热身</a> (0)</li><li><a href="http://www.wenzk.com/archives/86" title="CentOS Mirroring HowTo">CentOS Mirroring HowTo</a> (0)</li><li><a href="http://www.wenzk.com/archives/1101" title="ZFS Tuning Guide">ZFS Tuning Guide</a> (0)</li><li><a href="http://www.wenzk.com/archives/381" title="炒鸡蛋的窍门">炒鸡蛋的窍门</a> (0)</li><li><a href="http://www.wenzk.com/archives/1113" title="在CentOS上升级vlc至最新版本">在CentOS上升级vlc至最新版本</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.wenzk.com/archives/1489/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux PPPoE拨号频繁掉线问题</title>
		<link>http://www.wenzk.com/archives/1481</link>
		<comments>http://www.wenzk.com/archives/1481#comments</comments>
		<pubDate>Sun, 27 Nov 2011 02:06:41 +0000</pubDate>
		<dc:creator>ELM</dc:creator>
				<category><![CDATA[榆树网-系统]]></category>
		<category><![CDATA[榆树网-网络]]></category>
		<category><![CDATA[ADSL]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[PPPoE]]></category>
		<category><![CDATA[拨号]]></category>
		<category><![CDATA[掉线]]></category>
		<category><![CDATA[终端]]></category>

		<guid isPermaLink="false">http://www.wenzk.com/?p=1481</guid>
		<description><![CDATA[家里的网络是通过小区宽带接入的，通过PPPoE进行认证，最近发现总是掉线，几小时掉线一次，频繁的时候一小时几次。由于特殊需求，需要通过VPN上网，所以掉线对网络体验影响是很大的，通过查看日志，掉线时的日志是： No response to 3 echo-requests Serial link appears to be disconnected. 既然是3个echo-requests没有响应就重新连接了，那说明是Linux主动发起的重连请求，网络未必不可用，查看PPPoE的配置： 默认配置是，没10秒检测一次，如果连续3次失败则认为网络不可用，重新连接。 可否通过调整这两个参数来减少掉线次数呢？ 将配置改成： 修改后，一天已经没有掉线了，如果你也遇到类似的问题，修改这里两个参数试试。 相关文章单网卡多次PPPoE拨号问题 (0)Linux下如何使用tar进行整系统备份["Ghost"] (0)如何为逻辑卷创建镜像 (0)LVM在线更换物理硬盘 (0)让CentOS6提供基于OpenVZ的虚拟化服务 (0)]]></description>
			<content:encoded><![CDATA[<p>家里的网络是通过小区宽带接入的，通过PPPoE进行认证，最近发现总是掉线，几小时掉线一次，频繁的时候一小时几次。由于特殊需求，需要通过VPN上网，所以掉线对网络体验影响是很大的，通过查看日志，掉线时的日志是：</p>
<p>No response to 3 echo-requests<br />
Serial link appears to be disconnected.</p>
<p>既然是3个echo-requests没有响应就重新连接了，那说明是Linux主动发起的重连请求，网络未必不可用，查看PPPoE的配置：</p>
<pre class="brush: plain; title: ; notranslate">LCP_FAILURE=3
LCP_INTERVAL=10</pre>
<p>默认配置是，没10秒检测一次，如果连续3次失败则认为网络不可用，重新连接。<br />
可否通过调整这两个参数来减少掉线次数呢？<br />
将配置改成：</p>
<pre class="brush: plain; title: ; notranslate">LCP_FAILURE=10
LCP_INTERVAL=30</pre>
<p>修改后，一天已经没有掉线了，如果你也遇到类似的问题，修改这里两个参数试试。</p>
<h2  class="related_post_title">相关文章</h2><ul class="related_post"><li><a href="http://www.wenzk.com/archives/935" title="单网卡多次PPPoE拨号问题">单网卡多次PPPoE拨号问题</a> (0)</li><li><a href="http://www.wenzk.com/archives/1469" title="Linux下如何使用tar进行整系统备份["Ghost"]">Linux下如何使用tar进行整系统备份["Ghost"]</a> (0)</li><li><a href="http://www.wenzk.com/archives/1464" title="如何为逻辑卷创建镜像">如何为逻辑卷创建镜像</a> (0)</li><li><a href="http://www.wenzk.com/archives/1461" title="LVM在线更换物理硬盘">LVM在线更换物理硬盘</a> (0)</li><li><a href="http://www.wenzk.com/archives/1429" title="让CentOS6提供基于OpenVZ的虚拟化服务">让CentOS6提供基于OpenVZ的虚拟化服务</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.wenzk.com/archives/1481/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>为什么不能用Outlook、Foxmail收取Zimbra的邮件</title>
		<link>http://www.wenzk.com/archives/1477</link>
		<comments>http://www.wenzk.com/archives/1477#comments</comments>
		<pubDate>Sat, 26 Nov 2011 05:16:09 +0000</pubDate>
		<dc:creator>ELM</dc:creator>
				<category><![CDATA[榆树网-系统]]></category>
		<category><![CDATA[榆树网-网络]]></category>
		<category><![CDATA[Foxmail]]></category>
		<category><![CDATA[OutLook]]></category>
		<category><![CDATA[POP3]]></category>
		<category><![CDATA[SMTP]]></category>
		<category><![CDATA[Zimbra]]></category>

		<guid isPermaLink="false">http://www.wenzk.com/?p=1477</guid>
		<description><![CDATA[用OutLook连接提示错误： -ERR only valid after entering TLS mode 原因：Zimbra默认不允许在使用非加密传输时进行身份认证，需要关闭相关安全设置。 在Zimbra上切换至zimbra用户，执行如下命令： 重新启动Zimbra服务后试试OutLook是否可以接收邮件了 相关文章OutLook如何使用Zimbra LDAP提供的地址簿 (0)Zimbra-proxy配置步骤 (0)解决Zimbra收取POP3邮件问题 (4)将 Zimbra Desktop 设为默认电子邮件程序 (0)zmmailbox导入邮件提示：Code:zclient.UPLOAD_SIZE_LIMIT_EXCEEDED (0)]]></description>
			<content:encoded><![CDATA[<p>用OutLook连接提示错误：</p>
<p>-ERR only valid after entering TLS mode</p>
<p>原因：Zimbra默认不允许在使用非加密传输时进行身份认证，需要关闭相关安全设置。</p>
<p><span id="more-1477"></span>在Zimbra上切换至zimbra用户，执行如下命令：</p>
<pre class="brush: plain; title: ; notranslate">zmprov ms `zmhostname` zimbraImapCleartextLoginEnabled TRUE
zmprov ms `zmhostname` zimbraPop3CleartextLoginEnabled TRUE
zmprov ms `zmhostname` zimbraMtaTlsAuthOnly FALSE</pre>
<p>重新启动Zimbra服务后试试OutLook是否可以接收邮件了</p>
<h2  class="related_post_title">相关文章</h2><ul class="related_post"><li><a href="http://www.wenzk.com/archives/1407" title="OutLook如何使用Zimbra LDAP提供的地址簿">OutLook如何使用Zimbra LDAP提供的地址簿</a> (0)</li><li><a href="http://www.wenzk.com/archives/1388" title="Zimbra-proxy配置步骤">Zimbra-proxy配置步骤</a> (0)</li><li><a href="http://www.wenzk.com/archives/1380" title="解决Zimbra收取POP3邮件问题">解决Zimbra收取POP3邮件问题</a> (4)</li><li><a href="http://www.wenzk.com/archives/1509" title="将 Zimbra Desktop 设为默认电子邮件程序">将 Zimbra Desktop 设为默认电子邮件程序</a> (0)</li><li><a href="http://www.wenzk.com/archives/1501" title="zmmailbox导入邮件提示：Code:zclient.UPLOAD_SIZE_LIMIT_EXCEEDED">zmmailbox导入邮件提示：Code:zclient.UPLOAD_SIZE_LIMIT_EXCEEDED</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.wenzk.com/archives/1477/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

