Ruby China
  • Topics
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • Sign Up
  • Sign In
ian
@doitian
VIP
NO. 186 / 2011-11-23

皮匠科技
杭州
22 Topics / 849 Replies
42 Followers
1 Following
13 Favorites
GitHub Public Repos
  • live2dviewer 76

    Live2D 模型批量查看器

  • dotfiles-public 14

    My configurations

  • knowledge-base 5

  • ckb-sdk-python 2

  • readwise-scripts 2

  • zotero-actions-tags-sc... 2

    Scripts for the Zotero plugin windingwind/zotero-actions-tags

  • lnd-grpc-tonic-client 2

    Rust lnd client using tonic and tonic-openssl.

  • http-inspector 1

  • dotfiles 1

    dotfiles managed using saltstack

  • userstyles 0

More on GitHub
  • Overview
  • Topics
  • Replies
  • Favorites
  • Following
  • Followers
  • [北京] EMC 急招 Sr. Developer Engineer for testing cloud in BRS at June 03, 2013

    Black Rock Shooter

    BRS

  • 大家帮我送祝福吧 at May 29, 2013

    image 根据图片实际大小设置下 width height 就不会闪花眼了。

  • 在 Heroku 上部署失败: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch at May 28, 2013

    Procfile 里的 web server 需要使用端口 $PORT。数据库可以添加 MongoHQ 的免费 plan。初始化连接使用环境变量 MONGOHQ_URL

  • 为什么没人想写一个有语法检测功能的编辑器呢? at May 27, 2013
    • https://github.com/lunaryorn/flycheck
    • https://github.com/scrooloose/syntastic
    • https://github.com/SublimeLinter/SublimeLinter
  • rails 的 any? 的奇怪问题 at May 22, 2013

    有一个可能的情况是你用 @discussion.topics << topic 添加了一个新的 topic 但是这个 topic 并没有保存成功。这种情况下 @discussion.topics 已经 eager loaded 了,而且这个更新失败的 topic 包含在这个加载后的 cache array 中。但是 @disucsion.topics.any? 是从数据库查询的,如果这个新的 topic 没有保存成功,数据库里还是空的,所以会返回 false。

    你可以打印下看看

    @discussion.errors.full_messages
    @discussion.topics.to_a.collect(&:errors).collect(&:full_messages)
    @discussion.topics.to_a.collect(&:changed?)
    

    如果确实想把出错的 topic 也显示,可以有 to_a 强行转成 array 再调用 array 的 any? 的方法

  • 实时插入排名的设计 at May 21, 2013

    排名对换更简单点

  • Ruby 的 String 有什么方法能够把字符串的值重写吗? at May 21, 2013

    String#replace ?

  • RACK_ENV 怎么设置啊? at May 19, 2013

    foreman 默认会加载 .env 的,把在项目根目录,加到 git 一起 push 到 heroku 就好了。本地用 foreman run COMMAND 和 foreman start [PROCESS] 也都会加载 .env 的。其实 heroku 的 heroku run 也就是远程调用 foreman run

  • RSpec or Minitest? at May 19, 2013

    #4 楼 @hooopo 5.0 把 MiniTest 改成 Minitest 了

  • RSpec or Minitest? at May 19, 2013

    正好听到 Ruby5 在吐槽 http://ruby5.envylabs.com/episodes/374-episode-370-may-17th-2013/stories/3265-minitest-5-0-0-released

  • RSpec or Minitest? at May 19, 2013

    有些 Mini upcase Test 没改成 Mini downcase test

  • imax.im 不能用了,大家可有其他类似的网站下载电影 at May 19, 2013

    http://www.zydh123.com/

  • Github Open Source Contributions Calendar. at May 18, 2013

    有 4 种颜色可以用呢,可以画个画,做个抗锯齿什么的。

  • [Cyberspace] Enumerable 小组招募 90 后 Web 开发爱好者 at May 18, 2013

    很好的想法

  • ruby 能否像 haskell 一样实现 reverse at May 17, 2013

    这样 reverse list 可是相当的慢的

    reverse xs = reverse' xs [] where
      reverse' [] acc = acc
      reverse' (x:xs) acc = reverse' xs (x:acc)
    
  • 异步 IO 在 EventMachine 和 NodeJS 的写法对比 at May 17, 2013

    还有 Promise/Future

  • 在一台服务器上同时跑 5 个 Rails 应用需要什么配置? at May 16, 2013
    1. passenger 配置简单,每个应用 bundle 好,passenger 里配置下 virtual host 的路径就行了。
    2. 各自起 server,比如 unicorn。分配不同的端口。然后用 nginx 做 forward proxy,把 virtual host 的请求映射到不同端口。
  • 求 Mac 的 Emacs 配置,,, at May 16, 2013

    Linux 转到 Mac 的可以安装这个编译好的版本 http://emacsformacosx.com/

    Option 比较难按,可以在 Emacs 里把 Command 当作 Meta 用

    (custom-set-variables '(mac-command-modifier 'meta))
    
  • 毕设文献翻译 at May 16, 2013

    看看 arel 的 relational algebra 有没有什么论文。另外安全方面文章应该比较多。或者网络协议相关的。HTML5 也可以挖掘。慢慢搜索吧。最近收藏过一篇论文和 web 相关,不过和 Rails 没什么关系 Privilege separation in HTML5 applications

  • 给 log 上点色 at May 14, 2013

    #7 楼 @iBachue less -R

  • 市场调查: 如果我搞个 Matias Mini Tactile Pro 的团购。。 at May 14, 2013

    能定制键盘就好了,我想要的是把 Option 那空着,把空格缩小,然后 Option 话空格两边

  • 图片的效果的怎样做的? at May 12, 2013

    图片滚动是用了 CSS background-attachment: fixed

  • 图片的效果的怎样做的? at May 12, 2013

    图片在后面,前面那块背景设置成透明。擅用 Firefox/Chrome/Firebug inspector

  • Rails 4 + simple_form 遇到问题了 at May 12, 2013

    手动指定 method

  • [西安 | 北京 | 成都 | 上海] ThoughtWorks 招聘软件工作者 at May 12, 2013

    ThoughtWorks 不是 remote 的啊?

  • 新人又来了,这次是 Nginx + Passenger 的配置问题。 at May 11, 2013

    nginx 默认是 nobody,设置成 deployer 试试

    user deployer

    不过更安全的方式是 nginx server 的 user 只需要有最基本的权限。你可以加上

    user www group www

    然后让用户 www 或者组 www 有对 passenger, project 目录的读权限,以及一些文件夹的写权限(比如 Rails 下的 tmp 和 log 目录)。注意对于 /path/to/file 的写权限,必须同时要求路径上所有目录的 rx 权限。

  • 关于 rubychina 的用户 ID/ 用户名 的问题 at May 11, 2013

    comment 的用户名还是 cache 了

  • 六人小组去*厦门*休闲工作一个月,有推荐 / 赞助工作场所,或者想一起讨论问题玩的么? at May 10, 2013

    这个太矛盾了,效率高了不就没怎么玩了嘛

  • Prev
  • 1
  • 2
  • …
  • 9
  • 10
  • 11
  • 12
  • 13
  • …
  • 28
  • 29
  • Next
关于 / RubyConf / Ruby 镜像 / RubyGems 镜像 / 活跃会员 / 组织 / API / 贡献者
由众多爱好者共同维护的 Ruby 中文社区,本站使用 Homeland 构建,并采用 Docker 部署。
服务器由 赞助 CDN 由 赞助
iOS 客户端 / Android 客户端 简体中文 / English