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

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

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2011年1月31日

摘要: 目前看来似乎不影响使用,还未能确定 阅读全文
posted @ 2011-01-31 22:31 lexus 阅读(240) 评论(0) 推荐(0)

摘要: http://www.cnblogs.com/lovecindywang/archive/2011/01/31/1948233.html lovecindywang 未来是并行计算和SOA的天下 博客园 首页 新闻 新随笔 联系 管理 订阅 随笔-36 文章-0 评论-238 Mongodb和KT的双机房灾备配置方案尝试 假设有2个机房(测试服务器2/3以及123/124)互为灾备(灾备机房在... 阅读全文
posted @ 2011-01-31 22:27 lexus 阅读(795) 评论(0) 推荐(0)

摘要: 墨尔本] Fred Wuifredwu@qq.com 22:15:20总算搞定了rvm + crontab . 呼呼呼[墨尔本] Fred Wuifredwu@qq.com 22:15:21累死了漫步_上海(7054239) 22:16:21啥东东[墨尔本] Fred Wuifredwu@qq.com 22:16:48用whenever来管理crontab[墨尔本] Fred Wu... 阅读全文
posted @ 2011-01-31 22:23 lexus 阅读(166) 评论(0) 推荐(0)

摘要: http://guides.rubyonrails.org/active_record_querying.html 阅读全文
posted @ 2011-01-31 21:26 lexus 阅读(213) 评论(0) 推荐(0)

摘要: http://redcareditor.com/ i use komodo for a time 阅读全文
posted @ 2011-01-31 19:57 lexus 阅读(180) 评论(0) 推荐(0)

摘要: 使用Amazon SES批量发送邮件 作者 Abel Avram 译者 张龙 发布于 2011年1月30日 上午9时35分 社区 架构 主题 云计算 , Web服务 标签 亚马逊 , 亚马逊Web服务(AWS) 分享 | Amazon Simple Email Service(SES)是构建在Amazon基础设施之上的批量、事务性的邮件发送服务,多年来已经向无数客户发送了大量邮件... 阅读全文
posted @ 2011-01-31 19:54 lexus 阅读(1207) 评论(0) 推荐(0)

摘要: 还想请教一下update users set a=1 where id in (1,2,3)这句在rails中该如何写呢 云(11753503) 18:31:29 ActiveRecord::Base.connection.execute(str) [上海] Jerry(40578681) 18:34:38人家要rails的写法[上海] Jerry(40578681) 18:35:08User.... 阅读全文
posted @ 2011-01-31 19:49 lexus 阅读(728) 评论(0) 推荐(0)

摘要: SELECT count(*) from urls where id not in (select distinct url_id from images where site='xx' and kind='image') and site='xx' and kind='detail' and success=1 阅读全文
posted @ 2011-01-31 16:51 lexus 阅读(299) 评论(1) 推荐(0)

摘要: User.find_each(:conditions=["id ? and id ?",2,10] ) do |u|ruby-1.9.2-p0 puts u.classruby-1.9.2-p0 ? end 阅读全文
posted @ 2011-01-31 15:53 lexus 阅读(287) 评论(0) 推荐(0)

摘要: find_each(options = {}) public Yields each record that was found by the find options. The find is performed by find_in_batches with a batch size of 1000 (or as specified by the :batch_size option). E... 阅读全文
posted @ 2011-01-31 15:37 lexus 阅读(602) 评论(0) 推荐(0)

摘要: 2007-09-28 rails批量更新关键字: ruby rails批量更新 ruby 代码 user_controller.rb begin User.transaction do User.update(params[:user].keys,params[:user].values) end end rails 提供的批量更新update方法,返回一个对象数组,并不好判断保存数据是... 阅读全文
posted @ 2011-01-31 15:16 lexus 阅读(726) 评论(0) 推荐(0)

摘要: http://www.dedoimedo.com/computers/portable-virtualbox.html http://vbox.me/ 用了之后发现太复杂,还是算了 阅读全文
posted @ 2011-01-31 11:30 lexus 阅读(258) 评论(0) 推荐(0)

摘要: class AddIndexToUrlsForMyurlColumn ActiveRecord::Migrationdef self.up add_index :urls,:myurl,:name="urls_myurl_index",:unique=trueenddef self.down remove_index :urls,:myurlendend我的一个程序,在加索引之前很慢,跑了... 阅读全文
posted @ 2011-01-31 09:14 lexus 阅读(993) 评论(0) 推荐(0)