<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1890082641812270284</id><updated>2011-07-31T02:37:31.029-07:00</updated><category term='information'/><category term='vim'/><category term='cygwin'/><title type='text'>wen's blog</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://xiaowen86.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1890082641812270284/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://xiaowen86.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>xiao_wen86</name><uri>http://www.blogger.com/profile/00396984368726241450</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>7</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1890082641812270284.post-2435036615480978853</id><published>2010-06-24T18:39:00.001-07:00</published><updated>2010-06-24T19:48:21.317-07:00</updated><title type='text'>Highlight code in blogger using syntaxhighlighter</title><content type='html'>I want to highlight my code in blooger,and I do some web search ,It looks like there is&lt;br /&gt;a good choice called syntaxhighlighter,It's pure javascipt.I read the install faq,but It seems difficult to use it in blogger,and I search again for how to use it in my blog.luckly I found two artical about using syntaxhighlighter,so I combination the two method and I success. here is the way I got it:&lt;br /&gt;edit the template code in blogger&lt;br /&gt;add this code to the end of template:&lt;br /&gt;&lt;br /&gt;&lt;pre name="code" class="html"&gt;&lt;br /&gt;&amp;lt;script class='javascript'&amp;gt;&lt;br /&gt;//&amp;lt;![CDATA[&lt;br /&gt;  function FindTagsByName(container, name, Tag)&lt;br /&gt;  {&lt;br /&gt;      var elements = document.getElementsByTagName(Tag);&lt;br /&gt;      for (var i = 0; i &amp;lt; elements.length; i++)&lt;br /&gt;      {&lt;br /&gt;          if (elements[i].getAttribute("name") == name)&lt;br /&gt;          {&lt;br /&gt;              container.push(elements[i]);&lt;br /&gt;          }&lt;br /&gt;      }&lt;br /&gt;  }&lt;br /&gt;  var elements = [];&lt;br /&gt;  FindTagsByName(elements, "code", "pre");&lt;br /&gt;  FindTagsByName(elements, "code", "textarea");&lt;br /&gt;&lt;br /&gt;for(var i=0; i &amp;lt; elements.length; i++) {&lt;br /&gt;if(elements[i].nodeName.toUpperCase() == "TEXTAREA") {&lt;br /&gt; var childNode = elements[i].childNodes[0];&lt;br /&gt; var newNode = document.createTextNode(childNode.nodeValue.replace(/&amp;lt;br\s*\/?&amp;gt;/gi,'\n'));&lt;br /&gt; elements[i].replaceChild(newNode, childNode);&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;else if(elements[i].nodeName.toUpperCase() == "PRE") {&lt;br /&gt; brs = elements[i].getElementsByTagName("br");&lt;br /&gt; for(var j = 0, brLength = brs.length; j &amp;lt; brLength; j++) {&lt;br /&gt;  var newNode = document.createTextNode("\n");&lt;br /&gt;  elements[i].replaceChild(newNode, brs[0]);&lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;//clipboard does not work well, no line breaks&lt;br /&gt;// dp.SyntaxHighlighter.ClipboardSwf =&lt;br /&gt;//"http://[YOUR HOST]/clipboard.swf";&lt;br /&gt;dp.SyntaxHighlighter.HighlightAll("code");&lt;br /&gt;//]]&amp;gt;&lt;br /&gt;&amp;lt;/script&amp;gt;&lt;br /&gt;&amp;lt;link href='http://syntaxhighlighter.googlecode.com/svn/trunk/Styles/SyntaxHighlighter.css' rel='stylesheet' type='text/css'/&amp;gt;&lt;br /&gt;&amp;lt;script src='http://syntaxhighlighter.googlecode.com/svn/trunk/Scripts/shCore.js' type='text/javascript'/&amp;gt;  &lt;br /&gt;&amp;lt;script src='http://syntaxhighlighter.googlecode.com/svn/trunk/Scripts/shBrushCpp.js' type='text/javascript'/&amp;gt;  &lt;br /&gt;&amp;lt;script src='http://syntaxhighlighter.googlecode.com/svn/trunk/Scripts/shBrushCSharp.js' type='text/javascript'/&amp;gt;  &lt;br /&gt;&amp;lt;script src='http://syntaxhighlighter.googlecode.com/svn/trunk/Scripts/shBrushCss.js' type='text/javascript'/&amp;gt;  &lt;br /&gt;&amp;lt;script src='http://syntaxhighlighter.googlecode.com/svn/trunk/Scripts/shBrushDelphi.js' type='text/javascript'/&amp;gt;  &lt;br /&gt;&amp;lt;script src='http://syntaxhighlighter.googlecode.com/svn/trunk/Scripts/shBrushJava.js' type='text/javascript'/&amp;gt;  &lt;br /&gt;&amp;lt;script src='http://syntaxhighlighter.googlecode.com/svn/trunk/Scripts/shBrushJScript.js' type='text/javascript'/&amp;gt;  &lt;br /&gt;&amp;lt;script src='http://syntaxhighlighter.googlecode.com/svn/trunk/Scripts/shBrushPhp.js' type='text/javascript'/&amp;gt;  &lt;br /&gt;&amp;lt;script src='http://syntaxhighlighter.googlecode.com/svn/trunk/Scripts/shBrushPython.js' type='text/javascript'/&amp;gt;  &lt;br /&gt;&amp;lt;script src='http://syntaxhighlighter.googlecode.com/svn/trunk/Scripts/shBrushRuby.js' type='text/javascript'/&amp;gt;  &lt;br /&gt;&amp;lt;script src='http://syntaxhighlighter.googlecode.com/svn/trunk/Scripts/shBrushSql.js' type='text/javascript'/&amp;gt;  &lt;br /&gt;&amp;lt;script src='http://syntaxhighlighter.googlecode.com/svn/trunk/Scripts/shBrushVb.js' type='text/javascript'/&amp;gt;  &lt;br /&gt;&amp;lt;script src='http://syntaxhighlighter.googlecode.com/svn/trunk/Scripts/shBrushXml.js' type='text/javascript'/&amp;gt; &lt;br /&gt;&amp;lt;script language='javascript'&amp;gt;&lt;br /&gt;dp.SyntaxHighlighter.BloggerMode();  &lt;br /&gt;dp.SyntaxHighlighter.HighlightAll(&amp;quot;code&amp;quot;);&lt;br /&gt;&amp;lt;/script&amp;gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;http://developertips.blogspot.com/2007/08/syntaxhighlighter-on-blogger.html&lt;br /&gt;http://heisencoder.net/2009/01/adding-syntax-highlighting-to-blogger.html&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1890082641812270284-2435036615480978853?l=xiaowen86.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiaowen86.blogspot.com/feeds/2435036615480978853/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiaowen86.blogspot.com/2010/06/int-a100.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1890082641812270284/posts/default/2435036615480978853'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1890082641812270284/posts/default/2435036615480978853'/><link rel='alternate' type='text/html' href='http://xiaowen86.blogspot.com/2010/06/int-a100.html' title='Highlight code in blogger using syntaxhighlighter'/><author><name>xiao_wen86</name><uri>http://www.blogger.com/profile/00396984368726241450</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1890082641812270284.post-7577175290691074496</id><published>2010-06-24T00:51:00.000-07:00</published><updated>2010-06-24T01:21:11.428-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vim'/><title type='text'>Post highlight code in blog using vim</title><content type='html'>&lt;span style="font-family:monospace;"&gt;I want to post code in my blogger,as well as vim have a feature that convert it's content to html ,so I use vim's TOhtml command convert a perl code and clip it to blogger it workwell?&lt;br /&gt;&lt;div style="background-color: rgb(200, 200, 200);"&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;1 &lt;/span&gt;&lt;span style="color: rgb(205, 92, 92);"&gt;#!/usr/bin/env  perl&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt; 2 &lt;/span&gt;&lt;span style="color: rgb(240, 230, 140);"&gt;&lt;b&gt;use &lt;/b&gt;&lt;/span&gt;Net::Ping;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt; 3 &lt;/span&gt;&lt;span style="color: rgb(240, 230, 140);"&gt;&lt;b&gt;use &lt;/b&gt;&lt;/span&gt;Data::Dumper;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt; 4 &lt;/span&gt;&lt;span style="color: rgb(240, 230, 140);"&gt;&lt;b&gt;use &lt;/b&gt;&lt;/span&gt;Thread;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt; 5 &lt;/span&gt;&lt;span style="color: rgb(240, 230, 140);"&gt;&lt;b&gt;use &lt;/b&gt;&lt;/span&gt;Thread::Queue;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt; 6 &lt;/span&gt;&lt;span style="color: rgb(255, 165, 0);"&gt;#use strict;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt; 7 &lt;/span&gt;&lt;span style="color: rgb(240, 230, 140);"&gt;&lt;b&gt;use warnings&lt;/b&gt;&lt;/span&gt;;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt; 8 &lt;/span&gt;&lt;span style="color: rgb(152, 251, 152);"&gt;$q&lt;/span&gt;=Thread::Queue-&gt;&lt;span style="color: rgb(240, 230, 140);"&gt;&lt;b&gt;new&lt;/b&gt;&lt;/span&gt;();&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt; 9 &lt;/span&gt;&lt;span style="color: rgb(152, 251, 152);"&gt;$hosts&lt;/span&gt;=Thread::Queue-&gt;&lt;span style="color: rgb(240, 230, 140);"&gt;&lt;b&gt;new&lt;/b&gt;&lt;/span&gt;();&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;10 &lt;/span&gt;&lt;span style="color: rgb(240, 230, 140);"&gt;&lt;b&gt;sub&lt;/b&gt;&lt;/span&gt;&lt;span style="color: rgb(152, 251, 152);"&gt; &lt;/span&gt;&lt;span style="color: rgb(152, 251, 152);"&gt;now&lt;/span&gt;{&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;11 &lt;/span&gt;  (&lt;span style="color: rgb(152, 251, 152);"&gt;$sec&lt;/span&gt;,&lt;span style="color: rgb(152, 251, 152);"&gt;$min&lt;/span&gt;,&lt;span style="color: rgb(152, 251, 152);"&gt;$hour&lt;/span&gt;,&lt;span style="color: rgb(152, 251, 152);"&gt;$day&lt;/span&gt;,&lt;span style="color: rgb(152, 251, 152);"&gt;$mon&lt;/span&gt;,&lt;span style="color: rgb(152, 251, 152);"&gt;$year&lt;/span&gt;,&lt;span style="color: rgb(152, 251, 152);"&gt;$weekday&lt;/span&gt;,&lt;span style="color: rgb(152, 251, 152);"&gt;$yeardate&lt;/span&gt;,&lt;span style="color: rgb(152, 251, 152);"&gt;$savinglightday&lt;/span&gt;)=(&lt;span style="color: rgb(240, 230, 140);"&gt;&lt;b&gt;localtime&lt;/b&gt;&lt;/span&gt;(&lt;span style="color: rgb(240, 230, 140);"&gt;&lt;b&gt;time&lt;/b&gt;&lt;/span&gt;));&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;12 &lt;/span&gt;  &lt;span style="color: rgb(152, 251, 152);"&gt;$sec&lt;/span&gt;    =   (&lt;span style="color: rgb(152, 251, 152);"&gt;$sec&lt;/span&gt;   &lt;   &lt;span style="color: rgb(255, 160, 160);"&gt;10&lt;/span&gt;)?    &lt;span style="color: rgb(255, 160, 160);"&gt;"&lt;/span&gt;&lt;span style="color: rgb(255, 160, 160);"&gt;0&lt;/span&gt;&lt;span style="color: rgb(152, 251, 152);"&gt;$sec&lt;/span&gt;&lt;span style="color: rgb(255, 160, 160);"&gt;"&lt;/span&gt;:&lt;span style="color: rgb(152, 251, 152);"&gt;$sec&lt;/span&gt;;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;13 &lt;/span&gt;  &lt;span style="color: rgb(152, 251, 152);"&gt;$min&lt;/span&gt;    =   (&lt;span style="color: rgb(152, 251, 152);"&gt;$min&lt;/span&gt;   &lt;   &lt;span style="color: rgb(255, 160, 160);"&gt;10&lt;/span&gt;)?    &lt;span style="color: rgb(255, 160, 160);"&gt;"&lt;/span&gt;&lt;span style="color: rgb(255, 160, 160);"&gt;0&lt;/span&gt;&lt;span style="color: rgb(152, 251, 152);"&gt;$min&lt;/span&gt;&lt;span style="color: rgb(255, 160, 160);"&gt;"&lt;/span&gt;:&lt;span style="color: rgb(152, 251, 152);"&gt;$min&lt;/span&gt;;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;14 &lt;/span&gt;  &lt;span style="color: rgb(152, 251, 152);"&gt;$hour&lt;/span&gt;    =   (&lt;span style="color: rgb(152, 251, 152);"&gt;$hour&lt;/span&gt;   &lt;   &lt;span style="color: rgb(255, 160, 160);"&gt;10&lt;/span&gt;)?    &lt;span style="color: rgb(255, 160, 160);"&gt;"&lt;/span&gt;&lt;span style="color: rgb(255, 160, 160);"&gt;0&lt;/span&gt;&lt;span style="color: rgb(152, 251, 152);"&gt;$hour&lt;/span&gt;&lt;span style="color: rgb(255, 160, 160);"&gt;"&lt;/span&gt;:&lt;span style="color: rgb(152, 251, 152);"&gt;$hour&lt;/span&gt;;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;15 &lt;/span&gt;  &lt;span style="color: rgb(152, 251, 152);"&gt;$day&lt;/span&gt;    =   (&lt;span style="color: rgb(152, 251, 152);"&gt;$day&lt;/span&gt;   &lt;   &lt;span style="color: rgb(255, 160, 160);"&gt;10&lt;/span&gt;)?    &lt;span style="color: rgb(255, 160, 160);"&gt;"&lt;/span&gt;&lt;span style="color: rgb(255, 160, 160);"&gt;0&lt;/span&gt;&lt;span style="color: rgb(152, 251, 152);"&gt;$day&lt;/span&gt;&lt;span style="color: rgb(255, 160, 160);"&gt;"&lt;/span&gt;:&lt;span style="color: rgb(152, 251, 152);"&gt;$day&lt;/span&gt;;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;16 &lt;/span&gt;  &lt;span style="color: rgb(152, 251, 152);"&gt;$mon&lt;/span&gt;    =   (&lt;span style="color: rgb(152, 251, 152);"&gt;$mon&lt;/span&gt;   &lt;   &lt;span style="color: rgb(255, 160, 160);"&gt;9&lt;/span&gt;)?    &lt;span style="color: rgb(255, 160, 160);"&gt;"&lt;/span&gt;&lt;span style="color: rgb(255, 160, 160);"&gt;0&lt;/span&gt;&lt;span style="color: rgb(255, 160, 160);"&gt;"&lt;/span&gt;.(&lt;span style="color: rgb(152, 251, 152);"&gt;$mon&lt;/span&gt;&lt;span style="color: rgb(255, 160, 160);"&gt;+1&lt;/span&gt;):(&lt;span style="color: rgb(152, 251, 152);"&gt;$mon&lt;/span&gt;&lt;span style="color: rgb(255, 160, 160);"&gt;+1&lt;/span&gt;);&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;17 &lt;/span&gt;  &lt;span style="color: rgb(152, 251, 152);"&gt;$year&lt;/span&gt;    +=   &lt;span style="color: rgb(255, 160, 160);"&gt;1900&lt;/span&gt;;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;18 &lt;/span&gt;  &lt;span style="color: rgb(152, 251, 152);"&gt;$now&lt;/span&gt; = &lt;span style="color: rgb(255, 160, 160);"&gt;"&lt;/span&gt;&lt;span style="color: rgb(152, 251, 152);"&gt;$year&lt;/span&gt;&lt;span style="color: rgb(255, 160, 160);"&gt;-&lt;/span&gt;&lt;span style="color: rgb(152, 251, 152);"&gt;$mon&lt;/span&gt;&lt;span style="color: rgb(255, 160, 160);"&gt;-&lt;/span&gt;&lt;span style="color: rgb(152, 251, 152);"&gt;$day&lt;/span&gt;&lt;span style="color: rgb(255, 160, 160);"&gt; &lt;/span&gt;&lt;span style="color: rgb(152, 251, 152);"&gt;$hour&lt;/span&gt;&lt;span style="color: rgb(255, 160, 160);"&gt;:&lt;/span&gt;&lt;span style="color: rgb(152, 251, 152);"&gt;$min&lt;/span&gt;&lt;span style="color: rgb(255, 160, 160);"&gt;:&lt;/span&gt;&lt;span style="color: rgb(152, 251, 152);"&gt;$sec&lt;/span&gt;&lt;span style="color: rgb(255, 160, 160);"&gt;"&lt;/span&gt;;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;19 &lt;/span&gt;}&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;20 &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;21 &lt;/span&gt;&lt;span style="color: rgb(240, 230, 140);"&gt;&lt;b&gt;sub&lt;/b&gt;&lt;/span&gt;&lt;span style="color: rgb(152, 251, 152);"&gt; &lt;/span&gt;&lt;span style="color: rgb(152, 251, 152);"&gt;ping_host&lt;/span&gt;{&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;22 &lt;/span&gt;  &lt;span style="color: rgb(240, 230, 140);"&gt;&lt;b&gt;my&lt;/b&gt;&lt;/span&gt; (&lt;span style="color: rgb(152, 251, 152);"&gt;$name&lt;/span&gt;)=&lt;span style="color: rgb(152, 251, 152);"&gt;@_&lt;/span&gt;;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;23 &lt;/span&gt;  &lt;span style="color: rgb(240, 230, 140);"&gt;&lt;b&gt;my&lt;/b&gt;&lt;/span&gt; &lt;span style="color: rgb(152, 251, 152);"&gt;$pinger&lt;/span&gt;=Net::Ping-&gt;&lt;span style="color: rgb(240, 230, 140);"&gt;&lt;b&gt;new&lt;/b&gt;&lt;/span&gt;(&lt;span style="color: rgb(255, 160, 160);"&gt;"&lt;/span&gt;&lt;span style="color: rgb(255, 160, 160);"&gt;icmp&lt;/span&gt;&lt;span style="color: rgb(255, 160, 160);"&gt;"&lt;/span&gt;);&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;24 &lt;/span&gt;  &lt;span style="color: rgb(240, 230, 140);"&gt;&lt;b&gt;while&lt;/b&gt;&lt;/span&gt;(&lt;span style="color: rgb(240, 230, 140);"&gt;&lt;b&gt;defined&lt;/b&gt;&lt;/span&gt;(&lt;span style="color: rgb(240, 230, 140);"&gt;&lt;b&gt;my&lt;/b&gt;&lt;/span&gt; &lt;span style="color: rgb(152, 251, 152);"&gt;$ip&lt;/span&gt;=&lt;span style="color: rgb(152, 251, 152);"&gt;$q&lt;/span&gt;-&gt;dequeue_nb())){&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;25 &lt;/span&gt;    &lt;span style="color: rgb(240, 230, 140);"&gt;&lt;b&gt;if&lt;/b&gt;&lt;/span&gt; (&lt;span style="color: rgb(152, 251, 152);"&gt;$pinger&lt;/span&gt;-&gt;ping(&lt;span style="color: rgb(152, 251, 152);"&gt;$ip&lt;/span&gt;)){&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;26 &lt;/span&gt;      &lt;span style="color: rgb(240, 230, 140);"&gt;&lt;b&gt;my&lt;/b&gt;&lt;/span&gt; &lt;span style="color: rgb(152, 251, 152);"&gt;$curtime&lt;/span&gt;=&lt;span style="color: rgb(152, 251, 152);"&gt;&amp;amp;now&lt;/span&gt;;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;27 &lt;/span&gt;      &lt;span style="color: rgb(240, 230, 140);"&gt;&lt;b&gt;print&lt;/b&gt;&lt;/span&gt; &lt;span style="color: rgb(255, 160, 160);"&gt;"&lt;/span&gt;&lt;span style="color: rgb(152, 251, 152);"&gt;$curtime&lt;/span&gt;&lt;span style="color: rgb(255, 160, 160);"&gt; &lt;/span&gt;&lt;span style="color: rgb(152, 251, 152);"&gt;$name&lt;/span&gt;&lt;span style="color: rgb(255, 160, 160);"&gt;: ping &lt;/span&gt;&lt;span style="color: rgb(152, 251, 152);"&gt;$ip&lt;/span&gt;&lt;span style="color: rgb(255, 160, 160);"&gt; success&lt;/span&gt;&lt;span style="color: rgb(255, 160, 160);"&gt;"&lt;/span&gt;,&lt;span style="color: rgb(255, 160, 160);"&gt;"&lt;/span&gt;&lt;span style="color: rgb(255, 222, 173);"&gt;\n&lt;/span&gt;&lt;span style="color: rgb(255, 160, 160);"&gt;"&lt;/span&gt;;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;28 &lt;/span&gt;      &lt;span style="color: rgb(152, 251, 152);"&gt;$hosts&lt;/span&gt;-&gt;enqueue(&lt;span style="color: rgb(152, 251, 152);"&gt;$ip&lt;/span&gt;);&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;29 &lt;/span&gt;    }&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;30 &lt;/span&gt;  }&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;31 &lt;/span&gt;  &lt;span style="color: rgb(152, 251, 152);"&gt;$pinger&lt;/span&gt;-&gt;&lt;span style="color: rgb(240, 230, 140);"&gt;&lt;b&gt;close&lt;/b&gt;&lt;/span&gt;()&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;32 &lt;/span&gt;}&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;33 &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;34 &lt;/span&gt;&lt;span style="color: rgb(240, 230, 140);"&gt;&lt;b&gt;for&lt;/b&gt;&lt;/span&gt; &lt;span style="color: rgb(240, 230, 140);"&gt;&lt;b&gt;my&lt;/b&gt;&lt;/span&gt; &lt;span style="color: rgb(152, 251, 152);"&gt;$hostid&lt;/span&gt;(&lt;span style="color: rgb(255, 160, 160);"&gt;1.&lt;/span&gt;.&lt;span style="color: rgb(255, 160, 160);"&gt;255&lt;/span&gt;){&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;35 &lt;/span&gt;  &lt;span style="color: rgb(240, 230, 140);"&gt;&lt;b&gt;my&lt;/b&gt;&lt;/span&gt; &lt;span style="color: rgb(152, 251, 152);"&gt;$ip2&lt;/span&gt;=&lt;span style="color: rgb(255, 160, 160);"&gt;"&lt;/span&gt;&lt;span style="color: rgb(255, 160, 160);"&gt;192.168.1.&lt;/span&gt;&lt;span style="color: rgb(152, 251, 152);"&gt;$hostid&lt;/span&gt;&lt;span style="color: rgb(255, 160, 160);"&gt;"&lt;/span&gt;;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;36 &lt;/span&gt;  &lt;span style="color: rgb(152, 251, 152);"&gt;$q&lt;/span&gt;-&gt;enqueue(&lt;span style="color: rgb(152, 251, 152);"&gt;$ip2&lt;/span&gt;);&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;37 &lt;/span&gt;}&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;38 &lt;/span&gt;&lt;span style="color: rgb(240, 230, 140);"&gt;&lt;b&gt;my&lt;/b&gt;&lt;/span&gt; &lt;span style="color: rgb(152, 251, 152);"&gt;@thread&lt;/span&gt;=();&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;39 &lt;/span&gt;&lt;span style="color: rgb(240, 230, 140);"&gt;&lt;b&gt;for&lt;/b&gt;&lt;/span&gt;(&lt;span style="color: rgb(240, 230, 140);"&gt;&lt;b&gt;my&lt;/b&gt;&lt;/span&gt; &lt;span style="color: rgb(152, 251, 152);"&gt;$i&lt;/span&gt;=&lt;span style="color: rgb(255, 160, 160);"&gt;0&lt;/span&gt;;&lt;span style="color: rgb(152, 251, 152);"&gt;$i&lt;/span&gt;&lt;&lt;span style="color: rgb(255, 160, 160);"&gt;50&lt;/span&gt;;&lt;span style="color: rgb(152, 251, 152);"&gt;$i&lt;/span&gt;++){&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;40 &lt;/span&gt;  &lt;span style="color: rgb(240, 230, 140);"&gt;&lt;b&gt;my&lt;/b&gt;&lt;/span&gt; &lt;span style="color: rgb(152, 251, 152);"&gt;$t&lt;/span&gt;=Thread-&gt;&lt;span style="color: rgb(240, 230, 140);"&gt;&lt;b&gt;new&lt;/b&gt;&lt;/span&gt;(&lt;span style="color: rgb(152, 251, 152);"&gt;\&amp;amp;ping_host&lt;/span&gt;,&lt;span style="color: rgb(255, 160, 160);"&gt;"&lt;/span&gt;&lt;span style="color: rgb(255, 160, 160);"&gt;Thread &lt;/span&gt;&lt;span style="color: rgb(152, 251, 152);"&gt;$i&lt;/span&gt;&lt;span style="color: rgb(255, 160, 160);"&gt;"&lt;/span&gt;);&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;41 &lt;/span&gt;  &lt;span style="color: rgb(240, 230, 140);"&gt;&lt;b&gt;push&lt;/b&gt;&lt;/span&gt;(&lt;span style="color: rgb(152, 251, 152);"&gt;@thread&lt;/span&gt;,&lt;span style="color: rgb(152, 251, 152);"&gt;$t&lt;/span&gt;);&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;42 &lt;/span&gt;}&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;43 &lt;/span&gt;&lt;span style="color: rgb(240, 230, 140);"&gt;&lt;b&gt;for&lt;/b&gt;&lt;/span&gt;(&lt;span style="color: rgb(152, 251, 152);"&gt;@thread&lt;/span&gt;) {&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;44 &lt;/span&gt;  &lt;span style="color: rgb(152, 251, 152);"&gt;$_&lt;/span&gt;-&gt;&lt;span style="color: rgb(240, 230, 140);"&gt;&lt;b&gt;join&lt;/b&gt;&lt;/span&gt;()&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;45 &lt;/span&gt;}&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;46 &lt;/span&gt;&lt;span style="color: rgb(255, 165, 0);"&gt;#print  Dumper($hosts)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;47 &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1890082641812270284-7577175290691074496?l=xiaowen86.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiaowen86.blogspot.com/feeds/7577175290691074496/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiaowen86.blogspot.com/2010/06/post-highlight-code-in-blog-using-vim.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1890082641812270284/posts/default/7577175290691074496'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1890082641812270284/posts/default/7577175290691074496'/><link rel='alternate' type='text/html' href='http://xiaowen86.blogspot.com/2010/06/post-highlight-code-in-blog-using-vim.html' title='Post highlight code in blog using vim'/><author><name>xiao_wen86</name><uri>http://www.blogger.com/profile/00396984368726241450</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1890082641812270284.post-7080328028015123662</id><published>2010-06-24T00:24:00.000-07:00</published><updated>2010-06-24T00:31:52.346-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='cygwin'/><title type='text'>poderosa connected cygwin error</title><content type='html'>&lt;span&gt;when I down load poderosa(a excelent ssh client),and this error occured:&lt;/span&gt;&lt;div class="blogstory"&gt;&lt;br /&gt;"Index was  out of range. Must be non-negative and less than the size  of the collection.&lt;br /&gt;&lt;p&gt;Parameter name: startIndex""&lt;/p&gt;&lt;p&gt;and I search the source code and Foundout where error occured:&lt;br /&gt;&lt;/p&gt;&lt;p&gt;int LocalShell.cs&lt;br /&gt;&lt;/p&gt; &lt;p&gt;                char[] buf = new  char[XXX];&lt;br /&gt;               int n =  Win32.GetEnvironmentVariable("PATH", buf,  buf.Length);&lt;/p&gt;&lt;p&gt;XXX is the buffer size for enviroment PATH,and my PATH is too long to filled in the buf,&lt;/p&gt;&lt;p&gt;I change XXX up to 8096 and Everything goes well.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1890082641812270284-7080328028015123662?l=xiaowen86.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiaowen86.blogspot.com/feeds/7080328028015123662/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiaowen86.blogspot.com/2010/06/poderosa-connected-cygwin-error.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1890082641812270284/posts/default/7080328028015123662'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1890082641812270284/posts/default/7080328028015123662'/><link rel='alternate' type='text/html' href='http://xiaowen86.blogspot.com/2010/06/poderosa-connected-cygwin-error.html' title='poderosa connected cygwin error'/><author><name>xiao_wen86</name><uri>http://www.blogger.com/profile/00396984368726241450</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1890082641812270284.post-4946578815956944119</id><published>2010-06-24T00:05:00.000-07:00</published><updated>2010-06-24T00:36:47.943-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='information'/><title type='text'>Important IT blog and search engine</title><content type='html'>&lt;div id="primary"&gt;    &lt;div class="entry"&gt;   this is a list of search engine and  IT technical blog,most of them are written in English,if you care much about IT new,Subscribe them using Google reader is a good choice,&lt;br /&gt;Google's official Blog:&lt;br /&gt; &lt;div class="post-content"&gt;     &lt;ul&gt;&lt;li&gt;&lt;a target="_blank" href="http://googlechinablog.com/"&gt;Google黑板报&lt;/a&gt; (&lt;a target="_blank" href="http://googlechinablog.com/atom.xml"&gt;RSS&lt;/a&gt;)&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;a target="_blank" href="http://googleblog.blogspot.com/"&gt;Official  Google Blog &lt;/a&gt;(&lt;a target="_blank" href="http://googleblog.blogspot.com/atom.xml"&gt;RSS&lt;/a&gt;)&lt;/li&gt;&lt;li&gt;&lt;a target="_blank" href="http://buzz.blogger.com/"&gt;Blogger Buzz&lt;/a&gt; (&lt;a target="_blank" href="http://feeds.feedburner.com/BloggerBuzz"&gt;RSS&lt;/a&gt;)&lt;/li&gt;&lt;li&gt;&lt;a target="_blank" href="http://googlereader.blogspot.com/"&gt;Official  Google Reader Blog&lt;/a&gt; (&lt;a target="_blank" href="http://googlereader.blogspot.com/atom.xml"&gt;RSS&lt;/a&gt;)&lt;/li&gt;&lt;li&gt;&lt;a target="_blank" href="http://adsense.blogspot.com/"&gt;Inside  AdSense &lt;/a&gt;(&lt;a target="_blank" href="http://adsense.blogspot.com/atom.xml"&gt;RSS&lt;/a&gt;)&lt;/li&gt;&lt;li&gt;&lt;a target="_blank" href="http://adwords.blogspot.com/"&gt;Inside  AdWords&lt;/a&gt; (&lt;a target="_blank" href="http://adwords.blogspot.com/atom.xml"&gt;RSS&lt;/a&gt;)&lt;/li&gt;&lt;li&gt;&lt;a target="_blank" href="http://analytics.blogspot.com/"&gt;Google  Analytics Blog&lt;/a&gt; (&lt;a target="_blank" href="http://analytics.blogspot.com/atom.xml"&gt;RSS&lt;/a&gt;)&lt;/li&gt;&lt;li&gt;&lt;a target="_blank" href="http://googlewebmastercentral.blogspot.com/"&gt;Official Google  Webmaster Central Blog&lt;/a&gt; (&lt;a target="_blank" href="http://googlewebmastercentral.blogspot.com/atom.xml"&gt;RSS&lt;/a&gt;)&lt;/li&gt;&lt;li&gt;&lt;a title="AdWords API Blog" href="http://adwordsapi.blogspot.com/"&gt;AdWords  API Blog&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a title="Google AJAX Search API" href="http://googleajaxsearchapi.blogspot.com/"&gt;Google AJAX Search API&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a title="Google Analytics Blog" href="http://analytics.blogspot.com/"&gt;Google Analytics Blog&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a title="Google Base Blog" href="http://googlebase.blogspot.com/"&gt;Google  Base Blog&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a title="Google Checkout" href="http://googlecheckout.blogspot.com/"&gt;Google Checkout&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a title="Google Code" href="http://code.google.com/"&gt;Google Code&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a title="Google CPG Blog" href="http://google-cpg.blogspot.com/"&gt;Google  CPG Blog&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a title="Google Custom Search Blog" href="http://googlecustomsearch.blogspot.com/"&gt;Google Custom Search Blog&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a title="Google Data APIs Blog" href="http://googledataapis.blogspot.com/"&gt;Google Data APIs Blog&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a title="Google Docs &amp;amp; Spreadsheets" href="http://google-d-s.blogspot.com/"&gt;Google Docs &amp;amp; Spreadsheets&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a title="Google Enterprise Blog" href="http://googleenterprise.blogspot.com/"&gt;Google Enterprise Blog&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a title="Google Mac Blog" href="http://googlemac.blogspot.com/"&gt;Google  Mac Blog&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a title="Google Maps API Blog" href="http://googlemapsapi.blogspot.com/"&gt;Google Maps API Blog&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a title="Google Reader Blog" href="http://googlereader.blogspot.com/"&gt;Google Reader Blog&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a title="Google Research" href="http://googleresearch.blogspot.com/"&gt;Google Research&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a title="Google Talkabout" href="http://googletalk.blogspot.com/"&gt;Google  Talkabout&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a title="Google Video Blog" href="http://googlevideo.blogspot.com/"&gt;Google  Video Blog&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a title="Google Web Toolkit Blog" href="http://googlewebtoolkit.blogspot.com/"&gt;Google Web Toolkit Blog&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a title="Inside Google Book Search" href="http://booksearch.blogspot.com/"&gt;Inside Google Book Search&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a title="Inside Google Desktop" href="http://googledesktop.blogspot.com/"&gt;Inside Google Desktop&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt; &lt;p&gt;Others:&lt;br /&gt;&lt;/p&gt; &lt;ul&gt;&lt;li&gt;&lt;a target="_blank" href="http://hi.baidu.com/baidu"&gt;百度的空间 &lt;/a&gt;(&lt;a target="_blank" href="http://hi.baidu.com/baidu/rss"&gt;RSS&lt;/a&gt;)&lt;/li&gt;&lt;li&gt;&lt;a target="_blank" href="http://ysearchblog.cn/"&gt;雅虎搜索日志 &lt;/a&gt;(&lt;a target="_blank" href="http://ysearchblog.cn/index.xml"&gt;RSS&lt;/a&gt;)&lt;/li&gt;&lt;li&gt;&lt;a target="_blank" href="http://sogou.blog.sohu.com/"&gt;搜狗官方博客&lt;/a&gt; (&lt;a target="_blank" href="http://sogou.blog.sohu.com/rss"&gt;RSS&lt;/a&gt;)&lt;/li&gt;&lt;/ul&gt; &lt;p&gt;some good techni&lt;br /&gt;&lt;/p&gt; &lt;ul&gt;&lt;li&gt;&lt;a target="_blank" href="http://www.ysearchblog.com/"&gt;Yahoo! Search  blog &lt;/a&gt;(&lt;a target="_blank" href="http://www.ysearchblog.com/index.xml"&gt;RSS&lt;/a&gt;)&lt;/li&gt;&lt;li&gt;&lt;a target="_blank" href="http://www.techcrunch.com/"&gt;TechCrunch &lt;/a&gt;(&lt;a target="_blank" href="http://feeds.feedburner.com/Techcrunch"&gt;RSS&lt;/a&gt;)&lt;/li&gt;&lt;li&gt;&lt;a target="_blank" href="http://www.readwriteweb.com/"&gt;Read/WriteWeb&lt;/a&gt;  (&lt;a target="_blank" href="http://www.readwriteweb.com/rss.xml"&gt;RSS&lt;/a&gt;)&lt;/li&gt;&lt;li&gt;&lt;a target="_blank" href="http://blog.outer-court.com/"&gt;Google  Blogoscoped&lt;/a&gt; (&lt;a target="_blank" href="http://blog.outer-court.com/rss.xml"&gt;RSS&lt;/a&gt;)&lt;/li&gt;&lt;li&gt;&lt;a target="_blank" href="http://www.engadget.com/"&gt;Engadget&lt;/a&gt; (&lt;a target="_blank" href="http://www.engadget.com/rss.xml"&gt;RSS&lt;/a&gt;)&lt;/li&gt;&lt;li&gt;&lt;a target="_blank" href="http://www.mattcutts.com/blog"&gt;Matt Cutts&lt;/a&gt;  (&lt;a target="_blank" href="http://www.mattcutts.com/blog/feed/"&gt;RSS&lt;/a&gt;)&lt;/li&gt;&lt;li&gt;&lt;a target="_blank" href="http://www.boingboing.net/"&gt;Boing Boing&lt;/a&gt;  (&lt;a target="_blank" href="http://feeds.feedburner.com/boingboing/iBag"&gt;RSS&lt;/a&gt;)&lt;/li&gt;&lt;li&gt;&lt;a target="_blank" href="http://www.quickonlinetips.com/"&gt;Quick  Online Tips&lt;/a&gt; (&lt;a target="_blank" href="http://feeds.feedburner.com/QuickOnlineTips"&gt;RSS&lt;/a&gt;)&lt;/li&gt;&lt;li&gt;&lt;a target="_blank" href="http://www.problogger.net/"&gt;ProBlogger Blog  Tips &lt;/a&gt;(&lt;a target="_blank" href="http://www.problogger.net/feed/"&gt;RSS&lt;/a&gt;)&lt;/li&gt;&lt;li&gt;&lt;a target="_blank" href="http://www.techmeme.com/"&gt;Techmeme&lt;/a&gt; (&lt;a target="_blank" href="http://www.techmeme.com/index.xml"&gt;RSS&lt;/a&gt;)&lt;/li&gt;&lt;li&gt;&lt;a target="_blank" href="http://www.gearthblog.com/"&gt;Google Earth  Blog &lt;/a&gt;(&lt;a target="_blank" href="http://www.gearthblog.com/index.xml"&gt;RSS&lt;/a&gt;)&lt;/li&gt;&lt;li&gt;&lt;a target="_blank" href="http://googlesightseeing.com/"&gt;Google  Sightseeing &lt;/a&gt;(&lt;a target="_blank" href="http://googlesightseeing.com/feed/"&gt;RSS&lt;/a&gt;)&lt;/li&gt;&lt;/ul&gt;RSS this blogs and you will get latest IT information quickly.&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;    &lt;/div&gt;  &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1890082641812270284-4946578815956944119?l=xiaowen86.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiaowen86.blogspot.com/feeds/4946578815956944119/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiaowen86.blogspot.com/2010/06/import-it-blog-and-search-engine.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1890082641812270284/posts/default/4946578815956944119'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1890082641812270284/posts/default/4946578815956944119'/><link rel='alternate' type='text/html' href='http://xiaowen86.blogspot.com/2010/06/import-it-blog-and-search-engine.html' title='Important IT blog and search engine'/><author><name>xiao_wen86</name><uri>http://www.blogger.com/profile/00396984368726241450</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1890082641812270284.post-3961047524878183839</id><published>2010-06-23T19:12:00.000-07:00</published><updated>2010-06-23T20:29:49.674-07:00</updated><title type='text'>Use email to post blog in google blogger</title><content type='html'>&lt;p&gt;Use email to post blog　&lt;/p&gt;&lt;p&gt;　isn't it very complicate to post your blog?there is tip that let you post your blog by send a email instead of  logging on the website of blogger.&lt;/p&gt;&lt;p&gt;   Specific method is :first log on your blogger account,step into setting,and choose&lt;a href="blog-options-email.g?blogID=1890082641812270284"&gt; Email  &amp;amp; Mobile&lt;/a&gt; and change Email Posting Address to a proper emailaddress.every mail that send to this address will be post automaticaly.and "BlogSend Address" is another address will notify when a new article is posted.&lt;/p&gt;&lt;p&gt;this is another tricj that update blogger as well as MSN Space. becase of  MSN Space is also support post by email,so whenever you post a blog in blogger by email,blogger will send your blog content to the address list in BlogSend.&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1890082641812270284-3961047524878183839?l=xiaowen86.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiaowen86.blogspot.com/feeds/3961047524878183839/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiaowen86.blogspot.com/2010/06/use-email-to-post-blog-in-google.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1890082641812270284/posts/default/3961047524878183839'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1890082641812270284/posts/default/3961047524878183839'/><link rel='alternate' type='text/html' href='http://xiaowen86.blogspot.com/2010/06/use-email-to-post-blog-in-google.html' title='Use email to post blog in google blogger'/><author><name>xiao_wen86</name><uri>http://www.blogger.com/profile/00396984368726241450</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1890082641812270284.post-5661602805386535981</id><published>2010-06-23T18:56:00.000-07:00</published><updated>2010-06-23T19:03:28.121-07:00</updated><title type='text'>Solution for "ImportError: No module named vtkCommonPython"</title><content type='html'>&lt;p&gt;After I compile and install VTK.net Wrapper,and this problem appear.&lt;/p&gt;&lt;p&gt;and after a while i found out python looks for it's module by their extension .py .pyc .pyd&lt;/p&gt;&lt;p&gt;but  VS2005 compile the code  module use dll for it's extension.&lt;/p&gt;&lt;p&gt;so I rename vtkCommonPython.dll to vtkCommonPython.pyd and everything does well.&lt;/p&gt;&lt;p&gt;Solution：&lt;/p&gt;  &lt;p&gt;change  vtk*Python.dll to vtk*Python.pyd&lt;/p&gt; &lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1890082641812270284-5661602805386535981?l=xiaowen86.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiaowen86.blogspot.com/feeds/5661602805386535981/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiaowen86.blogspot.com/2010/06/solution-for-importerror-no-module.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1890082641812270284/posts/default/5661602805386535981'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1890082641812270284/posts/default/5661602805386535981'/><link rel='alternate' type='text/html' href='http://xiaowen86.blogspot.com/2010/06/solution-for-importerror-no-module.html' title='Solution for &quot;ImportError: No module named vtkCommonPython&quot;'/><author><name>xiao_wen86</name><uri>http://www.blogger.com/profile/00396984368726241450</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1890082641812270284.post-1199460868834261151</id><published>2010-06-23T18:44:00.000-07:00</published><updated>2010-06-23T18:53:24.287-07:00</updated><title type='text'>Convert between C FILE pointer and File descripter</title><content type='html'>&lt;p&gt;FILE* to file descripter:&lt;br /&gt;&lt;/p&gt;&lt;p&gt;int fileno(FILE *stream);&lt;/p&gt;&lt;p&gt;fd to FILE*&lt;br /&gt;&lt;/p&gt; &lt;p&gt;FILE *fdopen(int fd, const char *mode)&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1890082641812270284-1199460868834261151?l=xiaowen86.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiaowen86.blogspot.com/feeds/1199460868834261151/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiaowen86.blogspot.com/2010/06/convert-between-c-file-pointer-and-file.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1890082641812270284/posts/default/1199460868834261151'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1890082641812270284/posts/default/1199460868834261151'/><link rel='alternate' type='text/html' href='http://xiaowen86.blogspot.com/2010/06/convert-between-c-file-pointer-and-file.html' title='Convert between C FILE pointer and File descripter'/><author><name>xiao_wen86</name><uri>http://www.blogger.com/profile/00396984368726241450</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
