Ruby China
  • 社区
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • 注册
  • 登录
Michael He
@hlxwell
高级会员
第 239 位会员 / 2011-11-24

Odigo Japan
东京
73 篇帖子 / 600 条回帖
32 关注者
5 正在关注
0 收藏
Mac App 上班族背单词神器, 求支持www.memoryforcer.com
GitHub Public Repos
  • k8s-beginner-demo 12

    Kubernetes Basic Training for beginners.

  • leetcode-ruby 3

    Just for having fun to do some leetcode.

  • go-exchange-engine 2

    [WIP] Golang Crypto Exchange

  • genetic-algorithm-sudo... 2

    This is a project to use the Genetic Algorithm to solve the Sudoku problem.

  • gorm-auditable 2

    GORM plugin for auditing and record versions

  • exchange-on-k8s-demo 2

    This is a microservice tutorial project based on K8S + ISTIO + HELM.

  • new_data_notifier 1

    when has new data been added send notification mail

  • Alamofire 1

    Elegant HTTP Networking in Swift

  • CommitRewarder 1

    A DAO Tool to help open-source contributor contribute better.

  • kubernetes-the-hard-way 1

    Bootstrap Kubernetes the hard way on Google Cloud Platform. No scripts.

More on GitHub
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • 录了一段 Screencast, 体会到 Ryan 的艰辛. at 2013年08月08日

    #12 楼 @luikore hacker type 哈哈。不试经常看到 ryan 也是一段代码突然跳出来的么,或者拷贝过来的。

  • 编辑器新增插入代码功能 at 2013年08月08日

    好!好!好!顶楼主。

  • Ruby 写 Arduino 不靠谱! at 2013年08月08日

    #15 楼 @otinn 最好买 ethernet 模块不要买 wifi,然后 arduino mega(如果要添加很多 sensor + LCD + ethernet,你的接口肯定不够的,需要这个 mega),再加上一个扩展版,方便添加组件。 sensor 大概是:红外线接受和发送头,温度适度感应器 DHT11 就差不多了。

  • 突然不知怎么地,在 chrome 下 copy,paste 到 textmate 下不能 paste 刚才的内容。 at 2013年08月06日

    #1 楼 @luikore 可能因为开发 arduino 的原因。串口被改了哈哈

  • Ruby 写 Arduino 不靠谱! at 2013年08月06日

    #4 楼 @reyesyang 做测试嘛。大家都说 ruby 可以写,你不试一下怎么知道他不好用呢。

  • Ruby 写 Arduino 不靠谱! at 2013年08月06日

    #6 楼 @reus 既然你不能避免写 c,干嘛要写 ruby?

  • Ruby 写 Arduino 不靠谱! at 2013年08月06日

    #7 楼 @sevk L | Integer | 32-bit unsigned, native endian (uint32_t) 是什么意思? 你怎么再赋值给 c 代码写的驱动?

  • Ruby 写 Arduino 不靠谱! at 2013年08月06日

    #5 楼 @willmouse 挺有意思的。

  • Ruby 写 Arduino 不靠谱! at 2013年08月06日

    #1 楼 @reyesyang

    什么意思?

  • 弱弱问一句,mysql 和 mysql2 有什么区别啊 at 2013年08月06日

    works better, works faster.

  • 自己组装一个 iPhone4s 更便宜 1000 块就可以了。 at 2013年07月18日

    #6 楼 @jimrokliu 他们没有检查出来劣质零件?

  • 探讨,如何用 EventMachine 或者什么办法可以打开很多个连接到 Apple 的 push notification 服务器 at 2013年07月16日

    #1 楼 @luikore

    其实是让别人传 public key, 应该是安全的。其实 push notification 就是一个 ssl 链接。

  • 探讨,如何用 EventMachine 或者什么办法可以打开很多个连接到 Apple 的 push notification 服务器 at 2013年07月16日

    #1 楼 @luikore 做了一个简易版本,https://github.com/hlxwell/em_apn_manager

    证书上传是挺危险的,但是我看了 urbanairship 他们就这么做的。

  • Partial 性能太差 at 2013年07月14日

    #22 楼 @luikore 你又读源码发现了?能请教一下在哪里能找到那个 buffer class?

  • Partial 性能太差 at 2013年07月14日

    #27 楼 @tumayun 去了台湾说不定也能找到女神。

  • Partial 性能太差 at 2013年07月14日

    #24 楼 @leomayleomay 挺好的。如果 rails 默认就支持那就好了。不用利用第三方的东西去解决

  • Partial 性能太差 at 2013年07月13日

    #8 楼 @Rei 代码就是最简单的 Partial 使用,你用跟不用就能差很多,如果在 Partial 里加一点数据库访问逻辑,慢的指数就成倍上升。

    这个根本不需要看具体代码。只要你吧要做的事情同样的代码放到 Partial 里,就这两个比较而已。不是绝对性能提高,而是仅仅这两者比较。

  • Partial 性能太差 at 2013年07月13日

    #3 楼 @blacktulip 能 Cache 跟性能慢 是 2 嘛事。

    性能不好。老要做 cache,然后就得话很多时间去管理 cache 了。

  • Partial 性能太差 at 2013年07月13日

    #1 楼 @kikyous slim?

  • 上班族学习外语最佳神器 MemoryForcer。求下载使用支持。 at 2013年07月12日

    #51 楼 @jinkai_ 添加了英语音标功能。

  • 上班族学习外语最佳神器 MemoryForcer。求下载使用支持。 at 2013年07月12日

    已经加入了可以退订邮件的功能。可以到用户设置里去看。有个 option

    #101 楼 @hlxwell

  • Mongoid 里的 includes 怎么是个陷阱? at 2013年07月11日

    #4 楼 @Rei

    [13] pry(main)> Benchmark.measure { List.includes("words").find("510c032836bf8ac768014d84") }
    => #<Benchmark::Tms:0x007ff8f2a08988
     @cstime=0.0,
     @cutime=0.0,
     @label="",
     @real=2.316829,
     @stime=0.05999999999999983,
     @total=2.3000000000000016,
     @utime=2.240000000000002>
    [14] pry(main)> Benchmark.measure { List.find("510c032836bf8ac768014d84") }
    => #<Benchmark::Tms:0x007ff8f169e758
     @cstime=0.0,
     @cutime=0.0,
     @label="",
     @real=0.001487,
     @stime=0.0,
     @total=0.0,
     @utime=0.0>
    
    MONGODB (0.8ms) memoryforcer_development['lists'].find({:_id=>BSON::ObjectId('510c032836bf8ac768014d84')}).limit(-1).sort([[:_id, :asc]])
    
    MONGODB (0.8ms) memoryforcer_development['lists'].find({:_id=>BSON::ObjectId('510c032836bf8ac768014d84')}).limit(-1).sort([[:_id, :asc]])
    MONGODB (28.8ms) memoryforcer_development['words'].find({"list_id"=>{"$in"=>[BSON::ObjectId('510c032836bf8ac768014d84')]}})
    

    0.8ms VS 28.8ms

  • Mongoid 里的 includes 怎么是个陷阱? at 2013年07月11日

    #2 楼 @Rei

    memoryforcer_development['words'].find({"list_id"=>{"$in"=>[BSON::ObjectId('510c032836bf8ac768014d84')]}}

    memoryforcer_development['words'].find({"list_id"=>BSON::ObjectId('510c032836bf8ac768014d84')}}

    这两个差距就大了。

  • Mongoid 里的 includes 怎么是个陷阱? at 2013年07月11日

    Mongo 里的 .in Array 效率超级低。

  • 如何在 Model 里生成页面的 html 文件 at 2013年07月10日

    #23 楼 @fenprace 一个 controller 里不能多次 render,如果你要在一个 controller 里输出结果给用户又要输出页面去打包。你说怎么弄?

  • 如何在 Model 里生成页面的 html 文件 at 2013年07月09日

    #21 楼 @fenprace 你怎么在 model 里 render_to_string? 比如一篇文章编辑里,你希望重新压缩一个 zip。

  • 如何在 Model 里生成页面的 html 文件 at 2013年07月09日

    #18 楼 @blacktulip 代码已分享,查看更新部分。

  • 最近动画里扭来扭去的 ruby ... at 2013年07月08日

    你真蛋疼

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