<?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>wd and cc</title>
	<atom:link href="http://wdicc.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://wdicc.com</link>
	<description>Happy every day...</description>
	<lastBuildDate>Thu, 11 Mar 2010 06:46:29 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>用 emacs 写 blog</title>
		<link>http://wdicc.com/use-emacs-publish-your-blog/</link>
		<comments>http://wdicc.com/use-emacs-publish-your-blog/#comments</comments>
		<pubDate>Wed, 10 Mar 2010 15:35:16 +0000</pubDate>
		<dc:creator>wd</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[emacs]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://wdicc.com/use-emacs-publish-your-blog/</guid>
		<description><![CDATA[


 不想看大段文字的可以直接看 http://github.com/wd/work/tree/master/weblogger.el/。
先看看 这个， 我用的weblogger.el 就是从那来的，这个 el 打了 html 支持和 tags(summary) 的支持。
因为写中文 title 的时... ]]></description>
			<content:encoded><![CDATA[<p style="float: right;margin: 4px;"><script type="text/javascript"><!--
google_ad_client = "pub-9015557074547192";
google_ad_width = 300;
google_ad_height = 250;
google_ad_format = "300x250_as";
google_ad_type = "text";
//2007-06-17: index
google_ad_channel = "2704127095";
google_color_border = "940F04";
google_color_bg = "FFFFFF";
google_color_link = "940F04";
google_color_text = "000000";
google_color_url = "0066CC";
//-->
</script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p> <p>不想看大段文字的可以直接看 http://github.com/wd/work/tree/master/weblogger.el/。</p>
<p>先看看 <a href="http://emacser.com/weblogger.htm">这个</a>， 我用的weblogger.el 就是从那来的，这个 el 打了 html 支持和 tags(summary) 的支持。</p>
<p>因为写中文 title 的时候，生成的 url 会有一堆的中文字符，看起来就是乱码，不可读，这时候可以在 wp 的后台指定一个 post-slug，url 会根据这个生成。这里我主要是研究了一下对 post-slug 的支持。</p>
<p>weblogger.el 里面 应该是在 weblogger-determine-capabilities 里面判断一下你的 blog 支持的类型，我看了 wordpress 的支持的 methods，里面metaWeblog.newPost, 和 blogger.newPost 应该都是支持的，他应该首选的是 metaWeblog 那个。</p>
<p>然后呢，就是看 wp 的 xml-rpc 文件，里面有个 mw_newPost 对应的就是 metaWeblog.newPost 应该是。在这个函数头试了一把，用的确实是这个。然后就看这里面是怎么处理的了。</p>
<p>这里面最后用的是 wp_insert_post 发的贴子，再看这个函数，能看到里面用的是 post_name 来生成的 post-slug。那么我们只要设置一下这个变量就可以了。在这个函数里面，搜一下 post-name 能看到</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">// Let WordPress generate the post_name (slug) unless</span>
<span style="color: #666666; font-style: italic;">// one has been provided.</span>
<span style="color: #000088;">$post_name</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$content_struct</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;wp_slug&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000088;">$post_name</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$content_struct</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;wp_slug&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>我们只要在 weblogger.el 里面 post 一个这个变量就好了。在 post 里面能看到如果有个 X-url 的话，他会 post 一个 link 字段出来。那就好了，把上面那个 wp_slug 改成 link，然后写 blog 的时候加一个字段 X-url 就会使用这个你指定的 url 了。</p>
<p>这个文章就是用 emacs 写的。 <img src='http://wdicc.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>又研究了下，再补充点内容，呵呵。(2010-03-10)</p>
<p>问题是这样的，新建一个 post 的时候会出来 subject, keywords, newsgroup 这三个字段，怎么能让他加上 summary 和 x-url 呢，这样我就不用每次都手动写了，怎么弄呢，我就找啊找啊，总算找到方法了。</p>
<p>新建的 buffer 里面不是会有个提示么，什么 &#8216;&#8211;text follows this line &#8211;&#8217;, 就找这个，看是哪里提供的。在 weblogger.el 里面，找了半天，发现没有这个提示。怎么回事？要相信程序，肯定是会有的，只能是找错了地方。</p>
<p>看看这个 el 的看头，引用了 message.el，搜了一下，这个原来是 gnus 提供的，找到这个 el，搜了一下，找到那几个字符了。原来是在这里面添加的。然后我就尝试定义 message-required-news-headers 这个变量，发现不好用，看来还是得在 weblogger.el 里面弄。在这里面找到 weblogger-edit-entry 这个函数，这个就是发帖子的时候用的，在里面有个顺序往下看，这个 message-goto-keywords 比较可疑，在 message.el 里面搜了下，果然，同时还看到一个 message-goto-summary，加上看看，嘿嘿，果然就搞定了。再找找 x-url，没找到，那就仿 summary 的写一个呗</p>

<div class="wp_syntax"><div class="code"><pre class="lisp" style="font-family:monospace;"><span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">defun</span> message-goto-x-url <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>
  <span style="color: #ff0000;">&quot;Move point to the x-url header.&quot;</span>
  <span style="color: #66cc66;">&#40;</span>interactive<span style="color: #66cc66;">&#41;</span>
  <span style="color: #66cc66;">&#40;</span>message-position-on-field <span style="color: #ff0000;">&quot;X-url&quot;</span> <span style="color: #ff0000;">&quot;Subject&quot;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span></pre></div></div>

<p>这不完了么，这下就爽多了，嘿嘿。。不过如果能把那些 keywords, summary 等字段改成什么 categories,tags 就好了。。。有时间看看。。。</p>
<p>又研究了一下，加点内容。。(2010-03-11)</p>
<p>其实就是上面留的这点东西，我自己改吧了一下，好像能用了。地址在 http://github.com/wd/work/tree/master/weblogger.el/，里面的 permlink 就是指定 url 的。我看发文章好像没问题了。</p>
<p>另外，我试着在这个 mode 里面让他自动启动 auto-complete-mode，可是怎么弄都不行，不知道怎么回事。下面是我在 .emacs 用的代码。</p>

<div class="wp_syntax"><div class="code"><pre class="lisp" style="font-family:monospace;"><span style="color: #66cc66;">&#40;</span>add-hook 'weblogger-start-edit-entry-hook <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">lambda</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>
    <span style="color: #66cc66;">&#40;</span>auto-fill-mode -<span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span>
    <span style="color: #66cc66;">&#40;</span>abbrev-mode -<span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span>
    <span style="color: #66cc66;">&#40;</span>auto-complete-mode <span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span>
    <span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span></pre></div></div>

<p>有人能帮忙不。。。</p>
]]></content:encoded>
			<wfw:commentRss>http://wdicc.com/use-emacs-publish-your-blog/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Twitter Weekly Updates for 2010-03-01</title>
		<link>http://wdicc.com/twitter-weekly-updates-for-2010-03-01/</link>
		<comments>http://wdicc.com/twitter-weekly-updates-for-2010-03-01/#comments</comments>
		<pubDate>Mon, 01 Mar 2010 10:00:00 +0000</pubDate>
		<dc:creator>wd</dc:creator>
				<category><![CDATA[Heart]]></category>

		<guid isPermaLink="false">http://wdicc.com/twitter-weekly-updates-for-2010-03-01/</guid>
		<description><![CDATA[


 
淘宝招贤  http://bbs.dwway.com/thread-26658-1-1.html  http://bbs.dwway.com/thread-26659-1-1.html #
http://androidin.net/bbs/viewthread.php?tid=43948&#38;extra=&#38;page=1 用 android 的美女 #

Powered by Twitter Tools... ]]></description>
			<content:encoded><![CDATA[<ul class="aktt_tweet_digest">
<li>淘宝招贤  <a href="http://bbs.dwway.com/thread-26658-1-1.html" rel="nofollow">http://bbs.dwway.com/thread-26658-1-1.html</a>  <a href="http://bbs.dwway.com/thread-26659-1-1.html" rel="nofollow">http://bbs.dwway.com/thread-26659-1-1.html</a> <a href="http://twitter.com/wd/statuses/9813841859" class="aktt_tweet_time">#</a></li>
<li><a href="http://androidin.net/bbs/viewthread.php?tid=43948&amp;extra=&amp;page=1" rel="nofollow">http://androidin.net/bbs/viewthread.php?tid=43948&amp;extra=&amp;page=1</a> 用 android 的美女 <a href="http://twitter.com/wd/statuses/9759188041" class="aktt_tweet_time">#</a></li>
</ul>
<p class="aktt_credit">Powered by <a href="http://alexking.org/projects/wordpress">Twitter Tools</a></p>
]]></content:encoded>
			<wfw:commentRss>http://wdicc.com/twitter-weekly-updates-for-2010-03-01/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Twitter Weekly Updates for 2010-03-01</title>
		<link>http://wdicc.com/twitter-weekly-updates-for-2010-03-01/</link>
		<comments>http://wdicc.com/twitter-weekly-updates-for-2010-03-01/#comments</comments>
		<pubDate>Mon, 01 Mar 2010 10:00:00 +0000</pubDate>
		<dc:creator>wd</dc:creator>
				<category><![CDATA[Heart]]></category>
		<category><![CDATA[tweets]]></category>

		<guid isPermaLink="false">http://wdicc.com/twitter-weekly-updates-for-2010-03-01/</guid>
		<description><![CDATA[
淘宝招贤  http://bbs.dwway.com/thread-26658-1-1.html  http://bbs.dwway.com/thread-26659-1-1.html #
http://androidin.net/bbs/viewthread.php?tid=43948&#38;extra=&#38;page=1 用 android 的美女 #

Powered by Twitter Tools... ]]></description>
			<content:encoded><![CDATA[<ul class="aktt_tweet_digest">
<li>淘宝招贤  <a href="http://bbs.dwway.com/thread-26658-1-1.html" rel="nofollow">http://bbs.dwway.com/thread-26658-1-1.html</a>  <a href="http://bbs.dwway.com/thread-26659-1-1.html" rel="nofollow">http://bbs.dwway.com/thread-26659-1-1.html</a> <a href="http://twitter.com/wd/statuses/9813841859" class="aktt_tweet_time">#</a></li>
<li><a href="http://androidin.net/bbs/viewthread.php?tid=43948&amp;extra=&amp;page=1" rel="nofollow">http://androidin.net/bbs/viewthread.php?tid=43948&amp;extra=&amp;page=1</a> 用 android 的美女 <a href="http://twitter.com/wd/statuses/9759188041" class="aktt_tweet_time">#</a></li>
</ul>
<p class="aktt_credit">Powered by <a href="http://alexking.org/projects/wordpress">Twitter Tools</a></p>
]]></content:encoded>
			<wfw:commentRss>http://wdicc.com/twitter-weekly-updates-for-2010-03-01/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Jemplate 的简单介绍</title>
		<link>http://wdicc.com/introduce-to-jemplate/</link>
		<comments>http://wdicc.com/introduce-to-jemplate/#comments</comments>
		<pubDate>Sat, 27 Feb 2010 01:35:09 +0000</pubDate>
		<dc:creator>wd</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[jemplate]]></category>
		<category><![CDATA[js]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://wdicc.com/?p=662</guid>
		<description><![CDATA[如果你还在用 php 写 web，那么你 out 了，呵呵。现在流行的是 rest + js。当然，rest 层可能还是 php 写的，不过还有用 perl 写的 openresty 1.0 和完全用 c 写的 openresty 2.0。openresty 是个很不错的东西，... ]]></description>
			<content:encoded><![CDATA[<p>如果你还在用 php 写 web，那么你 out 了，呵呵。现在流行的是 rest + js。当然，rest 层可能还是 php 写的，不过还有用 perl 写的 openresty 1.0 和完全用 c 写的 openresty 2.0。openresty 是个很不错的东西，本来想细说一下，发现不知道怎么说好。去 cpan 上面搜吧。openresty 2.0 是基于 nginx 的，agentzh 在他上面加了好多的模块，让 nginx 直接和数据库通信，都不用 php 了。前端完全用 js 来搞定，以后应该都是 js 工程师了。</p>
<p>smarty 写 php 的人应该都知道吧，Jemplate 是很类似的一个东西，是方便你写 js 的一个工具。我这写了一个非常简单的例子。</p>
<p>下面这个是 Jemplate 的一个模板，保存为 test.tt。</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;div&gt;[% test %]&lt;/div&gt;
&lt;p&gt;
[% FILTER html %]
    asdff &lt; sdf &gt; sdfsdf
[% END %]
&lt;/p&gt;</pre></div></div>

<p>然后用 Jemplate 编译一下</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">jemplate <span style="color: #660033;">--runtime</span> <span style="color: #000000; font-weight: bold;">&gt;</span> a.js
jemplate <span style="color: #660033;">--compile</span> test.tt <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> a.js</pre></div></div>

<p>这之后就和 test.tt 没关系了，除非你改了他，那就需要重新生成这个 a.js。</p>
<p>再看我们的页面。里面 jquery-1.4.2.min.js 是为了方便操作页面使用的，jquery 决对是个好东西，写 js 应该使用他。那个 jquery.b.js 是我们自己写的，真正把数据添加到页面的代码。</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;html&gt;
&lt;head&gt;
    &lt;meta http-equiv=&quot;content-type&quot; content=&quot;text/html; charset=utf-8&quot;&gt;
    &lt;title&gt;test&lt;/title&gt;
    &lt;script src='jquery-1.4.2.min.js' type=&quot;text/javascript&quot; charset=&quot;utf-8&quot;&gt; &lt;/script&gt;
    &lt;script src='a.js' type=&quot;text/javascript&quot; charset=&quot;utf-8&quot;&gt; &lt;/script&gt;
    &lt;script src='jquery.b.js' type=&quot;text/javascript&quot; charset=&quot;utf-8&quot;&gt; &lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div id=main&gt;&lt;/div&gt;    
&lt;/body&gt;
&lt;/html&gt;</pre></div></div>

<p>在这个 jquery.b.js 里面，我们让 jemplate 处理了一下 test.tt，给他里面的 test 变量赋值 ffffff，然后把设置到 #main 的 html 里面。</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">$(function() {
    var html= Jemplate.process(
        'test.tt', { test: 'ffffff' }
    );
&nbsp;
    $('#main').html(html);
});</pre></div></div>

<p>这样这个页面就完事了，简单么，呵呵。你可以用 jemplate 和 js 强大的语法来实现更多的功能的。</p>
]]></content:encoded>
			<wfw:commentRss>http://wdicc.com/introduce-to-jemplate/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Twitter Weekly Updates for 2010-02-22</title>
		<link>http://wdicc.com/twitter-weekly-updates-for-2010-02-22/</link>
		<comments>http://wdicc.com/twitter-weekly-updates-for-2010-02-22/#comments</comments>
		<pubDate>Mon, 22 Feb 2010 10:00:00 +0000</pubDate>
		<dc:creator>wd</dc:creator>
				<category><![CDATA[Heart]]></category>

		<guid isPermaLink="false">http://wdicc.com/twitter-weekly-updates-for-2010-02-22/</guid>
		<description><![CDATA[
没 proxy ，只能上 dabr 了。。 #

Powered by Twitter Tools... ]]></description>
			<content:encoded><![CDATA[<ul class="aktt_tweet_digest">
<li>没 proxy ，只能上 dabr 了。。 <a href="http://twitter.com/wd/statuses/9466811089" class="aktt_tweet_time">#</a></li>
</ul>
<p class="aktt_credit">Powered by <a href="http://alexking.org/projects/wordpress">Twitter Tools</a></p>
]]></content:encoded>
			<wfw:commentRss>http://wdicc.com/twitter-weekly-updates-for-2010-02-22/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Twitter Weekly Updates for 2010-02-15</title>
		<link>http://wdicc.com/twitter-weekly-updates-for-2010-02-15/</link>
		<comments>http://wdicc.com/twitter-weekly-updates-for-2010-02-15/#comments</comments>
		<pubDate>Mon, 15 Feb 2010 10:00:00 +0000</pubDate>
		<dc:creator>wd</dc:creator>
				<category><![CDATA[Heart]]></category>

		<guid isPermaLink="false">http://wdicc.com/twitter-weekly-updates-for-2010-02-15/</guid>
		<description><![CDATA[
好像可以考虑给老婆手机装一个gtalk 了  无视飞信 #
北京站候车中，动车候车室人少，可他妈的关了，日 #
升级 kde 4.4 中。。。 #
echofon 升级了，可好像在 fx 3.6 里面还有 bug。。。 #
RT: @blogtd: ... ]]></description>
			<content:encoded><![CDATA[<ul class="aktt_tweet_digest">
<li>好像可以考虑给老婆手机装一个gtalk 了  无视飞信 <a href="http://twitter.com/wd/statuses/8965362649" class="aktt_tweet_time">#</a></li>
<li>北京站候车中，动车候车室人少，可他妈的关了，日 <a href="http://twitter.com/wd/statuses/8964437114" class="aktt_tweet_time">#</a></li>
<li>升级 kde 4.4 中。。。 <a href="http://twitter.com/wd/statuses/8930311705" class="aktt_tweet_time">#</a></li>
<li>echofon 升级了，可好像在 fx 3.6 里面还有 bug。。。 <a href="http://twitter.com/wd/statuses/8880608615" class="aktt_tweet_time">#</a></li>
<li>RT: @<a href="http://twitter.com/blogtd" class="aktt_username">blogtd</a>: 來自網絡：未婚同居的越来越多， 婚后同居的越来越少.养二奶的越来越多， 养奶奶的越来越少　 <a href="http://twitter.com/wd/statuses/8762678731" class="aktt_tweet_time">#</a></li>
<li>openeclair 好像有点费电。。。唉。。。 <a href="http://twitter.com/wd/statuses/8760509902" class="aktt_tweet_time">#</a></li>
<li>RT: @<a href="http://twitter.com/cyanogen" class="aktt_username">cyanogen</a>: Today I decided to stop development on cyanogen mod and buy an iphone. Sorry fans <img src='http://wdicc.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  // oh no &#8230; <a href="http://twitter.com/wd/statuses/8740233580" class="aktt_tweet_time">#</a></li>
<li>下雪了。。。 <a href="http://twitter.com/wd/statuses/8719915485" class="aktt_tweet_time">#</a></li>
<li>downloading heroes &#8230; 又有的看了，嘿嘿 <a href="http://twitter.com/wd/statuses/8703147066" class="aktt_tweet_time">#</a></li>
<li>喝酒后胃里难受 半夜起来推 唉  搜狗拼音还是比qq那个好用 虽然qq那个界面也还行 可词库不行 <a href="http://twitter.com/wd/statuses/8694139708" class="aktt_tweet_time">#</a></li>
<li>February 9th, 2010: Release KDE SC 4.4  快了 <a href="http://twitter.com/wd/statuses/8693059308" class="aktt_tweet_time">#</a></li>
<li>[关天网刊] 其实，都是李安害了张艺谋！ &#8211; <a href="http://item.feedsky.com/~feedsky/my1510/~5935684/329942840/1488578/1/item.html" rel="nofollow">http://item.feedsky.com/~feedsky/my1510/~5935684/329942840/1488578/1/item.html</a> <a href="http://twitter.com/wd/statuses/8692171725" class="aktt_tweet_time">#</a></li>
<li>有个韩国人 follow 我，我猜他找错人了。。。 <a href="http://twitter.com/wd/statuses/8655737562" class="aktt_tweet_time">#</a></li>
<li>RT: @<a href="http://twitter.com/muxueqz" class="aktt_username">muxueqz</a>: 低价转让北京地区电信天冀3G卡+USB数据卡一个，每个月不限流量300小时，还剩五个月。麻烦各位帮RT一下。谢谢 // 多少钱 <a href="http://twitter.com/wd/statuses/8654759536" class="aktt_tweet_time">#</a></li>
<li>RT: @<a href="http://twitter.com/xwl" class="aktt_username">xwl</a>: RT @<a href="http://twitter.com/lidaobing" class="aktt_username">lidaobing</a>: 郎咸平：中国人为什么收入低 <a href="http://ff.im/-fm8cf" rel="nofollow">http://ff.im/-fm8cf</a> <a href="http://www.unicornblog.cn/user1/unicornblog/23410.html" rel="nofollow">http://www.unicornblog.cn/user1/unicornblog/23410.html</a> <a href="http://twitter.com/wd/statuses/8615591518" class="aktt_tweet_time">#</a></li>
<li>RT: @<a href="http://twitter.com/jdkcn" class="aktt_username">jdkcn</a>: <a href="http://news.163.com/special/00012Q9L/sanjuqingan.html" rel="nofollow">http://news.163.com/special/00012Q9L/sanjuqingan.html</a> 被遗忘的教训，哎。。。 <a href="http://twitter.com/wd/statuses/8614084899" class="aktt_tweet_time">#</a></li>
<li>RT: @<a href="http://twitter.com/bones7456" class="aktt_username">bones7456</a>: @<a href="http://twitter.com/yegle" class="aktt_username">yegle</a> 你来杭州工作了啊，哈哈，欢迎啊~ // yegle 搞定杭州的工作了？支付宝？ <a href="http://twitter.com/wd/statuses/8576525523" class="aktt_tweet_time">#</a></li>
<li><a href="http://v.youku.com/v_show/id_XMTI0ODQxODg4.html" rel="nofollow">http://v.youku.com/v_show/id_XMTI0ODQxODg4.html</a> <a href="http://twitter.com/wd/statuses/8530231191" class="aktt_tweet_time">#</a></li>
</ul>
<p class="aktt_credit">Powered by <a href="http://alexking.org/projects/wordpress">Twitter Tools</a></p>
]]></content:encoded>
			<wfw:commentRss>http://wdicc.com/twitter-weekly-updates-for-2010-02-15/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Twitter Weekly Updates for 2010-02-01</title>
		<link>http://wdicc.com/twitter-weekly-updates-for-2010-02-01/</link>
		<comments>http://wdicc.com/twitter-weekly-updates-for-2010-02-01/#comments</comments>
		<pubDate>Mon, 01 Feb 2010 10:00:00 +0000</pubDate>
		<dc:creator>wd</dc:creator>
				<category><![CDATA[Heart]]></category>

		<guid isPermaLink="false">http://wdicc.com/twitter-weekly-updates-for-2010-02-01/</guid>
		<description><![CDATA[
关于挂历的段子 &#8211; http://www.hecaitou.net/?p=6831 #
@yegle 可以有选择性的准c盘。不装c盘还有个好处是，下次重装的时候，一下就能知道上次装了什么，什么需要重装。不用等急用的时候才想起来... ]]></description>
			<content:encoded><![CDATA[<ul class="aktt_tweet_digest">
<li>关于挂历的段子 &#8211; <a href="http://www.hecaitou.net/?p=6831" rel="nofollow">http://www.hecaitou.net/?p=6831</a> <a href="http://twitter.com/wd/statuses/8474099875" class="aktt_tweet_time">#</a></li>
<li>@<a href="http://twitter.com/yegle" class="aktt_username">yegle</a> 可以有选择性的准c盘。不装c盘还有个好处是，下次重装的时候，一下就能知道上次装了什么，什么需要重装。不用等急用的时候才想起来没装好。 <a href="http://twitter.com/yegle/statuses/8435484412" class="aktt_tweet_reply">in reply to yegle</a> <a href="http://twitter.com/wd/statuses/8435661056" class="aktt_tweet_time">#</a></li>
<li>@<a href="http://twitter.com/yegle" class="aktt_username">yegle</a> twicca 不支持自定 api，悲剧。。 <a href="http://twitter.com/yegle/statuses/8393306432" class="aktt_tweet_reply">in reply to yegle</a> <a href="http://twitter.com/wd/statuses/8394076602" class="aktt_tweet_time">#</a></li>
<li>konversation 都不支持 plugin，他神在哪里？靠了，还不如 xchat <a href="http://twitter.com/wd/statuses/8366900733" class="aktt_tweet_time">#</a></li>
<li>楼下有人在放炮，一帮sb <a href="http://twitter.com/wd/statuses/8366077251" class="aktt_tweet_time">#</a></li>
<li>@<a href="http://twitter.com/yegle" class="aktt_username">yegle</a> <img src='http://wdicc.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  我没看明白。。。汗。。。不过我也找到方法输入了。能输入就好。我还以为你弄到了 dev 版呢。 <a href="http://twitter.com/yegle/statuses/8365492977" class="aktt_tweet_reply">in reply to yegle</a> <a href="http://twitter.com/wd/statuses/8365733194" class="aktt_tweet_time">#</a></li>
<li>@<a href="http://twitter.com/muxueqz" class="aktt_username">muxueqz</a> 我在 openbox-cn .. <a href="http://twitter.com/muxueqz/statuses/8365611849" class="aktt_tweet_reply">in reply to muxueqz</a> <a href="http://twitter.com/wd/statuses/8365712262" class="aktt_tweet_time">#</a></li>
<li>@<a href="http://twitter.com/yegle" class="aktt_username">yegle</a> 还是没明白，echofon 在 3.6 里面是有 bug 的，那个输入框激活不了，输入不了东西，点一下 fx 标题栏才行。 <a href="http://twitter.com/yegle/statuses/8365271926" class="aktt_tweet_reply">in reply to yegle</a> <a href="http://twitter.com/wd/statuses/8365407101" class="aktt_tweet_time">#</a></li>
<li>啤酒中 &#8230;. 可惜没人对饮&#8230; <a href="http://twitter.com/wd/statuses/8365224702" class="aktt_tweet_time">#</a></li>
<li>@<a href="http://twitter.com/yegle" class="aktt_username">yegle</a> 你的 fx 是 3.6 么？echofon 怎么更新的？不是点窗口标题那招吧？ <a href="http://twitter.com/yegle/statuses/8365135707" class="aktt_tweet_reply">in reply to yegle</a> <a href="http://twitter.com/wd/statuses/8365211107" class="aktt_tweet_time">#</a></li>
<li>@<a href="http://twitter.com/bingnan" class="aktt_username">bingnan</a> 弄照片上来看看 <a href="http://twitter.com/bingnan/statuses/8365123409" class="aktt_tweet_reply">in reply to bingnan</a> <a href="http://twitter.com/wd/statuses/8365193678" class="aktt_tweet_time">#</a></li>
<li>@<a href="http://twitter.com/yegle" class="aktt_username">yegle</a> %F %T <a href="http://twitter.com/yegle/statuses/8224234265" class="aktt_tweet_reply">in reply to yegle</a> <a href="http://twitter.com/wd/statuses/8224475801" class="aktt_tweet_time">#</a></li>
</ul>
<p class="aktt_credit">Powered by <a href="http://alexking.org/projects/wordpress">Twitter Tools</a></p>
]]></content:encoded>
			<wfw:commentRss>http://wdicc.com/twitter-weekly-updates-for-2010-02-01/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Twitter Weekly Updates for 2010-01-25</title>
		<link>http://wdicc.com/twitter-weekly-updates-for-2010-01-25/</link>
		<comments>http://wdicc.com/twitter-weekly-updates-for-2010-01-25/#comments</comments>
		<pubDate>Mon, 25 Jan 2010 10:00:00 +0000</pubDate>
		<dc:creator>wd</dc:creator>
				<category><![CDATA[Heart]]></category>

		<guid isPermaLink="false">http://wdicc.com/twitter-weekly-updates-for-2010-01-25/</guid>
		<description><![CDATA[
layman 新版本改了 storage 的地址到 /var/lib/layman 下面，修改 /etc/lyaman/layman.cfg 能改回到 /usr/local/portage/layman #
悲剧了，升级了 firfox 到 3.7,twitterfox 只能看贴不能回贴了。。。 #
@Yunkwan puff 可以 wine ... ]]></description>
			<content:encoded><![CDATA[<ul class="aktt_tweet_digest">
<li>layman 新版本改了 storage 的地址到 /var/lib/layman 下面，修改 /etc/lyaman/layman.cfg 能改回到 /usr/local/portage/layman <a href="http://twitter.com/wd/statuses/8130233107" class="aktt_tweet_time">#</a></li>
<li>悲剧了，升级了 firfox 到 3.7,twitterfox 只能看贴不能回贴了。。。 <a href="http://twitter.com/wd/statuses/8111552759" class="aktt_tweet_time">#</a></li>
<li>@<a href="http://twitter.com/Yunkwan" class="aktt_username">Yunkwan</a> puff 可以 wine <a href="http://twitter.com/Yunkwan/statuses/8096933874" class="aktt_tweet_reply">in reply to Yunkwan</a> <a href="http://twitter.com/wd/statuses/8105794170" class="aktt_tweet_time">#</a></li>
<li><a href="http://tinyurl.com/y8kwmte" rel="nofollow">http://tinyurl.com/y8kwmte</a>  让代码更美:10大编程字体 | 有些图可以看，转载不表示同意他的排序 <a href="http://twitter.com/wd/statuses/8018457746" class="aktt_tweet_time">#</a></li>
<li>RT: @ghosTM55: 今天在MSN上看到的Delphij的签名: 从学外语了解世界 到学外语了解中国 <a href="http://twitter.com/wd/statuses/8011952909" class="aktt_tweet_time">#</a></li>
<li>韩寒，十年前的《对话》 &#8211; <a href="http://www.my1510.cn/article.php?id=30c44933abfa6c1d" rel="nofollow">http://www.my1510.cn/article.php?id=30c44933abfa6c1d</a> <a href="http://twitter.com/wd/statuses/7981455316" class="aktt_tweet_time">#</a></li>
<li>澄清不实的传言  <a href="http://tinyurl.com/ya5tvbn" rel="nofollow">http://tinyurl.com/ya5tvbn</a> <a href="http://twitter.com/wd/statuses/7966930167" class="aktt_tweet_time">#</a></li>
<li>@<a href="http://twitter.com/yegle" class="aktt_username">yegle</a> work email 好像是连 exchange 的。email 连 pop 什么的。 <a href="http://twitter.com/yegle/statuses/7951184991" class="aktt_tweet_reply">in reply to yegle</a> <a href="http://twitter.com/wd/statuses/7966212308" class="aktt_tweet_time">#</a></li>
<li>@<a href="http://twitter.com/yegle" class="aktt_username">yegle</a> 给我发个简历我给老大看看。 wd#wdicc.com <a href="http://twitter.com/yegle/statuses/7939284112" class="aktt_tweet_reply">in reply to yegle</a> <a href="http://twitter.com/wd/statuses/7940728015" class="aktt_tweet_time">#</a></li>
<li>@<a href="http://twitter.com/yegle" class="aktt_username">yegle</a> 呵呵。有兴趣到 taobao 不，我可以给你递个简历。。 <a href="http://twitter.com/yegle/statuses/7939118669" class="aktt_tweet_reply">in reply to yegle</a> <a href="http://twitter.com/wd/statuses/7939253315" class="aktt_tweet_time">#</a></li>
<li>@<a href="http://twitter.com/yegle" class="aktt_username">yegle</a> 你去工作就是在助长这种行为，等于你也是这个行为的作者。。。 <a href="http://twitter.com/yegle/statuses/7938859399" class="aktt_tweet_reply">in reply to yegle</a> <a href="http://twitter.com/wd/statuses/7938888629" class="aktt_tweet_time">#</a></li>
<li>@<a href="http://twitter.com/bingnan" class="aktt_username">bingnan</a> 他要想知道，你不登录不是也可以。。。 <a href="http://twitter.com/bingnan/statuses/7930937587" class="aktt_tweet_reply">in reply to bingnan</a> <a href="http://twitter.com/wd/statuses/7931023231" class="aktt_tweet_time">#</a></li>
<li>linuxsir 挂了？！ 日 <a href="http://twitter.com/wd/statuses/7926453512" class="aktt_tweet_time">#</a></li>
</ul>
<p class="aktt_credit">Powered by <a href="http://alexking.org/projects/wordpress">Twitter Tools</a></p>
]]></content:encoded>
			<wfw:commentRss>http://wdicc.com/twitter-weekly-updates-for-2010-01-25/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ssh 之穿越与反穿越</title>
		<link>http://wdicc.com/ssh-proxy/</link>
		<comments>http://wdicc.com/ssh-proxy/#comments</comments>
		<pubDate>Thu, 21 Jan 2010 07:09:45 +0000</pubDate>
		<dc:creator>wd</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[proxy]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://wdicc.com/ssh-proxy/</guid>
		<description><![CDATA[有时候我们不得不和网管对着干，去想办法去穿越某些防火墙，访问到我们要访问的资源。例如下面的情况，A 和 C 之间是有个墙的，不通。可有个 B 能访问到 C，而 A 又能访问到 B ，那我们可... ]]></description>
			<content:encoded><![CDATA[<p>有时候我们不得不和网管对着干，去想办法去穿越某些防火墙，访问到我们要访问的资源。例如下面的情况，A 和 C 之间是有个墙的，不通。可有个 B 能访问到 C，而 A 又能访问到 B ，那我们可以通过你 ssh 做代理穿越那个墙。</p>
<p>A -&gt; | -&gt; C<br /> \-&gt; B -&gt; C</p>
<p>在A 上面执行下面的命令</p>
<p>ssh -f -N -g -L 8888:C_ip:80 B_ip<br />参数的含义：-f 放到后台<br />-N 不在对方机器请求 shell<br />-g 能使得别的机器能连接 A 的那个端口<br />-L 就是代理，具体看 man </p>
<p>这样，在 A 上面访问 8888 端口，就能访问到 C 的 80 端口了。</p>
<p>那如果是下面的网络情况，那怎么办？A 能访问到 C，但是 C 不能直接访问 A。</p>
<p>A -&gt; C<br />C-&gt; | -&gt; A</p>
<p>在 A 上面执行下面的命令</p>
<p>ssh -f -N -R 9999:A_ip:80 C_ip<br />-R 是反向代理, -g 在这里好像不好用不知道为什么</p>
<p>从 C 上面访问自己的 9999 端口，就会访问到 A 的 80 端口。</p>
]]></content:encoded>
			<wfw:commentRss>http://wdicc.com/ssh-proxy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>怎么能知道旁边的一台没有显示器的 windows 的 ip 呢？</title>
		<link>http://wdicc.com/how-to-know-a-windows-boxs-ip-in-lan/</link>
		<comments>http://wdicc.com/how-to-know-a-windows-boxs-ip-in-lan/#comments</comments>
		<pubDate>Wed, 20 Jan 2010 08:33:20 +0000</pubDate>
		<dc:creator>wd</dc:creator>
				<category><![CDATA[Heart]]></category>

		<guid isPermaLink="false">http://wdicc.com/how-to-know-a-windows-boxs-ip-in-lan/</guid>
		<description><![CDATA[我旁边有个 windows，是 dhcp 获取 ip 的，ip 总变，很恶心。这机器还没有显示器，我都是通过 rdesktop 连上去用的，这样必须知道 ip 才行。那不接显示器，怎么能知道 ip 呢？
方法一，写一个脚本... ]]></description>
			<content:encoded><![CDATA[<p>我旁边有个 windows，是 dhcp 获取 ip 的，ip 总变，很恶心。这机器还没有显示器，我都是通过 rdesktop 连上去用的，这样必须知道 ip 才行。那不接显示器，怎么能知道 ip 呢？</p>
<p>方法一，写一个脚本定时把 ipconfig 的结果通过 scp 或 ftp 发到某个有固定 ip 的机器。这样 ip 变了我至少过那么久的间隔就能知道他目前的 ip 了。时间设的长短可能就是你等的时间了。</p>
<p>方法二，扫描一下局域网结果存到 a，给那个机器断网，再扫一下存到 b，diff 比较那个状态有变化的。我用的就是这个方法。</p>
<p># nmap -PN 10.32.20.0/24 -p 3389 &#8211;open &gt; a</p>
<p>要用 root 执行，此外还有别的方法没？呵呵</p>
]]></content:encoded>
			<wfw:commentRss>http://wdicc.com/how-to-know-a-windows-boxs-ip-in-lan/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>
