上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 41 下一页
摘要: def set_redis_data(channel_id,channel) redis = Redis.new(:host => '10.xxx.xx.xx', :port => 6379) redis.del(channel_id) yesterday = ... 阅读全文
posted @ 2015-07-29 12:46 冰凌花花~ 阅读(193) 评论(0) 推荐(0) 编辑
摘要: next_played_videos = @channel.videos.active.where(:begin_time.gt => begin_time).asc(:begin_time) next_played_videos.each do |video| video... 阅读全文
posted @ 2015-07-29 11:51 冰凌花花~ 阅读(205) 评论(0) 推荐(0) 编辑
摘要: url_hash.sort_by {|k| k["title"]}http://stackoverflow.com/questions/3154111/how-do-i-sort-an-array-of-hashes-by-a-value-in-the-hash 阅读全文
posted @ 2015-07-16 18:44 冰凌花花~ 阅读(90) 评论(0) 推荐(0) 编辑
摘要: https://github.com/sstephenson/rbenvCheck out rbenv into~/.rbenv.$ git clone https://github.com/sstephenson/rbenv.git ~/.rbenvAdd~/.rbenv/binto your$P... 阅读全文
posted @ 2015-06-25 10:43 冰凌花花~ 阅读(447) 评论(0) 推荐(0) 编辑
摘要: yum install vsftpd本地用户配置vim /etc/vsftpd/vsftpd.confanonymous_enable=NOlocal_enable=YESwrite_enable=YESlocal_umask=022dirmessage_enable=YESxferlog_enab... 阅读全文
posted @ 2015-06-18 18:11 冰凌花花~ 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 关于我们“悦家”是一支年轻又热血的家装O2O创业团队,由互联网及家装行业精英联袂打造,这里有一目十行的学霸也有精通多种编程语言的极客,有外表憨厚却敢于搭讪的暖男,也有高颜值的美眉和御姐。CTO申思维曾在摩托罗拉、优酷土豆等公司担任重要技术职位,拥有超强的技术实力和优雅的人格魅力,善于从零基础快... 阅读全文
posted @ 2015-06-18 15:08 冰凌花花~ 阅读(162) 评论(0) 推荐(0) 编辑
摘要: (1)新增gem to Gemfile ,then bundle installgem 'easy_captcha', git: 'https://github.com/phatworx/easy_captcha.git'gem 'rmagick'(2)after bundle executerai... 阅读全文
posted @ 2015-05-21 15:01 冰凌花花~ 阅读(711) 评论(0) 推荐(0) 编辑
摘要: memcache默认端口是11211,如何换成自定义端口咩如果是在开发环境不要忘记开启缓存$ vim config/environments/development.rbconfig.action_controller.perform_caching = true启动:$memcached -d -... 阅读全文
posted @ 2015-04-16 10:54 冰凌花花~ 阅读(228) 评论(0) 推荐(0) 编辑
摘要: http://guides.rubyonrails.org/ 仔细读一下手册里的关于cache的相关部分,注意一句话:This flag is normally set in the correspondingconfig/environments/*.rband caching is disab... 阅读全文
posted @ 2015-04-14 16:47 冰凌花花~ 阅读(192) 评论(0) 推荐(0) 编辑
摘要: /workspace:$ ssh-copy-id root@10.103.xx.xx -p 22022/usr/local/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that ... 阅读全文
posted @ 2015-04-13 15:22 冰凌花花~ 阅读(2899) 评论(0) 推荐(0) 编辑
上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 41 下一页