<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>Harryli's Favorite Links from Diigo</title>
    <link>http://www.diigo.com/user/Harryli</link>
    <pubDate>Thu, 02 Oct 2008 01:46:56 -0000</pubDate>
    <lastBuildDate>Thu, 02 Oct 2008 01:46:56 -0000</lastBuildDate>
    <item>
      <title>nanoc</title>
      <link>http://nanoc.stoneship.org/help/rdoc</link>
      <description>&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Highlights and Sticky Notes:&lt;/strong&gt;&lt;p&gt;&lt;div class=&quot;content&quot;&gt;A &lt;a href=&quot;Template.html&quot;&gt;Nanoc::Template&lt;/a&gt; represents a template, which
can be used for creating &lt;a href=&quot;Template.html#M000160&quot;&gt;new&lt;/a&gt; pages.&lt;/div&gt;&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;content&quot;&gt;A &lt;a href=&quot;Layout.html&quot;&gt;Nanoc::Layout&lt;/a&gt; represents a layout in a nanoc
site. It has content, attributes (for determining which filter to use for
laying out a page), a path (because layouts are organised hierarchically),
and a modification time (to speed up compilation).&lt;/div&gt;&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;content&quot;&gt;Pages don‘t necessary have to be created using templates, but they
can be useful for generating pages where you only have to &quot;fill in the
blanks&quot;.&lt;/div&gt;&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;content&quot;&gt;The filesystem data source stores its pages in nested directories. A page
is represented by a single file. The root directory is the
‘content’ directory.&lt;/div&gt;&lt;/p&gt;&lt;p&gt;&lt;p&gt;&lt;strong&gt;Tags:&lt;/strong&gt; &lt;a href='http://www.diigo.com/user/harryli/no_tag' rel='tag'&gt;no_tag&lt;/a&gt; &lt;/p&gt;&lt;p&gt;&lt;strong&gt;Posted by:&lt;/strong&gt; &lt;a href='http://www.diigo.com/user/harryli'&gt;harryli&lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Thu, 02 Oct 2008 01:46:56 -0000</pubDate>
    </item>
    <item>
      <title>Help with assets - nanoc | Google Groups</title>
      <link>http://groups.google.com/group/nanoc/browse_thread/thread/90190490977b0bcb</link>
      <description>&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Highlights and Sticky Notes:&lt;/strong&gt;&lt;p&gt;&lt;div class=&quot;content&quot;&gt;store the assets in the output directory.&lt;/div&gt;&lt;/p&gt;&lt;p&gt;&lt;p&gt;&lt;strong&gt;Tags:&lt;/strong&gt; &lt;a href='http://www.diigo.com/user/harryli/no_tag' rel='tag'&gt;no_tag&lt;/a&gt; &lt;/p&gt;&lt;p&gt;&lt;strong&gt;Posted by:&lt;/strong&gt; &lt;a href='http://www.diigo.com/user/harryli'&gt;harryli&lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Wed, 01 Oct 2008 04:12:10 -0000</pubDate>
    </item>
    <item>
      <title>nanoc » Help » Manual » Chapter 2: Using nanoc</title>
      <link>http://nanoc.stoneship.org/help/manual/chapter-2</link>
      <description>&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Highlights and Sticky Notes:&lt;/strong&gt;&lt;p&gt;&lt;div class=&quot;content&quot;&gt;layout is used to add this missing structure to the page.&lt;/div&gt;&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;content&quot;&gt;For a layout to be useful, it must output the page’s content at a certain point.&lt;/div&gt;&lt;/p&gt;&lt;p&gt;&lt;p&gt;&lt;strong&gt;Tags:&lt;/strong&gt; &lt;a href='http://www.diigo.com/user/harryli/no_tag' rel='tag'&gt;no_tag&lt;/a&gt; &lt;/p&gt;&lt;p&gt;&lt;strong&gt;Posted by:&lt;/strong&gt; &lt;a href='http://www.diigo.com/user/harryli'&gt;harryli&lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Mon, 29 Sep 2008 22:33:23 -0000</pubDate>
    </item>
    <item>
      <title>三鹿集团曝不法奶农向鲜牛奶中掺入三聚氰胺</title>
      <link>http://comment.news.163.com/news_guonei5_bbs/4LKUAVM20001124J.html</link>
      <description>&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Highlights and Sticky Notes:&lt;/strong&gt;&lt;p&gt;&lt;div class=&quot;content&quot;&gt;1.三聚氰胺不溶于水，其实看上去三聚氰胺就是一塑料粉末，要在液态奶里面掺进不溶于水的三聚氰胺技术上几乎不可能(“三聚氰胺是一种三嗪类含氮杂环有机化合物，微溶于水，呈弱碱性。”“溶解度在每100g水中为0.1g以下的，称为微溶。”) &lt;br /&gt;2.奶粉生产过程中要对液态奶进行喷雾干燥，如果液态奶里面含有不可溶的三聚氰胺成分的话，就会堵塞喷头，三鹿生产线都会完蛋 &lt;br /&gt;　　 &lt;br /&gt;　　3.假如真的奶农掺了三聚氰胺，那么三鹿的所有奶粉都出问题才是，事实上，只有三鹿最便宜的婴儿奶粉出了问题，其他奶粉并没有出问题，这说明三聚氰胺不是来自奶源，而是来自用来替代奶蛋白的大豆蛋白。&lt;/div&gt;&lt;/p&gt;&lt;p&gt;&lt;p&gt;&lt;strong&gt;Tags:&lt;/strong&gt; &lt;a href='http://www.diigo.com/user/harryli/no_tag' rel='tag'&gt;no_tag&lt;/a&gt; &lt;/p&gt;&lt;p&gt;&lt;strong&gt;Posted by:&lt;/strong&gt; &lt;a href='http://www.diigo.com/user/harryli'&gt;harryli&lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Mon, 29 Sep 2008 21:10:55 -0000</pubDate>
    </item>
    <item>
      <title>nanoc » Help » Tutorial</title>
      <link>http://nanoc.stoneship.org/help/tutorial</link>
      <description>&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Highlights and Sticky Notes:&lt;/strong&gt;&lt;p&gt;&lt;div class=&quot;content&quot;&gt;current working directory is the site you just created&lt;/div&gt;&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;content&quot;&gt;The pages in a nanoc site are stored in the &lt;span class=&quot;path&quot;&gt;content&lt;/span&gt; directory.&lt;/div&gt;&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;content&quot;&gt;he file ending with &lt;span class=&quot;path&quot;&gt;.yaml&lt;/span&gt; contain the page’s attributes&lt;/div&gt;&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;content&quot;&gt;actual page content&lt;/div&gt;&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;content&quot;&gt;As you probably have noticed already, the page’s content files are not really HTML files—they are &lt;em&gt;partial&lt;/em&gt; HTML files.&lt;/div&gt;&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;content&quot;&gt;Every page can have arbitrary metadata associated with it. For example, you can set the &lt;code&gt;author_name&lt;/code&gt; attribute to your own name, quite similar to how the &lt;code&gt;title&lt;/code&gt; attribute is set. Some attribute names are reserved though, such as the &lt;code&gt;content&lt;/code&gt; one (mentioned above), the &lt;code&gt;path&lt;/code&gt; (which contains the page’s path), and a few others. &lt;a href=&quot;/help/manual/chapter-2/&quot;&gt;Chapter 2 of the manual&lt;/a&gt; has a full list.&lt;/div&gt;&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;content&quot;&gt;&lt;i&gt;Custom&lt;/i&gt; section&lt;/div&gt;&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;content&quot;&gt;with two files in it: the content file and the meta file.&lt;/div&gt;&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;content&quot;&gt;“built-in” section:&lt;/div&gt;&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;content&quot;&gt;laying out the page&lt;/div&gt;&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;content&quot;&gt;&lt;span class=&quot;path&quot;&gt;style.css&lt;/span&gt; in the output directory.&lt;/div&gt;&lt;/p&gt;&lt;p&gt;&lt;p&gt;&lt;strong&gt;Tags:&lt;/strong&gt; &lt;a href='http://www.diigo.com/user/harryli/no_tag' rel='tag'&gt;no_tag&lt;/a&gt; &lt;/p&gt;&lt;p&gt;&lt;strong&gt;Posted by:&lt;/strong&gt; &lt;a href='http://www.diigo.com/user/harryli'&gt;harryli&lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Mon, 29 Sep 2008 10:31:30 -0000</pubDate>
    </item>
    <item>
      <title>Project Kenai -- We're More Than Just a Forge</title>
      <link>http://kenai.com/projects/help/forums/general/topics/93-Why-Kenai-?</link>
      <description>&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Highlights and Sticky Notes:&lt;/strong&gt;&lt;p&gt;&lt;div class=&quot;content&quot;&gt;First, let us start by saying that the goal of Project Kenai is to be more than just a forge for hosting FOSS projects.  It's our intent to make Project Kenai THE online destination for developers to not only host their open source projects, but to also make it an environment where you can easily take advantage of integrated services to connect, communicate and collaborate with peers sharing similar technical interests and passion.  Sure, it's a lofty goal, but one we're focused on delivering.&lt;/div&gt;&lt;/p&gt;&lt;p&gt;&lt;p&gt;&lt;strong&gt;Tags:&lt;/strong&gt; &lt;a href='http://www.diigo.com/user/harryli/no_tag' rel='tag'&gt;no_tag&lt;/a&gt; &lt;/p&gt;&lt;p&gt;&lt;strong&gt;Posted by:&lt;/strong&gt; &lt;a href='http://www.diigo.com/user/harryli'&gt;harryli&lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Mon, 29 Sep 2008 10:05:33 -0000</pubDate>
    </item>
    <item>
      <title>博客变味了_网易科技</title>
      <link>http://tech.163.com/08/0925/11/4MMCEC4I000915BF.html</link>
      <description>&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Highlights and Sticky Notes:&lt;/strong&gt;&lt;p&gt;&lt;div class=&quot;content&quot;&gt;1024拥有1000人的营销队伍，可监控10万个论坛，并掌控了独到的网络言论监控系统，可在第一时间为企业提供网络言论的监控报告，并对相关言论作出迅速相应反应。按照坊间广为流传的说法，“1024”还备有互有分工的论坛灌水人员，随时待命出击。&lt;/div&gt;&lt;/p&gt;&lt;p&gt;&lt;p&gt;&lt;strong&gt;Tags:&lt;/strong&gt; &lt;a href='http://www.diigo.com/user/harryli/no_tag' rel='tag'&gt;no_tag&lt;/a&gt; &lt;/p&gt;&lt;p&gt;&lt;strong&gt;Posted by:&lt;/strong&gt; &lt;a href='http://www.diigo.com/user/harryli'&gt;harryli&lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Fri, 26 Sep 2008 21:55:46 -0000</pubDate>
    </item>
    <item>
      <title>URL Encoding</title>
      <link>http://www.blooberry.com/indexdot/html/topics/urlencoding.htm</link>
      <description>&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Highlights and Sticky Notes:&lt;/strong&gt;&lt;p&gt;&lt;div class=&quot;content&quot;&gt;URLs should be encoded everywhere in an HTML document that a URL is
     referenced to import an object (&lt;a href=&quot;../tagpages/a/a-hyperlink.htm&quot;&gt;A&lt;/a&gt;, 
     &lt;a href=&quot;../tagpages/a/applet.htm&quot;&gt;APPLET&lt;/a&gt;, &lt;a href=&quot;../tagpages/a/area.htm&quot;&gt;AREA&lt;/a&gt;, 
     &lt;a href=&quot;../tagpages/b/base.htm&quot;&gt;BASE&lt;/a&gt;, &lt;a href=&quot;../tagpages/b/bgsound.htm&quot;&gt;BGSOUND&lt;/a&gt;, 
     &lt;a href=&quot;../tagpages/b/body.htm&quot;&gt;BODY&lt;/a&gt;,
     &lt;a href=&quot;../tagpages/e/embed.htm&quot;&gt;EMBED&lt;/a&gt;, &lt;a href=&quot;../tagpages/f/form.htm&quot;&gt;FORM&lt;/a&gt;, 
     &lt;a href=&quot;../tagpages/f/frame.htm&quot;&gt;FRAME&lt;/a&gt;, &lt;a href=&quot;../tagpages/i/iframe.htm&quot;&gt;IFRAME&lt;/a&gt;, 
     &lt;a href=&quot;../tagpages/i/ilayer.htm&quot;&gt;ILAYER&lt;/a&gt;, &lt;a href=&quot;../tagpages/i/image.htm&quot;&gt;IMG&lt;/a&gt;, 
     &lt;a href=&quot;../tagpages/i/isindex.htm&quot;&gt;ISINDEX&lt;/a&gt;, &lt;a href=&quot;../tagpages/i/inputtext.htm&quot;&gt;INPUT&lt;/a&gt;, 
     &lt;a href=&quot;../tagpages/l/layer.htm&quot;&gt;LAYER&lt;/a&gt;, &lt;a href=&quot;../tagpages/l/link.htm&quot;&gt;LINK&lt;/a&gt;,
     &lt;a href=&quot;../tagpages/o/object.htm&quot;&gt;OBJECT&lt;/a&gt;, &lt;a href=&quot;../tagpages/s/script.htm&quot;&gt;SCRIPT&lt;/a&gt;, 
     &lt;a href=&quot;../tagpages/s/sound.htm&quot;&gt;SOUND&lt;/a&gt;, &lt;a href=&quot;../tagpages/t/table.htm&quot;&gt;TABLE&lt;/a&gt;, 
     &lt;a href=&quot;../tagpages/t/thtd.htm&quot;&gt;TD&lt;/a&gt;, &lt;a href=&quot;../tagpages/t/thtd.htm&quot;&gt;TH&lt;/a&gt;, 
     and &lt;a href=&quot;../tagpages/t/tr.htm&quot;&gt;TR&lt;/a&gt; elements.)&lt;/div&gt;&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;content&quot;&gt;URL encoding of a character consists of a &quot;%&quot; symbol,
     followed by the two-digit hexadecimal representation (case-insensitive)
     of the &lt;a href=&quot;../tagpages/text.htm&quot;&gt;ISO-Latin&lt;/a&gt; code point for the
     character.&lt;/div&gt;&lt;/p&gt;&lt;p&gt;&lt;p&gt;&lt;strong&gt;Tags:&lt;/strong&gt; &lt;a href='http://www.diigo.com/user/harryli/no_tag' rel='tag'&gt;no_tag&lt;/a&gt; &lt;/p&gt;&lt;p&gt;&lt;strong&gt;Posted by:&lt;/strong&gt; &lt;a href='http://www.diigo.com/user/harryli'&gt;harryli&lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Wed, 24 Sep 2008 02:42:34 -0000</pubDate>
    </item>
    <item>
      <title>18.5 urllib -- Open arbitrary resources by URL</title>
      <link>http://docs.python.org/lib/module-urllib.html</link>
      <description>&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Highlights and Sticky Notes:&lt;/strong&gt;&lt;p&gt;&lt;div class=&quot;content&quot;&gt;&lt;dt&gt;&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr valign=&quot;baseline&quot;&gt;&lt;td&gt;&lt;div class=&quot;nobr&quot;&gt;&lt;b&gt;&lt;tt class=&quot;function&quot; id=&quot;l2h-3901&quot; xml:id=&quot;l2h-3901&quot;&gt;urlencode&lt;/tt&gt;&lt;/b&gt;(&lt;/div&gt;&lt;/td&gt;
  &lt;td&gt;&lt;var&gt;query&lt;/var&gt;&lt;big&gt;[&lt;/big&gt;&lt;var&gt;, doseq&lt;/var&gt;&lt;big&gt;]&lt;/big&gt;&lt;var&gt;&lt;/var&gt;)&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/dt&gt;
&lt;dd&gt;
Convert a mapping object or a sequence of two-element tuples  to a
``url-encoded'' string, suitable to pass to
&lt;tt class=&quot;function&quot;&gt;urlopen()&lt;/tt&gt; above as the optional &lt;var&gt;data&lt;/var&gt; argument.  This
is useful to pass a dictionary of form fields to a &lt;code&gt;POST&lt;/code&gt;
request.  The resulting string is a series of
&lt;code&gt;&lt;var&gt;key&lt;/var&gt;=&lt;var&gt;value&lt;/var&gt;&lt;/code&gt; pairs separated by &quot;&lt;tt class=&quot;character&quot;&gt;&amp;amp;&lt;/tt&gt;&quot;
characters, where both &lt;var&gt;key&lt;/var&gt; and &lt;var&gt;value&lt;/var&gt; are quoted using
&lt;tt class=&quot;function&quot;&gt;quote_plus()&lt;/tt&gt; above.  If the optional parameter &lt;var&gt;doseq&lt;/var&gt; is
present and evaluates to true, individual &lt;code&gt;&lt;var&gt;key&lt;/var&gt;=&lt;var&gt;value&lt;/var&gt;&lt;/code&gt; pairs
are generated for each element of the sequence.
When a sequence of two-element tuples is used as the &lt;var&gt;query&lt;/var&gt; argument,
the first element of each tuple is a key and the second is a value.  The
order of parameters in the encoded string will match the order of parameter
tuples in the sequence.
The &lt;tt class=&quot;module&quot;&gt;&lt;a href=&quot;module-cgi.html&quot;&gt;cgi&lt;/a&gt;&lt;/tt&gt; module provides the functions
&lt;tt class=&quot;function&quot;&gt;parse_qs()&lt;/tt&gt; and &lt;tt class=&quot;function&quot;&gt;parse_qsl()&lt;/tt&gt; which are used to
parse query strings into Python data structures.&lt;/dd&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;&lt;p&gt;&lt;strong&gt;Tags:&lt;/strong&gt; &lt;a href='http://www.diigo.com/user/harryli/no_tag' rel='tag'&gt;no_tag&lt;/a&gt; &lt;/p&gt;&lt;p&gt;&lt;strong&gt;Posted by:&lt;/strong&gt; &lt;a href='http://www.diigo.com/user/harryli'&gt;harryli&lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Tue, 23 Sep 2008 22:37:11 -0000</pubDate>
    </item>
    <item>
      <title>Overview - Google App Engine - Google Code</title>
      <link>http://code.google.com/appengine/docs/urlfetch/overview.html</link>
      <description>&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Highlights and Sticky Notes:&lt;/strong&gt;&lt;p&gt;&lt;div class=&quot;content&quot;&gt;One way to control the user experience of a slow remote server is to use browser JavaScript to call a separate handler on your application that performs the action that requires URL fetching, then report the error to the user if the handler fails.&lt;/div&gt;&lt;/p&gt;&lt;p&gt;&lt;p&gt;&lt;strong&gt;Tags:&lt;/strong&gt; &lt;a href='http://www.diigo.com/user/harryli/no_tag' rel='tag'&gt;no_tag&lt;/a&gt; &lt;/p&gt;&lt;p&gt;&lt;strong&gt;Posted by:&lt;/strong&gt; &lt;a href='http://www.diigo.com/user/harryli'&gt;harryli&lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Tue, 23 Sep 2008 11:50:30 -0000</pubDate>
    </item>
    <item>
      <title>Handwriting on the Sky - Encoding.</title>
      <link>http://glyf.livejournal.com/39250.html</link>
      <description>&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Highlights and Sticky Notes:&lt;/strong&gt;&lt;p&gt;&lt;div class=&quot;content&quot;&gt;&lt;blockquote&gt;Are people claiming that there should be no default encoding?&lt;/blockquote&gt;That's what I would say, yes.  The default encoding is a process-global variable that sets you up for a lot of confusion, since encoding is &lt;em&gt;always&lt;/em&gt; context and data-type dependent.  Occasionally I get lazy and use the default encoding, since I know that regardless of what it is it probably has ASCII as a subset (and I know that my data is something like an&lt;/div&gt;&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;content&quot;&gt;he term &quot;string&quot; is meaningless.&lt;/div&gt;&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;content&quot;&gt;The fact that English text, the sort that programmers commonly use to converse with, code with, identify network endpoints with and test program input with, looks very similar in its decoded and encoded forms, is an unfortunate and misleading phenomenon.&lt;/div&gt;&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;content&quot;&gt;the system's default encoding implies certain things to a lot of different software.  It would be extremely unwise to force your encoding choice upon everyone else.&lt;/div&gt;&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;content&quot;&gt;Real-world software still handles multilingual text very badly, and encoding and decoding properly within your software does no good and is a lot of extra work when you're interfacing with a system that only deals with code points 65-90.&lt;/div&gt;&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;content&quot;&gt;I'm most interested in server processes, where any local default encoding is itself a bug, because there's no &quot;local&quot;.&lt;/div&gt;&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;content&quot;&gt;or most practical cases, a UTF-8 default encoding is a much more &lt;i&gt;compatible&lt;/i&gt; environment than the one we have.  I agree that all text in Unicode is the right solution &lt;i&gt;ultimately&lt;/i&gt;, but it just isn't an option &lt;i&gt;now&lt;/i&gt;.&lt;/div&gt;&lt;/p&gt;&lt;p&gt;&lt;p&gt;&lt;strong&gt;Tags:&lt;/strong&gt; &lt;a href='http://www.diigo.com/user/harryli/no_tag' rel='tag'&gt;no_tag&lt;/a&gt; &lt;/p&gt;&lt;p&gt;&lt;strong&gt;Posted by:&lt;/strong&gt; &lt;a href='http://www.diigo.com/user/harryli'&gt;harryli&lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Tue, 23 Sep 2008 03:58:41 -0000</pubDate>
    </item>
    <item>
      <title>about:cmlenz - The Truth About Unicode In Python</title>
      <link>http://www.cmlenz.net/archives/2008/07/the-truth-about-unicode-in-python</link>
      <description>&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Highlights and Sticky Notes:&lt;/strong&gt;&lt;p&gt;&lt;div class=&quot;content&quot;&gt;Basically what Python &lt;em&gt;does&lt;/em&gt; provide out of the box is “only” encoding/decoding, &lt;a href=&quot;http://unicode.org/faq/normalization.html&quot;&gt;normalization&lt;/a&gt;, and some other bits such as simple case conversion and splitting on whitespace.&lt;/div&gt;&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;content&quot;&gt;I believe that in the context of this discussion, the term &quot;string&quot; is meaningless. There is text, and there is byte-oriented data (which may very well represent text, but is not yet converted to it). In Python types, Text is unicode. Data is str. The idea of &quot;non-Unicode text&quot; is just a programming error waiting to happen.&lt;/div&gt;&lt;/p&gt;&lt;p&gt;&lt;p&gt;&lt;strong&gt;Tags:&lt;/strong&gt; &lt;a href='http://www.diigo.com/user/harryli/no_tag' rel='tag'&gt;no_tag&lt;/a&gt; &lt;/p&gt;&lt;p&gt;&lt;strong&gt;Posted by:&lt;/strong&gt; &lt;a href='http://www.diigo.com/user/harryli'&gt;harryli&lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Tue, 23 Sep 2008 03:45:14 -0000</pubDate>
    </item>
    <item>
      <title>Unicode - PythonInfo Wiki</title>
      <link>http://wiki.python.org/moin/Unicode</link>
      <description>&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Highlights and Sticky Notes:&lt;/strong&gt;&lt;p&gt;&lt;div class=&quot;content&quot;&gt;In Python, the data in a unicode or byte string is exactly the same. The difference is only in how Python treats and presents the data.&lt;/div&gt;&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;content&quot;&gt;&quot;Decoded,&quot; to Python's mind, is data being treated as unicode data. &quot;Encoded,&quot; to Python's mind, is data being treated as bytes.&lt;/div&gt;&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;content&quot;&gt;And indeed: In the new Python 3.0, they're calling it just that: strings are called &quot;bytes&quot; in Python3, and unicode strings are called just &quot;strings&quot; in Python3.)&lt;/div&gt;&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;content&quot;&gt;Don't think about decoding unicode strings, and don't think about encoding bytes.&lt;/div&gt;&lt;/p&gt;&lt;p&gt;&lt;p&gt;&lt;strong&gt;Tags:&lt;/strong&gt; &lt;a href='http://www.diigo.com/user/harryli/no_tag' rel='tag'&gt;no_tag&lt;/a&gt; &lt;/p&gt;&lt;p&gt;&lt;strong&gt;Posted by:&lt;/strong&gt; &lt;a href='http://www.diigo.com/user/harryli'&gt;harryli&lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Tue, 23 Sep 2008 03:36:47 -0000</pubDate>
    </item>
    <item>
      <title>Python Unicode Tutorial</title>
      <link>http://www.reportlab.com/i18n/python_unicode_tutorial.html</link>
      <description>&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Highlights and Sticky Notes:&lt;/strong&gt;&lt;p&gt;&lt;div class=&quot;content&quot;&gt;Once you get beyond the ASCII world, there are many different 
native encodings for different languages and operating systems.
Converting between all of these is easiest with a central
&quot;common point&quot;, and that is Unicode.  Unicode is a two-byte
encoding which covers all of the world's common writing
systems&lt;/div&gt;&lt;/p&gt;&lt;p&gt;&lt;p&gt;&lt;strong&gt;Tags:&lt;/strong&gt; &lt;a href='http://www.diigo.com/user/harryli/no_tag' rel='tag'&gt;no_tag&lt;/a&gt; &lt;/p&gt;&lt;p&gt;&lt;strong&gt;Posted by:&lt;/strong&gt; &lt;a href='http://www.diigo.com/user/harryli'&gt;harryli&lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Tue, 23 Sep 2008 03:23:09 -0000</pubDate>
    </item>
    <item>
      <title>中文输出（chinese output） - Google App Engine | Google Groups</title>
      <link>http://groups.google.com/group/google-appengine/browse_thread/thread/92b1df1698a5bf98/678ff3d6ec761e46?lnk=gst&amp;q=chinese</link>
      <description>&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Highlights and Sticky Notes:&lt;/strong&gt;&lt;p&gt;&lt;div class=&quot;content&quot;&gt;self.request.get('key') .encode('utf-8')，不是用decode。。。&lt;/div&gt;&lt;/p&gt;&lt;p&gt;&lt;p&gt;&lt;strong&gt;Tags:&lt;/strong&gt; &lt;a href='http://www.diigo.com/user/harryli/no_tag' rel='tag'&gt;no_tag&lt;/a&gt; &lt;/p&gt;&lt;p&gt;&lt;strong&gt;Posted by:&lt;/strong&gt; &lt;a href='http://www.diigo.com/user/harryli'&gt;harryli&lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Mon, 22 Sep 2008 22:11:31 -0000</pubDate>
    </item>
    <item>
      <title>Python中文全攻略 --SQLite 中文社区-- http://www.sqlite.com.cn/</title>
      <link>http://www.sqlite.com.cn/MySqlite/11/395.Html</link>
      <description>&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Highlights and Sticky Notes:&lt;/strong&gt;&lt;p&gt;&lt;div class=&quot;content&quot;&gt;可以看出在控制台，中文字符的编码是GBK而不是UTF-16。将字符串s（GBK编码）使用decode进行解码后，可以得到同等的unicode对象。&lt;/div&gt;&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;content&quot;&gt;在处理unicode中文字符串的时候，必须首先对它调用encode函数，转换成其它编码输出。&lt;/div&gt;&lt;/p&gt;&lt;p&gt;&lt;p&gt;&lt;strong&gt;Tags:&lt;/strong&gt; &lt;a href='http://www.diigo.com/user/harryli/no_tag' rel='tag'&gt;no_tag&lt;/a&gt; &lt;/p&gt;&lt;p&gt;&lt;strong&gt;Posted by:&lt;/strong&gt; &lt;a href='http://www.diigo.com/user/harryli'&gt;harryli&lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Mon, 22 Sep 2008 21:01:41 -0000</pubDate>
    </item>
    <item>
      <title>Beautiful Soup documentation</title>
      <link>http://www.crummy.com/software/BeautifulSoup/documentation.html</link>
      <description>&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Highlights and Sticky Notes:&lt;/strong&gt;&lt;p&gt;&lt;div class=&quot;content&quot;&gt;&lt;a name=&quot;arg-text&quot;&gt;&lt;b&gt;&lt;code&gt;text&lt;/code&gt;&lt;/b&gt;&lt;/a&gt; is an argument that lets
you search for &lt;code&gt;NavigableString&lt;/code&gt; objects instead of &lt;code&gt;Tag&lt;/code&gt;s. Its value
can be a string, a regular expression, a list or dictionary, &lt;code&gt;True&lt;/code&gt; or
&lt;code&gt;None&lt;/code&gt;, or a callable that takes a &lt;code&gt;NavigableString&lt;/code&gt; object as its
argument:&lt;/div&gt;&lt;/p&gt;&lt;p&gt;&lt;p&gt;&lt;strong&gt;Tags:&lt;/strong&gt; &lt;a href='http://www.diigo.com/user/harryli/no_tag' rel='tag'&gt;no_tag&lt;/a&gt; &lt;/p&gt;&lt;p&gt;&lt;strong&gt;Posted by:&lt;/strong&gt; &lt;a href='http://www.diigo.com/user/harryli'&gt;harryli&lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Sun, 21 Sep 2008 22:12:27 -0000</pubDate>
    </item>
    <item>
      <title>Issue 81 - google-app-engine-django - Google Code</title>
      <link>http://code.google.com/p/google-app-engine-django/issues/detail?id=81</link>
      <description>&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Highlights and Sticky Notes:&lt;/strong&gt;&lt;p&gt;&lt;div class=&quot;content&quot;&gt;serializers.serialize(&quot;json&quot;, test.ListModel.all())
'[{&quot;pk&quot;: &quot;ahhnb29nbGUtYXBwLWVuZ2luZS1kamFuZ29yDwsSCUxpc3RNb2RlbBgBDA&quot;, &quot;model&quot;:
&quot;testapp.listmodel&quot;, &quot;fields&quot;: {&quot;mylist&quot;: &quot;[1L, 2L, 3L, 4L]&quot;}}]'&lt;/div&gt;&lt;/p&gt;&lt;p&gt;&lt;p&gt;&lt;strong&gt;Tags:&lt;/strong&gt; &lt;a href='http://www.diigo.com/user/harryli/no_tag' rel='tag'&gt;no_tag&lt;/a&gt; &lt;/p&gt;&lt;p&gt;&lt;strong&gt;Posted by:&lt;/strong&gt; &lt;a href='http://www.diigo.com/user/harryli'&gt;harryli&lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Sun, 21 Sep 2008 11:01:40 -0000</pubDate>
    </item>
    <item>
      <title>2007-06-16 - chikoの日記</title>
      <link>http://d.hatena.ne.jp/chiko/20070616</link>
      <description>&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Highlights and Sticky Notes:&lt;/strong&gt;&lt;p&gt;&lt;div class=&quot;content&quot;&gt;&lt;p&gt;と書くと&lt;a href=&quot;http://d.hatena.ne.jp/keyword/%a5%bf%a5%a4%a5%c8%a5%eb&quot; class=&quot;keyword&quot;&gt;タイトル&lt;/a&gt;の通りの&lt;a href=&quot;http://d.hatena.ne.jp/keyword/%a5%a8%a5%e9%a1%bc&quot; class=&quot;keyword&quot;&gt;エラー&lt;/a&gt;が．&lt;/p&gt;
			&lt;p&gt;原因はメソッド呼び出しなのに，()をつけ忘れたこと．&lt;/p&gt;
			&lt;p&gt;&lt;a href=&quot;http://d.hatena.ne.jp/keyword/%ba%c7%b6%e1&quot; class=&quot;keyword&quot;&gt;最近&lt;/a&gt;&lt;a href=&quot;http://d.hatena.ne.jp/keyword/Perl&quot; class=&quot;keyword&quot;&gt;Perl&lt;/a&gt;を書いていたので，そっちに引っ張られたようです：）&lt;/p&gt;
			&lt;p&gt;どういう&lt;a href=&quot;http://d.hatena.ne.jp/keyword/%a5%d7%a5%ed%a5%b0%a5%e9%a5%e0&quot; class=&quot;keyword&quot;&gt;プログラム&lt;/a&gt;かは以下を参照のこと．&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;&lt;p&gt;&lt;strong&gt;Tags:&lt;/strong&gt; &lt;a href='http://www.diigo.com/user/harryli/no_tag' rel='tag'&gt;no_tag&lt;/a&gt; &lt;/p&gt;&lt;p&gt;&lt;strong&gt;Posted by:&lt;/strong&gt; &lt;a href='http://www.diigo.com/user/harryli'&gt;harryli&lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Sun, 21 Sep 2008 10:59:15 -0000</pubDate>
    </item>
    <item>
      <title>百度帮助三鹿杀死儿童 (百度垃圾)</title>
      <link>https://sites.google.com/site/baidurubbish/bai-du-bang-zhu-san-lu-sha-si-r-tong</link>
      <description>&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Highlights and Sticky Notes:&lt;/strong&gt;&lt;p&gt;&lt;div class=&quot;content&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;目前在百度上享受&lt;span style=&quot;color: rgb(153, 0, 0);&quot;&gt;新闻公关保护政策&lt;/span&gt;的企业有蒙牛、伊利、汇源等，政策享受起点为自然年度500万元的广告投放，鉴于三鹿集团在产品线上不如其他几家企业丰富，经公司与百度相关部门的多次深度沟通后，百度已经同意将对三鹿集团的公关保护政策降低至年度300万元广告投放，可以享受将目前几大事业部早期负面删除&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;。&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;我可考虑一旦透露“肾结石”负面消息放大后，百度可能会以负面作为要挟，要求增加投放量，因此我司迄今没有跟百度提及肾结石相关负面新闻，所以强烈建议在此事还未大肆曝光的特殊时期，尽快与百度签订300万的框架协议。&lt;/span&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;&lt;p&gt;&lt;strong&gt;Tags:&lt;/strong&gt; &lt;a href='http://www.diigo.com/user/harryli/no_tag' rel='tag'&gt;no_tag&lt;/a&gt; &lt;/p&gt;&lt;p&gt;&lt;strong&gt;Posted by:&lt;/strong&gt; &lt;a href='http://www.diigo.com/user/harryli'&gt;harryli&lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Sat, 20 Sep 2008 04:22:44 -0000</pubDate>
    </item>
    <ttl>60</ttl>
  </channel>
</rss>