<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet href='http://feed.feedsky.com/styles/feedsky0.xsl' type='text/xsl' ?><!--这是一个由Feedsy提供技术支持的Feed，为了提高读者阅读的体验，以及满足用户美化自己Feed的需要，我们设计了多种精美的Feed模板，提供给大家选择，所有最终呈现出来的样式，皆由用户自愿选择使用，未经许可，任何团体和个人，请不要擅自修改样式或者盗用，这是对于用户选择权的尊重。--><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:fs="http://www.feedsky.com/namespace/feed" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" 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/" version="2.0"><channel><atom:link href="http://feed.feedsky.com/verdana" type="application/rss+xml" rel="self"></atom:link><fs:self_link href="http://feed.feedsky.com/verdana" type="application/rss+xml"></fs:self_link><lastBuildDate>Mon, 08 Sep 2008 23:00:32 GMT</lastBuildDate><title>Attractive Verdana</title><description>发现和分享一切关于 PHP, Vim, WordPress, Firefox 的信息...</description><image><url>http://www.feedsky.com/feed/verdana/sc/gif</url><title>Attractive Verdana</title><link>http://www.phpvim.net</link></image><link>http://www.phpvim.net</link><sy:updatePeriod>hourly</sy:updatePeriod><sy:updateFrequency>1</sy:updateFrequency><language>en</language><pubDate>Sun, 05 Oct 2008 01:50:55 GMT</pubDate><item><title>Daily Links for 2008-09-08</title><link>http://item.feedsky.com/~feedsky/verdana/~1471287/122121925/1487592/1/item.html</link><content:encoded>&lt;ul class=&quot;delicious&quot;&gt;
&lt;li&gt;
&lt;div class=&quot;delicious-link&quot;&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://www.loadinfo.net/&quot;&gt;Load Info - gif generator&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div class=&quot;delicious-link&quot;&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://www.nirvanastudio.org/wp-content/uploads/2006/04/lua-5_0-reference-manual.html&quot;&gt;Lua 5.0 手册&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;delicious-extended&quot;&gt;Lua 5.0 中文参考手册 &amp;#8212; Nirvana Studio&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;</content:encoded><wfw:commentRss>http://www.phpvim.net/uncategorized/daily-links-for-2008-09-08.html/feed</wfw:commentRss><description>Load Info - gif generator


Lua 5.0 手册
Lua 5.0 中文参考手册 &amp;#8212; Nirvana Studio</description><category>Uncategorized</category><pubDate>Tue, 09 Sep 2008 07:00:32 +0800</pubDate><author>Verdana Mu</author><comments>http://www.phpvim.net/uncategorized/daily-links-for-2008-09-08.html#comments</comments><guid isPermaLink="false">http://www.phpvim.net/uncategorized/daily-links-for-2008-09-08.html</guid><dc:creator>Verdana Mu</dc:creator><fs:srclink>http://www.phpvim.net/uncategorized/daily-links-for-2008-09-08.html</fs:srclink><fs:srcfeed>http://www.phpvim.net/feed</fs:srcfeed><fs:itemid>feedsky/verdana/~1471287/122121925/1487592</fs:itemid></item><item><title>Hook WordPress Plugin Locale</title><link>http://item.feedsky.com/~feedsky/verdana/~1471287/122121926/1487592/1/item.html</link><content:encoded>&lt;p&gt;由于某些原因，我需要在 WP 插件页面自定义 Locale，使插件的页面能够以用户选择的语言呈现，并且不影响 WordPress 的整体 Locale。&lt;/p&gt;
&lt;p&gt;我们知道插件通过 API load_plugin_textdomain() 载入 Gettext mo 文件实现国际化，那么我们只要在载入 mo 之前 hook WordPress Locale 不就可以了？&lt;/p&gt;
&lt;p&gt;粗略看了一下源码，发现其实很简单，WP 的 Locale 保存在全局变量 $locale 中，那么劫持它就好了。&lt;/p&gt;
&lt;p&gt;以下是 fanfou-tools 的部分实现代码，非常简单：&lt;/p&gt;

&lt;div class=&quot;wp_syntax&quot;&gt;&lt;div class=&quot;code&quot;&gt;&lt;pre class=&quot;php php&quot; style=&quot;font-family:monospace;&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;// {{{ fanfou_init&lt;/span&gt;
&amp;nbsp;
&lt;span style=&quot;color: #0000ff; font-style: italic;&quot;&gt;/**
 * fanfou_init
 *
 * @access public
 * @return void
 */&lt;/span&gt;
&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;function&lt;/span&gt; fanfou_init&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;
    &lt;span style=&quot;color: #990000;&quot;&gt;global&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$wpdb&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$fanfou&lt;/span&gt;;
    &lt;span style=&quot;color: #000088;&quot;&gt;$wpdb&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #004000;&quot;&gt;fanfou&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$wpdb&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #004000;&quot;&gt;prefix&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;.&lt;/span&gt; &lt;span style=&quot;&quot;&gt;'fanfou'&lt;/span&gt;;
    &lt;span style=&quot;color: #b1b100;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #990000;&quot;&gt;isset&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$_GET&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;&quot;&gt;'activate'&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; and &lt;span style=&quot;color: #000088;&quot;&gt;$_GET&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;&quot;&gt;'activate'&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;==&lt;/span&gt; &lt;span style=&quot;&quot;&gt;'true'&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;
        &lt;span style=&quot;color: #000088;&quot;&gt;$fanfou&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #004000;&quot;&gt;install_table&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;;
        &lt;span style=&quot;color: #000088;&quot;&gt;$fanfou&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #004000;&quot;&gt;install_options&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;;
    &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt;
    &lt;span style=&quot;color: #000088;&quot;&gt;$fanfou&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #004000;&quot;&gt;get_settings&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;;
&amp;nbsp;
    &lt;span style=&quot;color: #b1b100;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$fanfou&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #004000;&quot;&gt;last_download&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;+&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$fanfou&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #004000;&quot;&gt;download_interval&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;&amp;lt;&lt;/span&gt; &lt;span style=&quot;color: #990000;&quot;&gt;time&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;
        add_action&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;&quot;&gt;'shutdown'&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;&quot;&gt;'fanfou_update_posts'&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;;
    &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
    &lt;span style=&quot;color: #b1b100;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;is_admin&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;
        wp_enqueue_script&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;&quot;&gt;'prototype'&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;;
    &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
    &lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;// Using our own locale&lt;/span&gt;
    &lt;span style=&quot;color: #000088;&quot;&gt;$custom_locale&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; get_option&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;&quot;&gt;'fanfou_locale'&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;;
    &lt;span style=&quot;color: #b1b100;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;!&lt;/span&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$custom_locale&lt;/span&gt; or &lt;span style=&quot;color: #000088;&quot;&gt;$custom_locale&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;==&lt;/span&gt; &lt;span style=&quot;&quot;&gt;'default'&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;
        &lt;span style=&quot;color: #000088;&quot;&gt;$custom_locale&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; WPLANG;
    &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt;
    &lt;span style=&quot;color: #000088;&quot;&gt;$GLOBALS&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;&quot;&gt;'locale'&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$custom_locale&lt;/span&gt;;
    load_plugin_textdomain&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;&quot;&gt;'fanfou-tools'&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;&quot;&gt;'wp-content/plugins/fanfou-tools'&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;;
&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt;
add_action&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;&quot;&gt;'init'&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;&quot;&gt;'fanfou_init'&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;;
&amp;nbsp;
&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;// }}}&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;</content:encoded><wfw:commentRss>http://www.phpvim.net/php/hook-wordpress-plugin-locale.html/feed</wfw:commentRss><description>由于某些原因，我需要在 WP 插件页面自定义 Locale，使插件的页面能够以用户选择的语言呈现，并且不影响 WordPress 的整体 Locale。
我们知道插件通过 API load_plugin_textdomain() 载入 Gettext mo 文件实现国际化，那么我们只要在载入 mo 之前 hook WordPress Locale 不就可以了？
粗略看了一下源码，发现其实很简单，WP 的 Locale 保存在全局变量 $locale 中，那么劫持它就好了。
以下是 fanfou-tools 的部分实现代码，非常简单：

// {{{ fanfou_init
&amp;#160;
/**
 * fanfou_init
 *
 * @access public
 * @return void
 */
function fanfou_init&amp;#40;&amp;#41; &amp;#123;
    global $wpdb, $fanfou;
    $wpdb-&amp;#62;fanfou = $wpdb-&amp;#62;prefix . 'fanfou';
  [...]</description><category>Plugin</category><category>PHP</category><category>Locale</category><category>WordPress</category><pubDate>Mon, 08 Sep 2008 08:49:13 +0800</pubDate><author>Verdana Mu</author><comments>http://www.phpvim.net/php/hook-wordpress-plugin-locale.html#comments</comments><guid isPermaLink="false">http://www.phpvim.net/?p=180</guid><dc:creator>Verdana Mu</dc:creator><fs:srclink>http://www.phpvim.net/php/hook-wordpress-plugin-locale.html</fs:srclink><fs:srcfeed>http://www.phpvim.net/feed</fs:srcfeed><fs:itemid>feedsky/verdana/~1471287/122121926/1487592</fs:itemid></item><item><title>新 Wordpress 主题 Devart</title><link>http://item.feedsky.com/~feedsky/verdana/~1471287/122121927/1487592/1/item.html</link><content:encoded>&lt;p&gt;换上了新的模板 Devart，由设计师deniartru制作，它采用了DeviantART的设计风格，如果喜欢这款模板，可以再 DeviantART 上下载。&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://deniartru.deviantart.com&quot;&gt;http://deniartru.deviantart.com&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://deniartru.deviantart.com/art/Devart-v1-0-Wordpress-Theme-95964439&quot;&gt;&lt;img src=&quot;http://www.phpvim.net/wp-content/uploads/2008/09/devart_v1_0___wordpress_theme_by_deniartrupng.jpeg&quot; alt=&quot;&quot; title=&quot;DevArt v1.0&quot; width=&quot;300&quot; height=&quot;314&quot; class=&quot;aligncenter size-full wp-image-175&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</content:encoded><wfw:commentRss>http://www.phpvim.net/wordpress/devart-wordpress-theme.html/feed</wfw:commentRss><description>换上了新的模板 Devart，由设计师deniartru制作，它采用了DeviantART的设计风格，如果喜欢这款模板，可以再 DeviantART 上下载。
http://deniartru.deviantart.com</description><category>Theme</category><category>DeviantArt</category><category>WordPress</category><pubDate>Sun, 07 Sep 2008 13:15:46 +0800</pubDate><author>Verdana Mu</author><comments>http://www.phpvim.net/wordpress/devart-wordpress-theme.html#comments</comments><guid isPermaLink="false">http://www.phpvim.net/?p=174</guid><dc:creator>Verdana Mu</dc:creator><fs:srclink>http://www.phpvim.net/wordpress/devart-wordpress-theme.html</fs:srclink><fs:srcfeed>http://www.phpvim.net/feed</fs:srcfeed><fs:itemid>feedsky/verdana/~1471287/122121927/1487592</fs:itemid></item><item><title>64位 Ubuntu 8.10 中使用 mplayer 播放 RMVB</title><link>http://item.feedsky.com/~feedsky/verdana/~1471287/122121928/1487592/1/item.html</link><content:encoded>&lt;p&gt;Ubuntu 下的播放器有很多，系统默认的是 Totem，而貌似更多人都喜欢 mplayer。&lt;/p&gt;
&lt;p&gt;首先可以卸载 Totem，如果你不喜欢系统中同时存在两个播放器的话，这一步可以使用 apt 或者 synaptic 轻松搞定。&lt;/p&gt;
&lt;p&gt;安装 mplayer：&lt;/p&gt;

&lt;div class=&quot;wp_syntax&quot;&gt;&lt;div class=&quot;code&quot;&gt;&lt;pre class=&quot;bash bash&quot; style=&quot;font-family:monospace;&quot;&gt;&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;sudo&lt;/span&gt; &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;apt-get&lt;/span&gt; &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;install&lt;/span&gt; &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;mplayer&lt;/span&gt; mplayer-fonts mplayer-skin mozilla-mplayer&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;然后登录 mplayer 官方网站，进入下载页面： &lt;a href=&quot;http://www.mplayerhq.hu/design7/dload.html&quot;&gt;http://www.mplayerhq.hu/design7/dload.html&lt;/a&gt;&lt;br /&gt;
下载解码器（Binary Codec Packages），由于我是安装的 64 位系统，所以选择了 64 位解码器（Linux AMD64 20071007）。&lt;br /&gt;
解压后，释放到 /usr/lib/codecs 目录中，指令如下：&lt;/p&gt;

&lt;div class=&quot;wp_syntax&quot;&gt;&lt;div class=&quot;code&quot;&gt;&lt;pre class=&quot;bash bash&quot; style=&quot;font-family:monospace;&quot;&gt;&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;sudo&lt;/span&gt; &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;mkdir&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;usr&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;lib&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;codecs
&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;tar&lt;/span&gt; jxvf essential-amd64-20071007.tar.bz2
&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;sudo&lt;/span&gt; &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;cp&lt;/span&gt; essential-amd64-&lt;span style=&quot;color: #000000;&quot;&gt;20071007&lt;/span&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/*&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;usr&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;lib&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;codecs&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;做完这两步以后，mplayer 应该就可以正常播放 rmvb 文件了，但是打开 rmvb 文件后，我得到了如下的错误：&lt;/p&gt;

&lt;div class=&quot;wp_syntax&quot;&gt;&lt;div class=&quot;code&quot;&gt;&lt;pre class=&quot;bash bash&quot; style=&quot;font-family:monospace;&quot;&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#91;&lt;/span&gt;VO_XV&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#93;&lt;/span&gt; It seems there is no Xvideo support &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;for&lt;/span&gt; your video card available.
&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#91;&lt;/span&gt;VO_XV&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#93;&lt;/span&gt; Run &lt;span style=&quot;color: #ff0000;&quot;&gt;'xvinfo'&lt;/span&gt; to verify its Xv support and &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;read&lt;/span&gt;
&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#91;&lt;/span&gt;VO_XV&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#93;&lt;/span&gt; DOCS&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;HTML&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;en&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;video.html&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;#xv!&lt;/span&gt;
&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#91;&lt;/span&gt;VO_XV&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#93;&lt;/span&gt; See &lt;span style=&quot;color: #ff0000;&quot;&gt;'mplayer -vo help'&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;for&lt;/span&gt; other &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;non-xv&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt; video out drivers.
&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#91;&lt;/span&gt;VO_XV&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#93;&lt;/span&gt; Try &lt;span style=&quot;color: #660033;&quot;&gt;-vo&lt;/span&gt; x11.
Error opening&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;initializing the selected video_out &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;-vo&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt; device.&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;使用 gedit 或者 vim 打开配置文件，修改一下视频驱动：&lt;/p&gt;

&lt;div class=&quot;wp_syntax&quot;&gt;&lt;div class=&quot;code&quot;&gt;&lt;pre class=&quot;bash bash&quot; style=&quot;font-family:monospace;&quot;&gt;&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;sudo&lt;/span&gt; &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;vim&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;etc&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;mplayer&lt;/span&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;mplayer.conf&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;将 vo=xv 修改为 vo=x11，保存退出。&lt;br /&gt;
然后启动 mplayer 后，打开 Preference -&gt; Video，选择 X11 (XImage/Shm)，保存，重启 mplayer。&lt;/p&gt;
&lt;p&gt;OK，这样不论是 Terminal 中命令行启动，还是 File Browser 中双击 rmvb 文件，都可以正常播放 rmvb 了。&lt;/p&gt;
&lt;p&gt;其它一些设置可以参考 &lt;a href=&quot;http://wiki.ubuntu.org.cn&quot;&gt;http://wiki.ubuntu.org.cn&lt;/a&gt;&lt;/p&gt;</content:encoded><wfw:commentRss>http://www.phpvim.net/uncategorized/play-rmvb-mplayer-ubuntu-intrepid.html/feed</wfw:commentRss><description>Ubuntu 下的播放器有很多，系统默认的是 Totem，而貌似更多人都喜欢 mplayer。
首先可以卸载 Totem，如果你不喜欢系统中同时存在两个播放器的话，这一步可以使用 apt 或者 synaptic 轻松搞定。
安装 mplayer：

sudo apt-get install mplayer mplayer-fonts mplayer-skin mozilla-mplayer

然后登录 mplayer 官方网站，进入下载页面： http://www.mplayerhq.hu/design7/dload.html
下载解码器（Binary Codec Packages），由于我是安装的 64 位系统，所以选择了 64 位解码器（Linux AMD64 20071007）。
解压后，释放到 /usr/lib/codecs 目录中，指令如下：

sudo mkdir /usr/lib/codecs
tar jxvf essential-amd64-20071007.tar.bz2
sudo cp essential-amd64-20071007/* /usr/lib/codecs

做完这两步以后，mplayer 应该就可以正常播放 rmvb 文件了，但是打开 rmvb 文件后，我得到了如下的错误：

&amp;#91;VO_XV&amp;#93; It seems there is no Xvideo support for your video card available.
&amp;#91;VO_XV&amp;#93; Run 'xvinfo' [...]</description><category>Ubuntu</category><category>Linux</category><category>Uncategorized</category><category>Intrepid</category><category>mplayer</category><pubDate>Fri, 05 Sep 2008 05:05:24 +0800</pubDate><author>Verdana Mu</author><comments>http://www.phpvim.net/uncategorized/play-rmvb-mplayer-ubuntu-intrepid.html#comments</comments><guid isPermaLink="false">http://www.phpvim.net/?p=171</guid><dc:creator>Verdana Mu</dc:creator><fs:srclink>http://www.phpvim.net/uncategorized/play-rmvb-mplayer-ubuntu-intrepid.html</fs:srclink><fs:srcfeed>http://www.phpvim.net/feed</fs:srcfeed><fs:itemid>feedsky/verdana/~1471287/122121928/1487592</fs:itemid></item><item><title>使用 Putty 自动登陆远程 Linux 主机</title><link>http://item.feedsky.com/~feedsky/verdana/~1471287/122121929/1487592/1/item.html</link><content:encoded>&lt;p&gt;由于工作需要，经常要从 Windows 主机访问远程的 Ubuntu 服务器，每次输入账号和老长的密码，感觉很麻烦，于是参考网上的教程简单的设置了一下就能自动登陆远程主机了，非常的方便。&lt;/p&gt;
&lt;p&gt;虽然 Putty 也提供了 puttygen.exe 生成公/密钥，但是和 Linux 主机生成的 KEY 格式不同，需要手工修改格式，所以我采用 Linux 主机自己生成 KEY 的方式。&lt;/p&gt;
&lt;p&gt;首先登陆到 Linux 主机，具体过程如下：&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;1. 生成公钥和密钥&lt;/strong&gt;&lt;/p&gt;

&lt;div class=&quot;wp_syntax&quot;&gt;&lt;div class=&quot;code&quot;&gt;&lt;pre class=&quot;bash bash&quot; style=&quot;font-family:monospace;&quot;&gt;verdana&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;@&lt;/span&gt;&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;hostname&lt;/span&gt;:~$ &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;ssh-keygen&lt;/span&gt; &lt;span style=&quot;color: #660033;&quot;&gt;-t&lt;/span&gt; rsa
Generating public&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;private rsa key pair.
Enter &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;file&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;in&lt;/span&gt; &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;which&lt;/span&gt; to save the key &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;home&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;verdana&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;.ssh&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;id_rsa&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt;:
Enter passphrase &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;empty &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;for&lt;/span&gt; no passphrase&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt;:
Enter same passphrase again:
Your identification has been saved &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;in&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;home&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;verdana&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;.ssh&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;id_rsa.
Your public key has been saved &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;in&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;home&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;verdana&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;.ssh&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;id_rsa.pub.
The key fingerprint is:
&lt;span style=&quot;color: #000000;&quot;&gt;51&lt;/span&gt;:&lt;span style=&quot;color: #000000;&quot;&gt;51&lt;/span&gt;:da:&lt;span style=&quot;color: #000000;&quot;&gt;44&lt;/span&gt;:&lt;span style=&quot;color: #000000;&quot;&gt;28&lt;/span&gt;:b5:&lt;span style=&quot;color: #000000;&quot;&gt;83&lt;/span&gt;:de:d2:1e:&lt;span style=&quot;color: #000000;&quot;&gt;60&lt;/span&gt;:4f:&lt;span style=&quot;color: #000000;&quot;&gt;81&lt;/span&gt;:c9:f1:1a verdana&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;@&lt;/span&gt;hostname.com&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;注意 passphrase 留空。&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;2. 将公钥改名为 authorized_keys&lt;/strong&gt;&lt;/p&gt;

&lt;div class=&quot;wp_syntax&quot;&gt;&lt;div class=&quot;code&quot;&gt;&lt;pre class=&quot;bash bash&quot; style=&quot;font-family:monospace;&quot;&gt;verdana&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;@&lt;/span&gt;&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;hostname&lt;/span&gt;:~&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;.ssh$ &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;mv&lt;/span&gt; id_rsa.pub authorized_keys&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;3. 下载私钥并转换为 Putty 可识别的格式&lt;/strong&gt;&lt;br /&gt;
Putty 无法识别 Linux 主机生成的的私钥，所以需要用 puttygen.exe 转换一下。&lt;br /&gt;
a) 使用 FTP 软件或者其它方式将生成的密钥 id_rsa 拷贝到客户端主机，这里我的客户端是 Vista 系统&lt;br /&gt;
b) 打开puttygen.exe，点击菜单上的：转换-&gt;导入密钥-&gt;保存密钥（如：id_rsa.ppk），密钥即转换完成，这里不设置密码保护&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;4. 设置 Putty&lt;/strong&gt;&lt;br /&gt;
打开 Putty&lt;br /&gt;
a) 会话，主机名称填入：yourname@yourhost，yourname 是你的 Linux 主机登陆名称，yourhost 是 IP 或者远程主机域名。&lt;br /&gt;
b) 连接-&gt;SSH-&gt;认证-&gt;浏览，选择刚才转换后的密钥（id_rsa.ppk），之后保存会话即可。&lt;/p&gt;</content:encoded><wfw:commentRss>http://www.phpvim.net/ubuntu/auto-login-using-putty.html/feed</wfw:commentRss><description>由于工作需要，经常要从 Windows 主机访问远程的 Ubuntu 服务器，每次输入账号和老长的密码，感觉很麻烦，于是参考网上的教程简单的设置了一下就能自动登陆远程主机了，非常的方便。
虽然 Putty 也提供了 puttygen.exe 生成公/密钥，但是和 Linux 主机生成的 KEY 格式不同，需要手工修改格式，所以我采用 Linux 主机自己生成 KEY 的方式。
首先登陆到 Linux 主机，具体过程如下：
1. 生成公钥和密钥

verdana@hostname:~$ ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key &amp;#40;/home/verdana/.ssh/id_rsa&amp;#41;:
Enter passphrase &amp;#40;empty for no passphrase&amp;#41;:
Enter same passphrase again:
Your identification has been saved in /home/verdana/.ssh/id_rsa.
Your public key has been saved in [...]</description><category>Linux</category><category>Ubuntu</category><category>Putty</category><pubDate>Sun, 24 Aug 2008 06:50:08 +0800</pubDate><author>Verdana Mu</author><comments>http://www.phpvim.net/ubuntu/auto-login-using-putty.html#comments</comments><guid isPermaLink="false">http://www.phpvim.net/?p=164</guid><dc:creator>Verdana Mu</dc:creator><fs:srclink>http://www.phpvim.net/ubuntu/auto-login-using-putty.html</fs:srclink><fs:srcfeed>http://www.phpvim.net/feed</fs:srcfeed><fs:itemid>feedsky/verdana/~1471287/122121929/1487592</fs:itemid></item><item><title>Daily Links for 2008-07-30</title><link>http://item.feedsky.com/~feedsky/verdana/~1471287/122121930/1487592/1/item.html</link><content:encoded>&lt;ul class=&quot;delicious&quot;&gt;
&lt;li&gt;
&lt;div class=&quot;delicious-link&quot;&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://marc.info/?l=php-internals&amp;#038;m=121502894019535&quot;&gt;towards a 5.3 release&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;</content:encoded><wfw:commentRss>http://www.phpvim.net/uncategorized/daily-links-for-2008-07-30.html/feed</wfw:commentRss><description>towards a 5.3 release</description><category>Uncategorized</category><pubDate>Wed, 30 Jul 2008 23:30:47 +0800</pubDate><author>Verdana Mu</author><comments>http://www.phpvim.net/uncategorized/daily-links-for-2008-07-30.html#comments</comments><guid isPermaLink="false">http://www.phpvim.net/uncategorized/daily-links-for-2008-07-30.html</guid><dc:creator>Verdana Mu</dc:creator><fs:srclink>http://www.phpvim.net/uncategorized/daily-links-for-2008-07-30.html</fs:srclink><fs:srcfeed>http://www.phpvim.net/feed</fs:srcfeed><fs:itemid>feedsky/verdana/~1471287/122121930/1487592</fs:itemid></item><item><title>Daily Links for 2008-07-24</title><link>http://item.feedsky.com/~feedsky/verdana/~1471287/122121931/1487592/1/item.html</link><content:encoded>&lt;ul class=&quot;delicious&quot;&gt;
&lt;li&gt;
&lt;div class=&quot;delicious-link&quot;&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://www.lighttpd.net/&quot;&gt;lighttpd fly light&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div class=&quot;delicious-link&quot;&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://www.squid-cache.org/&quot;&gt;squid : Optimising Web Delivery&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;</content:encoded><wfw:commentRss>http://www.phpvim.net/uncategorized/daily-links-for-2008-07-24.html/feed</wfw:commentRss><description>lighttpd fly light


squid : Optimising Web Delivery</description><category>Uncategorized</category><pubDate>Thu, 24 Jul 2008 23:30:45 +0800</pubDate><author>Verdana Mu</author><comments>http://www.phpvim.net/uncategorized/daily-links-for-2008-07-24.html#comments</comments><guid isPermaLink="false">http://www.phpvim.net/uncategorized/daily-links-for-2008-07-24.html</guid><dc:creator>Verdana Mu</dc:creator><fs:srclink>http://www.phpvim.net/uncategorized/daily-links-for-2008-07-24.html</fs:srclink><fs:srcfeed>http://www.phpvim.net/feed</fs:srcfeed><fs:itemid>feedsky/verdana/~1471287/122121931/1487592</fs:itemid></item><item><title>C# 中读写 Ini 文件</title><link>http://item.feedsky.com/~feedsky/verdana/~1471287/122121947/1487592/1/item.html</link><content:encoded>&lt;div class=&quot;wp_syntax&quot;&gt;&lt;div class=&quot;code&quot;&gt;&lt;pre class=&quot;csharp csharp&quot; style=&quot;font-family:monospace;&quot;&gt;&lt;span style=&quot;color: #0600FF;&quot;&gt;using&lt;/span&gt; &lt;span style=&quot;color: #008080;&quot;&gt;System&lt;/span&gt;;
&lt;span style=&quot;color: #0600FF;&quot;&gt;using&lt;/span&gt; &lt;span style=&quot;color: #008080;&quot;&gt;System.Collections.Generic&lt;/span&gt;;
&lt;span style=&quot;color: #0600FF;&quot;&gt;using&lt;/span&gt; &lt;span style=&quot;color: #008080;&quot;&gt;System.Linq&lt;/span&gt;;
&lt;span style=&quot;color: #0600FF;&quot;&gt;using&lt;/span&gt; &lt;span style=&quot;color: #008080;&quot;&gt;System.Text&lt;/span&gt;;
&lt;span style=&quot;color: #0600FF;&quot;&gt;using&lt;/span&gt; &lt;span style=&quot;color: #008080;&quot;&gt;System.Runtime.InteropServices&lt;/span&gt;;
&amp;nbsp;
&lt;span style=&quot;color: #0600FF;&quot;&gt;namespace&lt;/span&gt; WaceManager.&lt;span style=&quot;color: #0000FF;&quot;&gt;Classes&lt;/span&gt;
&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#123;&lt;/span&gt;
    &lt;span style=&quot;color: #0600FF;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #FF0000;&quot;&gt;class&lt;/span&gt; IniProcess
    &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#123;&lt;/span&gt;
        &lt;span style=&quot;color: #0600FF;&quot;&gt;private&lt;/span&gt; &lt;span style=&quot;color: #FF0000;&quot;&gt;string&lt;/span&gt; path;
&amp;nbsp;
        &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#91;&lt;/span&gt;DllImport&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #666666;&quot;&gt;&amp;quot;kernel32&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#93;&lt;/span&gt;
        &lt;span style=&quot;color: #0600FF;&quot;&gt;private&lt;/span&gt; &lt;span style=&quot;color: #0600FF;&quot;&gt;static&lt;/span&gt; &lt;span style=&quot;color: #0600FF;&quot;&gt;extern&lt;/span&gt; &lt;span style=&quot;color: #FF0000;&quot;&gt;long&lt;/span&gt; WritePrivateProfileString&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt;
            &lt;span style=&quot;color: #FF0000;&quot;&gt;string&lt;/span&gt; section, &lt;span style=&quot;color: #FF0000;&quot;&gt;string&lt;/span&gt; key, &lt;span style=&quot;color: #FF0000;&quot;&gt;string&lt;/span&gt; value, &lt;span style=&quot;color: #FF0000;&quot;&gt;string&lt;/span&gt; filePath&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt;;
&amp;nbsp;
        &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#91;&lt;/span&gt;DllImport&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #666666;&quot;&gt;&amp;quot;kernel32&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#93;&lt;/span&gt;
        &lt;span style=&quot;color: #0600FF;&quot;&gt;private&lt;/span&gt; &lt;span style=&quot;color: #0600FF;&quot;&gt;static&lt;/span&gt; &lt;span style=&quot;color: #0600FF;&quot;&gt;extern&lt;/span&gt; &lt;span style=&quot;color: #FF0000;&quot;&gt;int&lt;/span&gt; GetPrivateProfileString&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt;
            &lt;span style=&quot;color: #FF0000;&quot;&gt;string&lt;/span&gt; section, &lt;span style=&quot;color: #FF0000;&quot;&gt;string&lt;/span&gt; key, &lt;span style=&quot;color: #FF0000;&quot;&gt;string&lt;/span&gt; def, 
            StringBuilder retVal, &lt;span style=&quot;color: #FF0000;&quot;&gt;int&lt;/span&gt; size, &lt;span style=&quot;color: #FF0000;&quot;&gt;string&lt;/span&gt; filePath&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt;;
&amp;nbsp;
        &lt;span style=&quot;color: #0600FF;&quot;&gt;public&lt;/span&gt; IniProcess &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #FF0000;&quot;&gt;string&lt;/span&gt; iniPath&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#123;&lt;/span&gt;
            &lt;span style=&quot;color: #0600FF;&quot;&gt;this&lt;/span&gt;.&lt;span style=&quot;color: #0000FF;&quot;&gt;path&lt;/span&gt; &lt;span style=&quot;color: #008000;&quot;&gt;=&lt;/span&gt; iniPath;
        &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
        &lt;span style=&quot;color: #0600FF;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #0600FF;&quot;&gt;void&lt;/span&gt; write&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #FF0000;&quot;&gt;string&lt;/span&gt; section, &lt;span style=&quot;color: #FF0000;&quot;&gt;string&lt;/span&gt; key, &lt;span style=&quot;color: #FF0000;&quot;&gt;string&lt;/span&gt; value&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#123;&lt;/span&gt;
            WritePrivateProfileString&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt;section, key, value, &lt;span style=&quot;color: #0600FF;&quot;&gt;this&lt;/span&gt;.&lt;span style=&quot;color: #0000FF;&quot;&gt;path&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt;;
        &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
        &lt;span style=&quot;color: #0600FF;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #FF0000;&quot;&gt;string&lt;/span&gt; read&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #FF0000;&quot;&gt;string&lt;/span&gt; section, &lt;span style=&quot;color: #FF0000;&quot;&gt;string&lt;/span&gt; key, &lt;span style=&quot;color: #FF0000;&quot;&gt;string&lt;/span&gt; defaultValue&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#123;&lt;/span&gt;
            StringBuilder temp &lt;span style=&quot;color: #008000;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #008000;&quot;&gt;new&lt;/span&gt; StringBuilder&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #FF0000;&quot;&gt;255&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt;;
            GetPrivateProfileString&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt;section, key, &lt;span style=&quot;color: #666666;&quot;&gt;&amp;quot;&amp;quot;&lt;/span&gt;, temp, &lt;span style=&quot;color: #FF0000;&quot;&gt;1024&lt;/span&gt;, &lt;span style=&quot;color: #0600FF;&quot;&gt;this&lt;/span&gt;.&lt;span style=&quot;color: #0000FF;&quot;&gt;path&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt;;
            &lt;span style=&quot;color: #0600FF;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt;temp.&lt;span style=&quot;color: #0000FF;&quot;&gt;Length&lt;/span&gt; &lt;span style=&quot;color: #008000;&quot;&gt;&amp;gt;&lt;/span&gt; 0&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #008000;&quot;&gt;?&lt;/span&gt; temp.&lt;span style=&quot;color: #0000FF;&quot;&gt;ToString&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #008000;&quot;&gt;:&lt;/span&gt; defaultValue;
        &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#125;&lt;/span&gt;
    &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#125;&lt;/span&gt;
&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
&lt;span style=&quot;color: #008080; font-style: italic;&quot;&gt;/* vim: set expandtab tabstop=4 shiftwidth=4: */&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;</content:encoded><wfw:commentRss>http://www.phpvim.net/uncategorized/c-%e4%b8%ad%e8%af%bb%e5%86%99-ini-%e6%96%87%e4%bb%b6.html/feed</wfw:commentRss><description>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.InteropServices;
&amp;#160;
namespace WaceManager.Classes
&amp;#123;
    public class IniProcess
    &amp;#123;
        private string path;
&amp;#160;
        &amp;#91;DllImport&amp;#40;&amp;#34;kernel32&amp;#34;&amp;#41;&amp;#93;
        private static extern long WritePrivateProfileString&amp;#40;
         [...]</description><category>Uncategorized</category><category>Ini</category><category>CSharp</category><pubDate>Tue, 18 Dec 2007 08:29:46 +0800</pubDate><author>Verdana Mu</author><comments>http://www.phpvim.net/uncategorized/c-%e4%b8%ad%e8%af%bb%e5%86%99-ini-%e6%96%87%e4%bb%b6.html#comments</comments><guid isPermaLink="false">http://www.phpvim.net/uncategorized/c-%e4%b8%ad%e8%af%bb%e5%86%99-ini-%e6%96%87%e4%bb%b6.html</guid><dc:creator>Verdana Mu</dc:creator><fs:srclink>http://www.phpvim.net/uncategorized/c-%e4%b8%ad%e8%af%bb%e5%86%99-ini-%e6%96%87%e4%bb%b6.html</fs:srclink><fs:srcfeed>http://www.phpvim.net/feed</fs:srcfeed><fs:itemid>feedsky/verdana/~1471287/122121947/1487592</fs:itemid></item><item><title>Daily Links for 2007-11-19</title><link>http://item.feedsky.com/~feedsky/verdana/~1471287/122121948/1487592/1/item.html</link><content:encoded>&lt;ul class=&quot;delicious&quot;&gt;
&lt;li&gt;
&lt;div class=&quot;delicious-link&quot;&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://www.dscpl.com.au/wiki/ModPython/Articles/ExpatCausingApacheCrash&quot;&gt;ModPython/Articles/ExpatCausingApacheCrash&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;delicious-extended&quot;&gt;Expat Causing Apache Crash&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;</content:encoded><wfw:commentRss>http://www.phpvim.net/uncategorized/daily-links-for-2007-11-19.html/feed</wfw:commentRss><description>ModPython/Articles/ExpatCausingApacheCrash
Expat Causing Apache Crash</description><category>Uncategorized</category><pubDate>Mon, 19 Nov 2007 23:20:19 +0800</pubDate><author>Verdana Mu</author><comments>http://www.phpvim.net/uncategorized/daily-links-for-2007-11-19.html#comments</comments><guid isPermaLink="false">http://www.phpvim.net/uncategorized/daily-links-for-2007-11-19.html</guid><dc:creator>Verdana Mu</dc:creator><fs:srclink>http://www.phpvim.net/uncategorized/daily-links-for-2007-11-19.html</fs:srclink><fs:srcfeed>http://www.phpvim.net/feed</fs:srcfeed><fs:itemid>feedsky/verdana/~1471287/122121948/1487592</fs:itemid></item><item><title>Daily Links for 2007-11-16</title><link>http://item.feedsky.com/~feedsky/verdana/~1471287/122121952/1487592/1/item.html</link><content:encoded>&lt;ul class=&quot;delicious&quot;&gt;
&lt;li&gt;
&lt;div class=&quot;delicious-link&quot;&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://bbs.iusesvn.com/thread-158-1-1.html&quot;&gt;windows安装基于Apache的SVN服务器&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;delicious-extended&quot;&gt; SVN中文论坛 翻译整理： PCplayer&lt;/p&gt;
&lt;p&gt;关键词：subversion 安装 服务器 配置 apache ssl&lt;br /&gt;
最后更新：2007-8-19&lt;br /&gt;
版本：v1.0&lt;/p&gt;
&lt;p&gt;修改历史：&lt;br /&gt;
v0.1 2006-08-06&lt;br /&gt;
v0.2 2006-09-10 加入ssl的配置&lt;br /&gt;
v0 &amp;#8230; - Discuz! Board&lt;/p&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div class=&quot;delicious-link&quot;&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://blog.blogwhy.com/info/e_9218.html&quot;&gt;Apache配置SSl - 大狗熊的酸奶屋&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div class=&quot;delicious-link&quot;&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://www.oo8h.com/news_303.html&quot;&gt;Win32 平台下 Apache+SSL 配置指南 - 笑容网事&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div class=&quot;delicious-link&quot;&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://www.linuxfromscratch.org/blfs/view/svn/basicnet/subversion.html&quot;&gt;Subversion-1.4.4&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div class=&quot;delicious-link&quot;&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://www.mechanicalcat.net/tech/roundup/svn-roundup&quot;&gt;Subversion - Roundup Integration&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;</content:encoded><wfw:commentRss>http://www.phpvim.net/uncategorized/daily-links-for-2007-11-16.html/feed</wfw:commentRss><description>windows安装基于Apache的SVN服务器
 SVN中文论坛 翻译整理： PCplayer
关键词：subversion 安装 服务器 配置 apache ssl
最后更新：2007-8-19
版本：v1.0
修改历史：
v0.1 2006-08-06
v0.2 2006-09-10 加入ssl的配置
v0 &amp;#8230; - Discuz! Board


Apache配置SSl - 大狗熊的酸奶屋


Win32 平台下 Apache+SSL 配置指南 - 笑容网事


Subversion-1.4.4


Subversion - Roundup Integration</description><category>Uncategorized</category><pubDate>Fri, 16 Nov 2007 23:20:27 +0800</pubDate><author>Verdana Mu</author><comments>http://www.phpvim.net/uncategorized/daily-links-for-2007-11-16.html#comments</comments><guid isPermaLink="false">http://www.phpvim.net/uncategorized/daily-links-for-2007-11-16.html</guid><dc:creator>Verdana Mu</dc:creator><fs:srclink>http://www.phpvim.net/uncategorized/daily-links-for-2007-11-16.html</fs:srclink><fs:srcfeed>http://www.phpvim.net/feed</fs:srcfeed><fs:itemid>feedsky/verdana/~1471287/122121952/1487592</fs:itemid></item></channel></rss>