Ruby China
  • 社区
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • 注册
  • 登录
@est
会员
第 14358 位会员 / 2014-08-05

9 篇帖子 / 254 条回帖
6 关注者
0 正在关注
21 收藏
GitHub Public Repos
  • cx-extractor 7

    Automatically exported from code.google.com/p/cx-extractor

  • metronome 7

    Web metronome made with Web Audio in javavscript

  • aether-pelican 5

    A responsive and clean Pelican theme ported from Hugo josephhutch/aether

  • snippets 4

    Collection of scripts that serves no fixed purpose

  • ddns.est.im 3

    dynamic dns you say?

  • BaiduExporter 1

    Assistant for Baidu to export download links to aria2/aria2-rpc

  • ctypescrypto 1

    Python interface to some openssl function based on ctypes module

  • kaimen 1

    Port knocking in Python

  • awesome-ld-preload 1

    List of resources related to LD_PRELOAD, a mechanism for changing application behavior at run-time

  • def.est.im 0

    this project has moved to https://github.com/est/rhcloud

More on GitHub
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • 10 Most Common Rails Mistakes at 2015年01月28日
    1. Extract Form Objects

    说到这里,我觉得还是 django 好啊。modelform 对付企业里常见的 CURD 开发简直是效率神器。

    Rails 或者说 Active Model 里不允许定义好字段,这个太憋屈了。ActiveRecord 的 enum 也是 bug 多多。

  • 10 Most Common Rails Mistakes at 2015年01月28日

    #1 楼 @hjleochen 换异步框架。goliath 什么的。哈哈。。

  • 为何 CDN 都要封呢? at 2015年01月28日

    #12 楼 @huihen 我已经不玩 twitter 好多年啦。最后一次活跃大概是 09 年 1 月左右。也是因为 FQ 这档子破事。

  • 为何 CDN 都要封呢? at 2015年01月28日

    这个事情我在隔壁喷过。

    http://www.v2ex.com/t/147567

    很多人不同意我的观点

  • 墙外的世界,突破公司和 GFW 防火墙的封锁 at 2015年01月27日

    obfstunnel 早就被识别了吧。我记得。

  • 国内外哪些(云)平台或者托管环境不会被墙骚扰? at 2015年01月26日

    那肯定得推荐我大 softlayer。这货的主要特点是——贵。

    这个门槛导致只有大公司才会用这个主机,然后不会有乱七八糟的东西在上面,然后内容一般比较和谐不会被墙。

    便宜免费的,如果不会被墙骚扰,那就会被蝗虫骚扰。。。。所以这样的主机平台是不存在的。

  • 容错和速错 at 2015年01月26日

    用 fetch 的话,指定默认值莫非不是标配?

  • 在看 Joe 老爷子的 Twitter, 笑死了, 吐槽了 Gems at 2015年01月21日

    #8 楼 @nightire redcarpet requires Ruby version >= 1.9.2 是大于等于 1.9.2 吧

  • 16 进制转 GBK 不成功 at 2015年01月20日

    ["AA3F3201861F0000D61F0000"].pack('H*').encode('gbk', replace: '') => "?2\x01\x1F\x00\x00\x1F\x00\x00"

  • Bret Victor 的创新的编程工具 at 2015年01月19日

    这种工具我上个世纪见过。名字叫 frontpage。

    这个世纪的也有,名字叫 react-hot-loader

  • Ruby-China 的会员们能合力做点什么商业项目吗? at 2015年01月13日

    Ruby-China 的会员们能合力为我做点什么商业项目吗?

    是不是这样?

  • AngularJS 为什么成功了? at 2015年01月13日

    隔壁 v2ex 也是你发的吧

  • 微信 Js-SDK 发布,感觉要逆天啊! at 2015年01月10日

    微信这个战略相当吊。Container as a service

  • unicorn 重启时,老进程不关,同时打开了一个新的,怎么解决? at 2015年01月08日

    还需要 kill -QUIT 一个 unicorn.pid.oldbin

  • 怎么把 Double 转化为 Time 字符串 at 2015年01月08日

    0.5 表示半天????

  • 【转载】向数据库插入多条数据的效率问题 at 2015年01月06日

    disable log_bin enable skip-innodb-doublewrite set transaction_isolation to READ-COMMITTED or READ-UNCOMMITTED (actually READ-COMMITED) set innodb_flush_log_at_trx_commit to 0 or 2 (actually 0) set innodb_buffer_pool_size to 5GB (system has 6GB RAM)

    http://dba.stackexchange.com/questions/29913/innodb-insertion-faster

  • 【转载】向数据库插入多条数据的效率问题 at 2015年01月06日

    #3 楼 @hooopo http://dbahire.com/testing-the-fastest-way-to-import-a-table-into-mysql-and-some-interesting-5-7-performance-results/

    有很多角落里的变量可以关闭。加大 innodb 缓存,关闭各种锁,关闭索引检查限制什么的。

  • 【转载】向数据库插入多条数据的效率问题 at 2015年01月06日

    @hooooopo 我大概能说出 5 个改进可以比 LOAD INFILE 更快。其中最淫荡的一条是先在 MyISAM 里导入然后把 engine 转成 InnoDB。

  • ActiveRecord model 里你们是如何处理耗时远程属性的 cache 的? at 2015年01月05日

    #6 楼 @hooopo 我感觉还是有问题,class 初始化之后,type_id 对应的缓存会一直不刷新。当服务器进程一直跑的话,那么缓存是永久不过期的。

    所以我在想,有没有跟 scope 生命周期一样的缓存。。。

  • ActiveRecord model 里你们是如何处理耗时远程属性的 cache 的? at 2015年01月05日

    #3 楼 @hooopo 又发现好东西了收藏一个。

    问题是 memoize 有效是对于单个 model 实例的。但是对于不同实例,只要 type_id 一样,那么都应该避免重复 http 请求。memoize 应该没法做到。

    也就是说缓存应该建立在一个 ActiveRecord::Relation 上面,而不是 ActiveRecord::Base 上。

  • ActiveRecord model 里你们是如何处理耗时远程属性的 cache 的? at 2015年01月05日

    #1 楼 @billy 好办法,顶一个。不过这个 cache 是全局的。。。TTL 设置什么的也麻烦。

    有没有办法在一个 model 对象生存周期里 cache?

    btw 我用的是 sinatra 和 grape

  • 我兑现了一个月前的承诺 at 2014年12月29日

    真男人!

  • 写入数据库你是否会考虑 UUID 重复问题 at 2014年12月24日

    重复了,直接砸电脑吧。

  • 你是如何解决这个 Bug 的? at 2014年12月24日

    这个 bug 是:月球没有空气,听不到关门声么?

  • [上海] Sonata Services 招聘 Ruby On Rails Developer at 2014年12月24日

    第一眼看成桑塔纳,第二眼看成索纳塔

  • Float 型相加结果是多为小数 at 2014年12月24日

    计算机常识。搜索 IEEE 754

  • 在某些现状上,今天的 Ruby 就如同 8 年前的 PHP at 2014年12月19日

    #7 楼 @ddyy 你说的这个已经有了。叫做 docker。复制粘贴一个镜像,双击打开启动,就不用管了。

  • 上一页
  • 1
  • 2
  • …
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 下一页
关于 / RubyConf / Ruby 镜像 / RubyGems 镜像 / 活跃会员 / 组织 / API / 贡献者
由众多爱好者共同维护的 Ruby 中文社区,本站使用 Homeland 构建,并采用 Docker 部署。
服务器由 赞助 CDN 由 赞助
iOS 客户端 / Android 客户端 简体中文 / English