浙江省高等学校教师教育理论培训

微信搜索“毛凌志岗前心得”小程序

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
上一页 1 ··· 546 547 548 549 550 551 552 553 554 ··· 630 下一页

2011年1月14日

摘要: if __FILE__ == $0$:.unshift File.join(File.dirname(__FILE__), '..')require 'eventmachine'# TODO: real tests# TODO: pass in one object instead of two? .each{ |iter| puts iter.current; iter.next }# TODO... 阅读全文
posted @ 2011-01-14 11:24 lexus 阅读(318) 评论(0) 推荐(0)

摘要: http://rubylearning.com/blog/2010/10/01/an-introduction-to-eventmachine-and-how-to-avoid-callback-spaghetti/http://20bits.com/articles/an-eventmachine-tutorial/ 阅读全文
posted @ 2011-01-14 11:17 lexus 阅读(164) 评论(0) 推荐(0)

摘要: timeout.rb Path:timeout.rb Last update:Tue May 25 13:04:11 -0700 2010 Ruby version:Ruby 1.9.2 timeout.rb execution timeout SynopsisDescriptionA way of performing a potentially long-running operation ... 阅读全文
posted @ 2011-01-14 09:51 lexus 阅读(353) 评论(0) 推荐(0)

摘要: http://simohayha.javaeye.com/blog/157709 http://my4java.itpub.net/post/9983/55407 阅读全文
posted @ 2011-01-14 09:44 lexus 阅读(146) 评论(0) 推荐(0)

摘要: http://www.infoq.com/cn/articles/eval-options-in-ruby 阅读全文
posted @ 2011-01-14 09:42 lexus 阅读(165) 评论(0) 推荐(0)

摘要: http://www.cxyclub.cn/n/5652/ Ruby | Block和迭代器 2007-04-16 15:40:43 标签:Ruby ROR Rails 敏捷开发 yield 原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 、作者信息和本声明。否则将追究法律责任。http://blackanger.blog.51cto.com/140924/23876 Bloc... 阅读全文
posted @ 2011-01-14 09:38 lexus 阅读(382) 评论(0) 推荐(0)

摘要: 分享到... 复制网址邮件QQ空间新浪微博MSN腾讯微博人人网开心网百度搜藏谷歌Buzz搜狐微博腾讯朋友淘江湖网易微博豆瓣查看更多(96) 这是什么工具? JiaThis 分享到各大网站 复制网址收藏夹邮件谷歌BuzzQQ空间百度搜藏新浪微博搜狐微博网易微博腾讯微博人人网开心网搜狐白社会淘江湖百度空间腾讯朋友天涯社区凤凰微博饭否手机优士网GMAIL邮箱Hotmail邮箱Yahoo! ma... 阅读全文
posted @ 2011-01-14 09:36 lexus 阅读(266) 评论(0) 推荐(0)

摘要: https://github.com/archiloque/rest-client http://stackoverflow.com/questions/184178/ruby-how-to-post-a-file-via-http-as-multipart-form-data fiber介绍 http://andyhu1007.javaeye.com/blog/634916 proc类 em-... 阅读全文
posted @ 2011-01-14 01:47 lexus 阅读(1558) 评论(0) 推荐(0)

摘要: http://ruby-doc.org/docs/ProgrammingRuby/html/tut_containers.html C:\Users\Administratorirbirb(main):001:0 def a(name)irb(main):002:1 yieldirb(main):003:1 puts "hello"irb(main):004:1 yieldirb(mai... 阅读全文
posted @ 2011-01-14 00:21 lexus 阅读(446) 评论(0) 推荐(0)

2011年1月13日

摘要: em-synchronyem-http-requesttyphoeuseventmachineem-http-request exampleSimple client exampleMulti-request exampleFire and wait for multiple requests to complete via the MultiRequest interface.Basic-Aut... 阅读全文
posted @ 2011-01-13 23:03 lexus 阅读(674) 评论(0) 推荐(0)

摘要: http://raflabs.com/blogs/silence-is-foo/2010/07/19/installing-a-gem-fork-from-github-source/http://stackoverflow.com/questions/2577346/how-to-install-gem-from-github-sourceup vote 4 down vote accepted... 阅读全文
posted @ 2011-01-13 22:50 lexus 阅读(1131) 评论(0) 推荐(0)

摘要: Scraping with Typhoeus and NokogiriJune 12th, 2009 · 1 CommentI’ve been working on some cool new functionality at OneSpot. We want to provide a widget that can give the reader more context about a gi... 阅读全文
posted @ 2011-01-13 21:11 lexus 阅读(343) 评论(0) 推荐(0)

摘要: Thread: PaperClip: Attach files through script/console LinkBack LinkBack URL About LinkBacks Bookmark & Share Digg this Thread! Add Thread to del.icio.us Bookmark in Technorati Tweet this Thread! ... 阅读全文
posted @ 2011-01-13 21:02 lexus 阅读(285) 评论(0) 推荐(0)

摘要: http://www.oschina.net/code/snippet_104010_2806http://www.mikeperham.com/2009/06/12/scraping-with-typhoeus-and-nokogiri/ 阅读全文
posted @ 2011-01-13 20:25 lexus 阅读(176) 评论(0) 推荐(0)

摘要: 此文绝对给力http://www.infoq.com/cn/news/2007/09/ruby-1-9-fibers http://www.igvita.com/2009/05/13/fibers-cooperative-scheduling-in-ruby/ http://www.mikeperham.com/2010/03/30/using-activerecord-with-eventmac... 阅读全文
posted @ 2011-01-13 19:13 lexus 阅读(427) 评论(0) 推荐(0)

摘要: ruby GB2312和UTF-8编码转换 关键字: iconv,iconv,编码转换,gb2312,utf-8最近在做RSS导入功能,用了rubyforge上的feedtool,还不错。就是代码转换老是报错:Iconv::IllegalSequence后来发现原因是网络编码很混乱,一定要加上IGNORE参数,就好了。记录一下。Iconv.iconv("UTF-8//IGNORE","GB2312... 阅读全文
posted @ 2011-01-13 16:59 lexus 阅读(614) 评论(0) 推荐(0)

摘要: [转载]Ruby的并发的一些基本限制因为是feedburner的feeds,所以我就转过来。Concurrency is a Myth in RubybyIlya GrigorikConcurrency introduces parallelism into our applications, and threading is, of course, one way to achieve conc... 阅读全文
posted @ 2011-01-13 16:36 lexus 阅读(919) 评论(0) 推荐(0)

摘要: http://www.infoq.com/news/2008/06/eventmachineintroduce代码如下,经过测试require 'rubygems'require 'eventmachine'require 'em-http'require 'pp'$stdout.sync = trueclass KeyboardHandler EM::Connectioninclude EM... 阅读全文
posted @ 2011-01-13 16:30 lexus 阅读(305) 评论(0) 推荐(0)

摘要: How to fetch URLs in parallell with EventMachine and Ruby Ruby posted 10 months ago by christianSave time by doing things in parallell:Output:ConclusionSpeeds up blocking operations.EventMachine is cu... 阅读全文
posted @ 2011-01-13 15:56 lexus 阅读(361) 评论(0) 推荐(0)

摘要: http://css.dzone.com/news/ruby-based-image-crawler 阅读全文
posted @ 2011-01-13 15:30 lexus 阅读(191) 评论(0) 推荐(0)

上一页 1 ··· 546 547 548 549 550 551 552 553 554 ··· 630 下一页