<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="/xslt/rss2.xsl" media="screen"?>
<rss version="2.0"
     xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>Latest from ChinaonRails: IceskYsl</title>
		<link>http://chinaonrails.com/u/IceskYsl</link>
		<description>ChinaonRails | ChinaonRails are one of the very few China based web consultancies, who specialize in application development using RubyOnRails/Agile/Ajax.</description>
		<category>Technology</category>
		<language>zh_cn</language>
		<item>
			<title>RSS取到的都是乱码？ ... 4 replies</title>
			<link>http://chinaonrails.com/topic/view/1966.html</link>
			<comments>http://chinaonrails.com/topic/view/1966.html#reply</comments>
			<dc:creator>IceskYsl</dc:creator>
			<author>IceskYsl</author>
			<!--<enclosure url="http://chinaonrails.com/img/p/83.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/83_s.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/83_n.jpg" type="image/jpeg" />-->
			<category>Talk</category>
			<description>
			googleReader抓到的RSS都是乱码，是咋回事？？？
			</description>
			<pubDate>Thu, 31 Jul 2008 15:33:22 +0800</pubDate>
			<guid>http://chinaonrails.com/topic/view/1966.html</guid>
		</item>
		<item>
			<title>Rails Security Checklist ... 1 reply</title>
			<link>http://chinaonrails.com/topic/view/1929.html</link>
			<comments>http://chinaonrails.com/topic/view/1929.html#reply</comments>
			<dc:creator>IceskYsl</dc:creator>
			<author>IceskYsl</author>
			<!--<enclosure url="http://chinaonrails.com/img/p/83.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/83_s.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/83_n.jpg" type="image/jpeg" />-->
			<category>Tips</category>
			<description>
			&lt;img class="code" src="http://www.coolest-gadgets.com/wp-content/uploads/hacker_ii1.jpg" border="0" /&gt;&lt;br /&gt;
&lt;a href="http://myspacesurfer.hee-ro.net/index.php?hl=f5&amp;q=uggc%3A%2F%2Feholguvf.oybtfcbg.pbz%2F2006%2F11%2Fenvyf-frphevgl-purpxyvfg.ugzy" rel="nofollow external" class="tpc"&gt;Rails Security Checklist&lt;/a&gt;
			</description>
			<pubDate>Wed, 23 Jul 2008 14:29:11 +0800</pubDate>
			<guid>http://chinaonrails.com/topic/view/1929.html</guid>
		</item>
		<item>
			<title>大家有防范被D的经历和经验么？ ... 6 replies</title>
			<link>http://chinaonrails.com/topic/view/1923.html</link>
			<comments>http://chinaonrails.com/topic/view/1923.html#reply</comments>
			<dc:creator>IceskYsl</dc:creator>
			<author>IceskYsl</author>
			<!--<enclosure url="http://chinaonrails.com/img/p/83.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/83_s.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/83_n.jpg" type="image/jpeg" />-->
			<category>Ask</category>
			<description>
			最苦恼的事情莫过于服务器被DDos，相当苦恼～&lt;br /&gt;
&lt;br /&gt;
虽然对做这些事的人不屑，但是还是得静下心来研究下如何尽可能的防范。&lt;br /&gt;
&lt;br /&gt;
大家平时有遇到被D的经历么，是如何防范的，不吝赐教，谢谢！
			</description>
			<pubDate>Tue, 22 Jul 2008 17:59:40 +0800</pubDate>
			<guid>http://chinaonrails.com/topic/view/1923.html</guid>
		</item>
		<item>
			<title>Agile Web Development with Rails, Third Edition ... 3 replies</title>
			<link>http://chinaonrails.com/topic/view/1639.html</link>
			<comments>http://chinaonrails.com/topic/view/1639.html#reply</comments>
			<dc:creator>IceskYsl</dc:creator>
			<author>IceskYsl</author>
			<!--<enclosure url="http://chinaonrails.com/img/p/83.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/83_s.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/83_n.jpg" type="image/jpeg" />-->
			<category>Rails</category>
			<description>
			The book will be targeting Rails 2 and thus cover the many improvements in features and idioms that Rails have seen since the last edition of the book.&lt;br /&gt;
&lt;img class="code" src="http://www.pragprog.com/images/covers/190x228/betas/rails3.jpg?1208810865" border="0" /&gt;&lt;br /&gt;
&lt;a href="http://pragprog.com/titles/rails3/agile-web-development-with-rails-third-edition" rel="nofollow external" class="tpc"&gt;http://pragprog.com/titles/rails3/agile-web-development-with-rails-third-edition&lt;/a&gt;
			</description>
			<pubDate>Tue, 20 May 2008 15:37:19 +0800</pubDate>
			<guid>http://chinaonrails.com/topic/view/1639.html</guid>
		</item>
		<item>
			<title>遭遇Magick::ImageMagickError ... 1 reply</title>
			<link>http://chinaonrails.com/topic/view/1602.html</link>
			<comments>http://chinaonrails.com/topic/view/1602.html#reply</comments>
			<dc:creator>IceskYsl</dc:creator>
			<author>IceskYsl</author>
			<!--<enclosure url="http://chinaonrails.com/img/p/83.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/83_s.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/83_n.jpg" type="image/jpeg" />-->
			<category>Ask</category>
			<description>
			一段调用RMagic的Ruby脚本,在本地跑的好好的代码,放到服务器上出现这个错误:&lt;br /&gt;
 Non-conforming drawing primitive definition  (Magick::ImageMagickError)&lt;br /&gt;
&lt;br /&gt;
查了下服务器和本地,貌似只有Rmagic的版本不一样,如下:&lt;br /&gt;
&lt;br /&gt;
[iceskysl]$  gem list | grep rmagick&lt;br /&gt;
rmagick (1.15.12, 1.15.10)&lt;br /&gt;
[iceskysl]$ dpkg -l | grep magick&lt;br /&gt;
ii  imagemagick    6.2.4.5.dfsg1- Image manipulation programs&lt;br /&gt;
ii  libmagick6     6.0.6.2-2.9    Image manipulation library&lt;br /&gt;
ii  libmagick9     6.2.4.5.dfsg1- Image manipulation library&lt;br /&gt;
ii  librmagick-rub 1.6.0-1        ImageMagick API for Ruby&lt;br /&gt;
ii  librmagick-rub 1.6.0-1        ImageMagick API for Ruby&lt;br /&gt;
ii  librmagick-rub 1.15.12-1      &amp;lt;insert up to 60 chars description&amp;gt;&lt;br /&gt;
ii  perlmagick     6.0.6.2-2.9    A perl interface to the libMagick graphics r&lt;br /&gt;
&lt;br /&gt;
and in my locolhost.it's:&lt;br /&gt;
iceskysl@IceskYsl:/opt/devroot/Taojer/lib$ gem list | grep rmagick&lt;br /&gt;
rmagick (2.3.0, 1.15.10)&lt;br /&gt;
&lt;br /&gt;
iceskysl@IceskYsl:/opt/devroot/Taojer/lib$ dpkg -l | grep magick&lt;br /&gt;
ii  imagemagick                                7:6.3.7.9.dfsg1-2ubuntu1            image manipulation programs&lt;br /&gt;
ii  libmagick10                                7:6.3.7.9.dfsg1-2ubuntu1            image manipulation library&lt;br /&gt;
ii  libmagick9                                 7:6.2.4.5.dfsg1-2ubuntu1            Image manipulation library&lt;br /&gt;
ii  libmagick9-dev                             7:6.3.7.9.dfsg1-2ubuntu1            image manipulation library - development files&lt;br /&gt;
不晓得是不是这个问题,查遍了Google也没找到合适的答案,记录在案,有遇到类似错误的还望指教,谢谢.&lt;br /&gt;
&lt;br /&gt;
或者在我的Blog上讨论:&lt;br /&gt;
&lt;a href="http://iceskysl.1sters.com/?action=show&amp;id=275" rel="nofollow external" class="tpc"&gt;http://iceskysl.1sters.com/?action=show&amp;id=275&lt;/a&gt;
			</description>
			<pubDate>Sun, 11 May 2008 20:31:56 +0800</pubDate>
			<guid>http://chinaonrails.com/topic/view/1602.html</guid>
		</item>
		<item>
			<title>EC2支持Persistent Storage，日渐完善 ... 5 replies</title>
			<link>http://chinaonrails.com/topic/view/1512.html</link>
			<comments>http://chinaonrails.com/topic/view/1512.html#reply</comments>
			<dc:creator>IceskYsl</dc:creator>
			<author>IceskYsl</author>
			<!--<enclosure url="http://chinaonrails.com/img/p/83.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/83_s.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/83_n.jpg" type="image/jpeg" />-->
			<category>Server</category>
			<description>
			"Last night Amazon announced persistent storage on EC2. Now you can create disks in S3 and attach them to EC2 instances. You want a terabyte of storage for your machine, just create it in S3 and mount it."&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://iceskysl.1sters.com/?action=show&amp;id=255" rel="nofollow external" class="tpc"&gt;EC2支持Persistent Storage，日渐完善&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://iceskysl.1sters.com/?action=show&amp;id=241" rel="nofollow external" class="tpc"&gt;支持Elastic IP Addresses,EC2越来越成熟了. &lt;/a&gt;
			</description>
			<pubDate>Wed, 16 Apr 2008 12:45:43 +0800</pubDate>
			<guid>http://chinaonrails.com/topic/view/1512.html</guid>
		</item>
		<item>
			<title>小狗Scout已经长大，正式上线～ ... no reply</title>
			<link>http://chinaonrails.com/topic/view/1510.html</link>
			<comments>http://chinaonrails.com/topic/view/1510.html#reply</comments>
			<dc:creator>IceskYsl</dc:creator>
			<author>IceskYsl</author>
			<!--<enclosure url="http://chinaonrails.com/img/p/83.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/83_s.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/83_n.jpg" type="image/jpeg" />-->
			<category>Plugins</category>
			<description>
			&lt;img class="code" src="http://lh6.ggpht.com/iceskysl/SAVxKl2uqhI/AAAAAAAACCQ/_B72uUb3Vlw/s400/taojer.png" border="0" /&gt;&lt;br /&gt;
Scout 是个挺不错的Saas模式，我以前写过他的插件使用方法，今天试了下监控部分，效果相当不错。&lt;br /&gt;
&lt;br /&gt;
Scout已经长大，正式上线，试用手记～&lt;br /&gt;
&lt;a href="http://iceskysl.1sters.com/?action=show&amp;id=254" rel="nofollow external" class="tpc"&gt;http://iceskysl.1sters.com/?action=show&amp;id=254&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Scout是个挺有趣的tools&lt;br /&gt;
&lt;a href="http://iceskysl.1sters.com/?action=show&amp;id=240" rel="nofollow external" class="tpc"&gt;http://iceskysl.1sters.com/?action=show&amp;id=240&lt;/a&gt;
			</description>
			<pubDate>Wed, 16 Apr 2008 11:37:52 +0800</pubDate>
			<guid>http://chinaonrails.com/topic/view/1510.html</guid>
		</item>
		<item>
			<title>来,看个在RUby中调用Shell命令的怪事? ... 2 replies</title>
			<link>http://chinaonrails.com/topic/view/1481.html</link>
			<comments>http://chinaonrails.com/topic/view/1481.html#reply</comments>
			<dc:creator>IceskYsl</dc:creator>
			<author>IceskYsl</author>
			<!--<enclosure url="http://chinaonrails.com/img/p/83.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/83_s.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/83_n.jpg" type="image/jpeg" />-->
			<category>Ask</category>
			<description>
			问题描述:&lt;br /&gt;
&lt;br /&gt;
由于需要给用户打包下载一系列的文件(图片),为了方便,我在ruby中调用系统的rar来打包需要下载的资源,然后再send_file下载下去,但是这里却遇到了奇怪的问题,调用系统命令的那句出现问题.&lt;br /&gt;
&lt;br /&gt;
关于在RUby中调用系统的shell,大家可以参考如下文章( 6 Ways to Run Shell Commands in Ruby: http://pasadenarb.com/2007/03/ruby-shell-commands.html#comment-1886),我就不多废话了.直接看我的相关代码,如下:&lt;br /&gt;
&lt;br /&gt;
Ruby代码&lt;br /&gt;
&lt;br /&gt;
   1. local_dir_name=1207667932_2  &lt;br /&gt;
   2. logger.info("rar a #{local_dir_name} #{local_dir_name}")  &lt;br /&gt;
   3. oo= %x{rar a #{local_dir_name} #{local_dir_name}}  &lt;br /&gt;
   4. logger.info("oo=#{oo}")  &lt;br /&gt;
&lt;br /&gt;
上面的那个变量是按照时间取的唯一标识.这里使用的 %x{}(`)来获取执行的结果,以方便查看及问题定位,在本地机器(Ubuntu 7.10)上,一切正常,输出如下:&lt;br /&gt;
本地输出日志&lt;br /&gt;
&lt;br /&gt;
   1. rar a 1207667932_2 1207667932_2  &lt;br /&gt;
   2. oo=  &lt;br /&gt;
   3. RAR 3.70 beta 1 Copyright (c) 1993-2007 Alexander Roshal 8 Jan 2007  &lt;br /&gt;
   4. Shareware version Type RAR -? for help  &lt;br /&gt;
   5.   &lt;br /&gt;
   6. Evaluation copy. Please register.  &lt;br /&gt;
   7.   &lt;br /&gt;
   8. Creating archive 1207667932_2.rar  &lt;br /&gt;
   9.   &lt;br /&gt;
  10. Adding 1207667932_2/datas.csv OK  &lt;br /&gt;
  11. Adding 1207667932_2/images OK  &lt;br /&gt;
  12. Adding 1207667932_2 OK  &lt;br /&gt;
  13. Done  &lt;br /&gt;
&lt;br /&gt;
但是在服务器上 (这里使用的是DH的PS服务器),其不能正常运行,如下:&lt;br /&gt;
&lt;br /&gt;
服务器输出日志&lt;br /&gt;
&lt;br /&gt;
   1. rar a 1207666290_2 1207666290_2  &lt;br /&gt;
   2. oo=  &lt;br /&gt;
   3. Program aborted  &lt;br /&gt;
&lt;br /&gt;
可以看到,如上发生了异常,但是原因无法得知.&lt;br /&gt;
&lt;br /&gt;
我写在Blog上的分析:&lt;br /&gt;
&lt;a href="http://iceskysl.1sters.com/?action=show&amp;id=248" rel="nofollow external" class="tpc"&gt;http://iceskysl.1sters.com/?action=show&amp;id=248&lt;/a&gt;
			</description>
			<pubDate>Tue, 08 Apr 2008 23:58:30 +0800</pubDate>
			<guid>http://chinaonrails.com/topic/view/1481.html</guid>
		</item>
		<item>
			<title>在Linix上用fastercsv导出的文件在windows上打开是乱码～ ... 1 reply</title>
			<link>http://chinaonrails.com/topic/view/1424.html</link>
			<comments>http://chinaonrails.com/topic/view/1424.html#reply</comments>
			<dc:creator>IceskYsl</dc:creator>
			<author>IceskYsl</author>
			<!--<enclosure url="http://chinaonrails.com/img/p/83.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/83_s.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/83_n.jpg" type="image/jpeg" />-->
			<category>Ask</category>
			<description>
			问题：&lt;br /&gt;
我在rails中使用fasterCSV导出DB里面的东西（开发环境是ubuntu7.10），DB里面的编码为UTF-8,导出一个数据文件和用到的图片，在linux上查看数据文件，一切正常，然后再Rails中调用系统的打包和压缩命令做了压缩（包括数据文件和图片在一起），然后就这个压缩包通过网络下载到其他的windows主机上，使用WINRAR解开后，发现文件名中中文是乱码，用excel打开数据文件发现其中的中文也是乱码。&lt;br /&gt;
&lt;br /&gt;
查了些资料，原来winrar是一的编码和linux上一些压缩工具的编码是不一致的，貌似只有7zip和rar的编码格式一致。&lt;br /&gt;
&lt;br /&gt;
玉树我先后采用了zip，gzip，tar，7zip，rar，以及biz等压缩后传送给windows，其具体表现为：&lt;br /&gt;
&lt;br /&gt;
1、zip，tar，gzip，biz等压缩出来的，中文文件名和数据文件均乱码;&lt;br /&gt;
&lt;br /&gt;
2、用7zip和rar打包出来的，在windows下打开，中文名正常，但是内部的数据文件还是乱码。&lt;br /&gt;
&lt;br /&gt;
现在的问题就是，内部的数据文件是用fastcvs读取DB里的东西写的（CSV貌似没有指定编码的地方，应该是按照utf8格式写进去的），而excel的编码方式应该不是UTF8（不小的具体是什么？貌似版本不一样，编码也不一样）。&lt;br /&gt;
估计写进cvs钱转码一下，估计可行，但是还没来得及试，且每次都转码也挺麻烦的。。。&lt;br /&gt;
&lt;br /&gt;
有谁有过类似的经历，是如何处理的，麻烦shara下。&lt;br /&gt;
http://iceskysl.1sters.com/?action=show&amp;id=229&amp;page=1#cm169
			</description>
			<pubDate>Mon, 17 Mar 2008 14:54:05 +0800</pubDate>
			<guid>http://chinaonrails.com/topic/view/1424.html</guid>
		</item>
		<item>
			<title>关于Ruby中对正则表达式中的特殊字符转义的疑惑 ... 1 reply</title>
			<link>http://chinaonrails.com/topic/view/1418.html</link>
			<comments>http://chinaonrails.com/topic/view/1418.html#reply</comments>
			<dc:creator>IceskYsl</dc:creator>
			<author>IceskYsl</author>
			<!--<enclosure url="http://chinaonrails.com/img/p/83.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/83_s.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/83_n.jpg" type="image/jpeg" />-->
			<category>Ask</category>
			<description>
			转义正则表达式中的特殊字符&lt;br /&gt;
===========================================&lt;br /&gt;
使用Regexp.escape方法(别名方法是Regexp.quote)，可以吧正则表达式中的特殊字符统统转义：&lt;br /&gt;
str1 = "[*?]"&lt;br /&gt;
str2 = Regexp.escape(str1)    # "\[\*\?\]"&lt;br /&gt;
&lt;br /&gt;
escape会转义掉[*?]这几个特殊的字符，但是其没有对另外一个字符‘/’进行任何处理，这个作为正则表达式的分隔符(//)中的字符难道不是特殊字符么。&lt;br /&gt;
&lt;br /&gt;
看个例子：&lt;br /&gt;
pages="http://www.taojer.com/id=1&amp;name=help"&lt;br /&gt;
puts Regexp.escape(pages)&lt;br /&gt;
&lt;br /&gt;
输出：&lt;br /&gt;
E:\Ysl\Test&amp;gt;ruby exp.rb&lt;br /&gt;
http://www\.taojer\.com/id=1&amp;name=help&lt;br /&gt;
&lt;br /&gt;
可以看到其对/字符是没有进行处理的。&lt;br /&gt;
&lt;br /&gt;
这个可能会给如下这个需求带来一些问题：&lt;br /&gt;
我想在一段String中找到所有以一个指定的URL开头的链接地址，程序大概是这样的：&lt;br /&gt;
url="http://www.taojer.com"&lt;br /&gt;
按照我们的思路，可能会这么写：&lt;br /&gt;
e_url = Regexp.escape(url)&lt;br /&gt;
==》http://www\.taojer\.com&lt;br /&gt;
str.scan(/&amp;lt;a href="(e_url)"&amp;gt;(.+?)&amp;lt;\/a&amp;gt;/m)&lt;br /&gt;
但是这样就会因为/字符存在而异常咯？&lt;br /&gt;
&lt;br /&gt;
正确是应该是：&lt;br /&gt;
str.scan(/&amp;lt;a href="(http:\/\/www\.taojer\.com)"&amp;gt;(.+?)&amp;lt;\/a&amp;gt;/m).each do |list|&lt;br /&gt;
#do something&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
有啥子高招，解决这个问题？
			</description>
			<pubDate>Wed, 12 Mar 2008 15:41:57 +0800</pubDate>
			<guid>http://chinaonrails.com/topic/view/1418.html</guid>
		</item>
		<item>
			<title>有个图片加水印的方法或者文章么？ ... 3 replies</title>
			<link>http://chinaonrails.com/topic/view/1381.html</link>
			<comments>http://chinaonrails.com/topic/view/1381.html#reply</comments>
			<dc:creator>IceskYsl</dc:creator>
			<author>IceskYsl</author>
			<!--<enclosure url="http://chinaonrails.com/img/p/83.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/83_s.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/83_n.jpg" type="image/jpeg" />-->
			<category>Ask</category>
			<description>
			对已经存在的一张图片，想在上面加个水印（文字即可），有啥子好方法或者文章么？&lt;br /&gt;
&lt;br /&gt;
以前看过PHP的实现，RUBY的我貌似没看到过，请分享·
			</description>
			<pubDate>Mon, 03 Mar 2008 14:46:54 +0800</pubDate>
			<guid>http://chinaonrails.com/topic/view/1381.html</guid>
		</item>
		<item>
			<title>导出DB里面的东西为CSV格式有哪些类库 ... 6 replies</title>
			<link>http://chinaonrails.com/topic/view/1380.html</link>
			<comments>http://chinaonrails.com/topic/view/1380.html#reply</comments>
			<dc:creator>IceskYsl</dc:creator>
			<author>IceskYsl</author>
			<!--<enclosure url="http://chinaonrails.com/img/p/83.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/83_s.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/83_n.jpg" type="image/jpeg" />-->
			<category>Ask</category>
			<description>
			我google了下，发现几个：&lt;br /&gt;
http://www.ruby-doc.org/stdlib/libdoc/csv/rdoc/index.html&lt;br /&gt;
http://raa.ruby-lang.org/list.rhtml?name=csv&lt;br /&gt;
http://fastercsv.rubyforge.org/&lt;br /&gt;
http://www.oreillynet.com/ruby/blog/2006/02/faster_csv_with_fastercsv.html&lt;br /&gt;
&lt;br /&gt;
大家喜欢哪个？
			</description>
			<pubDate>Mon, 03 Mar 2008 14:16:25 +0800</pubDate>
			<guid>http://chinaonrails.com/topic/view/1380.html</guid>
		</item>
		<item>
			<title>使用XMPP4R在RubyOnRails中集成IM功能 ... 6 replies</title>
			<link>http://chinaonrails.com/topic/view/1367.html</link>
			<comments>http://chinaonrails.com/topic/view/1367.html#reply</comments>
			<dc:creator>IceskYsl</dc:creator>
			<author>IceskYsl</author>
			<!--<enclosure url="http://chinaonrails.com/img/p/83.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/83_s.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/83_n.jpg" type="image/jpeg" />-->
			<category>Consultant Team</category>
			<description>
			受到Frank文章的感染，决定把我使用XMPP4r在RubyOnRails中集成IM的过程按照其写的两篇文章的流程整理、分享给大家，谢谢Frank。&lt;br /&gt;
&lt;br /&gt;
本文根据Frank的风格，结合我在&lt;a href="http://www.itechtag.com/" rel="nofollow external" class="tpc"&gt;技能云&lt;/a&gt;中使用的实际过程写的，分成如下几个大的章节：&lt;br /&gt;
&lt;br /&gt;
一、XMPP概念以及原理简介&lt;br /&gt;
二、实现方法篇&lt;br /&gt;
三、结合“技能云”演示&lt;br /&gt;
四、可能出现的问题&lt;br /&gt;
五、技能云XMPP机器人使用说明&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
本文采用Google在线文档编写、发布的，格式比较简洁，且能随时更新和完善，就不在重复贴在这里了，文章地址如下，请自行查看：&lt;br /&gt;
&lt;br /&gt;
&lt;a href="https://docs.google.com/Doc?id=dhf86kr9_188gmpnw5hf" rel="nofollow external" class="tpc"&gt;使用XMPP4r在RubyOnRails中集成IM功能&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
如果对文章有疑问或者有错误的地方，请在这里回复指出，我将尽快给予回复和完善，谢谢！
			</description>
			<pubDate>Thu, 28 Feb 2008 14:04:58 +0800</pubDate>
			<guid>http://chinaonrails.com/topic/view/1367.html</guid>
		</item>
		<item>
			<title>有实现MSN的ruby lib么？ ... 12 replies</title>
			<link>http://chinaonrails.com/topic/view/1354.html</link>
			<comments>http://chinaonrails.com/topic/view/1354.html#reply</comments>
			<dc:creator>IceskYsl</dc:creator>
			<author>IceskYsl</author>
			<!--<enclosure url="http://chinaonrails.com/img/p/83.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/83_s.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/83_n.jpg" type="image/jpeg" />-->
			<category>Ask</category>
			<description>
			前几天采用XMPP对GoogleTalk给技能云增加了ING功能。&lt;br /&gt;
http://iceskysl.1sters.com/?action=show&amp;id=216&lt;br /&gt;
&lt;br /&gt;
下一个想实现的对MSN的ING功能，但是MSN的协议不如XMPP的开放，很多东西还是私有的，找了一些资料，只看到一个日本人写的lib，用google翻译了下：&lt;br /&gt;
http://translate.google.com/translate?u=http%3A%2F%2Fzerobase.jp%2Fblog%2Fentry-213.html&amp;langpair=ja%7Cen&amp;hl=zh-CN&amp;ie=UTF-8&lt;br /&gt;
&lt;br /&gt;
不晓得各位有没有发现比较稳定的MSN的ruby lib。。&lt;br /&gt;
&lt;br /&gt;
http://www.itechtag.com/project/view/177&lt;br /&gt;
http://www.itechtag.com/groups/1/posts/138&lt;br /&gt;
http://www.itechtag.com/groups/1/posts/137
			</description>
			<pubDate>Mon, 25 Feb 2008 17:27:41 +0800</pubDate>
			<guid>http://chinaonrails.com/topic/view/1354.html</guid>
		</item>
		<item>
			<title>FPDF使用过程及其问题总结 ... no reply</title>
			<link>http://chinaonrails.com/topic/view/1272.html</link>
			<comments>http://chinaonrails.com/topic/view/1272.html#reply</comments>
			<dc:creator>IceskYsl</dc:creator>
			<author>IceskYsl</author>
			<!--<enclosure url="http://chinaonrails.com/img/p/83.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/83_s.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/83_n.jpg" type="image/jpeg" />-->
			<category>Ask</category>
			<description>
			不晓得有人试用过FPDF（http://zeropluszero.com/software/fpdf/）么，用来动态的生产PDF文件，我以前在‘技能云’使用其生成用户的简历文件，参照过道喜大哥的写的”集成RFPDF软件包到中文Rails框架应用软件“http://www.lycom.de/pages/7ehqqixx&lt;br /&gt;
&lt;br /&gt;
但是有如下问题，见截图：&lt;br /&gt;
&lt;img class="code" src="http://lh4.google.com/iceskysl/R5_d1ShDEOI/AAAAAAAAB4E/ckeSSm6HBFs/s400/itechtag_resume.png&amp;lt;" border="0" /&gt;&lt;br /&gt;
&lt;br /&gt;
1、汉字不能自动换行&lt;br /&gt;
2、英文宽度不一致，格式不一致&lt;br /&gt;
3、使用的”仿宋“等字体，在ubuntu等linux系统上打开生成的PDF无法显示文字。&lt;br /&gt;
&lt;br /&gt;
支招？
			</description>
			<pubDate>Wed, 30 Jan 2008 10:22:13 +0800</pubDate>
			<guid>http://chinaonrails.com/topic/view/1272.html</guid>
		</item>
		<item>
			<title>遇到一个很奇怪Rails logger的问题～ ... 23 replies</title>
			<link>http://chinaonrails.com/topic/view/1252.html</link>
			<comments>http://chinaonrails.com/topic/view/1252.html#reply</comments>
			<dc:creator>IceskYsl</dc:creator>
			<author>IceskYsl</author>
			<!--<enclosure url="http://chinaonrails.com/img/p/83.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/83_s.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/83_n.jpg" type="image/jpeg" />-->
			<category>Ask</category>
			<description>
			最近&lt;a href="http://www.itechtag.com/" rel="nofollow external" class="tpc"&gt;技能云&lt;/a&gt;遇到一个很奇怪的问题，每天凌晨的时候，转换日志的时候都会出现一些问题，导致应用程序无法访问，每次都是重启后才能恢复，相当怪异。&lt;br /&gt;
&lt;br /&gt;
理了下，应该是从我使用backgroundrb任务队列以后开始的，原来是没有问题的，每天凌晨的时候会自动切换日志文件名称。&lt;br /&gt;
&lt;br /&gt;
而我在backgroundrb里面是定时的同步用户的Feeds用的，会调用相关的model中的方法解析RSS，入库等操作，自然这个过程中也是有日志的。&lt;br /&gt;
&lt;br /&gt;
看到报的错误如下：&lt;br /&gt;
&lt;div class="code"&gt;&lt;br /&gt;
# Logger::ShiftingError (Shifting failed. '/home/iceskysl/itechtag/config/../log/sql/production_2008-01-24.log.20080124' already exists.):  &lt;br /&gt;
#     /usr/lib/ruby/1.8/logger.rb:501:in `write'  &lt;br /&gt;
#     /usr/lib/ruby/1.8/monitor.rb:238:in `synchronize'  &lt;br /&gt;
#     /usr/lib/ruby/1.8/logger.rb:496:in `write'  &lt;br /&gt;
#     /usr/lib/ruby/1.8/logger.rb:326:in `add'  &lt;br /&gt;
#     /usr/lib/ruby/1.8/logger.rb:348:in `debug'  &lt;br /&gt;
#     /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/abstract_adapter.rb:134:in `log_info'  &lt;br /&gt;
#     /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/abstract_adapter.rb:127:in `log'  &lt;br /&gt;
#     /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/mysql_adapter.rb:243:in `execute'  &lt;br /&gt;
#     /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/mysql_adapter.rb:399:in `select'  &lt;br /&gt;
#     /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/abstract/database_statements.rb:13:in `select_one'  &lt;br /&gt;
#     /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/abstract/database_statements.rb:19:in `select_value'  &lt;br /&gt;
#     /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/calculations.rb:212:in `execute_simple_calculation'  &lt;br /&gt;
#     /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/calculations.rb:121:in `calculate'  &lt;br /&gt;
#     /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/calculations.rb:117:in `catch'  &lt;br /&gt;
#     /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/calculations.rb:117:in `calculate'  &lt;br /&gt;
#     /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/calculations.rb:45:in `count'  &lt;br /&gt;
#     /app/models/motto.rb:9:in `get_rand'  &lt;br /&gt;
#     /app/controllers/application.rb:35:in `get_rand_motto' &lt;br /&gt;
&lt;/div&gt;
&lt;br /&gt;
我自己google并作了一些分析，但是没没有最终定位，有遇到类似问题的朋友还请指点一下，免得让我重复造轮子，谢谢&lt;br /&gt;
&lt;a href="http://iceskysl.1sters.com/?action=show&amp;id=198" rel="nofollow external" class="tpc"&gt;我的分析过程和记录&lt;/a&gt;
			</description>
			<pubDate>Fri, 25 Jan 2008 10:33:11 +0800</pubDate>
			<guid>http://chinaonrails.com/topic/view/1252.html</guid>
		</item>
		<item>
			<title>遇到一个很奇怪Rails logger的问题～ ... no reply</title>
			<link>http://chinaonrails.com/topic/view/1251.html</link>
			<comments>http://chinaonrails.com/topic/view/1251.html#reply</comments>
			<dc:creator>IceskYsl</dc:creator>
			<author>IceskYsl</author>
			<!--<enclosure url="http://chinaonrails.com/img/p/83.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/83_s.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/83_n.jpg" type="image/jpeg" />-->
			<category>Ask</category>
			<description>
			最近&lt;a href="http://www.itechtag.com/" rel="nofollow external" class="tpc"&gt;技能云&lt;/a&gt;遇到一个很奇怪的问题，每天凌晨的时候，转换日志的时候都会出现一些问题，导致应用程序无法访问，每次都是重启后才能恢复，相当怪异。&lt;br /&gt;
&lt;br /&gt;
理了下，应该是从我使用backgroundrb任务队列以后开始的，原来是没有问题的，每天凌晨的时候会自动切换日志文件名称。&lt;br /&gt;
&lt;br /&gt;
而我在backgroundrb里面是定时的同步用户的Feeds用的，会调用相关的model中的方法解析RSS，入库等操作，自然这个过程中也是有日志的。&lt;br /&gt;
&lt;br /&gt;
看到报的错误如下：&lt;br /&gt;
&lt;div class="code"&gt;&lt;br /&gt;
# Logger::ShiftingError (Shifting failed. '/home/iceskysl/itechtag/config/../log/sql/production_2008-01-24.log.20080124' already exists.):  &lt;br /&gt;
#     /usr/lib/ruby/1.8/logger.rb:501:in `write'  &lt;br /&gt;
#     /usr/lib/ruby/1.8/monitor.rb:238:in `synchronize'  &lt;br /&gt;
#     /usr/lib/ruby/1.8/logger.rb:496:in `write'  &lt;br /&gt;
#     /usr/lib/ruby/1.8/logger.rb:326:in `add'  &lt;br /&gt;
#     /usr/lib/ruby/1.8/logger.rb:348:in `debug'  &lt;br /&gt;
#     /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/abstract_adapter.rb:134:in `log_info'  &lt;br /&gt;
#     /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/abstract_adapter.rb:127:in `log'  &lt;br /&gt;
#     /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/mysql_adapter.rb:243:in `execute'  &lt;br /&gt;
#     /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/mysql_adapter.rb:399:in `select'  &lt;br /&gt;
#     /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/abstract/database_statements.rb:13:in `select_one'  &lt;br /&gt;
#     /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/abstract/database_statements.rb:19:in `select_value'  &lt;br /&gt;
#     /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/calculations.rb:212:in `execute_simple_calculation'  &lt;br /&gt;
#     /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/calculations.rb:121:in `calculate'  &lt;br /&gt;
#     /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/calculations.rb:117:in `catch'  &lt;br /&gt;
#     /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/calculations.rb:117:in `calculate'  &lt;br /&gt;
#     /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/calculations.rb:45:in `count'  &lt;br /&gt;
#     /app/models/motto.rb:9:in `get_rand'  &lt;br /&gt;
#     /app/controllers/application.rb:35:in `get_rand_motto' &lt;br /&gt;
&lt;/div&gt;
&lt;br /&gt;
我自己google并作了一些分析，但是没没有最终定位，有遇到类似问题的朋友还请指点一下，免得让我重复造轮子，谢谢&lt;br /&gt;
&lt;a href="http://iceskysl.1sters.com/?action=show&amp;id=198" rel="nofollow external" class="tpc"&gt;我的分析过程和记录&lt;/a&gt;
			</description>
			<pubDate>Fri, 25 Jan 2008 10:30:43 +0800</pubDate>
			<guid>http://chinaonrails.com/topic/view/1251.html</guid>
		</item>
		<item>
			<title>如何用Ruby生成动态图片。 ... 14 replies</title>
			<link>http://chinaonrails.com/topic/view/1241.html</link>
			<comments>http://chinaonrails.com/topic/view/1241.html#reply</comments>
			<dc:creator>IceskYsl</dc:creator>
			<author>IceskYsl</author>
			<!--<enclosure url="http://chinaonrails.com/img/p/83.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/83_s.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/83_n.jpg" type="image/jpeg" />-->
			<category>Ask</category>
			<description>
			我开发技能云的过程中，提供的JS样式的widget，但是有的用户使用的 第三方的 blog服务商，不能自己添加JS代码，想提供图片类的widget。。&lt;br /&gt;
&lt;br /&gt;
widget类似如下：&lt;br /&gt;
http://www.itechtag.com/widget/index&lt;br /&gt;
&lt;br /&gt;
目前就我知道的ruby生成图片的有类似生成验证码的那个，对格式支持不算强大，且操作比较繁琐。。&lt;br /&gt;
&lt;br /&gt;
各位是否有好的方法，多谢！
			</description>
			<pubDate>Wed, 23 Jan 2008 14:27:01 +0800</pubDate>
			<guid>http://chinaonrails.com/topic/view/1241.html</guid>
		</item>
		<item>
			<title>有生成WML的插件么？ ... 5 replies</title>
			<link>http://chinaonrails.com/topic/view/670.html</link>
			<comments>http://chinaonrails.com/topic/view/670.html#reply</comments>
			<dc:creator>IceskYsl</dc:creator>
			<author>IceskYsl</author>
			<!--<enclosure url="http://chinaonrails.com/img/p/83.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/83_s.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/83_n.jpg" type="image/jpeg" />-->
			<category>Ask</category>
			<description>
			需要做手机显示，考虑到国内很多都是低端的老手机，连XHTML Basic.支持都不好。&lt;br /&gt;
有没有正对WML的插件呢？&lt;br /&gt;
&lt;br /&gt;
google一把，貌似没有，各位有何线索。。提供点点。
			</description>
			<pubDate>Sat, 18 Aug 2007 17:05:03 +0800</pubDate>
			<guid>http://chinaonrails.com/topic/view/670.html</guid>
		</item>
		<item>
			<title>1stlog Version1.0.0发布啦！ ... 5 replies</title>
			<link>http://chinaonrails.com/topic/view/438.html</link>
			<comments>http://chinaonrails.com/topic/view/438.html#reply</comments>
			<dc:creator>IceskYsl</dc:creator>
			<author>IceskYsl</author>
			<!--<enclosure url="http://chinaonrails.com/img/p/83.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/83_s.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/83_n.jpg" type="image/jpeg" />-->
			<category>Open Source</category>
			<description>
			很高兴的和大家说，做为1sters.com的第二个开源产品1stlog终于发布了，谢谢这么多朋友的关心和鼓励，谢谢你们大家的帮助，谢谢所有帮助、鼓励、支持我的朋友们!&lt;br /&gt;
&lt;br /&gt;
下载页面：&lt;br /&gt;
http://www.1sters.com/blog/view/27&lt;br /&gt;
http://www.1ster.cn/topic/62&lt;br /&gt;
&lt;br /&gt;
安装部署文档：&lt;br /&gt;
http://www.1ster.cn/topic/61
			</description>
			<pubDate>Thu, 14 Jun 2007 08:33:58 +0800</pubDate>
			<guid>http://chinaonrails.com/topic/view/438.html</guid>
		</item>
	</channel>
</rss>