From fayland at gmail.com Mon Dec 1 21:14:53 2008 From: fayland at gmail.com (Fayland Lam) Date: Tue, 02 Dec 2008 13:14:53 +0800 Subject: [PerlChina] perl advent Message-ID: <4934C44D.3030904@gmail.com> http://perladvent.pm.org/2008/ http://www.catalystframework.org/calendar yearly. and last for 25 days. Thanks. -- Fayland Lam Foorum based on Catalyst // http://www.foorumbbs.com/ From lamp.purl at gmail.com Mon Dec 1 23:12:20 2008 From: lamp.purl at gmail.com (purl lamp) Date: Tue, 2 Dec 2008 15:12:20 +0800 Subject: [PerlChina] perl advent In-Reply-To: <4934C44D.3030904@gmail.com> References: <4934C44D.3030904@gmail.com> Message-ID: <367185060812012312gf5864e2uf0aaa2235e403613@mail.gmail.com> 1th day of dec: thanks for layoff :D thanks for layoff, our llama 5th book is almost delivering on time:D On Tue, Dec 2, 2008 at 1:14 PM, Fayland Lam wrote: > http://perladvent.pm.org/2008/ > http://www.catalystframework.org/calendar > > yearly. and last for 25 days. > > Thanks. > > -- > Fayland Lam > Foorum based on Catalyst // http://www.foorumbbs.com/ > > > _______________________________________________ > China-pm mailing list > China-pm at pm.org > http://mail.pm.org/mailman/listinfo/china-pm -------------- next part -------------- An HTML attachment was scrubbed... URL: From shijialee at gmail.com Tue Dec 2 01:21:22 2008 From: shijialee at gmail.com (Qiang (James)) Date: Tue, 02 Dec 2008 17:21:22 +0800 Subject: [PerlChina] perl advent In-Reply-To: <367185060812012312gf5864e2uf0aaa2235e403613@mail.gmail.com> References: <4934C44D.3030904@gmail.com> <367185060812012312gf5864e2uf0aaa2235e403613@mail.gmail.com> Message-ID: <4934FE12.4000807@gmail.com> purl lamp wrote: > 1th day of dec: thanks for layoff :D > thanks for layoff, our llama 5th book is almost delivering on time:D > leanring perl 中文版计划什么时候上市? Qiang(James) > On Tue, Dec 2, 2008 at 1:14 PM, Fayland Lam > wrote: > > http://perladvent.pm.org/2008/ > http://www.catalystframework.org/calendar > > yearly. and last for 25 days. > > Thanks. > > -- > Fayland Lam > Foorum based on Catalyst // http://www.foorumbbs.com/ > > > _______________________________________________ > China-pm mailing list > China-pm at pm.org > http://mail.pm.org/mailman/listinfo/china-pm > > > > ------------------------------------------------------------------------ > > _______________________________________________ > China-pm mailing list > China-pm at pm.org > http://mail.pm.org/mailman/listinfo/china-pm From lamp.purl at gmail.com Tue Dec 2 02:35:39 2008 From: lamp.purl at gmail.com (joe jiang) Date: Tue, 02 Dec 2008 18:35:39 +0800 Subject: [PerlChina] perl advent In-Reply-To: <4934FE12.4000807@gmail.com> References: <4934C44D.3030904@gmail.com> <367185060812012312gf5864e2uf0aaa2235e403613@mail.gmail.com> <4934FE12.4000807@gmail.com> Message-ID: <1228214140.5073.3.camel@flatpan> 这得看出版社的评审进度而定,我们这边的审阅已经基本完成了。 参与翻译之后,个人感觉甚至提高了教导其它编程语言的水平。以前就是不能明 白,“为什么这么容易的东西还有人提问?” 小骆驼确实是在教学过程中积累出来的书,值得期待! On 二, 2008-12-02 at 17:21 +0800, Qiang (James) wrote: > purl lamp wrote: > > 1th day of dec: thanks for layoff :D > > thanks for layoff, our llama 5th book is almost delivering on time:D > > > > leanring perl 中文版计划什么时候上市? > > Qiang(James) > > > On Tue, Dec 2, 2008 at 1:14 PM, Fayland Lam > > wrote: > > > > http://perladvent.pm.org/2008/ > > http://www.catalystframework.org/calendar > > > > yearly. and last for 25 days. > > > > Thanks. > > > > -- > > Fayland Lam > > Foorum based on Catalyst // http://www.foorumbbs.com/ > > > > > > _______________________________________________ > > China-pm mailing list > > China-pm at pm.org > > http://mail.pm.org/mailman/listinfo/china-pm > > > > > > > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > China-pm mailing list > > China-pm at pm.org > > http://mail.pm.org/mailman/listinfo/china-pm > > _______________________________________________ > China-pm mailing list > China-pm at pm.org > http://mail.pm.org/mailman/listinfo/china-pm From boheling at hotmail.com Wed Dec 3 01:32:43 2008 From: boheling at hotmail.com (=?gb2312?B?wfW+sg==?=) Date: Wed, 3 Dec 2008 17:32:43 +0800 Subject: [PerlChina] =?gb2312?b?yOe6ztTaQ2F0YWx5c3TW0Me2yOtDR0k6OkdyYXBo?= =?gb2312?b?o78=?= Message-ID: 需要在网站中加入动态地制作图像并对特定坐标点加入超链接 查了一下CGI::Graph可以完成我想要的工作, 可是web站点是利用catalyst框架建立的 请问应该怎么样在catalyst中使用CGI呢 _________________________________________________________________ MSN安全保护中心,免费修复系统漏洞,保护MSN安全! http://im.live.cn/safe/center/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From yonghua.peng at gmail.com Wed Dec 3 02:01:55 2008 From: yonghua.peng at gmail.com (J. Peng) Date: Wed, 3 Dec 2008 18:01:55 +0800 Subject: [PerlChina] =?utf-8?b?5aaC5L2V5ZyoQ2F0YWx5c3TkuK3ltYzlhaVDR0k6?= =?utf-8?b?OkdyYXBo77yf?= In-Reply-To: References: Message-ID: <838104a80812030201t32411f2fne88ef3794c5aa3db@mail.gmail.com> 2008/12/3 刘静 : > 需要在网站中加入动态地制作图像并对特定坐标点加入超链接 > 查了一下CGI::Graph可以完成我想要的工作, 可是web站点是利用catalyst框架建立的 > 请问应该怎么样在catalyst中使用CGI呢 > CGI::Graph应该也是调用的GD::Graph吧,可以试试在catalyst里使用后者。 From fayland at gmail.com Wed Dec 3 02:20:07 2008 From: fayland at gmail.com (Fayland Lam) Date: Wed, 3 Dec 2008 18:20:07 +0800 Subject: [PerlChina] =?utf-8?b?5aaC5L2V5ZyoQ2F0YWx5c3TkuK3ltYzlhaVDR0k6?= =?utf-8?b?OkdyYXBo77yf?= In-Reply-To: <838104a80812030201t32411f2fne88ef3794c5aa3db@mail.gmail.com> References: <838104a80812030201t32411f2fne88ef3794c5aa3db@mail.gmail.com> Message-ID: you can use $c->res->content_type('image/png'); $c->res->body(\*OUTPUT); binmode STDOUT; print STDOUT $gd->png; 2008/12/3 J. Peng : > 2008/12/3 刘静 : >> 需要在网站中加入动态地制作图像并对特定坐标点加入超链接 >> 查了一下CGI::Graph可以完成我想要的工作, 可是web站点是利用catalyst框架建立的 >> 请问应该怎么样在catalyst中使用CGI呢 >> > > CGI::Graph应该也是调用的GD::Graph吧,可以试试在catalyst里使用后者。 > _______________________________________________ > China-pm mailing list > China-pm at pm.org > http://mail.pm.org/mailman/listinfo/china-pm -- Fayland Lam // http://www.fayland.org/ Foorum based on Catalyst // http://www.foorumbbs.com/ From shijialee at gmail.com Wed Dec 3 21:27:17 2008 From: shijialee at gmail.com (Qiang (James)) Date: Thu, 04 Dec 2008 13:27:17 +0800 Subject: [PerlChina] =?utf-8?b?MTLmnIgxOOWPt+aYn+acn+Wbm++8jCDljJfkuqwg?= =?utf-8?b?UGVybCDnlKjmiLflsI/nu4TvvIhCZWlqaW5nIFBlcmwgTW9uZ2Vyc++8iQ==?= =?utf-8?b?6aaW5qyh6IGa5Lya?= Message-ID: <49376A35.3020004@gmail.com> 北京 Perl 用户小组(Beijing Perl Mongers)第一次聚会!欢迎所有对 Perl 感 兴趣的朋友参加! 这次聚会选在簋街的一家新疆饭店。 时间: 12月18号星期四晚上 7 点到结束为止。 地点: 苏力坦餐厅 簋街 东直门内大街179号 电话; (010) 8406-4687 136-0119-1250 路线从西:北新桥地铁 B 口(东北口)出,向东走大概 7,8 分钟路北既是。 路线从东:东直门地铁站 A 口(西北口)出,向西走大概 10 分钟路北既是。簋 街上有两家苏力坦餐厅,从东方向来的朋友应该去第二家。 价位: 串 2元, 啤酒 5元, 鸡翅: 6元 餐厅照片:http://xrl.us/oynb4 地图: http://xrl.us/oymjr 我会提前以 perlchina 小组聚会名义定位,早去的朋友早坐即可. 聚会的主题: * 羊肉串 && 啤酒 :-) * 北京 Perl 爱好者认识和交流 * 讨论以什么样的形式来进行2009年一月份的小组聚会 - 技术演讲交流,社交性 聚会,还是两者兼顾。 12月18号见! Qiang(James) From yonghua.peng at gmail.com Wed Dec 3 21:58:59 2008 From: yonghua.peng at gmail.com (J. Peng) Date: Thu, 4 Dec 2008 13:58:59 +0800 Subject: [PerlChina] =?utf-8?b?MTLmnIgxOOWPt+aYn+acn+Wbm++8jCDljJfkuqwg?= =?utf-8?b?UGVybCDnlKjmiLflsI/nu4TvvIhCZWlqaW5nIFBlcmwgTW9uZ2Vycw==?= =?utf-8?b?77yJ6aaW5qyh6IGa5Lya?= In-Reply-To: <49376A35.3020004@gmail.com> References: <49376A35.3020004@gmail.com> Message-ID: <838104a80812032158k5755e57aq1cbc0c33813fcf53@mail.gmail.com> 2008/12/4 Qiang (James) : > 北京 Perl 用户小组(Beijing Perl Mongers)第一次聚会!欢迎所有对 Perl 感 > 兴趣的朋友参加! > 热烈支持。这种活动应该持续下去。 From acmilan.baresi at gmail.com Wed Dec 3 22:02:15 2008 From: acmilan.baresi at gmail.com (Baresi) Date: Thu, 4 Dec 2008 14:02:15 +0800 Subject: [PerlChina] =?gb2312?b?MTLUwjE4usXQx8bay8SjrCCxsb6pIFBlcmwg08M=?= =?gb2312?b?u6fQodfpo6hCZWlqaW5nIFBlcmwgTW9uZ2Vyc6Opyte0zr7bu+E=?= In-Reply-To: <838104a80812032158k5755e57aq1cbc0c33813fcf53@mail.gmail.com> References: <49376A35.3020004@gmail.com> <838104a80812032158k5755e57aq1cbc0c33813fcf53@mail.gmail.com> Message-ID: <8ebdea6c0812032202v8afb946s76a060a3072c78ca@mail.gmail.com> 身不能至,心向往之…… 2008/12/4 J. Peng : > 2008/12/4 Qiang (James) : >> 北京 Perl 用户小组(Beijing Perl Mongers)第一次聚会!欢迎所有对 Perl 感 >> 兴趣的朋友参加! >> > > 热烈支持。这种活动应该持续下去。 > _______________________________________________ > China-pm mailing list > China-pm at pm.org > http://mail.pm.org/mailman/listinfo/china-pm -- 凡事包容,凡事相信,凡事盼望,凡事忍耐。 From smallfish at live.cn Wed Dec 3 22:25:03 2008 From: smallfish at live.cn (smallfish) Date: Thu, 4 Dec 2008 14:25:03 +0800 Subject: [PerlChina] =?utf-8?b?MTLmnIgxOOWPt+aYn+acn+Wbm++8jCDljJfkuqwg?= =?utf-8?b?UGVybCDnlKjmiLflsI/nu4TvvIhCZWlqaW5nIFBlcmwgTW9uZ2Vycw==?= =?utf-8?b?77yJ6aaW5qyh6IGa5Lya?= In-Reply-To: <49376A35.3020004@gmail.com> <838104a80812032158k5755e57aq1cbc0c33813fcf53@mail.gmail.com> References: <49376A35.3020004@gmail.com> <838104a80812032158k5755e57aq1cbc0c33813fcf53@mail.gmail.com> Message-ID: 呵呵,啥时候来南京。北京现在太冷了。。。寒流 -------------------------------------------------- From: "J. Peng" Sent: Thursday, December 04, 2008 1:58 PM To: Subject: Re: [PerlChina] 12月18号星期四, 北京 Perl 用户小组(Beijing Perl Mongers)首次聚会 > 2008/12/4 Qiang (James) : >> 北京 Perl 用户小组(Beijing Perl Mongers)第一次聚会!欢迎所有对 Perl 感 >> 兴趣的朋友参加! >> > > 热烈支持。这种活动应该持续下去。 > _______________________________________________ > China-pm mailing list > China-pm at pm.org > http://mail.pm.org/mailman/listinfo/china-pm From yang.liana at gmail.com Wed Dec 3 22:33:51 2008 From: yang.liana at gmail.com (rorot) Date: Thu, 4 Dec 2008 14:33:51 +0800 Subject: [PerlChina] =?gb2312?b?09C49lNRTCCy6dGvo6yz9rTtwcuho9fFvLHOytK7?= =?gb2312?b?z8K94bn7?= Message-ID: <3aac2b3b0812032233w4277c7e7sf66f0edf15962d8f@mail.gmail.com> 不好意思,着急用。刚才在SQL IRC里没人回答。所以发这里,望有人解决一下。 SELECT (unix_timestamp(now()) - unix_timestamp(starttime)) as diff FROM `workers` WHERE diff < 900; 上面这条MySQL查询为什么出错?? *MySQL said: *[image: Documentation] #1054 - Unknown column 'diff' in 'where clause' rorot Dec/04/2008 -------------- next part -------------- An HTML attachment was scrubbed... URL: From fayland at gmail.com Wed Dec 3 22:44:22 2008 From: fayland at gmail.com (Fayland Lam) Date: Thu, 04 Dec 2008 14:44:22 +0800 Subject: [PerlChina] =?gb2312?b?09C49lNRTCCy6dGvo6yz9rTtwcuho9fFvLHOytK7?= =?gb2312?b?z8K94bn7?= In-Reply-To: <3aac2b3b0812032233w4277c7e7sf66f0edf15962d8f@mail.gmail.com> References: <3aac2b3b0812032233w4277c7e7sf66f0edf15962d8f@mail.gmail.com> Message-ID: <49377C46.3060106@gmail.com> rorot wrote: > 不好意思,着急用。刚才在SQL IRC里没人回答。所以发这里,望有人解决一下。 > > SELECT (unix_timestamp(now()) - unix_timestamp(starttime)) as diff > FROM `workers` WHERE diff < 900; sounds like you want HAVING. you can't use SELECT result to be a WHERE. it's not logic sane. > > 上面这条MySQL查询为什么出错?? > > *MySQL said: *Documentation > > > | #1054 - Unknown column 'diff' in 'where clause' | > > > > rorot Dec/04/2008 > > ------------------------------------------------------------------------ > > _______________________________________________ > China-pm mailing list > China-pm at pm.org > http://mail.pm.org/mailman/listinfo/china-pm -- Fayland Lam // http://www.fayland.org/ Foorum based on Catalyst // http://www.foorumbbs.com/ From smallfish at live.cn Wed Dec 3 22:46:21 2008 From: smallfish at live.cn (smallfish) Date: Thu, 4 Dec 2008 14:46:21 +0800 Subject: [PerlChina] =?utf-8?b?5pyJ5LiqU1FMIOafpeivou+8jOWHuumUmeS6hg==?= =?utf-8?b?44CC552A5oCl6Zeu5LiA5LiL57uT5p6c?= In-Reply-To: <3aac2b3b0812032233w4277c7e7sf66f0edf15962d8f@mail.gmail.com> <49377C46.3060106@gmail.com> References: <3aac2b3b0812032233w4277c7e7sf66f0edf15962d8f@mail.gmail.com> <49377C46.3060106@gmail.com> Message-ID: 只能用 SELECT (unix_timestamp(now()) - unix_timestamp(starttime)) as diff FROM `workers` WHERE (unix_timestamp(now()) - unix_timestamp(starttime)) < 900; where里是不能用前面as的名字 -------------------------------------------------- From: "Fayland Lam" Sent: Thursday, December 04, 2008 2:44 PM To: Subject: Re: [PerlChina] 有个SQL 查询,出错了。着急问一下结果 > rorot wrote: >> 不好意思,着急用。刚才在SQL IRC里没人回答。所以发这里,望有人解决一下。 >> >> SELECT (unix_timestamp(now()) - unix_timestamp(starttime)) as diff >> FROM `workers` WHERE diff < 900; > > sounds like you want HAVING. you can't use SELECT result to be a WHERE. > it's not logic sane. > >> >> 上面这条MySQL查询为什么出错?? >> >> *MySQL said: *Documentation >> >> >> | #1054 - Unknown column 'diff' in 'where clause' | >> >> >> >> rorot Dec/04/2008 >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> China-pm mailing list >> China-pm at pm.org >> http://mail.pm.org/mailman/listinfo/china-pm > > > -- > Fayland Lam // http://www.fayland.org/ > Foorum based on Catalyst // http://www.foorumbbs.com/ > > _______________________________________________ > China-pm mailing list > China-pm at pm.org > http://mail.pm.org/mailman/listinfo/china-pm From yang.liana at gmail.com Wed Dec 3 22:56:48 2008 From: yang.liana at gmail.com (rorot) Date: Thu, 4 Dec 2008 14:56:48 +0800 Subject: [PerlChina] =?gb2312?b?09C49lNRTCCy6dGvo6yz9rTtwcuho9fFvLHOytK7?= =?gb2312?b?z8K94bn7?= In-Reply-To: References: <3aac2b3b0812032233w4277c7e7sf66f0edf15962d8f@mail.gmail.com> <49377C46.3060106@gmail.com> Message-ID: <3aac2b3b0812032256l26865426va311122c02f87733@mail.gmail.com> 谢谢各位,只能这样了:) 2008/12/4 smallfish > 只能用 > SELECT (unix_timestamp(now()) - unix_timestamp(starttime)) as diff FROM > `workers` WHERE (unix_timestamp(now()) - unix_timestamp(starttime)) < 900; > > where里是不能用前面as的名字 > > -------------------------------------------------- > From: "Fayland Lam" > Sent: Thursday, December 04, 2008 2:44 PM > To: > Subject: Re: [PerlChina] 有个SQL 查询,出错了。着急问一下结果 > > > rorot wrote: >> >>> 不好意思,着急用。刚才在SQL IRC里没人回答。所以发这里,望有人解决一下。 >>> >>> SELECT (unix_timestamp(now()) - unix_timestamp(starttime)) as diff >>> FROM `workers` WHERE diff < 900; >>> >> >> sounds like you want HAVING. you can't use SELECT result to be a WHERE. >> it's not logic sane. >> >> >>> 上面这条MySQL查询为什么出错?? >>> >>> *MySQL said: *Documentation >>> >>> >>> | #1054 - Unknown column 'diff' in 'where clause' | >>> >>> >>> >>> rorot Dec/04/2008 >>> >>> ------------------------------------------------------------------------ >>> >>> _______________________________________________ >>> China-pm mailing list >>> China-pm at pm.org >>> http://mail.pm.org/mailman/listinfo/china-pm >>> >> >> >> -- >> Fayland Lam // http://www.fayland.org/ >> Foorum based on Catalyst // http://www.foorumbbs.com/ >> >> _______________________________________________ >> China-pm mailing list >> China-pm at pm.org >> http://mail.pm.org/mailman/listinfo/china-pm >> > > _______________________________________________ > China-pm mailing list > China-pm at pm.org > http://mail.pm.org/mailman/listinfo/china-pm > -------------- next part -------------- An HTML attachment was scrubbed... URL: From i at lxl.cn Wed Dec 3 23:23:25 2008 From: i at lxl.cn (=?UTF-8?B?5p6X5YW06ZmG?=) Date: Thu, 4 Dec 2008 15:23:25 +0800 Subject: [PerlChina] China-pm Digest, Vol 44, Issue 3 In-Reply-To: References: Message-ID: 咳,不吃牛羊肉,到时候只能去随便转转了, 下次聚会我建议一起喝茶,功夫茶,如果人数 不多我可以提供地方,提供好茶,提供茶点。 > 北京 Perl 用户小组(Beijing Perl Mongers)第一次聚会!欢迎所有对 Perl 感 > 兴趣的朋友参加! > > 这次聚会选在簋街的一家新疆饭店。 > > 时间: 12月18号星期四晚上 7 点到结束为止。 > 地点: 苏力坦餐厅 簋街 东直门内大街179号 > 电话; (010) 8406-4687 136-0119-1250 > 路线从西:北新桥地铁 B 口(东北口)出,向东走大概 7,8 分钟路北既是。 > 路线从东:东直门地铁站 A 口(西北口)出,向西走大概 10 分钟路北既是。簋 > 街上有两家苏力坦餐厅,从东方向来的朋友应该去第二家。 > 价位: 串 2元, 啤酒 5元, 鸡翅: 6元 > 餐厅照片:http://xrl.us/oynb4 > 地图: http://xrl.us/oymjr > > 我会提前以 perlchina 小组聚会名义定位,早去的朋友早坐即可. > > 聚会的主题: > > * 羊肉串 && 啤酒 :-) > * 北京 Perl 爱好者认识和交流 > * 讨论以什么样的形式来进行2009年一月份的小组聚会 - 技术演讲交流,社交性 > 聚会,还是两者兼顾。 > > > 12月18号见! > > Qiang(James) -- /* 110000011101011011010000110010111100001010111101 *\ Lin Xinglu(林兴陆) - Mike Lam Mobile Phone: (+86)13501281365 E-Mail: linxinglu at webos.cn / i at lxl.cn Website: http://www.webos.cn - Web 3.0 QQ: 28888888 ICQ: 2876829 MSN: Linxinglu at hotmail.com Homepage: http://www.lxl.cn \* 110000011101011011010000110010111100001010111101 */ From redicaps at gmail.com Thu Dec 4 00:12:01 2008 From: redicaps at gmail.com (redicaps at gmail.com) Date: Thu, 04 Dec 2008 08:12:01 +0000 Subject: [PerlChina] =?gb2312?b?MTLUwjE4usXQx8bay8SjrCCxsb6pIFBlcmwg08M=?= =?gb2312?b?u6fQodfpo6hCZWlqaW5nIFBlcmwgTW9uZ2Vyc6Opyte0zr7bu+E=?= Message-ID: <0016e64beb547a724e045d341d04@google.com> 我顶 On Dec 4, 2008 2:25pm, smallfish wrote: > 呵呵,啥时候来南京。北京现在太冷了。。。寒流 > > > > -------------------------------------------------- > > From: "J. Peng" yonghua.peng at gmail.com> > > Sent: Thursday, December 04, 2008 1:58 PM > > To: china-pm at pm.org> > > Subject: Re: [PerlChina] 12月18号星期四, 北京 Perl 用户小组(Beijing Perl Mongers)首次聚会 > > > > > 2008/12/4 Qiang (James) shijialee at gmail.com>: > > > 北京 Perl 用户小组(Beijing Perl Mongers)第一次聚会!欢迎所有对 Perl 感 > > 兴趣的朋友参加! > > > > > > > 热烈支持。这种活动应该持续下去。 > > _______________________________________________ > > China-pm mailing list > > China-pm at pm.org > > http://mail.pm.org/mailman/listinfo/china-pm > > > > > _______________________________________________ > > China-pm mailing list > > China-pm at pm.org > > http://mail.pm.org/mailman/listinfo/china-pm -------------- next part -------------- An HTML attachment was scrubbed... URL: From freeespeech at gmail.com Sun Dec 7 03:06:03 2008 From: freeespeech at gmail.com (owen nirvana) Date: Sun, 7 Dec 2008 19:06:03 +0800 Subject: [PerlChina] =?gb2312?b?zsS8/sPoyva3+8jnus7NrMqxtsHQtCgg0tSyu8q5?= =?gb2312?b?08M8PrXEt73Kvbj80MLOxLz+ICk=?= Message-ID: 我想批量替换某些文件的内容,按照learning perl 的方法可以从命令行读入,但是这种情况似乎并不适用于目录嵌套的情况, # from learning perl $^I = ".bak" while (<>) { s/A/B/; print; } #my code $^I = ''; if ( $filename =~ /AAA/i ) { open FILE, "<", $filename or die "bla bla bla..."; while () { s/A/B/; print; } } 这样还是仅仅打印到STDOUT了,该如何解决,谢谢 注:文件分布于个子目录之下,我是用File::Find遍历查找的,这样的话就只可以使用了,为了更灵活一些,我也觉得把一切筛选工作让命令行来解决并不太合适 gtalk:freeespeech at gmail.com From agentzh at gmail.com Sun Dec 7 03:34:15 2008 From: agentzh at gmail.com (agentzh) Date: Sun, 7 Dec 2008 19:34:15 +0800 Subject: [PerlChina] =?gb2312?b?zsS8/sPoyva3+8jnus7NrMqxtsHQtCgg0tSyu8q5?= =?gb2312?b?08M8PrXEt73Kvbj80MLOxLz+ICk=?= In-Reply-To: References: Message-ID: 2008/12/7 owen nirvana > 我想批量替换某些文件的内容,按照learning perl 的方法可以从命令行读入,但是这种情况似乎并不适用于目录嵌套的情况, > 在 *NIX 下,我一般会这么写: $ find /some/dir -name '*.foo' | xargs ./my-script.pl 对于常见的正则可以搞定的批量替换,我一般会直接使用 sed -i 's/foo/bar/g',必要时辅之以 find 命令 :) 如果希望 native Win32 也好使,使用 File::Find 挺好的,呵呵。如果自己用 opendir/readdir 啥的遍历目录树。 文件的修改,通常的做法是,先读取文件 foo,然后把修改后的写到一个临时文件中,写完之后,再把临时文件覆盖掉原始文件 foo。 如果 foo 不是很大,可以一口气先读到 RAM 中来,关闭掉读句柄,再以写方式打开 foo,把东西再写进 foo 文件里。但这种方法存在丢数的风险,假设程序在写 foo 的过程中掉电,或者被 Ctrl-C 了,那么我们就丢失了数据。所以对于比较严肃的事情,一般不推荐,呵呵 :) Bye, -agentzh -------------- next part -------------- An HTML attachment was scrubbed... URL: From lamp.purl at gmail.com Sun Dec 7 04:01:21 2008 From: lamp.purl at gmail.com (joe jiang) Date: Sun, 07 Dec 2008 20:01:21 +0800 Subject: [PerlChina] =?utf-8?b?5paH5Lu25o+P6L+w56ym5aaC5L2V5ZCM5pe26K+7?= =?utf-8?b?5YaZKCDku6XkuI3kvb/nlKg8PueahOaWueW8j+abtOaWsOaWh+S7tiAp?= In-Reply-To: References: Message-ID: <1228651281.10712.0.camel@flatpan> 应该可以用 File::Find 的结果来填充 @ARGV,然后 print 就能配合 $^I 完成你 需要的修改了。 On 日, 2008-12-07 at 19:06 +0800, owen nirvana wrote: > 我想批量替换某些文件的内容,按照learning perl 的方法可以从命令行读入,但是这种情况似乎并不适用于目录嵌套的情况, > > # from learning perl > $^I = ".bak" > while (<>) { > s/A/B/; > print; > } > > #my code > > > $^I = ''; > if ( $filename =~ /AAA/i ) { > open FILE, "<", $filename or die "bla bla bla..."; > while () { > s/A/B/; > print; > } > } > > > > 这样还是仅仅打印到STDOUT了,该如何解决,谢谢 > > 注:文件分布于个子目录之下,我是用File::Find遍历查找的,这样的话就只可以使用了,为了更灵活一些,我也觉得把一切筛选工作让命令行来解决并不太合适 > gtalk:freeespeech at gmail.com > _______________________________________________ > China-pm mailing list > China-pm at pm.org > http://mail.pm.org/mailman/listinfo/china-pm From freeespeech at gmail.com Sun Dec 7 17:54:34 2008 From: freeespeech at gmail.com (owen nirvana) Date: Mon, 8 Dec 2008 09:54:34 +0800 Subject: [PerlChina] China-pm Digest, Vol 44, Issue 5 In-Reply-To: References: Message-ID: 谢谢,xargs和sed的方式也是可以,不过好像对复杂的目录名,带各种符号的,不大有效 perl 填充ARGV的方式确实可以,还有个疑问,为什么perl不直接提供读加更新的方式呢, gtalk:freeespeech at gmail.com 2008/12/8 : > Send China-pm mailing list submissions to > china-pm at pm.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://mail.pm.org/mailman/listinfo/china-pm > or, via email, send a message with subject or body 'help' to > china-pm-request at pm.org > > You can reach the person managing the list at > china-pm-owner at pm.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of China-pm digest..." > > > Today's Topics: > > 1. 文件描述符如何同时读写( > 以不使用<>的方式更新文件 ) (owen nirvana) > 2. Re: 文件描述符如何同时读写( > 以不使用<>的方式更新文件 ) (agentzh) > 3. Re: 文件描述符如何同时读写( > 以不使用<>的方式更新文件 ) (joe jiang) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Sun, 7 Dec 2008 19:06:03 +0800 > From: "owen nirvana" > Subject: [PerlChina] 文件描述符如何同时读写( > 以不使用<>的方式更新文件 ) > To: china-pm at pm.org > Message-ID: > > Content-Type: text/plain; charset=GB2312 > > 我想批量替换某些文件的内容,按照learning perl 的方法可以从命令行读入,但是这种情况似乎并不适用于目录嵌套的情况, > > # from learning perl > $^I = ".bak" > while (<>) { > s/A/B/; > print; > } > > #my code > > > $^I = ''; > if ( $filename =~ /AAA/i ) { > open FILE, "<", $filename or die "bla bla bla..."; > while () { > s/A/B/; > print; > } > } > > > > 这样还是仅仅打印到STDOUT了,该如何解决,谢谢 > > 注:文件分布于个子目录之下,我是用File::Find遍历查找的,这样的话就只可以使用了,为了更灵活一些,我也觉得把一切筛选工作让命令行来解决并不太合适 > gtalk:freeespeech at gmail.com > > ------------------------------ > > Message: 2 > Date: Sun, 7 Dec 2008 19:34:15 +0800 > From: agentzh > Subject: Re: [PerlChina] 文件描述符如何同时读写( > 以不使用<>的方式更新文件 ) > To: china-pm at pm.org > Message-ID: > > Content-Type: text/plain; charset="gb2312" > > 2008/12/7 owen nirvana > >> 我想批量替换某些文件的内容,按照learning perl 的方法可以从命令行读入,但是这种情况似乎并不适用于目录嵌套的情况, >> > > 在 *NIX 下,我一般会这么写: > > $ find /some/dir -name '*.foo' | xargs ./my-script.pl > > 对于常见的正则可以搞定的批量替换,我一般会直接使用 sed -i 's/foo/bar/g',必要时辅之以 find 命令 :) > > 如果希望 native Win32 也好使,使用 File::Find 挺好的,呵呵。如果自己用 opendir/readdir 啥的遍历目录树。 > > 文件的修改,通常的做法是,先读取文件 foo,然后把修改后的写到一个临时文件中,写完之后,再把临时文件覆盖掉原始文件 foo。 > > 如果 foo 不是很大,可以一口气先读到 RAM 中来,关闭掉读句柄,再以写方式打开 foo,把东西再写进 foo > 文件里。但这种方法存在丢数的风险,假设程序在写 foo 的过程中掉电,或者被 Ctrl-C > 了,那么我们就丢失了数据。所以对于比较严肃的事情,一般不推荐,呵呵 :) > > Bye, > -agentzh > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > > ------------------------------ > > Message: 3 > Date: Sun, 07 Dec 2008 20:01:21 +0800 > From: joe jiang > Subject: Re: [PerlChina] 文件描述符如何同时读写( > 以不使用<>的方式更新文件 ) > To: china-pm at pm.org > Message-ID: <1228651281.10712.0.camel at flatpan> > Content-Type: text/plain; charset=utf-8 > > 应该可以用 File::Find 的结果来填充 @ARGV,然后 print 就能配合 $^I 完成你 > 需要的修改了。 > > On 日, 2008-12-07 at 19:06 +0800, owen nirvana wrote: >> 我想批量替换某些文件的内容,按照learning perl 的方法可以从命令行读入,但是这种情况似乎并不适用于目录嵌套的情况, >> >> # from learning perl >> $^I = ".bak" >> while (<>) { >> s/A/B/; >> print; >> } >> >> #my code >> >> >> $^I = ''; >> if ( $filename =~ /AAA/i ) { >> open FILE, "<", $filename or die "bla bla bla..."; >> while () { >> s/A/B/; >> print; >> } >> } >> >> >> >> 这样还是仅仅打印到STDOUT了,该如何解决,谢谢 >> >> 注:文件分布于个子目录之下,我是用File::Find遍历查找的,这样的话就只可以使用了,为了更灵活一些,我也觉得把一切筛选工作让命令行来解决并不太合适 >> gtalk:freeespeech at gmail.com >> _______________________________________________ >> China-pm mailing list >> China-pm at pm.org >> http://mail.pm.org/mailman/listinfo/china-pm > > > > ------------------------------ > > _______________________________________________ > China-pm mailing list > China-pm at pm.org > http://mail.pm.org/mailman/listinfo/china-pm > > End of China-pm Digest, Vol 44, Issue 5 > *************************************** > From blackkensai at gmail.com Mon Dec 8 03:21:56 2008 From: blackkensai at gmail.com (=?UTF-8?B?5p2o5rqq?=) Date: Mon, 8 Dec 2008 19:21:56 +0800 Subject: [PerlChina] =?utf-8?b?5paH5Lu25o+P6L+w56ym5aaC5L2V5ZCM5pe26K+7?= =?utf-8?b?5YaZKCDku6XkuI3kvb/nlKg8PueahOaWueW8j+abtOaWsOaWh+S7tiAp?= In-Reply-To: <1228651281.10712.0.camel@flatpan> References: <1228651281.10712.0.camel@flatpan> Message-ID: 替换文件内容可以用Tie::File. 很好用的,看下perldoc的例子就知道了。对数组的操作就可以直接替换文件。 可以用File::Find来search应该替换哪个文件,用Tie::File来修改文件内容。 2008/12/7 joe jiang > 应该可以用 File::Find 的结果来填充 @ARGV,然后 print 就能配合 $^I 完成你 > 需要的修改了。 > > On 日, 2008-12-07 at 19:06 +0800, owen nirvana wrote: > > 我想批量替换某些文件的内容,按照learning perl 的方法可以从命令行读入,但是这种情况似乎并不适用于目录嵌套的情况, > > > > # from learning perl > > $^I = ".bak" > > while (<>) { > > s/A/B/; > > print; > > } > > > > #my code > > > > > > $^I = ''; > > if ( $filename =~ /AAA/i ) { > > open FILE, "<", $filename or die "bla bla bla..."; > > while () { > > s/A/B/; > > print; > > } > > } > > > > > > > > 这样还是仅仅打印到STDOUT了,该如何解决,谢谢 > > > > > 注:文件分布于个子目录之下,我是用File::Find遍历查找的,这样的话就只可以使用了,为了更灵活一些,我也觉得把一切筛选工作让命令行来解决并不太合适 > > gtalk:freeespeech at gmail.com > > _______________________________________________ > > China-pm mailing list > > China-pm at pm.org > > http://mail.pm.org/mailman/listinfo/china-pm > > _______________________________________________ > China-pm mailing list > China-pm at pm.org > http://mail.pm.org/mailman/listinfo/china-pm > -------------- next part -------------- An HTML attachment was scrubbed... URL: From freeespeech at gmail.com Mon Dec 8 21:35:08 2008 From: freeespeech at gmail.com (owen nirvana) Date: Tue, 9 Dec 2008 13:35:08 +0800 Subject: [PerlChina] China-pm Digest, Vol 44, Issue 6 In-Reply-To: References: Message-ID: 谢谢 gtalk:freeespeech at gmail.com 2008/12/9 : > Send China-pm mailing list submissions to > china-pm at pm.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://mail.pm.org/mailman/listinfo/china-pm > or, via email, send a message with subject or body 'help' to > china-pm-request at pm.org > > You can reach the person managing the list at > china-pm-owner at pm.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of China-pm digest..." > > > Today's Topics: > > 1. Re: China-pm Digest, Vol 44, Issue 5 (owen nirvana) > 2. Re: 文件描述符如何同时读写( > 以不使用<>的方式更新文件 ) ( 杨溪 ) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Mon, 8 Dec 2008 09:54:34 +0800 > From: "owen nirvana" > Subject: Re: [PerlChina] China-pm Digest, Vol 44, Issue 5 > To: china-pm at pm.org > Message-ID: > > Content-Type: text/plain; charset=GB2312 > > 谢谢,xargs和sed的方式也是可以,不过好像对复杂的目录名,带各种符号的,不大有效 > > perl 填充ARGV的方式确实可以,还有个疑问,为什么perl不直接提供读加更新的方式呢, > gtalk:freeespeech at gmail.com > > > > 2008/12/8 : >> Send China-pm mailing list submissions to >> china-pm at pm.org >> >> To subscribe or unsubscribe via the World Wide Web, visit >> http://mail.pm.org/mailman/listinfo/china-pm >> or, via email, send a message with subject or body 'help' to >> china-pm-request at pm.org >> >> You can reach the person managing the list at >> china-pm-owner at pm.org >> >> When replying, please edit your Subject line so it is more specific >> than "Re: Contents of China-pm digest..." >> >> >> Today's Topics: >> >> 1. 文件描述符如何同时读写( >> 以不使用<>的方式更新文件 ) (owen nirvana) >> 2. Re: 文件描述符如何同时读写( >> 以不使用<>的方式更新文件 ) (agentzh) >> 3. Re: 文件描述符如何同时读写( >> 以不使用<>的方式更新文件 ) (joe jiang) >> >> >> ---------------------------------------------------------------------- >> >> Message: 1 >> Date: Sun, 7 Dec 2008 19:06:03 +0800 >> From: "owen nirvana" >> Subject: [PerlChina] 文件描述符如何同时读写( >> 以不使用<>的方式更新文件 ) >> To: china-pm at pm.org >> Message-ID: >> >> Content-Type: text/plain; charset=GB2312 >> >> 我想批量替换某些文件的内容,按照learning perl 的方法可以从命令行读入,但是这种情况似乎并不适用于目录嵌套的情况, >> >> # from learning perl >> $^I = ".bak" >> while (<>) { >> s/A/B/; >> print; >> } >> >> #my code >> >> >> $^I = ''; >> if ( $filename =~ /AAA/i ) { >> open FILE, "<", $filename or die "bla bla bla..."; >> while () { >> s/A/B/; >> print; >> } >> } >> >> >> >> 这样还是仅仅打印到STDOUT了,该如何解决,谢谢 >> >> 注:文件分布于个子目录之下,我是用File::Find遍历查找的,这样的话就只可以使用了,为了更灵活一些,我也觉得把一切筛选工作让命令行来解决并不太合适 >> gtalk:freeespeech at gmail.com >> >> ------------------------------ >> >> Message: 2 >> Date: Sun, 7 Dec 2008 19:34:15 +0800 >> From: agentzh >> Subject: Re: [PerlChina] 文件描述符如何同时读写( >> 以不使用<>的方式更新文件 ) >> To: china-pm at pm.org >> Message-ID: >> >> Content-Type: text/plain; charset="gb2312" >> >> 2008/12/7 owen nirvana >> >>> 我想批量替换某些文件的内容,按照learning perl 的方法可以从命令行读入,但是这种情况似乎并不适用于目录嵌套的情况, >>> >> >> 在 *NIX 下,我一般会这么写: >> >> $ find /some/dir -name '*.foo' | xargs ./my-script.pl >> >> 对于常见的正则可以搞定的批量替换,我一般会直接使用 sed -i 's/foo/bar/g',必要时辅之以 find 命令 :) >> >> 如果希望 native Win32 也好使,使用 File::Find 挺好的,呵呵。如果自己用 opendir/readdir 啥的遍历目录树。 >> >> 文件的修改,通常的做法是,先读取文件 foo,然后把修改后的写到一个临时文件中,写完之后,再把临时文件覆盖掉原始文件 foo。 >> >> 如果 foo 不是很大,可以一口气先读到 RAM 中来,关闭掉读句柄,再以写方式打开 foo,把东西再写进 foo >> 文件里。但这种方法存在丢数的风险,假设程序在写 foo 的过程中掉电,或者被 Ctrl-C >> 了,那么我们就丢失了数据。所以对于比较严肃的事情,一般不推荐,呵呵 :) >> >> Bye, >> -agentzh >> -------------- next part -------------- >> An HTML attachment was scrubbed... >> URL: >> >> ------------------------------ >> >> Message: 3 >> Date: Sun, 07 Dec 2008 20:01:21 +0800 >> From: joe jiang >> Subject: Re: [PerlChina] 文件描述符如何同时读写( >> 以不使用<>的方式更新文件 ) >> To: china-pm at pm.org >> Message-ID: <1228651281.10712.0.camel at flatpan> >> Content-Type: text/plain; charset=utf-8 >> >> 应该可以用 File::Find 的结果来填充 @ARGV,然后 print 就能配合 $^I 完成你 >> 需要的修改了。 >> >> On 日, 2008-12-07 at 19:06 +0800, owen nirvana wrote: >>> 我想批量替换某些文件的内容,按照learning perl 的方法可以从命令行读入,但是这种情况似乎并不适用于目录嵌套的情况, >>> >>> # from learning perl >>> $^I = ".bak" >>> while (<>) { >>> s/A/B/; >>> print; >>> } >>> >>> #my code >>> >>> >>> $^I = ''; >>> if ( $filename =~ /AAA/i ) { >>> open FILE, "<", $filename or die "bla bla bla..."; >>> while () { >>> s/A/B/; >>> print; >>> } >>> } >>> >>> >>> >>> 这样还是仅仅打印到STDOUT了,该如何解决,谢谢 >>> >>> 注:文件分布于个子目录之下,我是用File::Find遍历查找的,这样的话就只可以使用了,为了更灵活一些,我也觉得把一切筛选工作让命令行来解决并不太合适 >>> gtalk:freeespeech at gmail.com >>> _______________________________________________ >>> China-pm mailing list >>> China-pm at pm.org >>> http://mail.pm.org/mailman/listinfo/china-pm >> >> >> >> ------------------------------ >> >> _______________________________________________ >> China-pm mailing list >> China-pm at pm.org >> http://mail.pm.org/mailman/listinfo/china-pm >> >> End of China-pm Digest, Vol 44, Issue 5 >> *************************************** >> > > ------------------------------ > > Message: 2 > Date: Mon, 8 Dec 2008 19:21:56 +0800 > From: " 杨溪 " > Subject: Re: [PerlChina] 文件描述符如何同时读写( > 以不使用<>的方式更新文件 ) > To: china-pm at pm.org > Message-ID: > > Content-Type: text/plain; charset="utf-8" > > 替换文件内容可以用Tie::File. > 很好用的,看下perldoc的例子就知道了。对数组的操作就可以直接替换文件。 > 可以用File::Find来search应该替换哪个文件,用Tie::File来修改文件内容。 > > 2008/12/7 joe jiang > >> 应该可以用 File::Find 的结果来填充 @ARGV,然后 print 就能配合 $^I 完成你 >> 需要的修改了。 >> >> On 日, 2008-12-07 at 19:06 +0800, owen nirvana wrote: >> > 我想批量替换某些文件的内容,按照learning perl 的方法可以从命令行读入,但是这种情况似乎并不适用于目录嵌套的情况, >> > >> > # from learning perl >> > $^I = ".bak" >> > while (<>) { >> > s/A/B/; >> > print; >> > } >> > >> > #my code >> > >> > >> > $^I = ''; >> > if ( $filename =~ /AAA/i ) { >> > open FILE, "<", $filename or die "bla bla bla..."; >> > while () { >> > s/A/B/; >> > print; >> > } >> > } >> > >> > >> > >> > 这样还是仅仅打印到STDOUT了,该如何解决,谢谢 >> > >> > >> 注:文件分布于个子目录之下,我是用File::Find遍历查找的,这样的话就只可以使用了,为了更灵活一些,我也觉得把一切筛选工作让命令行来解决并不太合适 >> > gtalk:freeespeech at gmail.com >> > _______________________________________________ >> > China-pm mailing list >> > China-pm at pm.org >> > http://mail.pm.org/mailman/listinfo/china-pm >> >> _______________________________________________ >> China-pm mailing list >> China-pm at pm.org >> http://mail.pm.org/mailman/listinfo/china-pm >> > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > > ------------------------------ > > _______________________________________________ > China-pm mailing list > China-pm at pm.org > http://mail.pm.org/mailman/listinfo/china-pm > > End of China-pm Digest, Vol 44, Issue 6 > *************************************** > From acmilan.baresi at gmail.com Tue Dec 9 22:29:32 2008 From: acmilan.baresi at gmail.com (Hua Zhen) Date: Wed, 10 Dec 2008 14:29:32 +0800 Subject: [PerlChina] Higher-Order Perl Message-ID: <8ebdea6c0812092229g5135beabnc48b31e1ea655d96@mail.gmail.com> 看到了这本书,不知道发在这里合适不? http://hop.perl.plover.com/book/#PDF -- 凡事包容,凡事相信,凡事盼望,凡事忍耐。 From lamp.purl at gmail.com Tue Dec 9 22:45:23 2008 From: lamp.purl at gmail.com (purl lamp) Date: Wed, 10 Dec 2008 14:45:23 +0800 Subject: [PerlChina] Higher-Order Perl In-Reply-To: <8ebdea6c0812092229g5135beabnc48b31e1ea655d96@mail.gmail.com> References: <8ebdea6c0812092229g5135beabnc48b31e1ea655d96@mail.gmail.com> Message-ID: <367185060812092245q2c277ae3q287714899cf127b9@mail.gmail.com> 非常合适 :D it's so hard to wait for the PDF version finally get into existence! 2008/12/10 Hua Zhen > 看到了这本书,不知道发在这里合适不? > > http://hop.perl.plover.com/book/#PDF > > -- > 凡事包容,凡事相信,凡事盼望,凡事忍耐。 > _______________________________________________ > China-pm mailing list > China-pm at pm.org > http://mail.pm.org/mailman/listinfo/china-pm -------------- next part -------------- An HTML attachment was scrubbed... URL: From lee.duhem at gmail.com Wed Dec 10 04:47:31 2008 From: lee.duhem at gmail.com (Lee Duhem) Date: Wed, 10 Dec 2008 20:47:31 +0800 Subject: [PerlChina] Higher-Order Perl In-Reply-To: <367185060812092245q2c277ae3q287714899cf127b9@mail.gmail.com> References: <8ebdea6c0812092229g5135beabnc48b31e1ea655d96@mail.gmail.com> <367185060812092245q2c277ae3q287714899cf127b9@mail.gmail.com> Message-ID: 2008/12/10 purl lamp : > 非常合适 :D > it's so hard to wait for the PDF version finally get into existence! > 嗯,一直没有找到 PDF 版本。 lee From cuiyuming at gmail.com Mon Dec 15 21:09:23 2008 From: cuiyuming at gmail.com (cui robin) Date: Tue, 16 Dec 2008 13:09:23 +0800 Subject: [PerlChina] =?gb2312?b?MTLUwjE4usXQx8bay8SjrCCxsb6pIFBlcmwg08M=?= =?gb2312?b?u6fQodfpo6hCZWlqaW5nIFBlcmwgTW9uZ2Vyc6Opyte0zr7bu+E=?= In-Reply-To: <838104a80812032158k5755e57aq1cbc0c33813fcf53@mail.gmail.com> References: <49376A35.3020004@gmail.com> <838104a80812032158k5755e57aq1cbc0c33813fcf53@mail.gmail.com> Message-ID: <1331ce590812152109p55d6c70egfbd11b1f3a4d9152@mail.gmail.com> 啥时候,深圳Perler能来个聚会哦 2008/12/4 J. Peng > 2008/12/4 Qiang (James) : > > 北京 Perl 用户小组(Beijing Perl Mongers)第一次聚会!欢迎所有对 Perl 感 > > 兴趣的朋友参加! > > > > 热烈支持。这种活动应该持续下去。 > _______________________________________________ > China-pm mailing list > China-pm at pm.org > http://mail.pm.org/mailman/listinfo/china-pm -------------- next part -------------- An HTML attachment was scrubbed... URL: From loveasys at gmail.com Mon Dec 15 21:16:30 2008 From: loveasys at gmail.com (zong) Date: Tue, 16 Dec 2008 13:16:30 +0800 Subject: [PerlChina] =?utf-8?b?MTLmnIgxOOWPt+aYn+acn+Wbm++8jCDljJfkuqwg?= =?utf-8?b?UGVybCDnlKjmiLflsI/nu4TvvIhCZWlqaW5nIFBlcmwgTW9uZ2Vycw==?= =?utf-8?b?77yJ6aaW5qyh6IGa5Lya?= In-Reply-To: <1331ce590812152109p55d6c70egfbd11b1f3a4d9152@mail.gmail.com> References: <49376A35.3020004@gmail.com> <838104a80812032158k5755e57aq1cbc0c33813fcf53@mail.gmail.com> <1331ce590812152109p55d6c70egfbd11b1f3a4d9152@mail.gmail.com> Message-ID: <4ccf4daf0812152116r37f1202dvec28a7bf3a294b34@mail.gmail.com> 哈哈, 面对面的交流才会有巨大的收获。 2008/12/16 cui robin > 啥时候,深圳Perler能来个聚会哦 > > 2008/12/4 J. Peng > > 2008/12/4 Qiang (James) : >> > 北京 Perl 用户小组(Beijing Perl Mongers)第一次聚会!欢迎所有对 Perl 感 >> > 兴趣的朋友参加! >> > >> >> 热烈支持。这种活动应该持续下去。 >> _______________________________________________ >> China-pm mailing list >> China-pm at pm.org >> http://mail.pm.org/mailman/listinfo/china-pm > > > > _______________________________________________ > China-pm mailing list > China-pm at pm.org > http://mail.pm.org/mailman/listinfo/china-pm > -- 走遍千山万水... 大杂柜: www.loveasy.cn -------------- next part -------------- An HTML attachment was scrubbed... URL: From kindterry at gmail.com Tue Dec 16 00:14:29 2008 From: kindterry at gmail.com (kind terry) Date: Tue, 16 Dec 2008 16:14:29 +0800 Subject: [PerlChina] =?gb2312?b?MTLUwjE4usXQx8bay8SjrCCxsb6pIFBlcmwg08M=?= =?gb2312?b?u6fQodfpo6hCZWlqaW5nIFBlcmwgTW9uZ2Vyc6Opyte0zr7bu+E=?= In-Reply-To: <4ccf4daf0812152116r37f1202dvec28a7bf3a294b34@mail.gmail.com> References: <49376A35.3020004@gmail.com> <838104a80812032158k5755e57aq1cbc0c33813fcf53@mail.gmail.com> <1331ce590812152109p55d6c70egfbd11b1f3a4d9152@mail.gmail.com> <4ccf4daf0812152116r37f1202dvec28a7bf3a294b34@mail.gmail.com> Message-ID: 上海有没有啊,羡慕中 -------------- next part -------------- An HTML attachment was scrubbed... URL: From smallfish at live.cn Tue Dec 16 00:16:33 2008 From: smallfish at live.cn (smallfish) Date: Tue, 16 Dec 2008 16:16:33 +0800 Subject: [PerlChina] =?gb2312?b?MTLUwjE4usXQx8bay8SjrCCxsb6pIFBlcmwg08M=?= =?gb2312?b?u6fQodfpo6hCZWlqaW5nIFBlcmwgTW9uZ2Vyc6Opyte0zr7bu+E=?= In-Reply-To: <49376A35.3020004@gmail.com><838104a80812032158k5755e57aq1cbc0c33813fcf53@mail.gmail.com><1331ce590812152109p55d6c70egfbd11b1f3a4d9152@mail.gmail.com><4ccf4daf0812152116r37f1202dvec28a7bf3a294b34@mail.gmail.com> References: <49376A35.3020004@gmail.com><838104a80812032158k5755e57aq1cbc0c33813fcf53@mail.gmail.com><1331ce590812152109p55d6c70egfbd11b1f3a4d9152@mail.gmail.com><4ccf4daf0812152116r37f1202dvec28a7bf3a294b34@mail.gmail.com> Message-ID: 南京更没有了。。。。 # $msn = "smallfish at live.cn"; # $blog = "http://hi.baidu.com/smallfish7788"; China-pm mailing list China-pm at pm.org http://mail.pm.org/mailman/listinfo/china-pm -------------- next part -------------- An HTML attachment was scrubbed... URL: From jeffpeng at gmx.net Tue Dec 16 00:21:05 2008 From: jeffpeng at gmx.net (Jeff Peng) Date: Tue, 16 Dec 2008 16:21:05 +0800 Subject: [PerlChina] =?utf-8?b?MTLmnIgxOOWPt+aYn+acn+Wbm++8jCDljJfkuqwg?= =?utf-8?b?UGVybCDnlKjmiLflsI/nu4TvvIhCZWlqaW5nIFBlcmwgTW9uZ2Vycw==?= =?utf-8?b?77yJ6aaW5qyh6IGa5Lya?= In-Reply-To: <1331ce590812152109p55d6c70egfbd11b1f3a4d9152@mail.gmail.com> References: <49376A35.3020004@gmail.com> <838104a80812032158k5755e57aq1cbc0c33813fcf53@mail.gmail.com> <1331ce590812152109p55d6c70egfbd11b1f3a4d9152@mail.gmail.com> Message-ID: <838104a80812160021x5fcfcb40hac36c6d7871a78e5@mail.gmail.com> 2008/12/16 cui robin : > 啥时候,深圳Perler能来个聚会哦 > 是的。华南的perl用户这方面聚会搞的比较少。珠三角有个python用户组,就比较积极。 From lamp.purl at gmail.com Tue Dec 16 01:16:24 2008 From: lamp.purl at gmail.com (joe jiang) Date: Tue, 16 Dec 2008 17:16:24 +0800 Subject: [PerlChina] =?utf-8?b?MTLmnIgxOOWPt+aYn+acn+Wbm++8jCDljJfkuqwg?= =?utf-8?b?UGVybCDnlKjmiLflsI/nu4TvvIhCZWlqaW5nIFBlcmwgTW9uZ2Vycw==?= =?utf-8?b?77yJ6aaW5qyh6IGa5Lya?= In-Reply-To: References: <49376A35.3020004@gmail.com> <838104a80812032158k5755e57aq1cbc0c33813fcf53@mail.gmail.com> <1331ce590812152109p55d6c70egfbd11b1f3a4d9152@mail.gmail.com> <4ccf4daf0812152116r37f1202dvec28a7bf3a294b34@mail.gmail.com> Message-ID: <1229418984.5151.4.camel@flatpan> 上海喜欢 Perl 的朋友可以每月第三个周日下午五点在地铁二号线沿线喝茶,在南 京西路站上面有些不错的咖啡店。 第一次聚会可以庆祝 Perl 的书翻译结束,就是小骆驼书。 On 二, 2008-12-16 at 16:14 +0800, kind terry wrote: > > 上海有没有啊,羡慕中 > _______________________________________________ > China-pm mailing list > China-pm at pm.org > http://mail.pm.org/mailman/listinfo/china-pm From smallfish at live.cn Tue Dec 16 01:20:28 2008 From: smallfish at live.cn (smallfish) Date: Tue, 16 Dec 2008 17:20:28 +0800 Subject: [PerlChina] =?gb2312?b?Rnc6IDEy1MIxOLrF0MfG2svEo6wgsbG+qSBQZXJs?= =?gb2312?b?INPDu6fQodfpo6hCZWlqaW5nIFBlcmwgTW9uZ2Vyc6Opyte0zr7b?= =?gb2312?b?u+E=?= Message-ID: 活动还是北京上海比较多哦。羡慕可以有交流的机会 # $msn = "smallfish at live.cn"; # $blog = "http://hi.baidu.com/smallfish7788"; -------------- next part -------------- An HTML attachment was scrubbed... URL: From kevin-w-sh at hotmail.com Tue Dec 16 01:42:03 2008 From: kevin-w-sh at hotmail.com (WangKevin) Date: Tue, 16 Dec 2008 17:42:03 +0800 Subject: [PerlChina] =?gb2312?b?UGVybGNoaW5h0MLAz8Xz09E=?= In-Reply-To: References: Message-ID: Subject: Subject: Perlchina新老朋友Date: Tue, 16 Dec 2008 17:29:17 +0800Subject: Perlchina新老朋友Date: Tue, 16 Dec 2008 17:27:27 +0800提前预祝圣诞快乐!Perlchina 老友MALA WANG八卦娱乐包打听,MSN资讯速递帮你忙! 了解详细! 更多热辣资讯尽在新版MSN首页! 立刻访问! _________________________________________________________________ 超炫人气榜给您所有偶像的最新资讯和排名,快来支持自己的偶像! http://cnweb.search.live.com/xrank/results.aspx?q=%e5%91%a8%e6%9d%b0%e4%bc%a6&FORM=MSNH -------------- next part -------------- An HTML attachment was scrubbed... URL: From quzhengping at gmail.com Tue Dec 16 17:46:28 2008 From: quzhengping at gmail.com (Jumping) Date: Wed, 17 Dec 2008 09:46:28 +0800 Subject: [PerlChina] Oh,perl6 comming Message-ID: And what about Perl 6? Do you have a release date for this yet? Are you able to talk about the most exciting/interesting new developments with this? Sure, It's Christmas Day — we just don't say which one. We've been working on it 8 years now and we would like to think we are a lot closer to the end than the beginning. We're certainly well into the second 80 percent. http://www.computerworld.com.au/article/270267/-z_programming_languages_perl?pp=4 -- Don't tell me how many enemies we have, but where they are! (ADV:Perl -- It's like Java, only it lets you deliver on time and under budget.) From smallfish at live.cn Tue Dec 16 17:48:07 2008 From: smallfish at live.cn (smallfish) Date: Wed, 17 Dec 2008 09:48:07 +0800 Subject: [PerlChina] Oh,perl6 comming In-Reply-To: References: Message-ID: 真假?? -------------------------------------------------- From: "Jumping" Sent: Wednesday, December 17, 2008 9:46 AM To: Subject: [PerlChina] Oh,perl6 comming > And what about Perl 6? Do you have a release date for this yet? Are > you able to talk about the most exciting/interesting new developments > with this? > > Sure, It's Christmas Day — we just don't say which one. We've been > working on it 8 years now and we would like to think we are a lot > closer to the end than the beginning. We're certainly well into the > second 80 percent. > > http://www.computerworld.com.au/article/270267/-z_programming_languages_perl?pp=4 > -- > Don't tell me how many enemies we have, but where they are! > (ADV:Perl -- It's like Java, only it lets you deliver on time and under > budget.) > _______________________________________________ > China-pm mailing list > China-pm at pm.org > http://mail.pm.org/mailman/listinfo/china-pm From wanmyome at gmail.com Tue Dec 16 18:03:44 2008 From: wanmyome at gmail.com (Wan Chaowei) Date: Wed, 17 Dec 2008 10:03:44 +0800 Subject: [PerlChina] =?utf-8?b?UGVybGNoaW5h5paw6ICB5pyL5Y+L?= In-Reply-To: References: Message-ID: <9ff89e80812161803u66558864m19bfecf09e09a8c2@mail.gmail.com> 这家伙叫麻辣 2008/12/16 WangKevin > > Subject: Subject: Perlchina新老朋友 > Date: Tue, 16 Dec 2008 17:29:17 +0800 > > Subject: Perlchina新老朋友 > Date: Tue, 16 Dec 2008 17:27:27 +0800 > > > > > > > > > 提前预祝圣诞快乐! > > Perlchina 老友 > MALA WANG > > > > ------------------------------ > 八卦娱乐包打听,MSN资讯速递帮你忙! 了解详细! > > > ------------------------------ > 更多热辣资讯尽在新版MSN首页! 立刻访问! > > ------------------------------ > 更多热辣资讯尽在新版MSN首页! 立刻访问! > > _______________________________________________ > China-pm mailing list > China-pm at pm.org > http://mail.pm.org/mailman/listinfo/china-pm > -- gegewan的博客技术含量高,写程序的兄弟不要错过 http://gegewan.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From shijialee at gmail.com Tue Dec 16 23:43:58 2008 From: shijialee at gmail.com (Qiang (James)) Date: Wed, 17 Dec 2008 15:43:58 +0800 Subject: [PerlChina] =?utf-8?b?MTLmnIgxOOWPt+aYn+acn+Wbm++8iOaYjuWkqQ==?= =?utf-8?b?77yB77yJ5YyX5LqsIFBlcmwg55So5oi35bCP57uE6IGa5Lya?= Message-ID: <4948ADBE.6050407@gmail.com> 北京 Perl 用户小组(Beijing Perl Mongers)第一次聚会!欢迎所有对 Perl 感 兴趣的朋友参加! 这次聚会选在簋街的一家新疆饭店。 时间: 12月18号星期四(明天)晚上 7 点到结束为止。 地点: 苏力坦餐厅 簋街 东直门内大街179号 电话; (010) 6405-5537 路线从西:北新桥地铁 B 口(东北口)出,向东走大概 7,8 分钟路北既是。 路线从东:东直门地铁站 A 口(西北口)出,向西走大概 10 分钟路北既是。簋 街上有两家苏力坦餐厅,从东方向来的朋友应该去第二家。 价位: 串 2元, 啤酒 5元, 鸡翅: 6元 餐厅照片:http://xrl.us/oynb4 地图: http://xrl.us/o3p8c 我会提前以 perlchina 小组聚会名义定位,早去的朋友早坐即可. 聚会的主题: * 羊肉串 && 啤酒 :-) * 北京 Perl 爱好者认识和交流 * 讨论以什么样的形式来进行2009年一月份的小组聚会 - 技术演讲交流,社交性 聚会,还是两者兼顾。 明天见! Qiang(James) From shijialee at gmail.com Wed Dec 17 00:44:42 2008 From: shijialee at gmail.com (Qiang (James)) Date: Wed, 17 Dec 2008 16:44:42 +0800 Subject: [PerlChina] =?utf-8?b?5YyX5LqsIFBlcmwg55So5oi35bCP57uE5a+75om+?= =?utf-8?b?IDEg5pyI5Lu96IGa5Lya5Zy65omA?= Message-ID: <4948BBFA.3060002@gmail.com> my $time = "每个月某个星期四晚上7-9点"; IF (( "你能提供一个供 10-15 人聚会的场地, 投影仪++" ) && ( "场地附近吃饭方便,在二环附近或以北,近地铁" ) ) { print "请回复"; } # Thanks and We will love you! :) # Qiang(James) From kindterry at gmail.com Wed Dec 17 01:02:26 2008 From: kindterry at gmail.com (kind terry) Date: Wed, 17 Dec 2008 17:02:26 +0800 Subject: [PerlChina] =?gb2312?b?MTLUwjE4usXQx8bay8SjrCCxsb6pIFBlcmwg08M=?= =?gb2312?b?u6fQodfpo6hCZWlqaW5nIFBlcmwgTW9uZ2Vyc6Opyte0zr7bu+E=?= In-Reply-To: <1229418984.5151.4.camel@flatpan> References: <49376A35.3020004@gmail.com> <838104a80812032158k5755e57aq1cbc0c33813fcf53@mail.gmail.com> <1331ce590812152109p55d6c70egfbd11b1f3a4d9152@mail.gmail.com> <4ccf4daf0812152116r37f1202dvec28a7bf3a294b34@mail.gmail.com> <1229418984.5151.4.camel@flatpan> Message-ID: 如何加入组织?qq群?msn群? 地铁二号线沿线喝茶?具体啥地方啊? 2008/12/16 joe jiang > 上海喜欢 Perl 的朋友可以每月第三个周日下午五点在地铁二号线沿线喝茶,在南 > 京西路站上面有些不错的咖啡店。 > 第一次聚会可以庆祝 Perl 的书翻译结束,就是小骆驼书。 > > On 二, 2008-12-16 at 16:14 +0800, kind terry wrote: > > > > 上海有没有啊,羡慕中 > > _______________________________________________ > > China-pm mailing list > > China-pm at pm.org > > http://mail.pm.org/mailman/listinfo/china-pm > > _______________________________________________ > China-pm mailing list > China-pm at pm.org > http://mail.pm.org/mailman/listinfo/china-pm > -------------- next part -------------- An HTML attachment was scrubbed... URL: From shijialee at gmail.com Wed Dec 17 01:20:18 2008 From: shijialee at gmail.com (Qiang (James)) Date: Wed, 17 Dec 2008 17:20:18 +0800 Subject: [PerlChina] =?gb2312?b?MTLUwjE4usXQx8bay8SjrCCxsb6pIFBlcmwg08M=?= =?gb2312?b?u6fQodfpo6hCZWlqaW5nIFBlcmwgTW9uZ2Vyc6Opyte0zr7bu+E=?= In-Reply-To: References: <49376A35.3020004@gmail.com> <838104a80812032158k5755e57aq1cbc0c33813fcf53@mail.gmail.com> <1331ce590812152109p55d6c70egfbd11b1f3a4d9152@mail.gmail.com> <4ccf4daf0812152116r37f1202dvec28a7bf3a294b34@mail.gmail.com> <1229418984.5151.4.camel@flatpan> Message-ID: <4948C452.6060602@gmail.com> Joe: 聚会需要有个人挑选地方,时间,然后每次聚会前提前宣布这些信息。我想 一开始就在 perlchina 邮件列表发表下就可以(这样其他人也可以看到). 其实时间上不会占用很多,主要是把聚会办的有意义,有人参加,坚持参加。 Qiang(James) kind terry wrote: > 如何加入组织?qq群?msn群? > 地铁二号线沿线喝茶?具体啥地方啊? > > 2008/12/16 joe jiang > > > 上海喜欢 Perl 的朋友可以每月第三个周日下午五点在地铁二号线沿线喝茶,在南 > 京西路站上面有些不错的咖啡店。 > 第一次聚会可以庆祝 Perl 的书翻译结束,就是小骆驼书。 > > On 二, 2008-12-16 at 16:14 +0800, kind terry wrote: > > > > 上海有没有啊,羡慕中 From icefishc at gmail.com Wed Dec 17 01:44:15 2008 From: icefishc at gmail.com (Don Qin) Date: Wed, 17 Dec 2008 17:44:15 +0800 Subject: [PerlChina] =?gb2312?b?MTLUwjE4usXQx8bay8SjrCCxsb6pIFBlcmwg08M=?= =?gb2312?b?u6fQodfpo6hCZWlqaW5nIFBlcmwgTW9uZ2Vyc6Opyte0zr7bu+E=?= In-Reply-To: <4948C452.6060602@gmail.com> References: <49376A35.3020004@gmail.com> <838104a80812032158k5755e57aq1cbc0c33813fcf53@mail.gmail.com> <1331ce590812152109p55d6c70egfbd11b1f3a4d9152@mail.gmail.com> <4ccf4daf0812152116r37f1202dvec28a7bf3a294b34@mail.gmail.com> <1229418984.5151.4.camel@flatpan> <4948C452.6060602@gmail.com> Message-ID: 聚会一般都讨论啥 2008/12/17 Qiang (James) > Joe: 聚会需要有个人挑选地方,时间,然后每次聚会前提前宣布这些信息。我想 > 一开始就在 perlchina 邮件列表发表下就可以(这样其他人也可以看到). > > 其实时间上不会占用很多,主要是把聚会办的有意义,有人参加,坚持参加。 > > Qiang(James) > > kind terry wrote: > > 如何加入组织?qq群?msn群? > > 地铁二号线沿线喝茶?具体啥地方啊? > > > > 2008/12/16 joe jiang > > > > > 上海喜欢 Perl 的朋友可以每月第三个周日下午五点在地铁二号线沿线喝茶,在南 > > 京西路站上面有些不错的咖啡店。 > > 第一次聚会可以庆祝 Perl 的书翻译结束,就是小骆驼书。 > > > > On 二, 2008-12-16 at 16:14 +0800, kind terry wrote: > > > > > > 上海有没有啊,羡慕中 > _______________________________________________ > China-pm mailing list > China-pm at pm.org > http://mail.pm.org/mailman/listinfo/china-pm > -------------- next part -------------- An HTML attachment was scrubbed... URL: From lamp.purl at gmail.com Wed Dec 17 04:05:24 2008 From: lamp.purl at gmail.com (purl lamp) Date: Wed, 17 Dec 2008 20:05:24 +0800 Subject: [PerlChina] Oh,perl6 comming In-Reply-To: References: Message-ID: <367185060812170405l28472495h8312b3e9cce4d130@mail.gmail.com> so that means it will finish in 2 years, you know shanghai expo has 500 days to come? :D On Wed, Dec 17, 2008 at 9:46 AM, Jumping wrote: > And what about Perl 6? Do you have a release date for this yet? Are > you able to talk about the most exciting/interesting new developments > with this? > > Sure, It's Christmas Day — we just don't say which one. We've been > working on it 8 years now and we would like to think we are a lot > closer to the end than the beginning. We're certainly well into the > second 80 percent. > > > http://www.computerworld.com.au/article/270267/-z_programming_languages_perl?pp=4 > -- > Don't tell me how many enemies we have, but where they are! > (ADV:Perl -- It's like Java, only it lets you deliver on time and under > budget.) > _______________________________________________ > China-pm mailing list > China-pm at pm.org > http://mail.pm.org/mailman/listinfo/china-pm -------------- next part -------------- An HTML attachment was scrubbed... URL: From dxiaojunfoo at gmail.com Wed Dec 17 04:13:36 2008 From: dxiaojunfoo at gmail.com (DirtyWater) Date: Wed, 17 Dec 2008 20:13:36 +0800 Subject: [PerlChina] =?utf-8?b?MTLmnIgxOOWPt+aYn+acn+Wbm++8jCDljJfkuqwg?= =?utf-8?b?UGVybCDnlKjmiLflsI/nu4TvvIhCZWlqaW5nIFBlcmwgTW9uZ2Vycw==?= =?utf-8?b?77yJ6aaW5qyh6IGa5Lya?= In-Reply-To: References: <49376A35.3020004@gmail.com> <838104a80812032158k5755e57aq1cbc0c33813fcf53@mail.gmail.com> <1331ce590812152109p55d6c70egfbd11b1f3a4d9152@mail.gmail.com> <4ccf4daf0812152116r37f1202dvec28a7bf3a294b34@mail.gmail.com> <1229418984.5151.4.camel@flatpan> <4948C452.6060602@gmail.com> Message-ID: <7b01f6d70812170413n6483b4d7m9ce653c1a522933e@mail.gmail.com> 支持啊 2008/12/17 Don Qin : > 聚会一般都讨论啥 > > 2008/12/17 Qiang (James) >> >> Joe: 聚会需要有个人挑选地方,时间,然后每次聚会前提前宣布这些信息。我想 >> 一开始就在 perlchina 邮件列表发表下就可以(这样其他人也可以看到). >> >> 其实时间上不会占用很多,主要是把聚会办的有意义,有人参加,坚持参加。 >> >> Qiang(James) >> >> kind terry wrote: >> > 如何加入组织?qq群?msn群? >> > 地铁二号线沿线喝茶?具体啥地方啊? >> > >> > 2008/12/16 joe jiang > >> > >> > 上海喜欢 Perl 的朋友可以每月第三个周日下午五点在地铁二号线沿线喝茶,在南 >> > 京西路站上面有些不错的咖啡店。 >> > 第一次聚会可以庆祝 Perl 的书翻译结束,就是小骆驼书。 >> > >> > On 二, 2008-12-16 at 16:14 +0800, kind terry wrote: >> > > >> > > 上海有没有啊,羡慕中 >> _______________________________________________ >> China-pm mailing list >> China-pm at pm.org >> http://mail.pm.org/mailman/listinfo/china-pm > > _______________________________________________ > China-pm mailing list > China-pm at pm.org > http://mail.pm.org/mailman/listinfo/china-pm > From luo.yong.name at gmail.com Wed Dec 17 05:29:00 2008 From: luo.yong.name at gmail.com (Luo Yong) Date: Wed, 17 Dec 2008 21:29:00 +0800 Subject: [PerlChina] =?gb2312?b?zqrKssO0ztLU2nBlcmxjaGluYbXE1cq6xbK7xNw=?= =?gb2312?b?t6LM+8HLo78=?= Message-ID: <95ca1530812170529y5d9b68b7n22aac8fc3027e7d3@mail.gmail.com> 大家好, 我在perlchina论坛的帐号不能发帖了,用户名是luoyong。 回复时提示: 1:您的密码有误 2:请重新登 录或注 册 3:非MD5格式密码,请通知管理员检查数据! 不知道是怎么回事。 谁能帮忙看一下? 多谢。 From shijialee at gmail.com Thu Dec 18 23:21:39 2008 From: shijialee at gmail.com (Qiang (James)) Date: Fri, 19 Dec 2008 15:21:39 +0800 Subject: [PerlChina] =?utf-8?b?5pio5pma5YyX5LqsIFBlcmwg5bCP57uE6IGa5Lya?= =?utf-8?b?55qE6YOo5YiG6K6o6K665YaF5a65?= Message-ID: <494B4B83.6060203@gmail.com> email 里提到了一些对 PerlChina 的改动,大家看看,提提意见。没有异议的 话,咱就按这个去做了。 #====================================================================== 昨晚北京 Perl 用户小组聚会一共 8 个人参加,百度,新浪,搜狐的朋友占了一 多半。除了大口吃肉,大碗喝酒外 :),我们还聊了很多关于 Perl 和 PerlChina 社区发展的事情,我这里大概列一下和 PerlChina 改动相关的内容: 1. 今年的北京 Perl 大会很成功。2009 年的大会应该更早准备,更大规模,更多 赞助。请大家留意一下对开源社区比较慷慨的公司和朋友,以便 2009 年大会准备 时联系。 2. 受到澳洲和台湾的 OSDC ( open source developer conference - , 把 perl, postgresql, python, ruby, linux, mysql 等各种开源技术开发者聚在一起办个 大会) 的启发,集合各种开源开发者,我考虑 2009 年咱是否也办一个,感兴趣么? 3. MSN 的小i 有人听说过么? 类似 QQ 群,但无人数限制。因为国内irc的使用 并不流行,我刚开了一个 MSN 群,大家把 group211077 at msnzone.cn 加到你的 msn 好友即可。这个群的建立主要是提供社区及时交流的功能。 4. 使用邮件组或 google group 也在聚会时提到了。使用 google group 的一个 好处是替换现有的 perlchina 论坛,把社区的交流集中。咱们在 11 月的时候讨 论过(http://xrl.us/o32mo) 大家无异议的话我就准备把 perlchina 论坛 和邮件 组移植到 google group 上。 5. 1月份开始技术交流聚会。时间我定在每个月的第二个星期四晚上 7-9 点。具 体的地方还没有定下来。请等通知。 6. 1月份的技术演讲主题我们一致通过由 Yahoo 的 agentzh 讲一个主题(嘘, agentzh 还不知道呢 :) 1月份聚会再见! Qiang(James) From galaxy2004 at gmail.com Fri Dec 19 06:29:55 2008 From: galaxy2004 at gmail.com (Michael Zeng) Date: Fri, 19 Dec 2008 22:29:55 +0800 Subject: [PerlChina] China-pm Digest, Vol 44, Issue 12 In-Reply-To: References: Message-ID: <11869f430812190629h44a2b17eud78e96f1073ff78b@mail.gmail.com> 上海perl 分会什么时候组织开一下么, 就人民广场找个地方 谈谈好了 2008/12/18 > Send China-pm mailing list submissions to > china-pm at pm.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://mail.pm.org/mailman/listinfo/china-pm > or, via email, send a message with subject or body 'help' to > china-pm-request at pm.org > > You can reach the person managing the list at > china-pm-owner at pm.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of China-pm digest..." > > > Today's Topics: > > 1. Re: 12月18号星期四, 北京 Perl > 用户小组(Beijing Perl Mongers)首次聚会 (Don Qin) > 2. Re: Oh,perl6 comming (purl lamp) > 3. Re: 12月18号星期四, 北京 Perl > 用户小组(Beijing Perl Mongers)首次聚会 (DirtyWater) > 4. 为什么我在perlchina的帐号不能发帖了? (Luo Yong) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Wed, 17 Dec 2008 17:44:15 +0800 > From: "Don Qin" > Subject: Re: [PerlChina] 12月18号星期四, 北京 Perl > 用户小组(Beijing Perl Mongers)首次聚会 > To: china-pm at pm.org > Message-ID: > > Content-Type: text/plain; charset="gb2312" > > 聚会一般都讨论啥 > > 2008/12/17 Qiang (James) > > > Joe: 聚会需要有个人挑选地方,时间,然后每次聚会前提前宣布这些信息。我想 > > 一开始就在 perlchina 邮件列表发表下就可以(这样其他人也可以看到). > > > > 其实时间上不会占用很多,主要是把聚会办的有意义,有人参加,坚持参加。 > > > > Qiang(James) > > > > kind terry wrote: > > > 如何加入组织?qq群?msn群? > > > 地铁二号线沿线喝茶?具体啥地方啊? > > > > > > 2008/12/16 joe jiang >> > > > > > > 上海喜欢 Perl 的朋友可以每月第三个周日下午五点在地铁二号线沿线喝茶,在南 > > > 京西路站上面有些不错的咖啡店。 > > > 第一次聚会可以庆祝 Perl 的书翻译结束,就是小骆驼书。 > > > > > > On 二, 2008-12-16 at 16:14 +0800, kind terry wrote: > > > > > > > > 上海有没有啊,羡慕中 > > _______________________________________________ > > China-pm mailing list > > China-pm at pm.org > > http://mail.pm.org/mailman/listinfo/china-pm > > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: < > http://mail.pm.org/pipermail/china-pm/attachments/20081217/f4214c3f/attachment-0001.html > > > > ------------------------------ > > Message: 2 > Date: Wed, 17 Dec 2008 20:05:24 +0800 > From: "purl lamp" > Subject: Re: [PerlChina] Oh,perl6 comming > To: china-pm at pm.org > Message-ID: > <367185060812170405l28472495h8312b3e9cce4d130 at mail.gmail.com> > Content-Type: text/plain; charset="windows-1252" > > so that means it will finish in 2 years, you know shanghai expo has 500 > days > to come? > :D > > On Wed, Dec 17, 2008 at 9:46 AM, Jumping wrote: > > > And what about Perl 6? Do you have a release date for this yet? Are > > you able to talk about the most exciting/interesting new developments > > with this? > > > > Sure, It's Christmas Day ― we just don't say which one. We've been > > working on it 8 years now and we would like to think we are a lot > > closer to the end than the beginning. We're certainly well into the > > second 80 percent. > > > > > > > http://www.computerworld.com.au/article/270267/-z_programming_languages_perl?pp=4 > > -- > > Don't tell me how many enemies we have, but where they are! > > (ADV:Perl -- It's like Java, only it lets you deliver on time and under > > budget.) > > _______________________________________________ > > China-pm mailing list > > China-pm at pm.org > > http://mail.pm.org/mailman/listinfo/china-pm > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: < > http://mail.pm.org/pipermail/china-pm/attachments/20081217/a11c9668/attachment-0001.html > > > > ------------------------------ > > Message: 3 > Date: Wed, 17 Dec 2008 20:13:36 +0800 > From: DirtyWater > Subject: Re: [PerlChina] 12月18号星期四, 北京 Perl > 用户小组(Beijing Perl Mongers)首次聚会 > To: china-pm at pm.org > Message-ID: > <7b01f6d70812170413n6483b4d7m9ce653c1a522933e at mail.gmail.com> > Content-Type: text/plain; charset=UTF-8 > > 支持啊 > > 2008/12/17 Don Qin : > > 聚会一般都讨论啥 > > > > 2008/12/17 Qiang (James) > >> > >> Joe: 聚会需要有个人挑选地方,时间,然后每次聚会前提前宣布这些信息。我想 > >> 一开始就在 perlchina 邮件列表发表下就可以(这样其他人也可以看到). > >> > >> 其实时间上不会占用很多,主要是把聚会办的有意义,有人参加,坚持参加。 > >> > >> Qiang(James) > >> > >> kind terry wrote: > >> > 如何加入组织?qq群?msn群? > >> > 地铁二号线沿线喝茶?具体啥地方啊? > >> > > >> > 2008/12/16 joe jiang >> > >> > > >> > 上海喜欢 Perl 的朋友可以每月第三个周日下午五点在地铁二号线沿线喝茶,在南 > >> > 京西路站上面有些不错的咖啡店。 > >> > 第一次聚会可以庆祝 Perl 的书翻译结束,就是小骆驼书。 > >> > > >> > On 二, 2008-12-16 at 16:14 +0800, kind terry wrote: > >> > > > >> > > 上海有没有啊,羡慕中 > >> _______________________________________________ > >> China-pm mailing list > >> China-pm at pm.org > >> http://mail.pm.org/mailman/listinfo/china-pm > > > > _______________________________________________ > > China-pm mailing list > > China-pm at pm.org > > http://mail.pm.org/mailman/listinfo/china-pm > > > > ------------------------------ > > Message: 4 > Date: Wed, 17 Dec 2008 21:29:00 +0800 > From: "Luo Yong" > Subject: [PerlChina] > 为什么我在perlchina的帐号不能发帖了? > To: china-pm at pm.org > Message-ID: > <95ca1530812170529y5d9b68b7n22aac8fc3027e7d3 at mail.gmail.com> > Content-Type: text/plain; charset=GB2312 > > 大家好, > > 我在perlchina论坛的帐号不能发帖了,用户名是luoyong。 > > 回复时提示: > > 1:您的密码有误 > 2:请重新登 录或注 册 > 3:非MD5格式密码,请通知管理员检查数据! > > 不知道是怎么回事。 > > 谁能帮忙看一下? > > 多谢。 > > ------------------------------ > > _______________________________________________ > China-pm mailing list > China-pm at pm.org > http://mail.pm.org/mailman/listinfo/china-pm > > End of China-pm Digest, Vol 44, Issue 12 > **************************************** > -- Yours Sincerely Zeng Hong -------------- next part -------------- An HTML attachment was scrubbed... URL: From allenogz at gmail.com Fri Dec 19 08:22:04 2008 From: allenogz at gmail.com (allen) Date: Sat, 20 Dec 2008 00:22:04 +0800 Subject: [PerlChina] HI everyone Message-ID: <494BCA2C.7010602@gmail.com> As a hardware engineer, i foucus on CAT, not the Internet. As the project is drawing to its target deadline, I have to work more to reach the goal. As the result , i cannot attend the meeting tonight. if($day eq "Sunday"){ &i_have_time_to_go; }else{ &i_have_to_work; } i have completed a perl script to generate the code i have to write. one"run",complete all. From lxmxn520 at gmail.com Fri Dec 19 17:45:56 2008 From: lxmxn520 at gmail.com (lxmxn) Date: Sat, 20 Dec 2008 09:45:56 +0800 Subject: [PerlChina] =?utf-8?b?5pio5pma5YyX5LqsIFBlcmwg5bCP57uE6IGa5Lya?= =?utf-8?b?55qE6YOo5YiG6K6o6K665YaF5a65?= In-Reply-To: <494B4B83.6060203@gmail.com> References: <494B4B83.6060203@gmail.com> Message-ID: <7a5835ad0812191745t4f6a0cc5v4733f6749bfd78ab@mail.gmail.com> Great! MSN 早就该建立一个群了,现在Gtalk也可以建群了(http://mygtalk.cn),也无人数限制,是不是也搞个? 另外,是不是可以每个月换地点举行聚会呢?比如在上海,武汉,重庆等全国各个城市,不局限于北京,感觉这样更有利于推广 Perl 。 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alaboszhang at gmail.com Fri Dec 19 18:28:23 2008 From: alaboszhang at gmail.com (=?utf-8?B?5byg5pmT5Lqu?=) Date: Sat, 20 Dec 2008 10:28:23 +0800 Subject: [PerlChina] =?utf-8?b?5pio5pma5YyX5LqsIFBlcmwg5bCP57uE6IGa5Lya?= =?utf-8?b?55qE6YOo5YiG6K6o6K665YaF5a65?= References: <494B4B83.6060203@gmail.com> <7a5835ad0812191745t4f6a0cc5v4733f6749bfd78ab@mail.gmail.com> Message-ID: <00e201c9624a$a3bf3950$2800a8c0@ITAJ> perlchina at mygtalk.cn 大家用 GTalk 加这个帐号吧. 我刚刚申请了一个. 呵呵. ----- Original Message ----- From: lxmxn To: china-pm at pm.org Sent: Saturday, December 20, 2008 9:45 AM Subject: Re: [PerlChina] 昨晚北京 Perl 小组聚会的部分讨论内容 Great! MSN 早就该建立一个群了,现在Gtalk也可以建群了(http://mygtalk.cn),也无人数限制,是不是也搞个? 另外,是不是可以每个月换地点举行聚会呢?比如在上海,武汉,重庆等全国各个城市,不局限于北京,感觉这样更有利于推广 Perl 。 ------------------------------------------------------------------------------ _______________________________________________ China-pm mailing list China-pm at pm.org http://mail.pm.org/mailman/listinfo/china-pm -------------- next part -------------- An HTML attachment was scrubbed... URL: From boheling at hotmail.com Fri Dec 19 20:26:25 2008 From: boheling at hotmail.com (=?utf-8?Q?=E5=88=98=E9=9D=99?=) Date: Sat, 20 Dec 2008 12:26:25 +0800 Subject: [PerlChina] =?utf-8?b?IFJFOiAg5aaC5L2V5ZyoQ2F0YWx5c3TkuK3ltYw=?= =?utf-8?b?5YWlQ0dJOjpHcmFwaO+8nw==?= In-Reply-To: References: <838104a80812030201t32411f2fne88ef3794c5aa3db@mail.gmail.com> Message-ID: 谢谢两位,根据你们的提示我已经解决了问题 不过今天又突然发现CatalystFramework的Advent Canlendar上18号的专题就是如何在Catalyst中嵌入CGI,分享一下: WrapCGI:CGI.pm in your Catalyst App: http://www.catalystframework.org/calendar/2008/18 > Date: Wed, 3 Dec 2008 18:20:07 +0800 > From: fayland at gmail.com > To: china-pm at pm.org > Subject: Re: [PerlChina] 如何在Catalyst中嵌入CGI::Graph? > > you can use > $c->res->content_type('image/png'); > $c->res->body(\*OUTPUT); > binmode STDOUT; > print STDOUT $gd->png; > > 2008/12/3 J. Peng : > > 2008/12/3 刘静 : > >> 需要在网站中加入动态地制作图像并对特定坐标点加入超链接 > >> 查了一下CGI::Graph可以完成我想要的工作, 可是web站点是利用catalyst框架建立的 > >> 请问应该怎么样在catalyst中使用CGI呢 > >> > > > > CGI::Graph应该也是调用的GD::Graph吧,可以试试在catalyst里使用后者。 > > _______________________________________________ > > China-pm mailing list > > China-pm at pm.org > > http://mail.pm.org/mailman/listinfo/china-pm > > > > -- > Fayland Lam // http://www.fayland.org/ > Foorum based on Catalyst // http://www.foorumbbs.com/ > _______________________________________________ > China-pm mailing list > China-pm at pm.org > http://mail.pm.org/mailman/listinfo/china-pm _________________________________________________________________ 灵活拖放共享 — 用 Windows Live™ 轻松共享照片。 http://www.microsoft.com/windows/windowslive/photos.aspx -------------- next part -------------- An HTML attachment was scrubbed... URL: From shijialee at gmail.com Fri Dec 19 23:57:31 2008 From: shijialee at gmail.com (Qiang (James)) Date: Sat, 20 Dec 2008 15:57:31 +0800 Subject: [PerlChina] =?utf-8?b?5pio5pma5YyX5LqsIFBlcmwg5bCP57uE6IGa5Lya?= =?utf-8?b?55qE6YOo5YiG6K6o6K665YaF5a65?= In-Reply-To: <7a5835ad0812191745t4f6a0cc5v4733f6749bfd78ab@mail.gmail.com> References: <494B4B83.6060203@gmail.com> <7a5835ad0812191745t4f6a0cc5v4733f6749bfd78ab@mail.gmail.com> Message-ID: <494CA56B.1030003@gmail.com> lxmxn wrote: > > 另外,是不是可以每个月换地点举行聚会呢?比如在上海,武汉,重庆等全国各个 > 城市,不局限于北京,感觉这样更有利于推广 Perl 。 动手发 email, 然后找本地喜欢 perl 的爱好者,你就可以去做 perl 聚会。上 海,成都,广州都可以尝试搞。 Just do it! Qiang(James) From jeffpeng at gmx.net Sat Dec 20 00:29:34 2008 From: jeffpeng at gmx.net (Jeff Peng) Date: Sat, 20 Dec 2008 16:29:34 +0800 Subject: [PerlChina] =?utf-8?b?5pio5pma5YyX5LqsIFBlcmwg5bCP57uE6IGa5Lya?= =?utf-8?b?55qE6YOo5YiG6K6o6K665YaF5a65?= In-Reply-To: <494CA56B.1030003@gmail.com> References: <494B4B83.6060203@gmail.com> <7a5835ad0812191745t4f6a0cc5v4733f6749bfd78ab@mail.gmail.com> <494CA56B.1030003@gmail.com> Message-ID: <838104a80812200029u4f217c6bgcb7926239a2b0353@mail.gmail.com> 2008/12/20 Qiang (James) : > lxmxn wrote: >> >> 另外,是不是可以每个月换地点举行聚会呢?比如在上海,武汉,重庆等全国各个 城市,不局限于北京,感觉这样更有利于推广 Perl 。 > > 动手发 email, 然后找本地喜欢 perl 的爱好者,你就可以去做 perl 聚会。上 海,成都,广州都可以尝试搞。 > 广州搞的话我这里可提供场地,包括会议桌、投影仪等,楼下就是吃饭(湘菜)的地方,很方便。在天河北。 From dxiaojunfoo at gmail.com Sat Dec 20 01:25:22 2008 From: dxiaojunfoo at gmail.com (DirtyWater) Date: Sat, 20 Dec 2008 17:25:22 +0800 Subject: [PerlChina] =?utf-8?b?5pio5pma5YyX5LqsIFBlcmwg5bCP57uE6IGa5Lya?= =?utf-8?b?55qE6YOo5YiG6K6o6K665YaF5a65?= In-Reply-To: <838104a80812200029u4f217c6bgcb7926239a2b0353@mail.gmail.com> References: <494B4B83.6060203@gmail.com> <7a5835ad0812191745t4f6a0cc5v4733f6749bfd78ab@mail.gmail.com> <494CA56B.1030003@gmail.com> <838104a80812200029u4f217c6bgcb7926239a2b0353@mail.gmail.com> Message-ID: <7b01f6d70812200125o48786117pa29fc1e841aff6c0@mail.gmail.com> 支持一下 2008/12/20 Jeff Peng : > 2008/12/20 Qiang (James) : >> lxmxn wrote: >>> >>> 另外,是不是可以每个月换地点举行聚会呢?比如在上海,武汉,重庆等全国各个 城市,不局限于北京,感觉这样更有利于推广 Perl 。 >> >> 动手发 email, 然后找本地喜欢 perl 的爱好者,你就可以去做 perl 聚会。上 海,成都,广州都可以尝试搞。 >> > > 广州搞的话我这里可提供场地,包括会议桌、投影仪等,楼下就是吃饭(湘菜)的地方,很方便。在天河北。 > _______________________________________________ > China-pm mailing list > China-pm at pm.org > http://mail.pm.org/mailman/listinfo/china-pm From mingjie1348 at gmail.com Sat Dec 20 06:31:17 2008 From: mingjie1348 at gmail.com (jie ming) Date: Sat, 20 Dec 2008 06:31:17 -0800 Subject: [PerlChina] =?gb2312?b?amllIG1pbmcgz+u4+sT6wcTM7A==?= Message-ID: ----------------------------------------------------------------------- jie ming 希望使用 Google 最酷的几个新产品与您更好地保持联系。 如果您已拥有 Gmail 或 Google Talk,请访问: http://mail.google.com/mail/b-853069e09d-6308739cf5-9869d15040ef3655 您需要点击此链接才能与 jie ming 聊天。 要获得 Gmail(Google 提供的超过 2,800 兆字节存储空间的免费电子邮件帐户)并与 jie ming 聊天,请访问: http://mail.google.com/mail/a-853069e09d-6308739cf5-2be230323c Gmail 提供: - Gmail 内的即时消息服务 - 强有力的垃圾邮件防范功能 - 用于查找邮件的内置搜索功能以及将电子邮件整理为"会话"的实用方法 - 没有弹出式广告或不相关的横幅广告 - 只有与您的邮件内容有关的文字广告和相关信息 所有这一切都是您的,而且完全免费。 别急,还有更精彩的内容! 创建 Gmail 帐户,您就可以访问 Google Talk(Google 的即时消息服务): http://www.google.com/talk/intl/zh-CN/ Google Talk 提供: - 随时随地基于网络的聊天服务,无须下载 - 与您的 Gmail 帐户同步的联系人列表 - 下载 Google Talk 客户端时,即能获得免费、质优的 PC 对 PC 语音电话 Gmail 和 Google Talk 仍处于测试阶段。 我们正努力添加新功能并进行改进,因此我们可能还会定期向您征求意见和建议。 对于您为改善我们的产品所做的贡献,我们深表谢意! 衷心感谢! Google 小组敬上 要了解有关 Gmail 和 Google Talk 的详情,请访问: http://mail.google.com/mail/help/intl/zh_CN/about.html http://www.google.com/talk/intl/zh-CN/about.html (如果本邮件提供的网址无法通过点击进入,请将该网址复制并粘贴至浏览器的地址栏中)。 From wanmyome at gmail.com Sat Dec 20 07:21:28 2008 From: wanmyome at gmail.com (Wan Chaowei) Date: Sat, 20 Dec 2008 23:21:28 +0800 Subject: [PerlChina] =?utf-8?b?5pio5pma5YyX5LqsIFBlcmwg5bCP57uE6IGa5Lya?= =?utf-8?b?55qE6YOo5YiG6K6o6K665YaF5a65?= In-Reply-To: <7b01f6d70812200125o48786117pa29fc1e841aff6c0@mail.gmail.com> References: <494B4B83.6060203@gmail.com> <7a5835ad0812191745t4f6a0cc5v4733f6749bfd78ab@mail.gmail.com> <494CA56B.1030003@gmail.com> <838104a80812200029u4f217c6bgcb7926239a2b0353@mail.gmail.com> <7b01f6d70812200125o48786117pa29fc1e841aff6c0@mail.gmail.com> Message-ID: <9ff89e80812200721p1d53bcf7w773fa6316025e8dc@mail.gmail.com> 上海好久没有搞活动了,哪位朋友组织一下 -------------- next part -------------- An HTML attachment was scrubbed... URL: From lamp.purl at gmail.com Sat Dec 20 15:58:55 2008 From: lamp.purl at gmail.com (purl lamp) Date: Sun, 21 Dec 2008 07:58:55 +0800 Subject: [PerlChina] =?gb2312?b?1/LN7bGxvqkgUGVybCDQodfpvtu74bXEsr+31szW?= =?gb2312?b?wtvE2sjd?= In-Reply-To: <9ff89e80812200721p1d53bcf7w773fa6316025e8dc@mail.gmail.com> References: <494B4B83.6060203@gmail.com> <7a5835ad0812191745t4f6a0cc5v4733f6749bfd78ab@mail.gmail.com> <494CA56B.1030003@gmail.com> <838104a80812200029u4f217c6bgcb7926239a2b0353@mail.gmail.com> <7b01f6d70812200125o48786117pa29fc1e841aff6c0@mail.gmail.com> <9ff89e80812200721p1d53bcf7w773fa6316025e8dc@mail.gmail.com> Message-ID: <367185060812201558h7d2915efqe226d5edbf507003@mail.gmail.com> 原来建议这个周日晚上(也就是今天晚上)在二号线南京西路碰头喝茶。 不过因为时间安排比较仓促,可以往后挪一周,改在下周六晚上也可以。 我公司在附近,现在的场地更大些,聚会比较方便,投影没问题。 楼下的面食还不错,北方来的朋友可能会感兴趣。 2008/12/20 Wan Chaowei > 上海好久没有搞活动了,哪位朋友组织一下 > > _______________________________________________ > China-pm mailing list > China-pm at pm.org > http://mail.pm.org/mailman/listinfo/china-pm > -------------- next part -------------- An HTML attachment was scrubbed... URL: From agentzh at gmail.com Sun Dec 21 03:05:18 2008 From: agentzh at gmail.com (agentzh) Date: Sun, 21 Dec 2008 19:05:18 +0800 Subject: [PerlChina] =?gb2312?b?1/LN7bGxvqkgUGVybCDQodfpvtu74bXEsr+31szW?= =?gb2312?b?wtvE2sjd?= In-Reply-To: <494B4B83.6060203@gmail.com> References: <494B4B83.6060203@gmail.com> Message-ID: 2008/12/19 Qiang (James) : > > 6. 1月份的技术演讲主题我们一致通过由 Yahoo 的 agentzh 讲一个主题(嘘, agentzh 还不知道呢 :) > 呵呵,那天原说好过去的,无奈 firefox 集群上线没有按时完成 :P 下次我讲讲这个由 OpenResty 调度的用 JavaScript 和 Perl 开发的基于 Firefox 3.1 trunk head 的网页分类集群吧!呵呵。。。 我很兴奋地看到 XUL::App, OpenResty, Apache mod_proxy/mod_cache(经过 patch), Firefox 3.1, WWW::Curl 等东东在这个 List Hunter 项目中融合为一体 :D -agentzh -------------- next part -------------- An HTML attachment was scrubbed... URL: From kindterry at gmail.com Sun Dec 21 22:39:34 2008 From: kindterry at gmail.com (kind terry) Date: Mon, 22 Dec 2008 14:39:34 +0800 Subject: [PerlChina] =?gb2312?b?1/LN7bGxvqkgUGVybCDQodfpvtu74bXEsr+31szW?= =?gb2312?b?wtvE2sjd?= In-Reply-To: <367185060812201558h7d2915efqe226d5edbf507003@mail.gmail.com> References: <494B4B83.6060203@gmail.com> <7a5835ad0812191745t4f6a0cc5v4733f6749bfd78ab@mail.gmail.com> <494CA56B.1030003@gmail.com> <838104a80812200029u4f217c6bgcb7926239a2b0353@mail.gmail.com> <7b01f6d70812200125o48786117pa29fc1e841aff6c0@mail.gmail.com> <9ff89e80812200721p1d53bcf7w773fa6316025e8dc@mail.gmail.com> <367185060812201558h7d2915efqe226d5edbf507003@mail.gmail.com> Message-ID: 具体的有人组织么? 上海应该不落北京之后嘛 2008/12/21 purl lamp > 原来建议这个周日晚上(也就是今天晚上)在二号线南京西路碰头喝茶。 > 不过因为时间安排比较仓促,可以往后挪一周,改在下周六晚上也可以。 > 我公司在附近,现在的场地更大些,聚会比较方便,投影没问题。 > 楼下的面食还不错,北方来的朋友可能会感兴趣。 > > 2008/12/20 Wan Chaowei > >> 上海好久没有搞活动了,哪位朋友组织一下 >> >> _______________________________________________ >> China-pm mailing list >> China-pm at pm.org >> http://mail.pm.org/mailman/listinfo/china-pm >> > > > _______________________________________________ > China-pm mailing list > China-pm at pm.org > http://mail.pm.org/mailman/listinfo/china-pm > -------------- next part -------------- An HTML attachment was scrubbed... URL: From shijialee at gmail.com Mon Dec 22 21:46:52 2008 From: shijialee at gmail.com (Qiang (James)) Date: Tue, 23 Dec 2008 13:46:52 +0800 Subject: [PerlChina] =?utf-8?b?6L2s5Y+RIC0tIOWMl+S6rCBPcGVuUGFydHkg5byA?= =?utf-8?b?5pS+5ZiJ5bm05Y2O5rS75Yqo5pys5ZGo5YWt5Y2z5bCG5Li+6KGM?= Message-ID: <49507B4C.9030506@gmail.com> 9月份的时候参加过一次。这个周末没事我可能去,顺便寻找北京 Perl 用户小组 聚会的场地。。 :) =============== 网址 http://www.beijing-open-party.org/index.php/2008/12/open-party-event-open-carnival-december-2008-reminder.html 活动时间 2008年12月27日(2008年的最后一个周六) 13:00~18:00 活动地点 北京市东直门国华投资大厦11层ThoughtWorks Office,地铁环线西南 出口直行50 米即到。查看平面地图 查看三维地图 活动费用 免费 受邀参与者 Geek、开发者、编程者、摄影者、旅游者、艺术设计者、摇滚爱好者、热衷分享 者、宗教布道者、行者。。。总之,只要具有开放、分享的心态就行! 对于话题分享者和Hackthon组织者、CodingJam 参与者,提供以下礼物供选择: * OpenParty限量版帽衫 * JetBrains提供的正版IDE授权 * 图书赞助商提供的精品图书 * 双人岁末电影票 活动参与者,我们也准备了一些礼物: * FireFox贴纸和小挂件 * 最新版的OpenSolaris学习套装光盘 * 一大块美味巧克力 From smallfish at live.cn Wed Dec 24 01:44:55 2008 From: smallfish at live.cn (smallfish) Date: Wed, 24 Dec 2008 17:44:55 +0800 Subject: [PerlChina] =?gb2312?b?uPfOu8qlta6/7MDWxbajoQ==?= Message-ID: 收到请回答。 祈祷明天能有新版发布。 圣诞快乐! -------------- next part -------------- An HTML attachment was scrubbed... URL: From acmilan.baresi at gmail.com Wed Dec 24 01:47:01 2008 From: acmilan.baresi at gmail.com (Hua Zhen) Date: Wed, 24 Dec 2008 17:47:01 +0800 Subject: [PerlChina] =?gb2312?b?uPfOu8qlta6/7MDWxbajoQ==?= In-Reply-To: References: Message-ID: <8ebdea6c0812240147v4ef4856en3c701d9db19d2990@mail.gmail.com> 祝大家圣诞快乐,平安夜开心,呵呵! 2008/12/24 smallfish : > 收到请回答。 > > 祈祷明天能有新版发布。 > > 圣诞快乐! > _______________________________________________ > China-pm mailing list > China-pm at pm.org > http://mail.pm.org/mailman/listinfo/china-pm > -- 凡事包容,凡事相信,凡事盼望,凡事忍耐。 From loveasys at gmail.com Wed Dec 24 01:47:54 2008 From: loveasys at gmail.com (zong) Date: Wed, 24 Dec 2008 17:47:54 +0800 Subject: [PerlChina] =?utf-8?b?5ZCE5L2N5Zyj6K+e5b+r5LmQ5ZOm77yB?= In-Reply-To: <8ebdea6c0812240147v4ef4856en3c701d9db19d2990@mail.gmail.com> References: <8ebdea6c0812240147v4ef4856en3c701d9db19d2990@mail.gmail.com> Message-ID: <4ccf4daf0812240147l3507e078lec3af18e302b29e5@mail.gmail.com> Happy!~ 2008/12/24 Hua Zhen > 祝大家圣诞快乐,平安夜开心,呵呵! > > 2008/12/24 smallfish : > > 收到请回答。 > > > > 祈祷明天能有新版发布。 > > > > 圣诞快乐! > > _______________________________________________ > > China-pm mailing list > > China-pm at pm.org > > http://mail.pm.org/mailman/listinfo/china-pm > > > > > > -- > 凡事包容,凡事相信,凡事盼望,凡事忍耐。 > _______________________________________________ > China-pm mailing list > China-pm at pm.org > http://mail.pm.org/mailman/listinfo/china-pm -- 走遍千山万水... 大杂柜: www.loveasy.cn -------------- next part -------------- An HTML attachment was scrubbed... URL: From dxiaojunfoo at gmail.com Wed Dec 24 03:38:27 2008 From: dxiaojunfoo at gmail.com (DirtyWater) Date: Wed, 24 Dec 2008 19:38:27 +0800 Subject: [PerlChina] =?utf-8?b?5ZCE5L2N5Zyj6K+e5b+r5LmQ5ZOm77yB?= In-Reply-To: <4ccf4daf0812240147l3507e078lec3af18e302b29e5@mail.gmail.com> References: <8ebdea6c0812240147v4ef4856en3c701d9db19d2990@mail.gmail.com> <4ccf4daf0812240147l3507e078lec3af18e302b29e5@mail.gmail.com> Message-ID: <7b01f6d70812240338p562cdftb90a12661649922f@mail.gmail.com> merry christmas && happy new year! 2008/12/24 zong : > Happy!~ > > 2008/12/24 Hua Zhen >> >> 祝大家圣诞快乐,平安夜开心,呵呵! >> >> 2008/12/24 smallfish : >> > 收到请回答。 >> > >> > 祈祷明天能有新版发布。 >> > >> > 圣诞快乐! >> > _______________________________________________ >> > China-pm mailing list >> > China-pm at pm.org >> > http://mail.pm.org/mailman/listinfo/china-pm >> > >> >> >> >> -- >> 凡事包容,凡事相信,凡事盼望,凡事忍耐。 >> _______________________________________________ >> China-pm mailing list >> China-pm at pm.org >> http://mail.pm.org/mailman/listinfo/china-pm > > > -- > 走遍千山万水... > > 大杂柜: www.loveasy.cn > > _______________________________________________ > China-pm mailing list > China-pm at pm.org > http://mail.pm.org/mailman/listinfo/china-pm > From bioxun at gmail.com Wed Dec 24 03:46:21 2008 From: bioxun at gmail.com (~ drabxun) Date: Wed, 24 Dec 2008 19:46:21 +0800 Subject: [PerlChina] =?gb2312?b?uPfOu8qlta6/7MDWxbajoQ==?= In-Reply-To: <7b01f6d70812240338p562cdftb90a12661649922f@mail.gmail.com> References: <8ebdea6c0812240147v4ef4856en3c701d9db19d2990@mail.gmail.com> <4ccf4daf0812240147l3507e078lec3af18e302b29e5@mail.gmail.com> <7b01f6d70812240338p562cdftb90a12661649922f@mail.gmail.com> Message-ID: <29170dba0812240346g6592d181i52fbb75f2eb57155@mail.gmail.com> 平安快乐! 2008/12/24 DirtyWater > merry christmas && happy new year! > > 2008/12/24 zong : > > Happy!~ > > > > 2008/12/24 Hua Zhen > >> > >> 祝大家圣诞快乐,平安夜开心,呵呵! > >> > >> 2008/12/24 smallfish : > >> > 收到请回答。 > >> > > >> > 祈祷明天能有新版发布。 > >> > > >> > 圣诞快乐! > >> > _______________________________________________ > >> > China-pm mailing list > >> > China-pm at pm.org > >> > http://mail.pm.org/mailman/listinfo/china-pm > >> > > >> > >> > >> > >> -- > >> 凡事包容,凡事相信,凡事盼望,凡事忍耐。 > >> _______________________________________________ > >> China-pm mailing list > >> China-pm at pm.org > >> http://mail.pm.org/mailman/listinfo/china-pm > > > > > > -- > > 走遍千山万水... > > > > 大杂柜: www.loveasy.cn > > > > _______________________________________________ > > China-pm mailing list > > China-pm at pm.org > > http://mail.pm.org/mailman/listinfo/china-pm > > > _______________________________________________ > China-pm mailing list > China-pm at pm.org > http://mail.pm.org/mailman/listinfo/china-pm > -------------- next part -------------- An HTML attachment was scrubbed... URL: From lamp.purl at gmail.com Wed Dec 24 18:07:09 2008 From: lamp.purl at gmail.com (purl lamp) Date: Thu, 25 Dec 2008 10:07:09 +0800 Subject: [PerlChina] =?gb2312?b?uPfOu8qlta6/7MDWxbajoQ==?= In-Reply-To: <29170dba0812240346g6592d181i52fbb75f2eb57155@mail.gmail.com> References: <8ebdea6c0812240147v4ef4856en3c701d9db19d2990@mail.gmail.com> <4ccf4daf0812240147l3507e078lec3af18e302b29e5@mail.gmail.com> <7b01f6d70812240338p562cdftb90a12661649922f@mail.gmail.com> <29170dba0812240346g6592d181i52fbb75f2eb57155@mail.gmail.com> Message-ID: <367185060812241807k29bdff7as75f49cde3e93da0b@mail.gmail.com> perl -E "say qw(圣 诞 快 乐)" 2008/12/24 ~ drabxun > 平安快乐! > > 2008/12/24 DirtyWater > > merry christmas && happy new year! >> >> 2008/12/24 zong : >> > Happy!~ >> > >> > 2008/12/24 Hua Zhen >> >> >> >> 祝大家圣诞快乐,平安夜开心,呵呵! >> >> >> >> 2008/12/24 smallfish : >> >> > 收到请回答。 >> >> > >> >> > 祈祷明天能有新版发布。 >> >> > >> >> > 圣诞快乐! >> >> > _______________________________________________ >> >> > China-pm mailing list >> >> > China-pm at pm.org >> >> > http://mail.pm.org/mailman/listinfo/china-pm >> >> > >> >> >> >> >> >> >> >> -- >> >> 凡事包容,凡事相信,凡事盼望,凡事忍耐。 >> >> _______________________________________________ >> >> China-pm mailing list >> >> China-pm at pm.org >> >> http://mail.pm.org/mailman/listinfo/china-pm >> > >> > >> > -- >> > 走遍千山万水... >> > >> > 大杂柜: www.loveasy.cn >> > >> > _______________________________________________ >> > China-pm mailing list >> > China-pm at pm.org >> > http://mail.pm.org/mailman/listinfo/china-pm >> > >> _______________________________________________ >> China-pm mailing list >> China-pm at pm.org >> http://mail.pm.org/mailman/listinfo/china-pm >> > > > _______________________________________________ > China-pm mailing list > China-pm at pm.org > http://mail.pm.org/mailman/listinfo/china-pm > -------------- next part -------------- An HTML attachment was scrubbed... URL: From qiao.wang at magnumsemi.com Wed Dec 24 19:35:00 2008 From: qiao.wang at magnumsemi.com (Qiao Wang) Date: Wed, 24 Dec 2008 19:35:00 -0800 Subject: [PerlChina] =?gb2312?b?tPC4tDogILj3zrvKpbWuv+zA1sW2o6E=?= In-Reply-To: References: Message-ID: 圣诞快乐。 柔弱的问问大家,都用perl来干嘛呢。我只是用perl来控制我们的编译系统,生成C程序,和调试时分析A/V的码流。 Regards ======================= Qiao Magnum Semiconductor Shanghai TS & Audio Group =========================== ________________________________ 发件人: china-pm-bounces+qiao.wang=magnumsemi.com at pm.org [mailto:china-pm-bounces+qiao.wang=magnumsemi.com at pm.org] 代表 smallfish 发送时间: 2008年12月24日 17:45 收件人: china-pm at pm.org 主题: [PerlChina] 各位圣诞快乐哦! 收到请回答。 祈祷明天能有新版发布。 圣诞快乐! -------------- next part -------------- An HTML attachment was scrubbed... URL: From luo.yong.name at gmail.com Wed Dec 24 19:40:01 2008 From: luo.yong.name at gmail.com (Luo Yong) Date: Thu, 25 Dec 2008 11:40:01 +0800 Subject: [PerlChina] =?gb2312?b?tPC4tDoguPfOu8qlta6/7MDWxbajoQ==?= In-Reply-To: References: Message-ID: <95ca1530812241940n4d204cf9he00a584153fd22dc@mail.gmail.com> 主要用perl格式化文本。 2008/12/25 Qiao Wang : > 圣诞快乐。 柔弱的问问大家,都用perl来干嘛呢。我只是用perl来控制我们的编译系统,生成C程序,和调试时分析A/V的码流。 > > > > Regards > > ======================= > > Qiao > > Magnum Semiconductor Shanghai > > TS & Audio Group > > =========================== > > ________________________________ > > 发件人: china-pm-bounces+qiao.wang=magnumsemi.com at pm.org > [mailto:china-pm-bounces+qiao.wang=magnumsemi.com at pm.org] 代表 smallfish > 发送时间: 2008年12月24日 17:45 > 收件人: china-pm at pm.org > 主题: [PerlChina] 各位圣诞快乐哦! > > > > 收到请回答。 > > > > 祈祷明天能有新版发布。 > > > > 圣诞快乐! > > _______________________________________________ > China-pm mailing list > China-pm at pm.org > http://mail.pm.org/mailman/listinfo/china-pm > From agentzh at gmail.com Wed Dec 24 19:45:09 2008 From: agentzh at gmail.com (agentzh) Date: Thu, 25 Dec 2008 11:45:09 +0800 Subject: [PerlChina] =?gb2312?b?tPC4tDoguPfOu8qlta6/7MDWxbajoQ==?= In-Reply-To: References: Message-ID: 2008/12/25 Qiao Wang > 圣诞快乐。 柔弱的问问大家,都用perl来干嘛呢。我只是用perl来控制我们的编译系统,生成C程序,和调试时分析A/V的码流。 > 我这些日子在用 Perl 做 Firefox 插件,以及配合 bash 作 Firefox 3.1 集群的"胶水",而调度整个 Firefox 集群的 OpenResty 这个 web service 平台也用 Perl 写的,哈哈!当然,这只是"这些日子"使用 Perl 的地方,其他日子就数不胜数了,呵呵。 Merry Christmas! -agentzh P.S. 用 Perl 生成 C 代码也是我最喜欢的,哈哈,无论是从 AST 生成 C 还是用 TT2 模板生成 C 抑或是 Verilog HDL。。。 -------------- next part -------------- An HTML attachment was scrubbed... URL: From luo.yong.name at gmail.com Wed Dec 24 19:47:06 2008 From: luo.yong.name at gmail.com (Luo Yong) Date: Thu, 25 Dec 2008 11:47:06 +0800 Subject: [PerlChina] =?gb2312?b?x+vOytPQyrLDtLHjvd21xLe9t6jU2MjremlwsPw=?= =?gb2312?b?wO+1xL/io78=?= Message-ID: <95ca1530812241947g52208fcds335dcc0723b81cf8@mail.gmail.com> 大家好, 我想在我的个人主页空间里加入一些CGI,一些pm是自己写的,服务器的FTP不是很好用,所以想把这些pm打成一个zip包上传上去,但是不知道如何配置才能在脚本里引用,谁有好的方法麻烦告知一下。 万分感谢 From agentzh at gmail.com Wed Dec 24 19:51:06 2008 From: agentzh at gmail.com (agentzh) Date: Thu, 25 Dec 2008 11:51:06 +0800 Subject: [PerlChina] =?gb2312?b?x+vOytPQyrLDtLHjvd21xLe9t6jU2MjremlwsPw=?= =?gb2312?b?wO+1xL/io78=?= In-Reply-To: <95ca1530812241947g52208fcds335dcc0723b81cf8@mail.gmail.com> References: <95ca1530812241947g52208fcds335dcc0723b81cf8@mail.gmail.com> Message-ID: 2008/12/25 Luo Yong > 大家好, > > > 我想在我的个人主页空间里加入一些CGI,一些pm是自己写的,服务器的FTP不是很好用,所以想把这些pm打成一个zip包上传上去,但是不知道如何配置才能在脚本里引用,谁有好的方法麻烦告知一下。 > use lib '/path/to/my/pm/directory'; use MyModule; or BEGIN { unshift @INC, '/path/to/my/pm/direcotry' } use MyModule; or perl -I/path/to/my/pm/direcotry myscript.pl Good luck! -agentzh -------------- next part -------------- An HTML attachment was scrubbed... URL: From shijialee at gmail.com Wed Dec 24 19:59:58 2008 From: shijialee at gmail.com (Qiang (James)) Date: Thu, 25 Dec 2008 11:59:58 +0800 Subject: [PerlChina] =?utf-8?b?6YKu5Lu257uE5pCs5a62IC8gV2UgYXJlIG1vdmlu?= =?utf-8?q?g_to_google_group?= Message-ID: <4953053E.8050800@gmail.com> [You will receive an invitation email for joining PerlChina Google Group. If any problem, You can subscribe it here http://xrl.us/bbnkzp] 新地址 http://groups.google.com/group/perlchina?hl=zh-CN 现决定把邮件组转移到 Google Group 上,Google Group 提供邮件组和论坛功 能,所以 bbs.perlchina.org 的功能也将和邮件组一起合并到 Google Group。 邮件组上的每个人会收到一封加入 Perlchina Google Group 的邀请,请接受。如 果有问题,你也可以自行加入小组。 加入小组后,你可以通过给 perlchina at googlegroups.com 发邮件来交流,或者通 过 web 界面来访问和回帖。 关于这次变动的讨论大家可以在这里看到 http://xrl.us/o32mo http://mail.pm.org/pipermail/china-pm/2008-December/001911.html Qiang(James) From wbisearchina at hotmail.co.jp Wed Dec 24 20:00:05 2008 From: wbisearchina at hotmail.co.jp (=?gb2312?B?d2JpIK6F?=) Date: Thu, 25 Dec 2008 13:00:05 +0900 Subject: [PerlChina] =?gb2312?b?tPC4tDoguPfOu8qlta6/7MDWxbajoQ==?= In-Reply-To: References: Message-ID: Firefox 3.1 ��Ⱥ ��ô�� ��������� Date: Thu, 25 Dec 2008 11:45:09 +0800From: agentzh at gmail.comTo: china-pm at pm.orgSubject: Re: [PerlChina] �� �������Ŷ��2008/12/25 Qiao Wang ʥ������ �����ʴ�����perl�������ֻ��perl�����ǵı�ϵͳ,�����򣬺͵������������Щ���� Perl � Firefox ����������bash � Firefox 3.1 ��Ⱥ����ˮ"�������refox ��Ⱥ��OpenResty ���b service ƽ̨Ҳ� Perl д�ģ���������Ȼ���ֻ�"�Щ��"ʹ� Perl �ĵط�����������Ǻǡ�Merry Christmas!-agentzhP.S. � Perl ���C �����ϲ���ģ������������AST ���C ���� TT2 ģ����C ���Verilog HDL������ _________________________________________________________________ ��A�ץ쥼������ǵ����롣�����ľ�饰���奢���ʥ��ȡ��񤹤�����http://event.jp.msn.com/xmas2008/present/default.htm -------------- next part -------------- An HTML attachment was scrubbed... URL: From acmilan.baresi at gmail.com Wed Dec 24 20:12:05 2008 From: acmilan.baresi at gmail.com (Hua Zhen) Date: Thu, 25 Dec 2008 12:12:05 +0800 Subject: [PerlChina] =?gb2312?b?08q8/tfpsOG80iAvIFdlIGFyZSBtb3ZpbmcgdG8g?= =?gb2312?b?Z29vZ2xlIGdyb3Vw?= In-Reply-To: <4953053E.8050800@gmail.com> References: <4953053E.8050800@gmail.com> Message-ID: <8ebdea6c0812242012g1981bfb0we1b282449e376cfc@mail.gmail.com> 2008/12/25 Qiang (James) : > [You will receive an invitation email for joining PerlChina Google Group. If > any problem, You can subscribe it here http://xrl.us/bbnkzp] > > 新地址 http://groups.google.com/group/perlchina?hl=zh-CN 貌似我直接可以在网页上选择"加入",而且不需要等待验证和批准? > > 现决定把邮件组转移到 Google Group 上,Google Group 提供邮件组和论坛功 能,所以 bbs.perlchina.org > 的功能也将和邮件组一起合并到 Google Group。 > > 邮件组上的每个人会收到一封加入 Perlchina Google Group 的邀请,请接受。如 果有问题,你也可以自行加入小组。 > > 加入小组后,你可以通过给 perlchina at googlegroups.com 发邮件来交流,或者通 过 web 界面来访问和回帖。 > > 关于这次变动的讨论大家可以在这里看到 > > http://xrl.us/o32mo > http://mail.pm.org/pipermail/china-pm/2008-December/001911.html > > Qiang(James) > _______________________________________________ > China-pm mailing list > China-pm at pm.org > http://mail.pm.org/mailman/listinfo/china-pm -- 凡事包容,凡事相信,凡事盼望,凡事忍耐。 From shijialee at gmail.com Wed Dec 24 20:16:26 2008 From: shijialee at gmail.com (Qiang (James)) Date: Thu, 25 Dec 2008 12:16:26 +0800 Subject: [PerlChina] =?utf-8?b?6YKu5Lu257uE5pCs5a62IC8gV2UgYXJlIG1vdmlu?= =?utf-8?q?g_to_google_group?= In-Reply-To: <8ebdea6c0812242012g1981bfb0we1b282449e376cfc@mail.gmail.com> References: <4953053E.8050800@gmail.com> <8ebdea6c0812242012g1981bfb0we1b282449e376cfc@mail.gmail.com> Message-ID: <4953091A.3020907@gmail.com> Hua Zhen wrote: > 2008/12/25 Qiang (James) : >> [You will receive an invitation email for joining PerlChina Google Group. If >> any problem, You can subscribe it here http://xrl.us/bbnkzp] >> >> 新地址 http://groups.google.com/group/perlchina?hl=zh-CN > > 貌似我直接可以在网页上选择"加入",而且不需要等待验证和批准? > 缺省设定是申请加入。但现在有很多人需要加入,所以暂改为无需申请即可加入。 >> 现决定把邮件组转移到 Google Group 上,Google Group 提供邮件组和论坛功 能,所以 bbs.perlchina.org >> 的功能也将和邮件组一起合并到 Google Group。 >> >> 邮件组上的每个人会收到一封加入 Perlchina Google Group 的邀请,请接受。如 果有问题,你也可以自行加入小组。 >> >> 加入小组后,你可以通过给 perlchina at googlegroups.com 发邮件来交流,或者通 过 web 界面来访问和回帖。 >> >> 关于这次变动的讨论大家可以在这里看到 >> >> http://xrl.us/o32mo >> http://mail.pm.org/pipermail/china-pm/2008-December/001911.html >> >> Qiang(James) Qiang(James) From lob4tt at gmail.com Wed Dec 24 20:22:57 2008 From: lob4tt at gmail.com (lobatt li) Date: Thu, 25 Dec 2008 12:22:57 +0800 Subject: [PerlChina] =?gb2312?b?tPC4tDoguPfOu8qlta6/7MDWxbajoQ==?= In-Reply-To: References: Message-ID: ͬ�...����irefoxָ������ô�� 2008/12/25 wbi �� > Firefox 3.1 ��Ⱥ ��ô�� ��������� > > ------------------------------ > Date: Thu, 25 Dec 2008 11:45:09 +0800 > From: agentzh at gmail.com > To: china-pm at pm.org > Subject: Re: [PerlChina] �� �������Ŷ�� > > > 2008/12/25 Qiao Wang > > ʥ������ �����ʴ�����perl�������ֻ��perl�����ǵı�ϵͳ,�����򣬺͵���������� > > > ��Щ���� Perl � Firefox ����������bash � Firefox 3.1 ��Ⱥ����ˮ"�������refox ��Ⱥ��> OpenResty ���b service ƽ̨Ҳ� Perl д�ģ���������Ȼ���ֻ�"�Щ��"ʹ� Perl > �ĵط�����������Ǻǡ� > > Merry Christmas! > -agentzh > > P.S. � Perl ���C �����ϲ���ģ������������AST ���C ���� TT2 ģ����C ���Verilog > HDL������ > > > ------------------------------ > ��A�ץ쥼�������ǵ����롣�����ľ�饰���奢���ʥ��ȡ� ���ζ�����Υץ쥼����񤹤�����http://clk.atdmt.com/GBL/go/127854142/direct/01/> > > _______________________________________________ > China-pm mailing list > China-pm at pm.org > http://mail.pm.org/mailman/listinfo/china-pm > -- lobatt -------------- next part -------------- An HTML attachment was scrubbed... URL: From luo.yong.name at gmail.com Wed Dec 24 21:05:47 2008 From: luo.yong.name at gmail.com (Luo Yong) Date: Thu, 25 Dec 2008 13:05:47 +0800 Subject: [PerlChina] =?gb2312?b?x+vOytPQyrLDtLHjvd21xLe9t6jU2MjremlwsPw=?= =?gb2312?b?wO+1xL/io78=?= In-Reply-To: References: <95ca1530812241947g52208fcds335dcc0723b81cf8@mail.gmail.com> Message-ID: <95ca1530812242105j6155a888w2b9c9382c60918f6@mail.gmail.com> 多谢, 这个方法大概是最好的方法了,不过感觉Java的那种用JAR文件封装类库的方法很方便,但是在perl上暂时没办法实现,不知道perl6里有没有类似的功能。 2008/12/25 agentzh : > 2008/12/25 Luo Yong >> >> 大家好, >> >> >> 我想在我的个人主页空间里加入一些CGI,一些pm是自己写的,服务器的FTP不是很好用,所以想把这些pm打成一个zip包上传上去,但是不知道如何配置才能在脚本里引用,谁有好的方法麻烦告知一下。 > > use lib '/path/to/my/pm/directory'; > use MyModule; > > or > > BEGIN { unshift @INC, '/path/to/my/pm/direcotry' } > use MyModule; > > or > > perl -I/path/to/my/pm/direcotry myscript.pl > > Good luck! > -agentzh > > > _______________________________________________ > China-pm mailing list > China-pm at pm.org > http://mail.pm.org/mailman/listinfo/china-pm > From agentzh at gmail.com Wed Dec 24 23:13:47 2008 From: agentzh at gmail.com (agentzh) Date: Thu, 25 Dec 2008 15:13:47 +0800 Subject: [PerlChina] =?gb2312?b?tPC4tDoguPfOu8qlta6/7MDWxbajoQ==?= In-Reply-To: References: Message-ID: 2008/12/25 wbi �� > > Firefox 3.1 ��Ⱥ ��ô�� ��������� =head1 NAME List Hunter cluster - �����Լ���ozilla Firefox 3.1 ������漯Ⱥ���Ϊ List Hunter ��Ⱥ��Ŀǰ�����˾������������֡� =head1 ���� ��������Ŀ����Ҫ����������������������ķ���Ŀǰ��õ���������DCP ϵͳ�����ҳ�ṹ����ķ�ࣨ������������������ҳ��������������б���������һֱȱ���ȽϺõĽ���������������������ṹ���ķ��������ά����������ȷ�ֻ� 60%���� SVM ���Ļ�ϰ�ķ����������Ƚ����Ŀ��ҳ�ѵ�������࣬�׼ȷ�Ѹ������ ���������ʾʱ��Ӿ��������ά������������������׼ȷ���ٻ�ʷֱ��� 90% ��80%������Ӿ���Ҫ�������Ĵ���״����������������������塢�ɫ�ȵȡ������㵮�� List Hunter ��������ν� Firefox ����������ļ�Ⱥ����������Ҫ���� ����ƪ blog ������������������Լ� List Hunter ���������� http://blog.agentzh.org/#post-97 =head1 ��Ⱥ�Ľṹ �ü�Ⱥ���󲿷������ Firefox ��Ⱥ��Apache + mod_proxy + mod_disk_cache ��Ⱥ��curl Ԥȡ���Ⱥ����OpenResty ��Ⱥ��һ���ʮ��̨����ְ"����"�ز�����������һ��һ����� =over =item �� Firefox ��Ⱥ �� Firefox ��ȺĿǰ� 8 ̨ 4 �˵�redhat5 ����ɡ�ÿ̨���� 3 ��refox 3.1 ������Ϊ� 8 ̨��ʱ������� VIP ����̿��Ƭ�ʾ�ӿڣ���600 �� PV��������û���������Ƚ϶� Firefox �� �Ҫָ��ǣ�Firefox Ĭ��"���"���з�ʽ��������� firefox-bin ���������õ��Ļ������refox ���������ʽ������������ CPU���Ϊ������̣�һ�������һ��ϣ��������̵ġ�Ϊ�� Firefox ����̷�ʽ�����Ҫ�� =over =item 1. ���firefox-bin ������ -no-remote ���ѡ������������ MOZ_NO_REMOTE=1 =item 2. ���ͬ��profile ����ͬ��firefox-bin ���� -P ���ѡ����� =back ��ƽ��������Firefox ���ڲ����������hrome ��ʽ������List Hunter ���Ľ������� firefox -chrome chrome://listhunter/content/crawler.xul -P crawler2 -no-remote � chrome ��ʽ���IJ�� XULRunner ��ʽ����XUL Ӧ������ġ� �� Firefox 3.1 ��û��ʽ�������ֱ��checkout �ٷ� Mercurial Դ��ֿ�����汾����������redhat ������ġ���Ŀǰ�����޸Ĺٷ���C++ Դ��Ϊ������ٷ��汾�����������Ŀǰʹ������ firefox ��ѡ��� # My .mozconfig mk_add_options MOZ_MAKE_FLAGS="-j2" mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/ff-opt ac_add_options --enable-crypto --enable-feeds --disable-profilesharing --enable-rdf --enable-zipwriter --disable-tests --disable-gnomeui --disable-cookies --disable-canvas --disable-gnomeui --disable-inspector-apis --disable-mailnews --disable-mathml --disable-official-branding --enable-plaintext-editor-only --disable-postscript --disable-printing --disable-profilelocking --disable-safe-browsing --disable-startup-notification --disable-svg --disable-svg-foreignobject --disable-updater --disable-javaxpcom --disable-plugins --disable-crashreporter --disable-tests --disable-debug --enable-application=browser --build=i686-linux --disable-jsd --disable-ldap --enable-strip --disable-accessibility --disable-ogg --disable-dbus --disable-freetype2 --disable-optimize ��������������������feeds, rdf, crypto ������ disable����������ͨ���һЩ .h ͷ�����������Ǻǡ�--disable-ogg ʵ����������������IJ�Ͽ�����Ч��ǡ� �ʵ���Ŀǰ����������������+ ���������� Error Console ���Errors ������ stderr������������Ⱥ�����ͨ��fox �� log �����׽���һЩ�����Ŀǰ�IJ���������ӣ� http://agentzh.org/misc/191src.patch.txt ֵ������ǣ�Firefox ����"�ͷ"�ģ������� Xvfb ���server ֮���ֻ����ִ�������Ҫ�����Ӳ���Ĵ����Щ Firefox ���������Լ������rl д�Ľ��ؽű�֮����ýű�������Proc::Harness ģ�飺 http://svn.openfoundry.org/xulapp/trunk/demo/ListHunter/misc/Proc-Harness/ Proc::Harness �� lighttpd ��Fastcgi server һ���ά��һ�ָ���Ŀ�Ľ�ͨ�� ���Proc::Simple ģ�飩���������������������� stderr/stdout ���ٱ仯һ����֮���֮����Proc::Harness �ű���������deamontools ֮��� �Щ Firefox ����װ�����List Hunter �������ơ�������߶��ε�robot��������һ�������һ�һ��ش�OpenResty ��web service �ӿ���� URL ����Ȼ�����Firefox ��browser ������غͷ����ѷ��Ľ�һ�һ������Resty ���֮�� =item curl Ԥȡ��漯Ⱥ� Apache mod_proxy ��Ⱥ �ü�ȺĿǰ���� 6 ̨˫�˵�redhat4 ���ÿ̨����װ����������һ�Ԥȡ���һ� Apache mod_proxy. Ԥȡ�������� ��׼ȷ���� WWW::Curl ģ�飩���ҳ��HTML ��CSS ͨ��proxy Ԥȡһ�飬���Щ���Ľ��Ϳ���mod_proxy �ͨ��disk_cache ������������ Firefox ��Ⱥ�ͨ��proxy ȥץ�Щ URL ʱ��mod_proxy �Ϳ����Ӱѻ����Ľ�ֱ�ӷ��ظ�efox ��� Ԥȡ���Firefox ��ͬʱ����ģ���������L ����ֻ�ͨ�������Firefox ������������ʵ�ʹ�������������ߡ�������OpenResty ��Ⱥ���ɵġ� Ԥȡ�Ŀǰ��һ��� WWW::Prefetcher ��Perl ģ���ʽ�ʵ��ģ� http://svn.openfoundry.org/xulapp/trunk/demo/ListHunter/misc/WWW-Prefetcher/ �Ȼ mod_cache �����������������Ϊ����Ƚ��RFC ��cache Ҫ��ġ����Ҷ�mod_cache ģ��������ģ�ʹ֮�����ػ������������ URL ���querystring��Ҳ���� response header ������ʲô���������httpd 2.2.11 �IJ������� http://agentzh.org/misc/httpd-2.2.11.patch.txt ����mod_disk_cache ָ��IJ������¼����AM ����ٵ�tmpfs ������� 6 ̨����ܾɵ�IDE Ӳ���������ô���che �洢ʱ���߲���������ÿ̨�� load ��� 20 ���������������Ϊ tmpfs �� htcacheclean ������󣬻���ͽ��� 0.1 ����� =item OpenResty��Ⱥ �� OpenResty ���������ֱ�Ӹ���ͬʱ���� yahoo.cn �Ϳڱ����Ǹ������3 ̨ FastCGI ǰ�˻�̨ PL/Proxy ����������������Ļ������ Firefox ��Ⱥ��OpenResty �ӿ����� API ��¶���ɵ�PostgreSQL ����������ist Hunter ��Ⱥ����Ⱥͽ�����Ŀǰ���������ͨ���sequence ���һ�ѭ������У���ͨ������������֮���������� ��ص�Pg �����sequence��������Ķ������� http://svn.openfoundry.org/xulapp/trunk/demo/ListHunter/misc/init-db.sql ��ص�OpenResty ����������� http://svn.openfoundry.org/xulapp/trunk/demo/ListHunter/misc/init-resty.pl =back =head1 ��Ⱥ���� ��ȺĿǰÿСʱ�IJ���� 10 ��ҳ����һ��IJ� 240 �����Firefox ������ 3 ����Proxy �ĸ��� 0.1 ���� JS ����ʾ Firefox 3.1 �������ƽ��� 200 ~ 300 ms�������ʱ� 10 ~ 20 ms���Ϊ�ҳ��� mod_cache ��������޵���������, List Hunter ����DOM �����ʱ� 200 ~ 300 ms���� OpenResty ������룬��1 sec ���һ��档 =head1 �֪ƿ������ �� OpenResty ���URL ����������~ 200 �ʱ�����������roxy ��10 �������ˣ���Ŀǰ���"�ʽ"������������ͨ��job ������е��������ͬʱ������������ Apache ��mod_proxy ��߲������������������� Apache ������ṹ�����ʵ� proxy pipelining. ��˼ƻ��δ���Ⱥ�����������Squid. ��Ȼ���Squid �ܿ����Ҫ���IJ�������������������ʱ������ ͬʱ����� Apache mod_cache ��ķǷֲ�ʽ�������ĵ���Firefox �� curl Ԥȡ����ɵģ����ǰ�˴��ϸ�����������������ʱͬ��������ˣ�δ���Կ��Ϊ Apache mod_cache ��Squid ���memcached �����˵���֡������˵Ķ�����������Լ�Ⱥ���������͸���"�� =head1 TODO =over =item 1. ��� Squid + memcached �Ϊ��������=item 2. ͨ��unner ��irefox -chrome ��ʽ�� List Hunter �������ҪΪ���XUL::App ��� XULRunner ֧�֣� =back =head1 ������ͬ ���ͨ��޸�Firefox 2 ��C++ Դ���������� HLFS ���漯Ⱥ�����ȡ AJAX �վ����Լ��õ��������DOM ������� Firefox �����HTTP ���ʽ����ⲿӦ��������� ����List Hunter ��Ⱥ���Firefox ����߶��ε��棬�������OpenResty ����ϵ����ȥ��ɡ���Ӧ��������enResty ���������Ⱥ�ת���� List Hunter ��Ⱥ��û�ô���Firefox ������ʹ���ǿ�Ժ��׵�������汾����������Ӷ�ʱ�����ٷ������������� ͬʱ List Hunter ��Ⱥ����ͨ�Ŀ�ĵģ�������Firefox ������Ⱥ��"�����֮����һ��� Firefox ��"��Ⱥ��"����Ŀ�� �� Firefox ������������ͨ����� CPAN ��XUL::App ��õ������򻯣����Ӧ�����ijɱ���dz��͵ġ� =head1 ʹ� Firefox ��� =over =item ���Firefox ���缶��������Ϊ���������ḻ��Internet �ͻ����һ������֮�Ϊ��������������һ��ķḻ�������� AJAX ���������������� Firefox ���UL ��chrome JS ����IJ�������չ���ʵ���Firefox ��������������ͬʱ��Gecko ���PCOM �����ʽ�ģ���˿�Ժ��׵��� C/C++/Java ������� XPCOM �����Ȼ���JavaSscript �������������avaScript ����� Perl һ��Ľ�ˮ����� ��� Gecko ֮��IJ� JavaScript ӵ���������� JS ��Է�ʴ��ļ�����Է���ͳ�������������ԭ���XmlHttpRequest ��󷢳��AX ���� Firefox �������汾�ķ������Ϸ���ı仯��Firefox 3.1 ���Gecko ��������Ⱦͱ�3.0 ��Ŀ��ü�������ist Hunter �ع������benchmark ����ǰ�Ϊƽ��ms����򳤴�00+ ms������Firefox 3.1 � TraceMonkey ��JIT ֧�ֵ���û���t Hunter ���JS ������������� �� JS д��Firefox ������Win32/Linux/Mac ���������װ������������༭�������ͨ�Ϊϸ�ڣ�����ʾ������������������ C++ ���������ļ�����IJ��֡� =item ȱ��Firefox ����������� Google Chrome �� Safari �����Webkit ������ȡ���ζ������Ƚ��ڶ�Firefox �����IJü�޷������һЩ�Ƚϴ���������Ҳ��ѽ������һ������������������Ȼ���SpiderMonkey ��������һ���� =back =head1 AUTHOR ���� (agentzh) C<< >> =head1 LICENSE Copyright (c) 2007-2008, Yahoo! China EEEE Works, Alibaba Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: =over =item * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. =item * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. =item * Neither the name of the Yahoo! China EEEE Works, Alibaba Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. =back THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -------------- next part -------------- An HTML attachment was scrubbed... URL: From agentzh at gmail.com Wed Dec 24 23:22:01 2008 From: agentzh at gmail.com (agentzh) Date: Thu, 25 Dec 2008 15:22:01 +0800 Subject: [PerlChina] =?gb2312?b?tPC4tDoguPfOu8qlta6/7MDWxbajoQ==?= In-Reply-To: References: Message-ID: 2008/12/25 agentzh > 2008/12/25 wbi �� > > > > Firefox 3.1 ��Ⱥ ��ô�� ��������� > > =head1 NAME > > List Hunter cluster - �����Լ���ozilla Firefox 3.1 ������漯Ⱥ���Ϊ List Hunter > ��Ⱥ��Ŀǰ�����˾������������֡� > > �������������������ƪ��� + blog ���� ^_^ Thanks! -agentzh -------------- next part -------------- An HTML attachment was scrubbed... URL: From agentzh at gmail.com Wed Dec 24 23:25:56 2008 From: agentzh at gmail.com (agentzh) Date: Thu, 25 Dec 2008 15:25:56 +0800 Subject: [PerlChina] =?gb2312?b?x+vOytPQyrLDtLHjvd21xLe9t6jU2MjremlwsPw=?= =?gb2312?b?wO+1xL/io78=?= In-Reply-To: <95ca1530812242105j6155a888w2b9c9382c60918f6@mail.gmail.com> References: <95ca1530812241947g52208fcds335dcc0723b81cf8@mail.gmail.com> <95ca1530812242105j6155a888w2b9c9382c60918f6@mail.gmail.com> Message-ID: 2008/12/25 Luo Yong > 多谢, > > > 这个方法大概是最好的方法了,不过感觉Java的那种用JAR文件封装类库的方法很方便,但是在perl上暂时没办法实现,不知道perl6里有没有类似的功能。 > > CPAN 上有一个叫做 pp 的工具可以把 Perl 5 类库封成 PAR 文件 ;) 基于 parrot 的 Perl 6 中可以在字节码级别进行联编,就更方便了 ;) -agentzh -------------- next part -------------- An HTML attachment was scrubbed... URL: From wbisearchina at hotmail.co.jp Wed Dec 24 23:55:19 2008 From: wbisearchina at hotmail.co.jp (=?gb2312?B?d2JpIK6F?=) Date: Thu, 25 Dec 2008 16:55:19 +0900 Subject: [PerlChina] =?gb2312?b?tPC4tDoguPfOu8qlta6/7MDWxbajoQ==?= In-Reply-To: References: Message-ID: �̫����ˮƽ�� �ܶ���û����������� �dz���� Date: Thu, 25 Dec 2008 15:22:01 +0800From: agentzh at gmail.comTo: china-pm at pm.orgSubject: Re: [PerlChina] �� �������Ŷ��2008/12/25 agentzh 2008/12/25 wbi �� > > Firefox 3.1 ��Ⱥ ��ô�� ���������=head1 NAMEList Hunter cluster - �����Լ���ozilla Firefox 3.1 ������漯Ⱥ���Ϊ List Hunter ��Ⱥ��Ŀǰ�����˾������������֡��������������������ƪ��� + blog ���� ^_^Thanks!-agentzh _________________________________________________________________ ���֥��ե��`�����餪�Խ�����o�25GB�Υե����뱣�極�`�ӥ� http://go.windowslive.jp/share/skydrive.html -------------- next part -------------- An HTML attachment was scrubbed... URL: From wanliyou at gmail.com Thu Dec 25 00:05:02 2008 From: wanliyou at gmail.com (Question) Date: Thu, 25 Dec 2008 16:05:02 +0800 Subject: [PerlChina] =?gb2312?b?tPC4tDoguPfOu8qlta6/7MDWxbajoQ==?= In-Reply-To: References: Message-ID: <41143d8f0812250005h2f83d9acv40b4a7bbf59fbb56@mail.gmail.com> ���÷dz�����ahoo����ʶ :-) �����firefox3.1,������������fennec����lrunner,Ӧ���.9.2a1/2pre����ܱ�.1��������ķ�����DOM��Ļ�?��֪��������û������������������ JIT�������hrome/content? û��ȫҧ���ֿ��,�����ݶ� 2008/12/25 agentzh > 2008/12/25 wbi �� > > > > Firefox 3.1 ��Ⱥ ��ô�� ��������� > > =head1 NAME > > List Hunter cluster - �����Լ���ozilla Firefox 3.1 ������漯Ⱥ���Ϊ List Hunter > ��Ⱥ��Ŀǰ�����˾������������֡� > > =head1 ���� > > ��������Ŀ����Ҫ����������������������ķ���Ŀǰ��õ���������DCP > ϵͳ�����ҳ�ṹ����ķ�ࣨ������������������ҳ��������������б���������һֱȱ���ȽϺõĽ���������������������ṹ���ķ��������ά����������ȷ�ֻ� > 60%���� SVM ���Ļ�ϰ�ķ����������Ƚ����Ŀ��ҳ�ѵ�������࣬�׼ȷ�Ѹ������ > > ���������ʾʱ��Ӿ��������ά������������������׼ȷ���ٻ�ʷֱ��� 90% ��> 80%������Ӿ���Ҫ�������Ĵ���״����������������������塢�ɫ�ȵȡ������㵮�� List Hunter > ��������ν� Firefox ����������ļ�Ⱥ����������Ҫ���� > > ����ƪ blog ������������������Լ� List Hunter ���������� > > http://blog.agentzh.org/#post-97 > > =head1 ��Ⱥ�Ľṹ > > �ü�Ⱥ���󲿷������ Firefox ��Ⱥ��Apache + mod_proxy + mod_disk_cache ��Ⱥ��curl Ԥȡ���Ⱥ����> OpenResty ��Ⱥ��һ���ʮ��̨����ְ"����"�ز�����������һ��һ����� > > =over > > =item �� Firefox ��Ⱥ > > �� Firefox ��ȺĿǰ� 8 ̨ 4 �˵�redhat5 ����ɡ�ÿ̨���� 3 ��refox 3.1 ������Ϊ� 8 > ̨��ʱ������� VIP ����̿��Ƭ�ʾ�ӿڣ���600 �� PV��������û���������Ƚ϶� Firefox �� > > �Ҫָ��ǣ�Firefox Ĭ��"���"���з�ʽ��������� firefox-bin ���������õ��Ļ������refox > ���������ʽ������������ CPU���Ϊ������̣�һ�������һ��ϣ��������̵ġ�Ϊ�� Firefox > ����̷�ʽ�����Ҫ�� > > =over > > =item 1. > > ���firefox-bin ������ -no-remote ���ѡ������������ MOZ_NO_REMOTE=1 > > =item 2. > > ���ͬ��profile ����ͬ��firefox-bin ���� -P ���ѡ����� > > =back > > ��ƽ��������Firefox ���ڲ����������hrome ��ʽ������List Hunter ���Ľ������� > > firefox -chrome chrome://listhunter/content/crawler.xul -P crawler2 > -no-remote > > � chrome ��ʽ���IJ�� XULRunner ��ʽ����XUL Ӧ������ġ� > > �� Firefox 3.1 ��û��ʽ�������ֱ��checkout �ٷ� Mercurial Դ��ֿ�����汾����������redhat > ������ġ���Ŀǰ�����޸Ĺٷ���C++ Դ��Ϊ������ٷ��汾�����������Ŀǰʹ������ firefox ��ѡ��� > > # My .mozconfig > mk_add_options MOZ_MAKE_FLAGS="-j2" > mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/ff-opt > ac_add_options --enable-crypto --enable-feeds --disable-profilesharing > --enable-rdf --enable-zipwriter --disable-tests --disable-gnomeui > --disable-cookies --disable-canvas --disable-gnomeui > --disable-inspector-apis --disable-mailnews --disable-mathml > --disable-official-branding --enable-plaintext-editor-only > --disable-postscript --disable-printing --disable-profilelocking > --disable-safe-browsing --disable-startup-notification --disable-svg > --disable-svg-foreignobject --disable-updater --disable-javaxpcom > --disable-plugins --disable-crashreporter --disable-tests --disable-debug > --enable-application=browser --build=i686-linux --disable-jsd --disable-ldap > --enable-strip --disable-accessibility --disable-ogg --disable-dbus > --disable-freetype2 --disable-optimize > > ��������������������feeds, rdf, crypto ������ disable����������ͨ���һЩ .h > ͷ�����������Ǻǡ�--disable-ogg ʵ����������������IJ�Ͽ�����Ч��ǡ� > > �ʵ���Ŀǰ����������������+ ���������� Error Console ���Errors ������ > stderr������������Ⱥ�����ͨ��fox �� log �����׽���һЩ�����Ŀǰ�IJ���������ӣ� > > http://agentzh.org/misc/191src.patch.txt > > ֵ������ǣ�Firefox ����"�ͷ"�ģ������� Xvfb ���server > ֮���ֻ����ִ�������Ҫ�����Ӳ���Ĵ����Щ Firefox ���������Լ������rl > д�Ľ��ؽű�֮����ýű�������Proc::Harness ģ�飺 > > > http://svn.openfoundry.org/xulapp/trunk/demo/ListHunter/misc/Proc-Harness/ > > Proc::Harness �� lighttpd ��Fastcgi server һ���ά��һ�ָ���Ŀ�Ľ�ͨ�� ���> Proc::Simple ģ�飩���������������������� stderr/stdout > ���ٱ仯һ����֮���֮����Proc::Harness �ű���������deamontools ֮��� > > �Щ Firefox ����װ�����List Hunter �������ơ�������߶��ε�robot��������һ�������һ�һ��ش�> OpenResty ��web service �ӿ���� URL ����Ȼ�����Firefox ��browser > ������غͷ����ѷ��Ľ�һ�һ������Resty ���֮�� > > =item curl Ԥȡ��漯Ⱥ� Apache mod_proxy ��Ⱥ > > �ü�ȺĿǰ���� 6 ̨˫�˵�redhat4 ���ÿ̨����װ����������һ�Ԥȡ���һ� Apache mod_proxy. > Ԥȡ�������� ��׼ȷ���� WWW::Curl ģ�飩���ҳ��HTML ��CSS ͨ��proxy > Ԥȡһ�飬���Щ���Ľ��Ϳ���mod_proxy �ͨ��disk_cache ������������ Firefox ��Ⱥ�ͨ��d_proxy ȥץ�Щ URL ʱ��mod_proxy �Ϳ����Ӱѻ����Ľ�ֱ�ӷ��ظ�efox ��� > > Ԥȡ���Firefox ��ͬʱ����ģ���������L ����ֻ�ͨ�������Firefox > ������������ʵ�ʹ�������������ߡ�������OpenResty ��Ⱥ���ɵġ� > > Ԥȡ�Ŀǰ��һ��� WWW::Prefetcher ��Perl ģ���ʽ�ʵ��ģ� > > > http://svn.openfoundry.org/xulapp/trunk/demo/ListHunter/misc/WWW-Prefetcher/ > > �Ȼ mod_cache �����������������Ϊ����Ƚ��RFC ��cache Ҫ��ġ����Ҷ�mod_cache > ģ��������ģ�ʹ֮�����ػ������������ URL ���querystring��Ҳ���� response header > ������ʲô���������httpd 2.2.11 �IJ������� > > http://agentzh.org/misc/httpd-2.2.11.patch.txt > > ����mod_disk_cache ָ��IJ������¼����AM ����ٵ�tmpfs ������� 6 ̨����ܾɵ�IDE > Ӳ���������ô���che �洢ʱ���߲���������ÿ̨�� load ��� 20 ���������������Ϊ tmpfs �� > htcacheclean ������󣬻���ͽ��� 0.1 ����� > > =item OpenResty��Ⱥ > > �� OpenResty ���������ֱ�Ӹ���ͬʱ���� yahoo.cn �Ϳڱ����Ǹ������3 ̨ FastCGI ǰ�˻�̨ > PL/Proxy ����������������Ļ������ Firefox ��Ⱥ��OpenResty �ӿ����� API ��¶���ɵ�> PostgreSQL ����������ist Hunter ��Ⱥ����Ⱥͽ�����Ŀǰ���������ͨ���sequence > ���һ�ѭ������У���ͨ������������֮���������� > > ��ص�Pg �����sequence��������Ķ������� > > > http://svn.openfoundry.org/xulapp/trunk/demo/ListHunter/misc/init-db.sql > > ��ص�OpenResty ����������� > > > http://svn.openfoundry.org/xulapp/trunk/demo/ListHunter/misc/init-resty.pl > > =back > > =head1 ��Ⱥ����> > ��ȺĿǰÿСʱ�IJ���� 10 ��ҳ����һ��IJ� 240 �����Firefox ������ 3 ����Proxy �ĸ��� 0.1 > ���� > > JS ����ʾ Firefox 3.1 �������ƽ��� 200 ~ 300 ms�������ʱ� 10 ~ 20 ms���Ϊ�ҳ��� > mod_cache ��������޵���������, List Hunter ����DOM �����ʱ� 200 ~ 300 ms���� > OpenResty ������룬��1 sec ���һ��档 > > =head1 �֪ƿ������ > > �� OpenResty ���URL ����������~ 200 �ʱ�����������roxy ��10 > �������ˣ���Ŀǰ���"�ʽ"������������ͨ��job ������е��������ͬʱ������������> > Apache ��mod_proxy ��߲������������������� Apache ������ṹ�����ʵ� proxy pipelining. > ��˼ƻ��δ���Ⱥ�����������Squid. ��Ȼ���Squid �ܿ����Ҫ���IJ�������������������ʱ������ > > ͬʱ����� Apache mod_cache ��ķǷֲ�ʽ�������ĵ���Firefox �� curl > Ԥȡ����ɵģ����ǰ�˴��ϸ�����������������ʱͬ��������ˣ�δ���Կ��Ϊ Apache mod_cache ��Squid > ���memcached �����˵���֡������˵Ķ�����������Լ�Ⱥ���������͸���"�� > > =head1 TODO > > =over > > =item 1. > > ��� Squid + memcached �Ϊ�������� > =item 2. > > ͨ��unner ��irefox -chrome ��ʽ�� List Hunter �������ҪΪ���XUL::App ��� > XULRunner ֧�֣� > > =back > > =head1 ������ͬ > > ���ͨ��޸�Firefox 2 ��C++ Դ���������� HLFS ���漯Ⱥ�����ȡ AJAX �վ����Լ��õ��������> DOM ������� Firefox �����HTTP ���ʽ����ⲿӦ��������� > > ����List Hunter ��Ⱥ���Firefox ����߶��ε��棬�������OpenResty > ����ϵ����ȥ��ɡ���Ӧ��������enResty ���������Ⱥ�ת���� List Hunter ��Ⱥ��û�ô���> Firefox ������ʹ���ǿ�Ժ��׵�������汾����������Ӷ�ʱ�����ٷ������������� > > ͬʱ List Hunter ��Ⱥ����ͨ�Ŀ�ĵģ�������Firefox ������Ⱥ��"�����֮����һ��� Firefox > ��"��Ⱥ��"����Ŀ�� > > �� Firefox ������������ͨ����� CPAN ��XUL::App ��õ������򻯣����Ӧ�����ijɱ���dz��͵ġ� > > =head1 ʹ� Firefox ��� > > =over > > =item ��� > Firefox ���缶��������Ϊ���������ḻ��Internet �ͻ����һ������֮�Ϊ��������������һ��ķḻ�������� > AJAX ���������������� > > Firefox ���UL ��chrome JS ����IJ�������չ���ʵ���Firefox ��������������ͬʱ��Gecko > ���PCOM �����ʽ�ģ���˿�Ժ��׵��� C/C++/Java ������� XPCOM �����Ȼ���JavaSscript > �������������avaScript ����� Perl һ��Ľ�ˮ����� > > ��� Gecko ֮��IJ� JavaScript ӵ���������� JS ��Է�ʴ��ļ�����Է���ͳ�������������ԭ���> XmlHttpRequest ��󷢳��AX ���� > > Firefox �������汾�ķ������Ϸ���ı仯��Firefox 3.1 ���Gecko ��������Ⱦͱ�3.0 ��Ŀ��ü������� List Hunter �ع������benchmark ����ǰ�Ϊƽ��ms����򳤴�00+ ms������Firefox 3.1 � > TraceMonkey ��JIT ֧�ֵ���û���t Hunter ���JS ������������� > > �� JS д��Firefox ������Win32/Linux/Mac > ���������װ������������༭�������ͨ�Ϊϸ�ڣ�����ʾ������������������ C++ ���������ļ�����IJ��֡� > > =item ȱ�� > Firefox ����������� Google Chrome �� Safari �����Webkit > ������ȡ���ζ������Ƚ��ڶ�Firefox > �����IJü�޷������һЩ�Ƚϴ���������Ҳ��ѽ������һ������������������Ȼ���SpiderMonkey ��������һ���� > > =back > > =head1 AUTHOR > > ���� (agentzh) C<< >> > > =head1 LICENSE > > Copyright (c) 2007-2008, Yahoo! China EEEE Works, Alibaba Inc. All rights > reserved. > > Redistribution and use in source and binary forms, with or without > modification, are permitted provided that the following conditions are met: > > =over > > =item * > > Redistributions of source code must retain the above copyright notice, this > list of conditions and the following disclaimer. > > =item * > > Redistributions in binary form must reproduce the above copyright notice, > this list of conditions and the following disclaimer in the documentation > and/or other materials provided with the distribution. > > =item * > > Neither the name of the Yahoo! China EEEE Works, Alibaba Inc. nor the names > of its contributors may be used to endorse or promote products derived from > this software without specific prior written permission. > > =back > > THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" > AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE > IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE > ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE > LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR > CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF > SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS > INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN > CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) > ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE > POSSIBILITY OF SUCH DAMAGE. > > > _______________________________________________ > China-pm mailing list > China-pm at pm.org > http://mail.pm.org/mailman/listinfo/china-pm > -- >: ~ -------------- next part -------------- An HTML attachment was scrubbed... URL: From agentzh at gmail.com Thu Dec 25 00:10:26 2008 From: agentzh at gmail.com (agentzh) Date: Thu, 25 Dec 2008 16:10:26 +0800 Subject: [PerlChina] =?utf-8?b?562U5aSNOiDlkITkvY3lnKPor57lv6vkuZDlk6Y=?= =?utf-8?b?77yB?= In-Reply-To: References: Message-ID: 2008/12/25 wbi 畢 > > 您太客气了 我水平有限 很多地方没能理解 但是收获不小 非常感谢 > ________________________________ 呵呵,纠正一处笔误: "因为在任意给定时刻,一个进程只能跑在一个核上,哪怕它是多线程的" 应作 "因为在任意给定时刻,一个 firefox 进程(哪怕有多个窗口里的 JS 在同时打满运行)只能跑在一个核上,因为它不是多 OS 线程的" -agentzh From agentzh at gmail.com Thu Dec 25 00:13:01 2008 From: agentzh at gmail.com (agentzh) Date: Thu, 25 Dec 2008 16:13:01 +0800 Subject: [PerlChina] =?gb2312?b?tPC4tDoguPfOu8qlta6/7MDWxbajoQ==?= In-Reply-To: <41143d8f0812250005h2f83d9acv40b4a7bbf59fbb56@mail.gmail.com> References: <41143d8f0812250005h2f83d9acv40b4a7bbf59fbb56@mail.gmail.com> Message-ID: 2008/12/25 Question : > 看得非常过瘾啊,对Yahoo有了新认识 :-) 谢谢 :) > 关于使用firefox3.1,我建议你们可以试一下fennec里自带的xulrunner,应该是1.9.2a1/2pre的,可能比3.1好一点? 嗯,我会试一下的,只要它足够稳定就上生产,呵呵 > 你们的分析是建立在DOM树的基础上?不知道你们的应用有没有根据重绘来判断页面热点或者类似的? 我不太了解这里的"重绘"方法,能否介绍一下?谢谢! > JIT可能没有打开chrome/content? 当然在 about:config 中都打开了,呵呵 > 没有完全咬文嚼字看完,回去再拜读! > 客气! Thanks! -agentzh From wanliyou at gmail.com Thu Dec 25 01:16:48 2008 From: wanliyou at gmail.com (Question) Date: Thu, 25 Dec 2008 17:16:48 +0800 Subject: [PerlChina] =?gb2312?b?tPC4tDoguPfOu8qlta6/7MDWxbajoQ==?= In-Reply-To: References: <41143d8f0812250005h2f83d9acv40b4a7bbf59fbb56@mail.gmail.com> Message-ID: <41143d8f0812250116l3e46f51ftd66df8eeea6a8e87@mail.gmail.com> 2008/12/25 agentzh > 2008/12/25 Question : > > 看得非常过瘾啊,对Yahoo有了新认识 :-) > > 谢谢 :) > > > 关于使用firefox3.1,我建议你们可以试一下fennec里自带的xulrunner,应该是1.9.2a1/2pre的,可能比3.1好一点? > > 嗯,我会试一下的,只要它足够稳定就上生产,呵呵 > > > 你们的分析是建立在DOM树的基础上?不知道你们的应用有没有根据重绘来判断页面热点或者类似的? > > 我不太了解这里的"重绘"方法,能否介绍一下?谢谢! 推荐您看看这个: https://developer.mozilla.org/web-tech/2008/10/13/mozafterpaint/ 一步步跟下去就有精彩的了,我记得有个extension有相关代码,不记得名字了,可以挖出来看看,不会很复杂的. > > > JIT可能没有打开chrome/content? > > 当然在 about:config 中都打开了,呵呵 > > > 没有完全咬文嚼字看完,回去再拜读! > > > > 客气! > > Thanks! > -agentzh > _______________________________________________ > China-pm mailing list > China-pm at pm.org > http://mail.pm.org/mailman/listinfo/china-pm > -- >: ~ -------------- next part -------------- An HTML attachment was scrubbed... URL: From agentzh at gmail.com Thu Dec 25 01:24:06 2008 From: agentzh at gmail.com (agentzh) Date: Thu, 25 Dec 2008 17:24:06 +0800 Subject: [PerlChina] =?gb2312?b?tPC4tDoguPfOu8qlta6/7MDWxbajoQ==?= In-Reply-To: <41143d8f0812250116l3e46f51ftd66df8eeea6a8e87@mail.gmail.com> References: <41143d8f0812250005h2f83d9acv40b4a7bbf59fbb56@mail.gmail.com> <41143d8f0812250116l3e46f51ftd66df8eeea6a8e87@mail.gmail.com> Message-ID: 2008/12/25 Question : > > 推荐您看看这个: > https://developer.mozilla.org/web-tech/2008/10/13/mozafterpaint/ > 一步步跟下去就有精彩的了,我记得有个extension有相关代码,不记得名字了,可以挖出来看看,不会很复杂的. > Wow. It's awesome! MAN!!! THANKS!!! We'll definitely abuse it! -agentzh From jacky.xu at serversupport.cn Thu Dec 25 05:58:20 2008 From: jacky.xu at serversupport.cn (Jacky Xu) Date: Thu, 25 Dec 2008 21:58:20 +0800 Subject: [PerlChina] =?gb2312?b?tPC4tDoguPfOu8qlta6/7MDWxbajoQ==?= In-Reply-To: References: Message-ID: <1230213500.7152.3.camel@jacky-laptop> <-- http://svn.openfoundry.org/xulapp/trunk/demo/ListHunter/misc/Proc-Harness/ Proc::Harness 会像 lighttpd 的 Fastcgi server 一样,维护一组指定数目的进 程(通过 CPAN 上的 Proc::Simple 模块)。当子进程挂掉后立即重启,或者当子 进程的 stderr/stdout 输出不再变化一段时限之后也杀之重启。Proc::Harness 脚本自身则是挂在了 deamontools 之下。 --> 貌似这个我有需求,监控进程,丢失后立刻重启 在 2008-12-25四的 15:13 +0800,agentzh写道: > 2008/12/25 wbi 畢 > > > > Firefox 3.1 集群 是怎么个原理啊 能给介绍介绍不? > > =head1 NAME > > List Hunter cluster - 这个是我们自己基于 Mozilla Firefox 3.1 做的深抓 > 爬虫集群,名为 List Hunter 集群。目前是我们公司生活搜索引擎的一部分。 > > =head1 背景 > > 在我们的生活搜索项目中,需要对网页进行深层次的识别和抽取。基于文本内容 > 的分类我们目前采用的是美国雅虎基于最大熵的 DCP 系统。而对于网页结构方 > 面的分类(即这个网页是列表页呢,还是详情页?),以及主体链接列表、主体 > 区域抽取,则一直缺乏比较好的解决方案。我的同事尝试过通过纯粹的结构化的 > 方法(如海维算法)进行识别,准确率只有 60%,而基于 SVM 这样的机器学习 > 的方法,对网页类型比较敏感,如目标网页与训练集相差较多,则准确率迅速下 > 降。 > > 于是我尝试把网页显示时的视觉信息结合到海维算法以及块合并算法中。于是准 > 确率和召回率分别达到了 90% 和 80%。这里的视觉信息主要包括一个网页区域 > 的大小、形状、和在整个页面中的位置。更多的信息还包括字体、颜色等等。这 > 样,便诞生了 List Hunter 插件。于是如何将 Firefox 插件做成一个大规模的 > 集群用于生产,便成为了重要问题。 > > 在下面这篇 blog 文章中我介绍了更多背景方面的细节以及 List Hunter 插件 > 本身的情况: > > http://blog.agentzh.org/#post-97 > > =head1 集群的结构 > > 该集群由四大部分组成:纯 Firefox 集群,Apache + mod_proxy + > mod_disk_cache 集群,curl 预取器集群,和 OpenResty 集群。一共有十几台 > 生产机"全职"或者"兼职"地参与了这个集群。下面逐一介绍一下哈: > > =over > > =item 纯 Firefox 集群 > > 纯 Firefox 集群目前由 8 台 4 核的 redhat5 生产机组成。每台生产机运行 3 > 个 Firefox 3.1 进程实例。因为那 8 台机器同时服务于淘宝 VIP 搜索的商口 > 图片显示接口(大约 600 万日 PV),所以我们没敢在这些机器上运行比较多的 > Firefox 进程。 > > 需要指出的是,Firefox 默认是"进程复用"的运行方式。即启动多次 > firefox-bin 可执行程序,其实得到的还是单个 Firefox 进程。这种进程复用 > 方式无法充分利用生产机的多核 CPU。因为在任意给定时刻,一个进程只能跑在 > 一个核上,哪怕它是多线程的。为了让 Firefox 以多进程方式运行,需要: > > =over > > =item 1. > > 在调用 firefox-bin 程序时指定 -no-remote 命令行选项,或者设置环境变量 > MOZ_NO_REMOTE=1 > > =item 2. > > 以不同的 profile 运行不同的 firefox-bin 进程(利用 -P 命令行选项)。 > > =back > > 我们平常看到的 Firefox 的主窗口并不启动,而以 chrome 方式单独运行 List > Hunter 插件的界面,例如: > > firefox -chrome chrome://listhunter/content/crawler.xul -P > crawler2 -no-remote > > 以 chrome 方式运行的插件与 XULRunner 方式运行的 XUL 应用是很类似的。 > > 由于 Firefox 3.1 还没有正式发布,我直接 checkout 官方 Mercurial 源码仓 > 库内的最新版本,自己在我们的 redhat 生产机上编译的。我们目前几乎没有修 > 改官方的 C++ 源代码,为了方便和官方版本保持同步。我们目前使用的是下面 > 的 firefox 编译选项: > > # My .mozconfig > mk_add_options MOZ_MAKE_FLAGS="-j2" > mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/ff-opt > ac_add_options --enable-crypto --enable-feeds > --disable-profilesharing --enable-rdf --enable-zipwriter > --disable-tests --disable-gnomeui --disable-cookies --disable-canvas > --disable-gnomeui --disable-inspector-apis --disable-mailnews > --disable-mathml --disable-official-branding > --enable-plaintext-editor-only --disable-postscript --disable-printing > --disable-profilelocking --disable-safe-browsing > --disable-startup-notification --disable-svg > --disable-svg-foreignobject --disable-updater --disable-javaxpcom > --disable-plugins --disable-crashreporter --disable-tests > --disable-debug --enable-application=browser --build=i686-linux > --disable-jsd --disable-ldap --enable-strip --disable-accessibility > --disable-ogg --disable-dbus --disable-freetype2 --disable-optimize > > 这里能禁用的功能我们都禁用了,这里的 feeds, rdf, crypto 这三个都不能 > disable,否则源码编译不通过,会报一些 .h 头文件找不到,呵 > 呵。--disable-ogg 实际上也不起作用,但网上的材料看曾经有效过,呵呵。 > > 事实上,目前我们还是给官方的源码打了一个 C++ 补丁,用于将 Error > Console 中的 Errors 重定向到 stderr,这样方便我们在集群环境下通过 > Firefox 进程的 log 文件捕捉和诊断一些异常。目前的补丁是下面这个样子: > > http://agentzh.org/misc/191src.patch.txt > > 值得一提的是,Firefox 进程本身是"无头"的,即它运行在 Xvfb 这个 X > server 之上,只在内存里执行渲染,而不需要任何显示硬件的存在。这些 > Firefox 进程本身是挂在我们自己的一个 Perl 写的进程监控脚本之下。该脚本 > 来自我们的 Proc::Harness 模块: > > > http://svn.openfoundry.org/xulapp/trunk/demo/ListHunter/misc/Proc-Harness/ > > Proc::Harness 会像 lighttpd 的 Fastcgi server 一样,维护一组指定数目的 > 进程(通过 CPAN 上的 Proc::Simple 模块)。当子进程挂掉后立即重启,或者 > 当子进程的 stderr/stdout 输出不再变化一段时限之后也杀之重启。 > Proc::Harness 脚本自身则是挂在了 deamontools 之下。 > > 这些 Firefox 进程受安装在其中的 List Hunter 插件的完全控制。它们都是高 > 度自治的 robot。它们内部有一个处理循环,一批一批地从 OpenResty 的 web > service 接口取到 URL 任务,然后一个一个地在 Firefox 的 browser 组件里 > 加载和分析,最后把分析到的结果一批一批地通过 OpenResty 提交之。 > > =item curl 预取爬虫集群与 Apache mod_proxy 集群 > > 该集群目前布署了 6 台双核的 redhat4 生产机。每台机器都安装了两个集群组 > 件,一是预取器,一是 Apache mod_proxy. 预取器的作用是通过 curl (准确 > 地说是 WWW::Curl 模块)将网页的 HTML 和 CSS 通过 mod_proxy 预取一遍, > 这样这些请求的结果就可以在 mod_proxy 中通过 mod_disk_cache 缓存住。于 > 是当纯 Firefox 集群再通过 mod_proxy 去抓这些 URL 时,mod_proxy 就可以 > 直接把缓存后的结果直接返回给 Firefox 了。 > > 预取器和 Firefox 进程是同时工作的,但对于一个 URL 任务而言,只有通过预 > 取器预取过之后,Firefox 进程才会进行处理。所以实际构成了一个两道工序的 > 流水线。这种调度是由 OpenResty 集群来完成的。 > > 预取器目前是以一个叫为 WWW::Prefetcher 的 Perl 模块的形式来实现的: > > > http://svn.openfoundry.org/xulapp/trunk/demo/ListHunter/misc/WWW-Prefetcher/ > > 虽然 mod_cache 提供了许多选项,但其缓存行为还是比较遵守 RFC 的 cache > 要求的。因此我对 mod_cache 模块进行了许多修改,使之可以无条件地缓存住 > 请求过的所有网页,而不论其 URL 是否有 querystring,也不论其 response > header 中的要求是什么。我们对最新的 httpd 2.2.11 的补丁如下: > > http://agentzh.org/misc/httpd-2.2.11.patch.txt > > 特别地,mod_disk_cache 指向的不是磁盘目录,而是 RAM 中开辟的 tmpfs 分 > 区。由于我们这 6 台机器都是很旧的 IDE 硬盘,因此直接用磁盘作 cache 存 > 储时,高并发条件下,每台机器的 load 都在 20 以上,根本无法忍受。后来换 > 为 tmpfs 结果 htcacheclean 工具之后,机器负载就降到 0.1 以下了。 > > =item OpenResty集群 > > 由于 OpenResty 的通用性,我们直接复用了同时服务于 yahoo.cn 和口碑网的 > 那个生产集群,(3 台 FastCGI 前端机和1 台 PL/Proxy 机器),所以我就没 > 有布署新的机器。在服务于 Firefox 集群的 OpenResty 接口中通过 View API > 暴露了若干的 PostgreSQL 函数,以完成整个 List Hunter 集群的任务调度和 > 结果汇总。目前的实现中,我们通过 Pg 的 sequence 摸拟了一种循环任务队 > 列,并通过计数器完成流水线中两道工序之间的相对同步。 > > 相关的 Pg 函数、sequence、以及索引的定义在这里: > > > http://svn.openfoundry.org/xulapp/trunk/demo/ListHunter/misc/init-db.sql > > 相关的 OpenResty 对象的定义则在这里: > > > http://svn.openfoundry.org/xulapp/trunk/demo/ListHunter/misc/init-resty.pl > > =back > > =head1 集群的性能 > > 集群目前每小时的产出稳定在 10 万网页以上,一天的产出在 240 万以上。 > Firefox 机器的负载在 3 左右,Proxy 的负载在 0.1 以下。 > > JS 基准测试显示 Firefox 3.1 加载一个页面的平均延时是 200 ~ 300 ms,机 > 房间的网络延时在 10 ~ 20 ms(因为网页已被 mod_cache 缓存住,故无到外网 > 的网络开销), List Hunter 插件的 DOM 分析代码的用时在 200 ~ 300 ms。其 > 他 OpenResty 开销再计入,大约 1 sec 处理一个页面。 > > =head1 已知瓶颈和缺陷 > > 当 OpenResty 中的 URL 任务表的行数超过 100 ~ 200 万时,调度查询容易超 > 过 PL/Proxy 的 10 秒限制。因此,我们目前采取"流式"的任务导入和导出方 > 式。通过 cronjob 定期地向库中导入任务,并同时把完成了的任务及时移出。 > > Apache 的 mod_proxy 在高并发条件下不够稳定,而且限于 Apache 自身的体系 > 结构,无法实现 proxy pipelining. 因此计划在未来集群规模进一步扩大时, > 改用 Squid. 当然了,Squid 很可能也需要进行修改才能满足我们这里的强制缓 > 存一段指定时间的需求。 > > 同时,受限于 Apache mod_cache 后端的非分布式,代理服务器的调度是在 > Firefox 进程和 curl 预取进程中完成的,导致前端代码比较复杂,还带来了代 > 理服务器列表的定时同步问题。因此,未来可以考虑为 Apache mod_cache 或者 > Squid 添加 memcached 缓存后端的支持。这样代理前端的多台服务器可以实现 > 对集群内其他部件的"透明化"。 > > =head1 TODO > > =over > > =item 1. > > 换用 Squid + memcached 作为缓存用正向代理 > > =item 2. > > 通过 XULRunner 而非 firefox -chrome 方式运行 List Hunter 插件。(需要 > 为我的 XUL::App 框架添加 XULRunner 支持) > > =back > > =head1 与相似产品的异同 > > 美国雅虎通过大量修改 Firefox 2 的 C++ 源代码,开发了叫为 HLFS 的爬虫集 > 群,用于爬取 AJAX 网站的内容以及得到带有视觉信息的 DOM 树。他们将 > Firefox 进程做成了 HTTP 代理的形式,对外部应用提供服务。 > > 而我们的 List Hunter 集群中的 Firefox 进程则是高度自治的爬虫,它们自己 > 从 OpenResty 中不断地批量取任务去完成。而外部应用则是批量地向 > OpenResty 导入任务来让集群运转。由于 List Hunter 集群并没怎么修改 > Firefox 的源代码,这使得我们可以很容易地与官方最新版本保持同步,从而第 > 一时享受到官方优化带来的众多好处。 > > 同时 List Hunter 集群本身是通用目的的,它可以作为各种 Firefox 插件 > 的"集群容器"。换言之,这是一种将 Firefox 插件"集群化"的完整的框架。 > > 由于 Firefox 插件开发本身已经通过我发布到 CPAN 的 XUL::App 框架得到了 > 极大的简化,所以响应新的需求的成本是非常低的。 > > =head1 使用 Firefox 的利与弊 > > =over > > =item 优点 > > Firefox 是世界级的浏览器。作为最复杂功能最丰富的 Internet 客户端之一, > 我们将之作为爬虫可以享受到和最终用户一样的丰富功能,无论是 AJAX 还是视 > 觉信息都不是问题。 > > Firefox 有基于 XUL 和 chrome JS 的灵活的插件机制,极易扩展。事实上, > Firefox 主界面自身就是一个大插件。同时,Gecko 是基于 XPCOM 组件方式 > 的,因此可以很容易地使用 C/C++/Java 等语言开发 XPCOM 组件,然后再用 > JavaSscript 把它们粘合在一起。于是乎,JavaScript 成为了像 Perl 一样的 > 胶水类语言。 > > 运行于 Gecko 之上的插件 JavaScript 拥有最高权限,这种 JS 可以访问磁盘 > 文件,可以访问系统环境变量,可以使用原生的 XmlHttpRequest 对象发出跨域 > AJAX 请求。 > > Firefox 的性能随着新版本的发布总会有戏剧性的变化。Firefox 3.1 中的 > Gecko 引擎的渲染速度就比 3.0 中的快了好几倍(根据 List Hunter 回归测试 > 集的 benchmark 结果,前者为平均 60 ms,后者则长达 200+ ms)。(Firefox > 3.1 中 TraceMonkey 的 JIT 支持倒并没有给 List Hunter 中的 JS 带来可测 > 量的性能提升。) > > 纯 JS 写的 Firefox 插件可以在 Win32/Linux/Mac 多种操作系统上即装即用, > 所以方便和编辑及产品经理沟通行为细节,方便演示。如若计算过于复杂,亦可 > 使用 C++ 语言改写插件中的计算密集的部分。 > > =item 缺点 > > Firefox 是高耦合的软件,这与 Google Chrome 及 Safari 浏览器的核心 > Webkit 形成了鲜明对比。这意味着,我们比较难于对 Firefox 进行深层次的裁 > 剪,无法轻易地免除一些比较大的功能部件,也很难将其中的某一个大部件剥出 > 来单独使用(当然了,SpiderMonkey 是少数几个例外之一)。 > > =back > > =head1 AUTHOR > > 章亦春 (agentzh) C<< >> > > =head1 LICENSE > > Copyright (c) 2007-2008, Yahoo! China EEEE Works, Alibaba Inc. All > rights reserved. > > Redistribution and use in source and binary forms, with or without > modification, are permitted provided that the following conditions are > met: > > =over > > =item * > > Redistributions of source code must retain the above copyright notice, > this list of conditions and the following disclaimer. > > =item * > > Redistributions in binary form must reproduce the above copyright > notice, this list of conditions and the following disclaimer in the > documentation and/or other materials provided with the distribution. > > =item * > > Neither the name of the Yahoo! China EEEE Works, Alibaba Inc. nor the > names of its contributors may be used to endorse or promote products > derived from this software without specific prior written permission. > > =back > > THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS > "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT > LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR > A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT > OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, > SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT > LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, > DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY > THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT > (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE > OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. > > _______________________________________________ > China-pm mailing list > China-pm at pm.org > http://mail.pm.org/mailman/listinfo/china-pm From cnhacktnt at gmail.com Thu Dec 25 21:38:07 2008 From: cnhacktnt at gmail.com (cnhack TNT) Date: Fri, 26 Dec 2008 13:38:07 +0800 Subject: [PerlChina] =?gb2312?b?x+vOytPQyrLDtLHjvd21xLe9t6jU2MjremlwsPw=?= =?gb2312?b?wO+1xL/io78=?= In-Reply-To: References: <95ca1530812241947g52208fcds335dcc0723b81cf8@mail.gmail.com> <95ca1530812242105j6155a888w2b9c9382c60918f6@mail.gmail.com> Message-ID: 呵呵,用 PAR 应该满足你的要求,只是不知道你的服务器空间是否有 PAR,或者支持自己安装 PAR 模块 2008/12/25 agentzh > 2008/12/25 Luo Yong > >> 多谢, >> >> >> 这个方法大概是最好的方法了,不过感觉Java的那种用JAR文件封装类库的方法很方便,但是在perl上暂时没办法实现,不知道perl6里有没有类似的功能。 >> >> > CPAN 上有一个叫做 pp 的工具可以把 Perl 5 类库封成 PAR 文件 ;) > > 基于 parrot 的 Perl 6 中可以在字节码级别进行联编,就更方便了 ;) > > -agentzh > > _______________________________________________ > China-pm mailing list > China-pm at pm.org > http://mail.pm.org/mailman/listinfo/china-pm > -------------- next part -------------- An HTML attachment was scrubbed... URL: From fancy.yan at freeborders.com Thu Dec 25 23:36:43 2008 From: fancy.yan at freeborders.com (fancy yan) Date: Fri, 26 Dec 2008 15:36:43 +0800 Subject: [PerlChina] Greeting from Freeborders Message-ID: <6FD13BACB8C342CDBA6E66EF9692A8F7@china.freeborders> Hi, I hope this message finds you well. This is Fancy from Freeborders recruiting team. We are interviewing to hire a Sr. Lamp Engineer in Shenzhen. Feeborders is one of the fastest growing firms in the leading provider of technology solutions and outsourcing from China; “Top five to watch in China, 2006” and “Top Ten to Watch in Asia, 2007”. We received an Outsourcing Excellence Award from Forbes Magazine 2006. We were also named one of the world's 50 best managed vendors by "The Black Book of Outsourcing." Freeborders is headquartered in San Francisco with project team locations in Europe, Asia & US. We have offices in San Francisco, New York, Hong Kong, Shenzhen and Montreal. We offer a competitive compensation, paid vacations, and employee health benefits. Great career advance opportunities. Pls call or email me back if any interest. My msn is yanjing112 at hotmail.com Sr. LAMP Engineer Familiar with design patterns Over 4 years Web Development experience Strong Linux, Apache, MySql, and Perl (PHP) experience - Understanding of request / response phase processing - Practical experience with MVC architecture - Hands-on experience developing highly-scalable, multi-tiered web sites - HTML, CSS, Javascript, DHTML, JSON and AJAX skills required - Ability to debug complex web applications in a distributed environment - Familiar with browser compatibility issues - Willing to learn Perl is a requirement Linux and Open Source Technologies - Good working knowledge of GNU/Linux and other Open Source technologies - Apache Web Server (mod_perl a huge plus) - MySQL 5.x Series Familiarity with RDBMS - Understanding of ACID compliance - Stored Procedures - Dynamic SQL generation - MySQL and Oracle a plus Service Oriented Architecture - Knowledge of SOA and its applications - SOAP, WSDL, XMLRPC Software Development Process - At least 3 years experience with any major software development methodology - Easily comprehend design and architecture documents - Ability to write clear documentation - Experience with cross-site development General Skills - Ability to learn quickly and think on your feet - Willing to learn new or unfamiliar programming languages and technologies - Excellent communication skills Fancy Yan Recruiting Specialist Freeborders 10/F, Sci. & Tech. Park Building No.6, Keyuan Road, Sci. & Tech Industry Park, Nanshan District, Shenzhen, China 518057 office: (86)(755) 26504678 fax: (86)(755) 26504768 fancy.yan at freeborders.com www.freeborders.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From lamp.purl at gmail.com Fri Dec 26 01:38:21 2008 From: lamp.purl at gmail.com (joe jiang) Date: Fri, 26 Dec 2008 17:38:21 +0800 Subject: [PerlChina] =?utf-8?b?562U5aSNOiDlkITkvY3lnKPor57lv6vkuZDlk6Y=?= =?utf-8?b?77yB?= In-Reply-To: <1230213500.7152.3.camel@jacky-laptop> References: <1230213500.7152.3.camel@jacky-laptop> Message-ID: <1230284301.5106.4.camel@flatpan> 刚刚发现错过了 infoQ 的一篇不错的文章。 http://www.infoq.com/cn/news/2008/12/CPAN-Win32 非常适合作为 CPAN 作者的圣诞节礼物 :) On 四, 2008-12-25 at 21:58 +0800, Jacky Xu wrote: > <-- > http://svn.openfoundry.org/xulapp/trunk/demo/ListHunter/misc/Proc-Harness/ > > Proc::Harness 会像 lighttpd 的 Fastcgi server 一样,维护一组指定数目的进 > 程(通过 CPAN 上的 Proc::Simple 模块)。当子进程挂掉后立即重启,或者当子 > 进程的 stderr/stdout 输出不再变化一段时限之后也杀之重启。Proc::Harness > 脚本自身则是挂在了 deamontools 之下。 --> > > 貌似这个我有需求,监控进程,丢失后立刻重启 > > > 在 2008-12-25四的 15:13 +0800,agentzh写道: > > 2008/12/25 wbi 畢 > > > > > > Firefox 3.1 集群 是怎么个原理啊 能给介绍介绍不? > > > > =head1 NAME > > > > List Hunter cluster - 这个是我们自己基于 Mozilla Firefox 3.1 做的深抓 > > 爬虫集群,名为 List Hunter 集群。目前是我们公司生活搜索引擎的一部分。 > > > > =head1 背景 > > > > 在我们的生活搜索项目中,需要对网页进行深层次的识别和抽取。基于文本内容 > > 的分类我们目前采用的是美国雅虎基于最大熵的 DCP 系统。而对于网页结构方 > > 面的分类(即这个网页是列表页呢,还是详情页?),以及主体链接列表、主体 > > 区域抽取,则一直缺乏比较好的解决方案。我的同事尝试过通过纯粹的结构化的 > > 方法(如海维算法)进行识别,准确率只有 60%,而基于 SVM 这样的机器学习 > > 的方法,对网页类型比较敏感,如目标网页与训练集相差较多,则准确率迅速下 > > 降。 > > > > 于是我尝试把网页显示时的视觉信息结合到海维算法以及块合并算法中。于是准 > > 确率和召回率分别达到了 90% 和 80%。这里的视觉信息主要包括一个网页区域 > > 的大小、形状、和在整个页面中的位置。更多的信息还包括字体、颜色等等。这 > > 样,便诞生了 List Hunter 插件。于是如何将 Firefox 插件做成一个大规模的 > > 集群用于生产,便成为了重要问题。 > > > > 在下面这篇 blog 文章中我介绍了更多背景方面的细节以及 List Hunter 插件 > > 本身的情况: > > > > http://blog.agentzh.org/#post-97 > > > > =head1 集群的结构 > > > > 该集群由四大部分组成:纯 Firefox 集群,Apache + mod_proxy + > > mod_disk_cache 集群,curl 预取器集群,和 OpenResty 集群。一共有十几台 > > 生产机"全职"或者"兼职"地参与了这个集群。下面逐一介绍一下哈: > > > > =over > > > > =item 纯 Firefox 集群 > > > > 纯 Firefox 集群目前由 8 台 4 核的 redhat5 生产机组成。每台生产机运行 3 > > 个 Firefox 3.1 进程实例。因为那 8 台机器同时服务于淘宝 VIP 搜索的商口 > > 图片显示接口(大约 600 万日 PV),所以我们没敢在这些机器上运行比较多的 > > Firefox 进程。 > > > > 需要指出的是,Firefox 默认是"进程复用"的运行方式。即启动多次 > > firefox-bin 可执行程序,其实得到的还是单个 Firefox 进程。这种进程复用 > > 方式无法充分利用生产机的多核 CPU。因为在任意给定时刻,一个进程只能跑在 > > 一个核上,哪怕它是多线程的。为了让 Firefox 以多进程方式运行,需要: > > > > =over > > > > =item 1. > > > > 在调用 firefox-bin 程序时指定 -no-remote 命令行选项,或者设置环境变量 > > MOZ_NO_REMOTE=1 > > > > =item 2. > > > > 以不同的 profile 运行不同的 firefox-bin 进程(利用 -P 命令行选项)。 > > > > =back > > > > 我们平常看到的 Firefox 的主窗口并不启动,而以 chrome 方式单独运行 List > > Hunter 插件的界面,例如: > > > > firefox -chrome chrome://listhunter/content/crawler.xul -P > > crawler2 -no-remote > > > > 以 chrome 方式运行的插件与 XULRunner 方式运行的 XUL 应用是很类似的。 > > > > 由于 Firefox 3.1 还没有正式发布,我直接 checkout 官方 Mercurial 源码仓 > > 库内的最新版本,自己在我们的 redhat 生产机上编译的。我们目前几乎没有修 > > 改官方的 C++ 源代码,为了方便和官方版本保持同步。我们目前使用的是下面 > > 的 firefox 编译选项: > > > > # My .mozconfig > > mk_add_options MOZ_MAKE_FLAGS="-j2" > > mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/ff-opt > > ac_add_options --enable-crypto --enable-feeds > > --disable-profilesharing --enable-rdf --enable-zipwriter > > --disable-tests --disable-gnomeui --disable-cookies --disable-canvas > > --disable-gnomeui --disable-inspector-apis --disable-mailnews > > --disable-mathml --disable-official-branding > > --enable-plaintext-editor-only --disable-postscript --disable-printing > > --disable-profilelocking --disable-safe-browsing > > --disable-startup-notification --disable-svg > > --disable-svg-foreignobject --disable-updater --disable-javaxpcom > > --disable-plugins --disable-crashreporter --disable-tests > > --disable-debug --enable-application=browser --build=i686-linux > > --disable-jsd --disable-ldap --enable-strip --disable-accessibility > > --disable-ogg --disable-dbus --disable-freetype2 --disable-optimize > > > > 这里能禁用的功能我们都禁用了,这里的 feeds, rdf, crypto 这三个都不能 > > disable,否则源码编译不通过,会报一些 .h 头文件找不到,呵 > > 呵。--disable-ogg 实际上也不起作用,但网上的材料看曾经有效过,呵呵。 > > > > 事实上,目前我们还是给官方的源码打了一个 C++ 补丁,用于将 Error > > Console 中的 Errors 重定向到 stderr,这样方便我们在集群环境下通过 > > Firefox 进程的 log 文件捕捉和诊断一些异常。目前的补丁是下面这个样子: > > > > http://agentzh.org/misc/191src.patch.txt > > > > 值得一提的是,Firefox 进程本身是"无头"的,即它运行在 Xvfb 这个 X > > server 之上,只在内存里执行渲染,而不需要任何显示硬件的存在。这些 > > Firefox 进程本身是挂在我们自己的一个 Perl 写的进程监控脚本之下。该脚本 > > 来自我们的 Proc::Harness 模块: > > > > > > http://svn.openfoundry.org/xulapp/trunk/demo/ListHunter/misc/Proc-Harness/ > > > > Proc::Harness 会像 lighttpd 的 Fastcgi server 一样,维护一组指定数目的 > > 进程(通过 CPAN 上的 Proc::Simple 模块)。当子进程挂掉后立即重启,或者 > > 当子进程的 stderr/stdout 输出不再变化一段时限之后也杀之重启。 > > Proc::Harness 脚本自身则是挂在了 deamontools 之下。 > > > > 这些 Firefox 进程受安装在其中的 List Hunter 插件的完全控制。它们都是高 > > 度自治的 robot。它们内部有一个处理循环,一批一批地从 OpenResty 的 web > > service 接口取到 URL 任务,然后一个一个地在 Firefox 的 browser 组件里 > > 加载和分析,最后把分析到的结果一批一批地通过 OpenResty 提交之。 > > > > =item curl 预取爬虫集群与 Apache mod_proxy 集群 > > > > 该集群目前布署了 6 台双核的 redhat4 生产机。每台机器都安装了两个集群组 > > 件,一是预取器,一是 Apache mod_proxy. 预取器的作用是通过 curl (准确 > > 地说是 WWW::Curl 模块)将网页的 HTML 和 CSS 通过 mod_proxy 预取一遍, > > 这样这些请求的结果就可以在 mod_proxy 中通过 mod_disk_cache 缓存住。于 > > 是当纯 Firefox 集群再通过 mod_proxy 去抓这些 URL 时,mod_proxy 就可以 > > 直接把缓存后的结果直接返回给 Firefox 了。 > > > > 预取器和 Firefox 进程是同时工作的,但对于一个 URL 任务而言,只有通过预 > > 取器预取过之后,Firefox 进程才会进行处理。所以实际构成了一个两道工序的 > > 流水线。这种调度是由 OpenResty 集群来完成的。 > > > > 预取器目前是以一个叫为 WWW::Prefetcher 的 Perl 模块的形式来实现的: > > > > > > http://svn.openfoundry.org/xulapp/trunk/demo/ListHunter/misc/WWW-Prefetcher/ > > > > 虽然 mod_cache 提供了许多选项,但其缓存行为还是比较遵守 RFC 的 cache > > 要求的。因此我对 mod_cache 模块进行了许多修改,使之可以无条件地缓存住 > > 请求过的所有网页,而不论其 URL 是否有 querystring,也不论其 response > > header 中的要求是什么。我们对最新的 httpd 2.2.11 的补丁如下: > > > > http://agentzh.org/misc/httpd-2.2.11.patch.txt > > > > 特别地,mod_disk_cache 指向的不是磁盘目录,而是 RAM 中开辟的 tmpfs 分 > > 区。由于我们这 6 台机器都是很旧的 IDE 硬盘,因此直接用磁盘作 cache 存 > > 储时,高并发条件下,每台机器的 load 都在 20 以上,根本无法忍受。后来换 > > 为 tmpfs 结果 htcacheclean 工具之后,机器负载就降到 0.1 以下了。 > > > > =item OpenResty集群 > > > > 由于 OpenResty 的通用性,我们直接复用了同时服务于 yahoo.cn 和口碑网的 > > 那个生产集群,(3 台 FastCGI 前端机和1 台 PL/Proxy 机器),所以我就没 > > 有布署新的机器。在服务于 Firefox 集群的 OpenResty 接口中通过 View API > > 暴露了若干的 PostgreSQL 函数,以完成整个 List Hunter 集群的任务调度和 > > 结果汇总。目前的实现中,我们通过 Pg 的 sequence 摸拟了一种循环任务队 > > 列,并通过计数器完成流水线中两道工序之间的相对同步。 > > > > 相关的 Pg 函数、sequence、以及索引的定义在这里: > > > > > > http://svn.openfoundry.org/xulapp/trunk/demo/ListHunter/misc/init-db.sql > > > > 相关的 OpenResty 对象的定义则在这里: > > > > > > http://svn.openfoundry.org/xulapp/trunk/demo/ListHunter/misc/init-resty.pl > > > > =back > > > > =head1 集群的性能 > > > > 集群目前每小时的产出稳定在 10 万网页以上,一天的产出在 240 万以上。 > > Firefox 机器的负载在 3 左右,Proxy 的负载在 0.1 以下。 > > > > JS 基准测试显示 Firefox 3.1 加载一个页面的平均延时是 200 ~ 300 ms,机 > > 房间的网络延时在 10 ~ 20 ms(因为网页已被 mod_cache 缓存住,故无到外网 > > 的网络开销), List Hunter 插件的 DOM 分析代码的用时在 200 ~ 300 ms。其 > > 他 OpenResty 开销再计入,大约 1 sec 处理一个页面。 > > > > =head1 已知瓶颈和缺陷 > > > > 当 OpenResty 中的 URL 任务表的行数超过 100 ~ 200 万时,调度查询容易超 > > 过 PL/Proxy 的 10 秒限制。因此,我们目前采取"流式"的任务导入和导出方 > > 式。通过 cronjob 定期地向库中导入任务,并同时把完成了的任务及时移出。 > > > > Apache 的 mod_proxy 在高并发条件下不够稳定,而且限于 Apache 自身的体系 > > 结构,无法实现 proxy pipelining. 因此计划在未来集群规模进一步扩大时, > > 改用 Squid. 当然了,Squid 很可能也需要进行修改才能满足我们这里的强制缓 > > 存一段指定时间的需求。 > > > > 同时,受限于 Apache mod_cache 后端的非分布式,代理服务器的调度是在 > > Firefox 进程和 curl 预取进程中完成的,导致前端代码比较复杂,还带来了代 > > 理服务器列表的定时同步问题。因此,未来可以考虑为 Apache mod_cache 或者 > > Squid 添加 memcached 缓存后端的支持。这样代理前端的多台服务器可以实现 > > 对集群内其他部件的"透明化"。 > > > > =head1 TODO > > > > =over > > > > =item 1. > > > > 换用 Squid + memcached 作为缓存用正向代理 > > > > =item 2. > > > > 通过 XULRunner 而非 firefox -chrome 方式运行 List Hunter 插件。(需要 > > 为我的 XUL::App 框架添加 XULRunner 支持) > > > > =back > > > > =head1 与相似产品的异同 > > > > 美国雅虎通过大量修改 Firefox 2 的 C++ 源代码,开发了叫为 HLFS 的爬虫集 > > 群,用于爬取 AJAX 网站的内容以及得到带有视觉信息的 DOM 树。他们将 > > Firefox 进程做成了 HTTP 代理的形式,对外部应用提供服务。 > > > > 而我们的 List Hunter 集群中的 Firefox 进程则是高度自治的爬虫,它们自己 > > 从 OpenResty 中不断地批量取任务去完成。而外部应用则是批量地向 > > OpenResty 导入任务来让集群运转。由于 List Hunter 集群并没怎么修改 > > Firefox 的源代码,这使得我们可以很容易地与官方最新版本保持同步,从而第 > > 一时享受到官方优化带来的众多好处。 > > > > 同时 List Hunter 集群本身是通用目的的,它可以作为各种 Firefox 插件 > > 的"集群容器"。换言之,这是一种将 Firefox 插件"集群化"的完整的框架。 > > > > 由于 Firefox 插件开发本身已经通过我发布到 CPAN 的 XUL::App 框架得到了 > > 极大的简化,所以响应新的需求的成本是非常低的。 > > > > =head1 使用 Firefox 的利与弊 > > > > =over > > > > =item 优点 > > > > Firefox 是世界级的浏览器。作为最复杂功能最丰富的 Internet 客户端之一, > > 我们将之作为爬虫可以享受到和最终用户一样的丰富功能,无论是 AJAX 还是视 > > 觉信息都不是问题。 > > > > Firefox 有基于 XUL 和 chrome JS 的灵活的插件机制,极易扩展。事实上, > > Firefox 主界面自身就是一个大插件。同时,Gecko 是基于 XPCOM 组件方式 > > 的,因此可以很容易地使用 C/C++/Java 等语言开发 XPCOM 组件,然后再用 > > JavaSscript 把它们粘合在一起。于是乎,JavaScript 成为了像 Perl 一样的 > > 胶水类语言。 > > > > 运行于 Gecko 之上的插件 JavaScript 拥有最高权限,这种 JS 可以访问磁盘 > > 文件,可以访问系统环境变量,可以使用原生的 XmlHttpRequest 对象发出跨域 > > AJAX 请求。 > > > > Firefox 的性能随着新版本的发布总会有戏剧性的变化。Firefox 3.1 中的 > > Gecko 引擎的渲染速度就比 3.0 中的快了好几倍(根据 List Hunter 回归测试 > > 集的 benchmark 结果,前者为平均 60 ms,后者则长达 200+ ms)。(Firefox > > 3.1 中 TraceMonkey 的 JIT 支持倒并没有给 List Hunter 中的 JS 带来可测 > > 量的性能提升。) > > > > 纯 JS 写的 Firefox 插件可以在 Win32/Linux/Mac 多种操作系统上即装即用, > > 所以方便和编辑及产品经理沟通行为细节,方便演示。如若计算过于复杂,亦可 > > 使用 C++ 语言改写插件中的计算密集的部分。 > > > > =item 缺点 > > > > Firefox 是高耦合的软件,这与 Google Chrome 及 Safari 浏览器的核心 > > Webkit 形成了鲜明对比。这意味着,我们比较难于对 Firefox 进行深层次的裁 > > 剪,无法轻易地免除一些比较大的功能部件,也很难将其中的某一个大部件剥出 > > 来单独使用(当然了,SpiderMonkey 是少数几个例外之一)。 > > > > =back > > > > =head1 AUTHOR > > > > 章亦春 (agentzh) C<< >> > > > > =head1 LICENSE > > > > Copyright (c) 2007-2008, Yahoo! China EEEE Works, Alibaba Inc. All > > rights reserved. > > > > Redistribution and use in source and binary forms, with or without > > modification, are permitted provided that the following conditions are > > met: > > > > =over > > > > =item * > > > > Redistributions of source code must retain the above copyright notice, > > this list of conditions and the following disclaimer. > > > > =item * > > > > Redistributions in binary form must reproduce the above copyright > > notice, this list of conditions and the following disclaimer in the > > documentation and/or other materials provided with the distribution. > > > > =item * > > > > Neither the name of the Yahoo! China EEEE Works, Alibaba Inc. nor the > > names of its contributors may be used to endorse or promote products > > derived from this software without specific prior written permission. > > > > =back > > > > THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS > > "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT > > LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR > > A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT > > OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, > > SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT > > LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, > > DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY > > THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT > > (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE > > OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. > > > > _______________________________________________ > > China-pm mailing list > > China-pm at pm.org > > http://mail.pm.org/mailman/listinfo/china-pm > > _______________________________________________ > China-pm mailing list > China-pm at pm.org > http://mail.pm.org/mailman/listinfo/china-pm From smallfish at live.cn Fri Dec 26 01:40:57 2008 From: smallfish at live.cn (smallfish) Date: Fri, 26 Dec 2008 17:40:57 +0800 Subject: [PerlChina] =?utf-8?b?562U5aSNOiDlkITkvY3lnKPor57lv6vkuZDlk6Y=?= =?utf-8?b?77yB?= In-Reply-To: <1230213500.7152.3.camel@jacky-laptop> <1230284301.5106.4.camel@flatpan> References: <1230213500.7152.3.camel@jacky-laptop> <1230284301.5106.4.camel@flatpan> Message-ID: 昨天就看到咯,微软开始收拢人心了! -- blog : http://hi.baidu.com/smallfish7788 -------------------------------------------------- From: "joe jiang" Sent: Friday, December 26, 2008 5:38 PM To: ; Subject: Re: [PerlChina] 答复: 各位圣诞快乐哦! > 刚刚发现错过了 infoQ 的一篇不错的文章。 > http://www.infoq.com/cn/news/2008/12/CPAN-Win32 > > 非常适合作为 CPAN 作者的圣诞节礼物 :) > > On 四, 2008-12-25 at 21:58 +0800, Jacky Xu wrote: >> <-- >> http://svn.openfoundry.org/xulapp/trunk/demo/ListHunter/misc/Proc-Harness/ >> >> Proc::Harness 会像 lighttpd 的 Fastcgi server 一样,维护一组指定数目的进 >> 程(通过 CPAN 上的 Proc::Simple 模块)。当子进程挂掉后立即重启,或者当子 >> 进程的 stderr/stdout 输出不再变化一段时限之后也杀之重启。Proc::Harness >> 脚本自身则是挂在了 deamontools 之下。 --> >> >> 貌似这个我有需求,监控进程,丢失后立刻重启 >> >> >> 在 2008-12-25四的 15:13 +0800,agentzh写道: >> > 2008/12/25 wbi 畢 >> > > >> > > Firefox 3.1 集群 是怎么个原理啊 能给介绍介绍不? >> > >> > =head1 NAME >> > >> > List Hunter cluster - 这个是我们自己基于 Mozilla Firefox 3.1 做的深抓 >> > 爬虫集群,名为 List Hunter 集群。目前是我们公司生活搜索引擎的一部分。 >> > >> > =head1 背景 >> > >> > 在我们的生活搜索项目中,需要对网页进行深层次的识别和抽取。基于文本内容 >> > 的分类我们目前采用的是美国雅虎基于最大熵的 DCP 系统。而对于网页结构方 >> > 面的分类(即这个网页是列表页呢,还是详情页?),以及主体链接列表、主体 >> > 区域抽取,则一直缺乏比较好的解决方案。我的同事尝试过通过纯粹的结构化的 >> > 方法(如海维算法)进行识别,准确率只有 60%,而基于 SVM 这样的机器学习 >> > 的方法,对网页类型比较敏感,如目标网页与训练集相差较多,则准确率迅速下 >> > 降。 >> > >> > 于是我尝试把网页显示时的视觉信息结合到海维算法以及块合并算法中。于是准 >> > 确率和召回率分别达到了 90% 和 80%。这里的视觉信息主要包括一个网页区域 >> > 的大小、形状、和在整个页面中的位置。更多的信息还包括字体、颜色等等。这 >> > 样,便诞生了 List Hunter 插件。于是如何将 Firefox 插件做成一个大规模的 >> > 集群用于生产,便成为了重要问题。 >> > >> > 在下面这篇 blog 文章中我介绍了更多背景方面的细节以及 List Hunter 插件 >> > 本身的情况: >> > >> > http://blog.agentzh.org/#post-97 >> > >> > =head1 集群的结构 >> > >> > 该集群由四大部分组成:纯 Firefox 集群,Apache + mod_proxy + >> > mod_disk_cache 集群,curl 预取器集群,和 OpenResty 集群。一共有十几台 >> > 生产机"全职"或者"兼职"地参与了这个集群。下面逐一介绍一下哈: >> > >> > =over >> > >> > =item 纯 Firefox 集群 >> > >> > 纯 Firefox 集群目前由 8 台 4 核的 redhat5 生产机组成。每台生产机运行 3 >> > 个 Firefox 3.1 进程实例。因为那 8 台机器同时服务于淘宝 VIP 搜索的商口 >> > 图片显示接口(大约 600 万日 PV),所以我们没敢在这些机器上运行比较多的 >> > Firefox 进程。 >> > >> > 需要指出的是,Firefox 默认是"进程复用"的运行方式。即启动多次 >> > firefox-bin 可执行程序,其实得到的还是单个 Firefox 进程。这种进程复用 >> > 方式无法充分利用生产机的多核 CPU。因为在任意给定时刻,一个进程只能跑在 >> > 一个核上,哪怕它是多线程的。为了让 Firefox 以多进程方式运行,需要: >> > >> > =over >> > >> > =item 1. >> > >> > 在调用 firefox-bin 程序时指定 -no-remote 命令行选项,或者设置环境变量 >> > MOZ_NO_REMOTE=1 >> > >> > =item 2. >> > >> > 以不同的 profile 运行不同的 firefox-bin 进程(利用 -P 命令行选项)。 >> > >> > =back >> > >> > 我们平常看到的 Firefox 的主窗口并不启动,而以 chrome 方式单独运行 List >> > Hunter 插件的界面,例如: >> > >> > firefox -chrome chrome://listhunter/content/crawler.xul -P >> > crawler2 -no-remote >> > >> > 以 chrome 方式运行的插件与 XULRunner 方式运行的 XUL 应用是很类似的。 >> > >> > 由于 Firefox 3.1 还没有正式发布,我直接 checkout 官方 Mercurial 源码仓 >> > 库内的最新版本,自己在我们的 redhat 生产机上编译的。我们目前几乎没有修 >> > 改官方的 C++ 源代码,为了方便和官方版本保持同步。我们目前使用的是下面 >> > 的 firefox 编译选项: >> > >> > # My .mozconfig >> > mk_add_options MOZ_MAKE_FLAGS="-j2" >> > mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/ff-opt >> > ac_add_options --enable-crypto --enable-feeds >> > --disable-profilesharing --enable-rdf --enable-zipwriter >> > --disable-tests --disable-gnomeui --disable-cookies --disable-canvas >> > --disable-gnomeui --disable-inspector-apis --disable-mailnews >> > --disable-mathml --disable-official-branding >> > --enable-plaintext-editor-only --disable-postscript --disable-printing >> > --disable-profilelocking --disable-safe-browsing >> > --disable-startup-notification --disable-svg >> > --disable-svg-foreignobject --disable-updater --disable-javaxpcom >> > --disable-plugins --disable-crashreporter --disable-tests >> > --disable-debug --enable-application=browser --build=i686-linux >> > --disable-jsd --disable-ldap --enable-strip --disable-accessibility >> > --disable-ogg --disable-dbus --disable-freetype2 --disable-optimize >> > >> > 这里能禁用的功能我们都禁用了,这里的 feeds, rdf, crypto 这三个都不能 >> > disable,否则源码编译不通过,会报一些 .h 头文件找不到,呵 >> > 呵。--disable-ogg 实际上也不起作用,但网上的材料看曾经有效过,呵呵。 >> > >> > 事实上,目前我们还是给官方的源码打了一个 C++ 补丁,用于将 Error >> > Console 中的 Errors 重定向到 stderr,这样方便我们在集群环境下通过 >> > Firefox 进程的 log 文件捕捉和诊断一些异常。目前的补丁是下面这个样子: >> > >> > http://agentzh.org/misc/191src.patch.txt >> > >> > 值得一提的是,Firefox 进程本身是"无头"的,即它运行在 Xvfb 这个 X >> > server 之上,只在内存里执行渲染,而不需要任何显示硬件的存在。这些 >> > Firefox 进程本身是挂在我们自己的一个 Perl 写的进程监控脚本之下。该脚本 >> > 来自我们的 Proc::Harness 模块: >> > >> > >> > http://svn.openfoundry.org/xulapp/trunk/demo/ListHunter/misc/Proc-Harness/ >> > >> > Proc::Harness 会像 lighttpd 的 Fastcgi server 一样,维护一组指定数目的 >> > 进程(通过 CPAN 上的 Proc::Simple 模块)。当子进程挂掉后立即重启,或者 >> > 当子进程的 stderr/stdout 输出不再变化一段时限之后也杀之重启。 >> > Proc::Harness 脚本自身则是挂在了 deamontools 之下。 >> > >> > 这些 Firefox 进程受安装在其中的 List Hunter 插件的完全控制。它们都是高 >> > 度自治的 robot。它们内部有一个处理循环,一批一批地从 OpenResty 的 web >> > service 接口取到 URL 任务,然后一个一个地在 Firefox 的 browser 组件里 >> > 加载和分析,最后把分析到的结果一批一批地通过 OpenResty 提交之。 >> > >> > =item curl 预取爬虫集群与 Apache mod_proxy 集群 >> > >> > 该集群目前布署了 6 台双核的 redhat4 生产机。每台机器都安装了两个集群组 >> > 件,一是预取器,一是 Apache mod_proxy. 预取器的作用是通过 curl (准确 >> > 地说是 WWW::Curl 模块)将网页的 HTML 和 CSS 通过 mod_proxy 预取一遍, >> > 这样这些请求的结果就可以在 mod_proxy 中通过 mod_disk_cache 缓存住。于 >> > 是当纯 Firefox 集群再通过 mod_proxy 去抓这些 URL 时,mod_proxy 就可以 >> > 直接把缓存后的结果直接返回给 Firefox 了。 >> > >> > 预取器和 Firefox 进程是同时工作的,但对于一个 URL 任务而言,只有通过预 >> > 取器预取过之后,Firefox 进程才会进行处理。所以实际构成了一个两道工序的 >> > 流水线。这种调度是由 OpenResty 集群来完成的。 >> > >> > 预取器目前是以一个叫为 WWW::Prefetcher 的 Perl 模块的形式来实现的: >> > >> > >> > http://svn.openfoundry.org/xulapp/trunk/demo/ListHunter/misc/WWW-Prefetcher/ >> > >> > 虽然 mod_cache 提供了许多选项,但其缓存行为还是比较遵守 RFC 的 cache >> > 要求的。因此我对 mod_cache 模块进行了许多修改,使之可以无条件地缓存住 >> > 请求过的所有网页,而不论其 URL 是否有 querystring,也不论其 response >> > header 中的要求是什么。我们对最新的 httpd 2.2.11 的补丁如下: >> > >> > http://agentzh.org/misc/httpd-2.2.11.patch.txt >> > >> > 特别地,mod_disk_cache 指向的不是磁盘目录,而是 RAM 中开辟的 tmpfs 分 >> > 区。由于我们这 6 台机器都是很旧的 IDE 硬盘,因此直接用磁盘作 cache 存 >> > 储时,高并发条件下,每台机器的 load 都在 20 以上,根本无法忍受。后来换 >> > 为 tmpfs 结果 htcacheclean 工具之后,机器负载就降到 0.1 以下了。 >> > >> > =item OpenResty集群 >> > >> > 由于 OpenResty 的通用性,我们直接复用了同时服务于 yahoo.cn 和口碑网的 >> > 那个生产集群,(3 台 FastCGI 前端机和1 台 PL/Proxy 机器),所以我就没 >> > 有布署新的机器。在服务于 Firefox 集群的 OpenResty 接口中通过 View API >> > 暴露了若干的 PostgreSQL 函数,以完成整个 List Hunter 集群的任务调度和 >> > 结果汇总。目前的实现中,我们通过 Pg 的 sequence 摸拟了一种循环任务队 >> > 列,并通过计数器完成流水线中两道工序之间的相对同步。 >> > >> > 相关的 Pg 函数、sequence、以及索引的定义在这里: >> > >> > >> > http://svn.openfoundry.org/xulapp/trunk/demo/ListHunter/misc/init-db.sql >> > >> > 相关的 OpenResty 对象的定义则在这里: >> > >> > >> > http://svn.openfoundry.org/xulapp/trunk/demo/ListHunter/misc/init-resty.pl >> > >> > =back >> > >> > =head1 集群的性能 >> > >> > 集群目前每小时的产出稳定在 10 万网页以上,一天的产出在 240 万以上。 >> > Firefox 机器的负载在 3 左右,Proxy 的负载在 0.1 以下。 >> > >> > JS 基准测试显示 Firefox 3.1 加载一个页面的平均延时是 200 ~ 300 ms,机 >> > 房间的网络延时在 10 ~ 20 ms(因为网页已被 mod_cache 缓存住,故无到外网 >> > 的网络开销), List Hunter 插件的 DOM 分析代码的用时在 200 ~ 300 ms。其 >> > 他 OpenResty 开销再计入,大约 1 sec 处理一个页面。 >> > >> > =head1 已知瓶颈和缺陷 >> > >> > 当 OpenResty 中的 URL 任务表的行数超过 100 ~ 200 万时,调度查询容易超 >> > 过 PL/Proxy 的 10 秒限制。因此,我们目前采取"流式"的任务导入和导出方 >> > 式。通过 cronjob 定期地向库中导入任务,并同时把完成了的任务及时移出。 >> > >> > Apache 的 mod_proxy 在高并发条件下不够稳定,而且限于 Apache 自身的体系 >> > 结构,无法实现 proxy pipelining. 因此计划在未来集群规模进一步扩大时, >> > 改用 Squid. 当然了,Squid 很可能也需要进行修改才能满足我们这里的强制缓 >> > 存一段指定时间的需求。 >> > >> > 同时,受限于 Apache mod_cache 后端的非分布式,代理服务器的调度是在 >> > Firefox 进程和 curl 预取进程中完成的,导致前端代码比较复杂,还带来了代 >> > 理服务器列表的定时同步问题。因此,未来可以考虑为 Apache mod_cache 或者 >> > Squid 添加 memcached 缓存后端的支持。这样代理前端的多台服务器可以实现 >> > 对集群内其他部件的"透明化"。 >> > >> > =head1 TODO >> > >> > =over >> > >> > =item 1. >> > >> > 换用 Squid + memcached 作为缓存用正向代理 >> > >> > =item 2. >> > >> > 通过 XULRunner 而非 firefox -chrome 方式运行 List Hunter 插件。(需要 >> > 为我的 XUL::App 框架添加 XULRunner 支持) >> > >> > =back >> > >> > =head1 与相似产品的异同 >> > >> > 美国雅虎通过大量修改 Firefox 2 的 C++ 源代码,开发了叫为 HLFS 的爬虫集 >> > 群,用于爬取 AJAX 网站的内容以及得到带有视觉信息的 DOM 树。他们将 >> > Firefox 进程做成了 HTTP 代理的形式,对外部应用提供服务。 >> > >> > 而我们的 List Hunter 集群中的 Firefox 进程则是高度自治的爬虫,它们自己 >> > 从 OpenResty 中不断地批量取任务去完成。而外部应用则是批量地向 >> > OpenResty 导入任务来让集群运转。由于 List Hunter 集群并没怎么修改 >> > Firefox 的源代码,这使得我们可以很容易地与官方最新版本保持同步,从而第 >> > 一时享受到官方优化带来的众多好处。 >> > >> > 同时 List Hunter 集群本身是通用目的的,它可以作为各种 Firefox 插件 >> > 的"集群容器"。换言之,这是一种将 Firefox 插件"集群化"的完整的框架。 >> > >> > 由于 Firefox 插件开发本身已经通过我发布到 CPAN 的 XUL::App 框架得到了 >> > 极大的简化,所以响应新的需求的成本是非常低的。 >> > >> > =head1 使用 Firefox 的利与弊 >> > >> > =over >> > >> > =item 优点 >> > >> > Firefox 是世界级的浏览器。作为最复杂功能最丰富的 Internet 客户端之一, >> > 我们将之作为爬虫可以享受到和最终用户一样的丰富功能,无论是 AJAX 还是视 >> > 觉信息都不是问题。 >> > >> > Firefox 有基于 XUL 和 chrome JS 的灵活的插件机制,极易扩展。事实上, >> > Firefox 主界面自身就是一个大插件。同时,Gecko 是基于 XPCOM 组件方式 >> > 的,因此可以很容易地使用 C/C++/Java 等语言开发 XPCOM 组件,然后再用 >> > JavaSscript 把它们粘合在一起。于是乎,JavaScript 成为了像 Perl 一样的 >> > 胶水类语言。 >> > >> > 运行于 Gecko 之上的插件 JavaScript 拥有最高权限,这种 JS 可以访问磁盘 >> > 文件,可以访问系统环境变量,可以使用原生的 XmlHttpRequest 对象发出跨域 >> > AJAX 请求。 >> > >> > Firefox 的性能随着新版本的发布总会有戏剧性的变化。Firefox 3.1 中的 >> > Gecko 引擎的渲染速度就比 3.0 中的快了好几倍(根据 List Hunter 回归测试 >> > 集的 benchmark 结果,前者为平均 60 ms,后者则长达 200+ ms)。(Firefox >> > 3.1 中 TraceMonkey 的 JIT 支持倒并没有给 List Hunter 中的 JS 带来可测 >> > 量的性能提升。) >> > >> > 纯 JS 写的 Firefox 插件可以在 Win32/Linux/Mac 多种操作系统上即装即用, >> > 所以方便和编辑及产品经理沟通行为细节,方便演示。如若计算过于复杂,亦可 >> > 使用 C++ 语言改写插件中的计算密集的部分。 >> > >> > =item 缺点 >> > >> > Firefox 是高耦合的软件,这与 Google Chrome 及 Safari 浏览器的核心 >> > Webkit 形成了鲜明对比。这意味着,我们比较难于对 Firefox 进行深层次的裁 >> > 剪,无法轻易地免除一些比较大的功能部件,也很难将其中的某一个大部件剥出 >> > 来单独使用(当然了,SpiderMonkey 是少数几个例外之一)。 >> > >> > =back >> > >> > =head1 AUTHOR >> > >> > 章亦春 (agentzh) C<< >> >> > >> > =head1 LICENSE >> > >> > Copyright (c) 2007-2008, Yahoo! China EEEE Works, Alibaba Inc. All >> > rights reserved. >> > >> > Redistribution and use in source and binary forms, with or without >> > modification, are permitted provided that the following conditions are >> > met: >> > >> > =over >> > >> > =item * >> > >> > Redistributions of source code must retain the above copyright notice, >> > this list of conditions and the following disclaimer. >> > >> > =item * >> > >> > Redistributions in binary form must reproduce the above copyright >> > notice, this list of conditions and the following disclaimer in the >> > documentation and/or other materials provided with the distribution. >> > >> > =item * >> > >> > Neither the name of the Yahoo! China EEEE Works, Alibaba Inc. nor the >> > names of its contributors may be used to endorse or promote products >> > derived from this software without specific prior written permission. >> > >> > =back >> > >> > THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS >> > "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT >> > LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR >> > A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT >> > OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, >> > SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT >> > LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, >> > DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY >> > THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT >> > (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE >> > OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. >> > >> > _______________________________________________ >> > China-pm mailing list >> > China-pm at pm.org >> > http://mail.pm.org/mailman/listinfo/china-pm >> >> _______________________________________________ >> China-pm mailing list >> China-pm at pm.org >> http://mail.pm.org/mailman/listinfo/china-pm > > _______________________________________________ > China-pm mailing list > China-pm at pm.org > http://mail.pm.org/mailman/listinfo/china-pm From luo.yong.name at gmail.com Fri Dec 26 08:07:36 2008 From: luo.yong.name at gmail.com (Luo Yong) Date: Sat, 27 Dec 2008 00:07:36 +0800 Subject: [PerlChina] =?gb2312?b?x+vOytPQyrLDtLHjvd21xLe9t6jU2MjremlwsPw=?= =?gb2312?b?wO+1xL/io78=?= In-Reply-To: References: <95ca1530812241947g52208fcds335dcc0723b81cf8@mail.gmail.com> <95ca1530812242105j6155a888w2b9c9382c60918f6@mail.gmail.com> Message-ID: <95ca1530812260807x37d9caa0qea482770588371de@mail.gmail.com> 多谢,需要的就是这个 :) 2008/12/25 agentzh : > 2008/12/25 Luo Yong >> >> 多谢, >> >> >> 这个方法大概是最好的方法了,不过感觉Java的那种用JAR文件封装类库的方法很方便,但是在perl上暂时没办法实现,不知道perl6里有没有类似的功能。 >> > > CPAN 上有一个叫做 pp 的工具可以把 Perl 5 类库封成 PAR 文件 ;) > > 基于 parrot 的 Perl 6 中可以在字节码级别进行联编,就更方便了 ;) > > -agentzh > > _______________________________________________ > China-pm mailing list > China-pm at pm.org > http://mail.pm.org/mailman/listinfo/china-pm > From luo.yong.name at gmail.com Fri Dec 26 08:09:18 2008 From: luo.yong.name at gmail.com (Luo Yong) Date: Sat, 27 Dec 2008 00:09:18 +0800 Subject: [PerlChina] =?gb2312?b?x+vOytPQyrLDtLHjvd21xLe9t6jU2MjremlwsPw=?= =?gb2312?b?wO+1xL/io78=?= In-Reply-To: References: <95ca1530812241947g52208fcds335dcc0723b81cf8@mail.gmail.com> <95ca1530812242105j6155a888w2b9c9382c60918f6@mail.gmail.com> Message-ID: <95ca1530812260809k62ac303ch7cc19e1045497435@mail.gmail.com> 就算没有的话,用来包装桌面程序也不错 :) 2008/12/26 cnhack TNT : > 呵呵,用 PAR 应该满足你的要求,只是不知道你的服务器空间是否有 PAR,或者支持自己安装 PAR 模块 > > 2008/12/25 agentzh >> >> 2008/12/25 Luo Yong >>> >>> 多谢, >>> >>> >>> 这个方法大概是最好的方法了,不过感觉Java的那种用JAR文件封装类库的方法很方便,但是在perl上暂时没办法实现,不知道perl6里有没有类似的功能。 >>> >> >> CPAN 上有一个叫做 pp 的工具可以把 Perl 5 类库封成 PAR 文件 ;) >> >> 基于 parrot 的 Perl 6 中可以在字节码级别进行联编,就更方便了 ;) >> >> -agentzh >> >> _______________________________________________ >> China-pm mailing list >> China-pm at pm.org >> http://mail.pm.org/mailman/listinfo/china-pm > > > _______________________________________________ > China-pm mailing list > China-pm at pm.org > http://mail.pm.org/mailman/listinfo/china-pm > From maxwunj at gmail.com Tue Dec 30 23:14:49 2008 From: maxwunj at gmail.com (Max WU) Date: Wed, 31 Dec 2008 15:14:49 +0800 Subject: [PerlChina] Question on module dependency_display Message-ID: <9daad8ef0812302314k5fa16c0ej9a4376596c48fc7f@mail.gmail.com> 请问下, CPAN上做PM的Dependency Check和显示的工具叫什么? 打算利用元旦假期整理下很多PM的关系,并且Display出一张图. 谢谢, 祝各位新年快乐-工作顺利,身体健康! --Max --------------------------------------- "Any problem in computer science can be solved with another level of indirection" -----said David Wheeler From shijialee at gmail.com Tue Dec 30 23:44:02 2008 From: shijialee at gmail.com (Qiang (James)) Date: Wed, 31 Dec 2008 15:44:02 +0800 Subject: [PerlChina] Question on module dependency_display In-Reply-To: <9daad8ef0812302314k5fa16c0ej9a4376596c48fc7f@mail.gmail.com> References: <9daad8ef0812302314k5fa16c0ej9a4376596c48fc7f@mail.gmail.com> Message-ID: <495B22C2.1050501@gmail.com> 首先,邮件组已经搬到 Google Group, 请更新你的设定 http://groups.google.com/group/perlchina?hl=zh-cn Max WU wrote: > 请问下, > CPAN上做PM的Dependency Check和显示的工具叫什么? CPAN 打包模块常用的有 Module::Build 或 Module::Install(基于ExtUtils:: MakeMaker). 每个打包工具可设定 Dependecy 的模块和版本. 另外 CPAN 也提供一个不错的在线查找模块 Dependency 工具 http://deps.cpantesters.org/ > 打算利用元旦假期整理下很多PM的关系,并且Display出一张图. 感觉应该有人做过类似的工作, 可以找找. > 谢谢, 祝各位新年快乐-工作顺利,身体健康! > > --Max > --------------------------------------- > "Any problem in computer science can be solved with another level of > indirection" > -----said David Wheeler Qiang(James) From fayland at gmail.com Wed Dec 31 00:06:33 2008 From: fayland at gmail.com (Fayland Lam) Date: Wed, 31 Dec 2008 16:06:33 +0800 Subject: [PerlChina] Question on module dependency_display In-Reply-To: <495B22C2.1050501@gmail.com> References: <9daad8ef0812302314k5fa16c0ej9a4376596c48fc7f@mail.gmail.com> <495B22C2.1050501@gmail.com> Message-ID: <495B2809.4090207@gmail.com> Qiang (James) wrote: > 首先,邮件组已经搬到 Google Group, 请更新你的设定 > http://groups.google.com/group/perlchina?hl=zh-cn > > Max WU wrote: > >> 请问下, >> CPAN上做PM的Dependency Check和显示的工具叫什么? >> > > CPAN 打包模块常用的有 Module::Build 或 Module::Install(基于ExtUtils:: > MakeMaker). 每个打包工具可设定 Dependecy 的模块和版本. > > 另外 CPAN 也提供一个不错的在线查找模块 Dependency 工具 > http://deps.cpantesters.org/ > > >> 打算利用元旦假期整理下很多PM的关系,并且Display出一张图. >> > > 感觉应该有人做过类似的工作, 可以找找. > > maybe you want this. http://search.cpan.org/~marcel/GraphViz-ISA-0.01/ISA.pm >> 谢谢, 祝各位新年快乐-工作顺利,身体健康! >> >> --Max >> --------------------------------------- >> "Any problem in computer science can be solved with another level of >> indirection" >> -----said David Wheeler >> > > Qiang(James) > > --~--~---------~--~----~------------~-------~--~----~ > 您收到此信息是由于您订阅了 Google 论坛“PerlChina 论坛”论坛。 > 要在此论坛发帖,请发电子邮件到 perlchina at googlegroups.com > 要退订此论坛,请发邮件至 perlchina+unsubscribe at googlegroups.com > 更多选项,请通过 http://groups.google.com/group/perlchina?hl=zh-CN 访问该论坛 > -~----------~----~----~----~------~----~------~--~--- > > -- Fayland Lam // http://www.fayland.org/ Foorum based on Catalyst // http://www.foorumbbs.com/ From agentzh at gmail.com Wed Dec 31 01:51:47 2008 From: agentzh at gmail.com (agentzh) Date: Wed, 31 Dec 2008 17:51:47 +0800 Subject: [PerlChina] Question on module dependency_display In-Reply-To: <495B2809.4090207@gmail.com> References: <9daad8ef0812302314k5fa16c0ej9a4376596c48fc7f@mail.gmail.com> <495B22C2.1050501@gmail.com> <495B2809.4090207@gmail.com> Message-ID: 2008/12/31 Fayland Lam : > > maybe you want this. > http://search.cpan.org/~marcel/GraphViz-ISA-0.01/ISA.pm > Oh, I didn't know there was a GraphViz::ISA. I've been working on something (sort of) similar: http://search.cpan.org/dist/UML-Class-Simple But I'm afraid it's a bit OT. It only covers "use base" or even less. The demand for general "use" dependency support in UML::Class::Simple is rather common now :P Thanks! -agentzh From agentzh at gmail.com Wed Dec 31 02:09:06 2008 From: agentzh at gmail.com (agentzh) Date: Wed, 31 Dec 2008 18:09:06 +0800 Subject: [PerlChina] Question on module dependency_display In-Reply-To: <495B22C2.1050501@gmail.com> References: <9daad8ef0812302314k5fa16c0ej9a4376596c48fc7f@mail.gmail.com> <495B22C2.1050501@gmail.com> Message-ID: 2008/12/31 Qiang (James) : >> CPAN上做PM的Dependency Check和显示的工具叫什么? > > CPAN 打包模块常用的有 Module::Build 或 Module::Install(基于ExtUtils:: > MakeMaker). 每个打包工具可设定 Dependecy 的模块和版本. > > 另外 CPAN 也提供一个不错的在线查找模块 Dependency 工具 > http://deps.cpantesters.org/ > 根据 CPAN Dependencies 网页上的提示: "It relies on modules having META.yml files so it can work out their dependencies, and is case-sensitive." 所以对于 CPAN 模块而言,扫描它们自己的 META.yml 文件即可.而 META.yml 中的依赖项一般也是 CPAN 模块的作者自己手工列出的. 不过有趣的是 Jifty 有一个 .t 文件自己扫描实际使用的模块并将之与 Makefile.PL 中列出的进行比较: http://search.cpan.org/src/SARTAK/Jifty-0.80408/t/01-dependencies.t 本质上是一种源码级别的正则扫描: # look for use and use base statements $used{$1}{$File::Find::name}++ while $data =~ /^\s*use\s+([\w:]+)/gm; while ($data =~ m|^\s*use base qw.([\w\s:]+)|gm) { $used{$_}{$File::Find::name}++ for split ' ', $1; } 因此不是 100% 可靠的东西,但能满足需要 ^_^ 这小片代码其实来自 CPAN 上的 Test::Dependencies::Light 模块( Jifty 为了减少一个依赖项就把代码内联了,呵呵,它原先确实是使用 Test::Dependencies 模块的). 真正运行时级别上的依赖项扫描, 可能当属 pp 工具使用的 Module::ScanDeps 模块了.呵呵. (Test::Dependencies::Heavy 模块会实际编译 Perl 代码.) >> 打算利用元旦假期整理下很多PM的关系,并且Display出一张图. > 我很有兴趣把你的代码整合到 UML::Class::Simple 中来,如果你愿意分享的话,呵呵. > 感觉应该有人做过类似的工作, 可以找找. > Qiang 所言极是 ^_^ >> 谢谢, 祝各位新年快乐-工作顺利,身体健康! >> 新年好!新年好! Cheers, -agentzh -------------- next part -------------- An HTML attachment was scrubbed... URL: