Ruby China
  • Topics
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • Sign Up
  • Sign In
Yuan Cheung
@zhangyuan
VIP
NO. 140 / 2011-11-20

北京
6 Topics / 558 Replies
10 Followers
0 Following
32 Favorites
I'm not the only one.
GitHub Public Repos
  • google-authenticator-e... 10

    A command line tool to extract secrets from Google Authenticator's QR code. 从 Google Authenticato...

  • proxymanager 2

    A simple tool to manage v2ray process and network proxy on MacOS

  • zender 1

    Compile templates written in Jinja, with metadata generated.

  • seo-helper 1

    A simple tool to generate SEO meta info with LLM.

  • dq 1

    A data quality check utility

  • amlogic-s9xxx-openwrt 0

    Support for OpenWrt in Amlogic, Rockchip and Allwinner boxes. Support a311d, s922x, s905x3, s905x...

  • securebin 0

    A simple application for sharing text securely with client side encryption.

  • git-server 0

    A simple demo for git server

  • qqwry-rs 0

    A library and program for IP address lookup using the qqwry.dat file.

  • stm32f103c8t6-blink-ar... 0

More on GitHub
  • Overview
  • Topics
  • Replies
  • Favorites
  • Following
  • Followers
  • model 查找 at September 02, 2013

    用 != 的话不能用到索引,建议用 in

  • 有没有正在学英语的。分享下心得和经验啊~想学英语了~! at September 02, 2013

    每天看美剧,要坚持

  • RubyConfChina 2013 开始接受报名和售票! at August 29, 2013

    998

  • 我会说 Turbolink 的体验就是一坨屎吗 at August 24, 2013

    楼主,不好意思,请问下能让你的头像不动吗。。。。。

  • Rails 项目部署问题 at August 22, 2013

    看起来你是用 apache 用户启动 Apache 的。用 su 切换到 apache 这个用户,你能进入项目,并打开文件吗?(随便打开个)

  • Rails 项目部署问题 at August 22, 2013

    #8 楼 @xiaoTao 回复错人了。。帮你 AT @Rei

  • Rails 项目部署问题 at August 22, 2013

    权限的话,能否使用 apache2-mpm-itk 模块来设置虚拟主机的用户、用户组?

  • 请问 ruby 如何监听文件变动? at August 22, 2013

    https://github.com/ttilley/fssm

  • shotgun `trap': unsupported signal SIGQUIT (ArgumentError) at August 21, 2013

    #1 楼 @tumayun 信号和信号量不是一回事儿…

  • 这个水吗 at August 21, 2013

    标题很水 +1

  • 搞不定了,问个 asset 的问题 at August 21, 2013

    1 在 application.rb 是不是配置了 config.assets.prefix?默认这个值是

    config.assets.prefix = "/assets"
    

    2 它和 ENV['RAILS_RELATIVE_URL_ROOT'] 这个环境变量有关,你有没有设置过呢?

  • ruby 文件操作,如何重新开启 IO 流?IOError:closed stream at August 20, 2013

    close 后文件描述符就没有了吧?应该是重新打开文件?

  • 这种图片处理有好的 gem 吗 at August 19, 2013
    convert -size 400x300 xc:white \
    a.png -geometry +50+50 -composite \
    b.png -geometry +100+25 -composite \
    output.png
    

    解释一下:第一行是画一个白色的背景画布;第二行是把 a.png 画在 (50, 50) 坐标上;第三行把 b.png 画在 (100, 25) 坐标上。

    如果你想用 carrier_wave + mini_magick 结合的话,可以参考这个 gist

    https://gist.github.com/zhangyuan/5932220

  • 这种图片处理有好的 gem 吗 at August 19, 2013

    用 Image Magick 的 composite 选项

  • 现在入手 iPad 符合时机嘛 at August 18, 2013

    iPad 看书费眼睛

  • [杭州] 30k/月,找 Ruby freelancer,共同完成初创项目。 at August 18, 2013

    #4 楼 @tumayun 看到 QQ 号码,我也惊呆了

  • 除了北京上海 还有哪个城市搞软件不错? at August 13, 2013

    据说是厦门和成都

  • 请问大家如何处理 Sidekiq 的超大 log 文件的? at August 13, 2013

    楼上正解。

  • 是你,你愿意选择去台湾的企业么? at August 12, 2013

    每年有很多应届生去 MTK,楼主应该问他们。

  • 关于 rubychina 的用户 ID/ 用户名 的问题 at August 09, 2013

    在主要的网站使用相同的 ID、头像,挺好的。前提是这个 ID 不要太普遍。。。

  • [广州][猎头] 知名互联网公司招聘 Ruby 高级开发工程师 at August 08, 2013

    在深圳的话就想试试了。可惜在广州,我唔识讲白话 ☺

  • @tmm1 教你 Eventmachine at August 08, 2013

    今天刚做了个 sidekiq 和 celluloid 的讲座……

    celluloid 也有个视频,confreaks 上的~ http://www.confreaks.com/videos/1302-rubyconf2012-the-celluloid-ecosystem

  • Rails 如何定义全局变量 at August 08, 2013

    #3 楼 @Martin91 手抖了…… 已改

  • Rails 如何定义全局变量 at August 08, 2013

    大写字母开头的是 变量 常量 $ 开头的是全局变量

  • @tmm1 教你 Eventmachine at August 08, 2013

    Thank LZ. :)

  • [北京] 硅谷 Y Combinator 的中国团队招 Rails 工程师 at August 01, 2013

    Good taste...

  • Sinatra 的 request.url 安全么? at August 01, 2013

    中间人攻击?

  • User.current 这种用法到底靠谱不靠谱? at July 31, 2013

    User.current 这种用法,从 redmine 里来的吧 XD

    传送门 https://github.com/redmine/redmine/blob/2.3.2/app/models/user.rb#L590

    def self.current=(user)
      Thread.current[:current_user] = user
    end
    
    def self.current
      Thread.current[:current_user] ||= User.anonymous
    end
    
  • Prev
  • 1
  • 2
  • …
  • 5
  • 6
  • 7
  • 8
  • 9
  • …
  • 18
  • 19
  • Next
关于 / RubyConf / Ruby 镜像 / RubyGems 镜像 / 活跃会员 / 组织 / API / 贡献者
由众多爱好者共同维护的 Ruby 中文社区,本站使用 Homeland 构建,并采用 Docker 部署。
服务器由 赞助 CDN 由 赞助
iOS 客户端 / Android 客户端 简体中文 / English