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

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

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

2011年1月17日

摘要: 问:我现在有个朋友,他做了一个网站,现在每天也有好几千人在线,他现在想开始自己攒一台服务器来到机房去托管,但是不太清楚该选择什么样的配置。 答:您的问题,稍微还是有点笼统,其实这也是许多第一次组装服务器的朋友容易犯的错误,也就是所谓同时在线人数的误区,这个问题不搞清楚,您很难界定自己需要什么配置的服务器。下面我来详细说下: 第 一,您说他的网站现在每天也有好几千人在线,这个说的是每天有好几千人访问... 阅读全文
posted @ 2011-01-17 22:32 lexus 阅读(1954) 评论(0) 推荐(0)

摘要: 我是在下载一个字体时感染上这个病毒的,当安装完之后就知道中招了,担是很顽强,用一般的方法删除不掉它, 开机就能恢复,打开ie就是这个网址, 后来升级360都没用,最后使用360网盾,最核心的是它在加入了360中一个信任文件,把这个信任文件删除,然后再来ie一键恢复就搞定了,花了一个多小时, 阅读全文
posted @ 2011-01-17 21:44 lexus 阅读(802) 评论(0) 推荐(0)

摘要: CloudFront 我知道的国内CDN服务提供商: chinacache,fastweb,chinanetcenter. 阅读全文
posted @ 2011-01-17 21:38 lexus 阅读(503) 评论(0) 推荐(0)

摘要: git还原 阅读全文
posted @ 2011-01-17 21:24 lexus 阅读(709) 评论(0) 推荐(0)

摘要: http://www.51idc.com/tuoGuan.html http://www.cnmdy.com/contact.htm http://www.1g.com.cn/user/host.asp 西部数码 零刻数据 企商在线 bgp介绍 http://blogold.chinaunix.net/u2/84280/showart_2183352.html 杭州世导 目前在国外注册的域名将无法... 阅读全文
posted @ 2011-01-17 02:29 lexus 阅读(206) 评论(0) 推荐(0)

2011年1月16日

摘要: sudo apt-get install libxml2 libxml2-dev libxslt1-devgem install nokogirihttp://www.javaeye.com/topic/557485 阅读全文
posted @ 2011-01-16 22:38 lexus 阅读(208) 评论(0) 推荐(0)

摘要: sudo apt-get install libxml2 libxml2-dev libxslt1-devgem install nokogiri 阅读全文
posted @ 2011-01-16 22:37 lexus 阅读(156) 评论(0) 推荐(0)

摘要: Net::HTTP Cheat Sheethttp://www.rubyinside.com/nethttp-cheat-sheet-2940.htmlhttp://juretta.com/log/2006/08/13/ruby_net_http_and_open-uri/ 阅读全文
posted @ 2011-01-16 22:16 lexus 阅读(193) 评论(0) 推荐(0)

摘要: 新的Ruby解析HTML/XML的ruby库 - NokogiriAaron Patterson和Mike Dalessio开发了一个新的Ruby解析HTML/XML的ruby库 - Nokogiri。他的速度比目前应用的最广泛的Hpricot还要快许多。经过Benchmark测试表明,Nokogiri在加载XML文档的速度是Hpricot的7倍,在XPATH搜索的速度是Hpricot的5倍,而在... 阅读全文
posted @ 2011-01-16 22:15 lexus 阅读(779) 评论(0) 推荐(0)

摘要: http://www.quarkruby.com/2009/9/22/rails-utf-8-and-html-screen-scrapinghttp://www.rubyrailways.com/data-extraction-for-web-20-screen-scraping-in-rubyrails/想弄一个网页爬虫,google了一下’ruby采集web网页’,在http://www.o... 阅读全文
posted @ 2011-01-16 22:02 lexus 阅读(550) 评论(0) 推荐(0)

摘要: 如果上传碰到“413 Request Entity Too Large”错误,请在nginx.conf增加 client_max_body_size 8m; 增加上传大小限制 顶端 阅读全文
posted @ 2011-01-16 17:42 lexus 阅读(439) 评论(0) 推荐(0)

摘要: http://ihower.tw/blog/archives/2941一个ruby爬虫的例子http://hi.baidu.com/anspider/blog/item/9da210425a0e4e179213c6fb.html 阅读全文
posted @ 2011-01-16 13:37 lexus 阅读(291) 评论(0) 推荐(0)

摘要: 但是,这个方法的缺点是太简单,无法设置超时时间。在超时的情况下,他会无限的请求下去,直到达到了默认的超时时间,这个时间很长http://www.renren.it/a/bianchengyuyan/Ruby/20101023/40036.html了保险起见,在要考虑超时处理或者其他设定的情况下,还是使用Net::HTTP除了能设置超时时间之外,还能设置其他的请求参数,例如user-agent这个u... 阅读全文
posted @ 2011-01-16 13:32 lexus 阅读(940) 评论(0) 推荐(0)

2011年1月15日

摘要: http://railsftw.bryanbibat.net/ 阅读全文
posted @ 2011-01-15 01:03 lexus 阅读(264) 评论(0) 推荐(0)

摘要: http://www.infoq.com/news/2009/06/Twitter-Architecture http://www.cnblogs.com/wuvist/archive/2011/01/14/MoSonic_1_Cache-Money_FriendFeed_Thrift_In_SubSonic.html read-through write-through http://www... 阅读全文
posted @ 2011-01-15 00:30 lexus 阅读(251) 评论(0) 推荐(0)

2011年1月14日

摘要: regexp = /a/result = subject.scan(regexp)ruby-1.9.2-p0 result = subject.scan(regexp)NameError: undefined local variable or method `subject' for main:Object from (irb):8 from /home/mlzboy/.rvm/rubies... 阅读全文
posted @ 2011-01-14 22:17 lexus 阅读(710) 评论(0) 推荐(0)

摘要: http://www.cnblogs.com/cnblogsfans/archive/2009/09/19/1569918.html http://www.cnblogs.com/cnblogsfans/archive/2009/09/17/1568804.html 二、读取文件 view source print? 1file=File.open(File.join("C:","Test.txt... 阅读全文
posted @ 2011-01-14 12:58 lexus 阅读(636) 评论(0) 推荐(0)

摘要: 2010年12月09日 星期四 下午 12:44#foo.rb:p‍uts "中文abc123".to_utf8c:foo.rb a.txta.txt编码为Unicode(UTF-8 without signature) - Codepage 阅读全文
posted @ 2011-01-14 12:51 lexus 阅读(210) 评论(0) 推荐(0)

摘要: 我們以class object這個乍看奇怪的語法用來取得object的eigenclass範圍:o1 = Object.newclass o1def say puts 'yo'endendo1.say= yoo2 = Object.newo2.say= NoMethodError ... 阅读全文
posted @ 2011-01-14 12:01 lexus 阅读(200) 评论(0) 推荐(0)

摘要: ruby way之Enumerables2010年10月15日 下午 01:50Enumerable 模块是一个很重要的模块,ruby中的很多类都有mix这个模块,比如array,hash等等。因此如果你想要自己定义一个collection,则不要继承一个存在的collection,而是应该mix Enumerable 模块。数组是最常用,最有代表性的mix Enumerable模块的一个集合。因... 阅读全文
posted @ 2011-01-14 11:29 lexus 阅读(371) 评论(0) 推荐(0)

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