<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2chinesetwfull.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">
<channel>
<title>Thinking more...</title>
<link>http://blog.roodo.com/thinkingmore/</link>
<description>Just thinking more...&amp;nbsp;訂閱 RSS

var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));















  google.load("jquery", "1.2");
  google.setOnLoadCallback( function() {
    try {
      var pageTracker = _gat._getTracker("UA-97150-7");
      pageTracker._trackPageview();
    }catch(err) {}
    $("pre &gt; br").each( function() { $(this).replaceWith( "\n" ); } );
    $("textarea &gt; br").each( function() { $(this).replaceWith( "\n" ); } );
    SyntaxHighlighter.config.ClipboardSwf = 'http://alexgorbatchev.com/pub/sh/2.0.296/scripts/clipboard.swf';
    SyntaxHighlighter.all();
    dp.SyntaxHighlighter.ClipboardSwf = 'http://alexgorbatchev.com/pub/sh/2.0.296/scripts/clipboard.swf';
    dp.SyntaxHighlighter.HighlightAll('code');
  } );

</description>
<language>zh-tw</language>
<generator>Roodo Blog System</generator>
<copyright>All Rights Reserved</copyright>

<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/roodo/thinkingmore" type="application/rss+xml" /><feedburner:feedFlare href="http://www.newsgator.com/ngs/subscriber/subext.aspx?url=http%3A%2F%2Ffeeds.feedburner.com%2Froodo%2Fthinkingmore" src="http://www.newsgator.com/images/ngsub1.gif">Subscribe with NewsGator</feedburner:feedFlare><feedburner:feedFlare href="http://www.bloglines.com/sub/http://feeds.feedburner.com/roodo/thinkingmore" src="http://www.bloglines.com/images/sub_modern11.gif">Subscribe with Bloglines</feedburner:feedFlare><feedburner:feedFlare href="http://www.netvibes.com/subscribe.php?url=http%3A%2F%2Ffeeds.feedburner.com%2Froodo%2Fthinkingmore" src="http://www.netvibes.com/img/add2netvibes.gif">Subscribe with Netvibes</feedburner:feedFlare><feedburner:feedFlare href="http://fusion.google.com/add?feedurl=http%3A%2F%2Ffeeds.feedburner.com%2Froodo%2Fthinkingmore" src="http://buttons.googlesyndication.com/fusion/add.gif">Subscribe with Google</feedburner:feedFlare><item>
	<title>Ubiquity 0.5 + findbook</title>
	<description>Ubiquity 升級到 0.5 了，Parser API 也升級到了 2，語法有改變，所以參考&lt;a href="https://wiki.mozilla.org/Labs/Ubiquity/Parser_2_API_Conversion_Tutorial"&gt;轉換指南&lt;/a&gt;修正了一下之前的 findbook：

&lt;pre name="code" class="javascript"&gt;
CmdUtils.CreateCommand({
  names: ["findbook"],
  contributors: ["elleryq"],
  license: "MPL",
  description: "讓買書變成更簡單的決定！",
  arguments: [ {role: 'object', nountype: noun_arb_text, label: '書名關鍵字'} ],
  icon: "http://findbook.tw/favicon.ico",
  execute: function(args) {
    Utils.openUrlInBrowser( "http://findbook.tw/search?keyword_type=keyword&amp;q=" + encodeURIComponent(args.object.text) );
  }
});
&lt;/pre&gt;

如果你想入門的話，這份文件可以作為參考：&lt;a href="https://wiki.mozilla.org/Labs/Ubiquity/Ubiquity_Source_Tip_Author_Tutorial"&gt;Labs/Ubiquity/Ubiquity Source Tip Author Tutorial&lt;/a&gt;。
另外，在&lt;a href="chrome://ubiquity/content/editor.html"&gt;Ubiquity Command Editor&lt;/a&gt;頁面裡也有 command APIs，告訴你有哪些 API 可用。&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/roodo/thinkingmore?a=WZy5HOCUZP8:kqG1r8L3deg:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/roodo/thinkingmore?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;</description>
	<link>http://feedproxy.google.com/~r/roodo/thinkingmore/~3/WZy5HOCUZP8/9419447.html</link>
	<guid isPermaLink="false">http://blog.roodo.com/thinkingmore/archives/9419447.html</guid>
	<category>資訊相關Idea與筆記</category>
	<pubDate>Sat, 11 Jul 2009 00:09:57 +0800</pubDate>
<feedburner:origLink>http://blog.roodo.com/thinkingmore/archives/9419447.html</feedburner:origLink></item>
<item>
	<title>Boo Generator expression</title>
	<description>從這串討論：&lt;a href="http://groups.google.com/group/boolang/browse_thread/thread/a30b0b5bec108505"&gt;Array Type Question - Boo Programming Language&lt;/a&gt;裡的例子，最能看出其威力。

objectArray 是一個型別為 object 的陣列，但裡面的 object 其實都是 string。
下面這樣一行，就把型別為 object 的陣列轉為字串的陣列了...

&lt;pre name="code" class="python"&gt;
strings = array(o as string for o in objectArray)
&lt;/pre&gt;

其他更詳細的說明可以參考：&lt;a href="http://zh.wikibooks.org/wiki/BOO/Generators#Generator.E9.81.8B.E7.AE.97.E5.BC.8F"&gt;維基教科書 的 BOO/Generators&lt;/a&gt;。&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/roodo/thinkingmore?a=DICYfhPvRRk:LDeBzyFOsBI:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/roodo/thinkingmore?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;</description>
	<link>http://feedproxy.google.com/~r/roodo/thinkingmore/~3/DICYfhPvRRk/9406449.html</link>
	<guid isPermaLink="false">http://blog.roodo.com/thinkingmore/archives/9406449.html</guid>
	<category>Boo</category>
	<pubDate>Wed, 08 Jul 2009 21:01:14 +0800</pubDate>
<feedburner:origLink>http://blog.roodo.com/thinkingmore/archives/9406449.html</feedburner:origLink></item>
</channel>
</rss>
