<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet href='http://feeds.feedsky.com/styles/temp01.xsl' type='text/xsl' ?><!--这是一个由Feedsy提供技术支持的Feed，为了提高读者阅读的体验，以及满足用户美化自己Feed的需要，我们设计了多种精美的Feed模板，提供给大家选择，所有最终呈现出来的样式，皆由用户自愿选择使用，未经许可，任何团体和个人，请不要擅自修改样式或者盗用，这是对于用户选择权的尊重。--><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:fs="http://www.feedsky.com/namespace/feed" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><atom:link href="http://feeds.feedsky.com/csdn.net/spanzhang" type="application/rss+xml" rel="self"></atom:link><fs:self_link href="http://feeds.feedsky.com/csdn.net/spanzhang" type="application/rss+xml"></fs:self_link><lastBuildDate>Tue, 30 Jun 2009 10:59:00 GMT</lastBuildDate><title>Span Zhang（张友邦）的专栏 (分形艺术，摄影，软件开发，生活休闲)</title><description>天下风云出我辈，一入江湖岁月催。皇图霸业谈笑中，不胜人生一场醉。提剑跨骑挥鬼雨，白骨如山鸟惊飞。尘世如潮人如水，只叹江湖几人回。</description><link>http://blog.csdn.net/spanzhang/</link><item><title>Ruby矢量和矩阵数学库：NArray</title><link>http://blog.csdn.net/spanzhang/archive/2009/06/30/4309079.aspx</link><description>很棒的东东，特别是你需要处理一些数学矩阵运算的时候。它可以允许你创建任何维数的矩阵，并且提供了必要的数学运算支持。有一些demo可以学习，不难掌握。&lt;img src =&quot;http://blog.csdn.net/spanzhang/aggbug/4309079.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/238943686/spanzhang/csdn.net/s.gif?r=http://blog.csdn.net/spanzhang/archive/2009/06/30/4309079.aspx&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/csdn.net/spanzhang/238943686/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/csdn.net/spanzhang/238943686/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Tue, 30 Jun 2009 18:59:00 +0800</pubDate><author>张友邦</author><guid isPermaLink="false">http://blog.csdn.net/spanzhang/archive/2009/06/30/4309079.aspx</guid><dc:creator>张友邦</dc:creator><fs:srclink>http://blog.csdn.net/spanzhang/archive/2009/06/30/4309079.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/spanzhang/feed.aspx</fs:srcfeed><fs:itemid>csdn.net/spanzhang/~1088801/238943686/1088800</fs:itemid></item><item><title>圣淘沙闲逛，傻照两张！</title><link>http://blog.csdn.net/spanzhang/archive/2009/06/27/4303564.aspx</link><description>今天去City Hall附近的一家餐馆（Seoul Garden）吃自助烤肉，感觉还不错。那个服务员长得很像董洁，但还是看得出是东南亚的美女类型。当时很想问她能不能给她照张像，但又觉得大庭广众之下要是遭到拒绝实在不是很好。而且她正在上班，risk相当高，就打消了这个念头。&lt;img src =&quot;http://blog.csdn.net/spanzhang/aggbug/4303564.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/238943687/spanzhang/csdn.net/s.gif?r=http://blog.csdn.net/spanzhang/archive/2009/06/27/4303564.aspx&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/csdn.net/spanzhang/238943687/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/csdn.net/spanzhang/238943687/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Sun, 28 Jun 2009 04:02:00 +0800</pubDate><author>张友邦</author><guid isPermaLink="false">http://blog.csdn.net/spanzhang/archive/2009/06/27/4303564.aspx</guid><dc:creator>张友邦</dc:creator><fs:srclink>http://blog.csdn.net/spanzhang/archive/2009/06/27/4303564.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/spanzhang/feed.aspx</fs:srcfeed><fs:itemid>csdn.net/spanzhang/~1088801/238943687/1088800</fs:itemid></item><item><title>新加坡Ruby开发者6月聚会</title><link>http://blog.csdn.net/spanzhang/archive/2009/06/26/4299831.aspx</link><description>&lt;br /&gt;这次聚会在昨天晚上7点开始，9点左右结束。我从NTU坐德士过去，路上遇到heavy traffic，足足花了将近一个小时才到达位于Suntec City的Yahoo办公室。no way to bypass!&lt;br /&gt;&lt;br /&gt;主要发言的是Sau Sheong (Ruby and the Cloud)和Jason Ong (Kiosks with Rails) 。Sau说的是Heroku的相关内容，基本上我在之前都没有听说过。不过我觉得Heroku是个不错的idea，在云里面用ruby开发的想法我之前也有过，但因为这是在赚开发者的钱，所以没有付诸实际行动。另外一个议题是Jason的一个rails应用，很有意思的是，做的居然是一个商店pos系统。客户端用的是firefox，操作系统用的是ubuntu。主要介绍了一些关于硬件和配置方面的事情。大家都觉得这个东西挺特别，因为比较具体，讨论起来也很方便。整个聚会的氛围很棒，大家都挺随意的分享和沟通。不过因为我的相机坏了，所以没有拍一张照片回来：（&lt;br /&gt;&lt;br /&gt;我从Yahoo的办公室出来的时候是9点20。因为是头一次在晚&lt;img src =&quot;http://blog.csdn.net/spanzhang/aggbug/4299831.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/238943688/spanzhang/csdn.net/s.gif?r=http://blog.csdn.net/spanzhang/archive/2009/06/26/4299831.aspx&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/csdn.net/spanzhang/238943688/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/csdn.net/spanzhang/238943688/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Fri, 26 Jun 2009 18:21:00 +0800</pubDate><author>张友邦</author><guid isPermaLink="false">http://blog.csdn.net/spanzhang/archive/2009/06/26/4299831.aspx</guid><dc:creator>张友邦</dc:creator><fs:srclink>http://blog.csdn.net/spanzhang/archive/2009/06/26/4299831.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/spanzhang/feed.aspx</fs:srcfeed><fs:itemid>csdn.net/spanzhang/~1088801/238943688/1088800</fs:itemid></item><item><title>got something to write</title><link>http://blog.csdn.net/spanzhang/archive/2009/06/21/4287320.aspx</link><description>today's father's day. wish all fathers in this world be happy, including me.and today's sunday. i went to the singapore international water festival. on the way to this great festival, i helped a pretty woman taking her little baby downstairs. the baby carriage was really heavy. and when i was gonna take it downstairs, the young mother asked me if i'm really sure i can do it or not. i just told her don't worry, i did such stuff for so many times before.there were &lt;img src =&quot;http://blog.csdn.net/spanzhang/aggbug/4287320.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/238943689/spanzhang/csdn.net/s.gif?r=http://blog.csdn.net/spanzhang/archive/2009/06/21/4287320.aspx&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/csdn.net/spanzhang/238943689/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/csdn.net/spanzhang/238943689/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Mon, 22 Jun 2009 05:40:00 +0800</pubDate><author>张友邦</author><guid isPermaLink="false">http://blog.csdn.net/spanzhang/archive/2009/06/21/4287320.aspx</guid><dc:creator>张友邦</dc:creator><fs:srclink>http://blog.csdn.net/spanzhang/archive/2009/06/21/4287320.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/spanzhang/feed.aspx</fs:srcfeed><fs:itemid>csdn.net/spanzhang/~1088801/238943689/1088800</fs:itemid></item><item><title>Keep my blog updated</title><link>http://blog.csdn.net/spanzhang/archive/2009/06/05/4244209.aspx</link><description>there's not so much stuff to say. just keep my blog updated.i went to boon lay to buy something yesterday night. and when i arrived there, it's nearly 7 pm. i planned to buy some books to read first. so i managed to get the bookstore for a quick browsing. ufortunately, i found nothing matches my requirements. so, i went out and headed for the FairPrice supermarket for a bottle of super glue. i need it to repair my shoes. and thanks god, i found it quickly. it cost me 2.79 S$.&lt;img src =&quot;http://blog.csdn.net/spanzhang/aggbug/4244209.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/238943690/spanzhang/csdn.net/s.gif?r=http://blog.csdn.net/spanzhang/archive/2009/06/05/4244209.aspx&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/csdn.net/spanzhang/238943690/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/csdn.net/spanzhang/238943690/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Fri, 05 Jun 2009 18:09:00 +0800</pubDate><author>张友邦</author><guid isPermaLink="false">http://blog.csdn.net/spanzhang/archive/2009/06/05/4244209.aspx</guid><dc:creator>张友邦</dc:creator><fs:srclink>http://blog.csdn.net/spanzhang/archive/2009/06/05/4244209.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/spanzhang/feed.aspx</fs:srcfeed><fs:itemid>csdn.net/spanzhang/~1088801/238943690/1088800</fs:itemid></item><item><title>dear diary - 25 may 2009</title><link>http://blog.csdn.net/spanzhang/archive/2009/05/25/4214532.aspx</link><description>i woke up this morning at the new place i just rented. it's a common room with few furnitures. there's a single bed, a computer desk, a electric fan, two chairs and a wardrobe. really simple! next to my room, it's a carpark in layers. so, it's a little noisy. but that's not a big problem for me. i think i can stand for it, at least for the time being.this afternoon, i went to the finance office to visit Daphne Goh to collect my sallary cheque. she told me that my bank account numbe&lt;img src =&quot;http://blog.csdn.net/spanzhang/aggbug/4214532.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/238943691/spanzhang/csdn.net/s.gif?r=http://blog.csdn.net/spanzhang/archive/2009/05/25/4214532.aspx&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/csdn.net/spanzhang/238943691/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/csdn.net/spanzhang/238943691/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Mon, 25 May 2009 23:50:00 +0800</pubDate><author>张友邦</author><guid isPermaLink="false">http://blog.csdn.net/spanzhang/archive/2009/05/25/4214532.aspx</guid><dc:creator>张友邦</dc:creator><fs:srclink>http://blog.csdn.net/spanzhang/archive/2009/05/25/4214532.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/spanzhang/feed.aspx</fs:srcfeed><fs:itemid>csdn.net/spanzhang/~1088801/238943691/1088800</fs:itemid></item><item><title>It's been a long time ...</title><link>http://blog.csdn.net/spanzhang/archive/2009/05/21/4205370.aspx</link><description>It's been a long time that I said nothing on my blog. Life is like a still pool to me. Everything's normal and there's no big ups and downs. I still find each day too short for all my thoughts I want to think, all the walks I want to take, all the books I want to read. As a matter of fact, I really want to say something, to my family, to my friends and to myself. But everything seems to be a bit pale and has no necessity to talk about when the word come to my throat...Well, to&lt;img src =&quot;http://blog.csdn.net/spanzhang/aggbug/4205370.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/238943692/spanzhang/csdn.net/s.gif?r=http://blog.csdn.net/spanzhang/archive/2009/05/21/4205370.aspx&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/csdn.net/spanzhang/238943692/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/csdn.net/spanzhang/238943692/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Thu, 21 May 2009 17:27:00 +0800</pubDate><author>张友邦</author><guid isPermaLink="false">http://blog.csdn.net/spanzhang/archive/2009/05/21/4205370.aspx</guid><dc:creator>张友邦</dc:creator><fs:srclink>http://blog.csdn.net/spanzhang/archive/2009/05/21/4205370.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/spanzhang/feed.aspx</fs:srcfeed><fs:itemid>csdn.net/spanzhang/~1088801/238943692/1088800</fs:itemid></item><item><title>清楚数据库中的全部数据并将ID归零</title><link>http://blog.csdn.net/spanzhang/archive/2009/04/04/4047980.aspx</link><description>&lt;br /&gt;在开发阶段常常要做这样的事情，把数据库中的数据全部清除掉已重新填写正确的数据。&lt;br /&gt;&lt;br /&gt;ActiveRecord::Base.connection.tables.each do |table|&lt;br /&gt;  ActiveRecord::Base.connection.execute(&quot;truncate table #{table}&quot;)&lt;br /&gt;end&lt;img src =&quot;http://blog.csdn.net/spanzhang/aggbug/4047980.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/csdn.net/spanzhang/238943693/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/csdn.net/spanzhang/238943693/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Sat, 04 Apr 2009 17:09:00 +0800</pubDate><author>张友邦</author><guid isPermaLink="false">http://blog.csdn.net/spanzhang/archive/2009/04/04/4047980.aspx</guid><dc:creator>张友邦</dc:creator><fs:srclink>http://blog.csdn.net/spanzhang/archive/2009/04/04/4047980.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/spanzhang/feed.aspx</fs:srcfeed><fs:itemid>csdn.net/spanzhang/~1088801/238943693/1088800</fs:itemid></item><item><title>Ruby on Rails开发带二级域名业务的应用</title><link>http://blog.csdn.net/spanzhang/archive/2009/02/23/3927025.aspx</link><description>&lt;br /&gt;现在使用二级域名的情况非常的普遍，正好我们公司就需要。以下是开发环境：&lt;br /&gt;&lt;br /&gt;OS: Microsoft Windows [版本 5.2.3790]&lt;br /&gt;Ruby: ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32]&lt;br /&gt;Rails: Rails 2.0.2&lt;br /&gt;&lt;br /&gt;接下来是做域名映射，修改Windows的hosts文件，让目标域名解析到我们的开发机器上。打开c:\Windows\System32\DRIVERS\etc\hosts文件，增添如下内容：&lt;br /&gt;&lt;br /&gt;127.0.0.1   yourdomain.com&lt;br /&gt;&lt;br /&gt;然后就是解决session跨域的问题，打开development.rb（部署的时候是production.rb），增加：&lt;br /&gt;&lt;br /&gt;ActionController::Base.session_options[:session_domain] = '.yourdomain.com'&lt;img src =&quot;http://blog.csdn.net/spanzhang/aggbug/3927025.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/csdn.net/spanzhang/238943694/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/csdn.net/spanzhang/238943694/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Mon, 23 Feb 2009 19:55:00 +0800</pubDate><author>张友邦</author><guid isPermaLink="false">http://blog.csdn.net/spanzhang/archive/2009/02/23/3927025.aspx</guid><dc:creator>张友邦</dc:creator><fs:srclink>http://blog.csdn.net/spanzhang/archive/2009/02/23/3927025.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/spanzhang/feed.aspx</fs:srcfeed><fs:itemid>csdn.net/spanzhang/~1088801/238943694/1088800</fs:itemid></item><item><title>Ruby on Rails自动事务过滤器及相应的错误处理</title><link>http://blog.csdn.net/spanzhang/archive/2009/02/10/3874000.aspx</link><description>这是写在ApplicationController里的处理代码。其中的set_notice只是将flash[:notice]设置一下，以便在error_notice页面显示。&lt;img src =&quot;http://blog.csdn.net/spanzhang/aggbug/3874000.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/csdn.net/spanzhang/238943695/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/csdn.net/spanzhang/238943695/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Tue, 10 Feb 2009 22:28:00 +0800</pubDate><author>张友邦</author><guid isPermaLink="false">http://blog.csdn.net/spanzhang/archive/2009/02/10/3874000.aspx</guid><dc:creator>张友邦</dc:creator><fs:srclink>http://blog.csdn.net/spanzhang/archive/2009/02/10/3874000.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/spanzhang/feed.aspx</fs:srcfeed><fs:itemid>csdn.net/spanzhang/~1088801/238943695/1088800</fs:itemid></item></channel></rss>