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
  • 我想问一下 ifttt 的技术实现如何 at January 12, 2014

    和这个帖子挺配的... https://groups.google.com/forum/#!topic/python-cn/GYEBCDTSTEE

  • 关于 fast-aes 对称加密 at January 09, 2014

    把 Base64.encode64 换成 Base64.strict_encode64 就不会有换行了。

  • Ruby 通过 post 发送 HTTP 请求时,参数是文件,怎么办呀?新手求解答! at January 08, 2014

    Net::HTTP 不支持 multipart/form-data(http://ruby-doc.org/stdlib-2.1.0/libdoc/net/http/rdoc/Net/HTTP.html)。建议使用 faraday、RestClient 等客户端。

  • 吐槽下 ROR 的编程环境部署,产品部署 真不省心! at January 02, 2014

    第一次不省心是真的。但是,自动化以后,就顺利多了

  • 2014 新年快乐 at January 01, 2014

    #6 楼 @liwei78 no, no, no…… 比楼主大几岁而已……楼主总是意气风发,忘不掉啊

  • 2014 新年快乐 at January 01, 2014

    #2 楼 @tumayun 孩子你真年轻

  • python 叛徒报道 at December 24, 2013

    Pyconf China 都是老面孔啊。

    [CPyUG] [OT] 为什么感觉 ruby 程序员/社区和前端结合的更紧密一些呢? https://groups.google.com/forum/m/#!topic/python-cn/KSw8LxAvPCU

  • 好像 Ruby 的性能问题始终是个大问题啊! at December 20, 2013

    换 SSD 😦

  • 为 Grape 和 Jbuilder 的非 Rails 应用增加缓存的 Gem at December 19, 2013

    没用过 rack cache,不过整页缓存用 varnish 吧,效率高,也能设置缓存时间。

  • 为 Grape 和 Jbuilder 的非 Rails 应用增加缓存的 Gem at December 19, 2013

    #2 楼 @aptx4869 jbuilder 的 cache! 方法应该只能在 rails (或者 ActionView ) 里使用

  • Sinatra 中为什么 \n 不能起到换行的作用 at December 10, 2013

    浏览器把一个或者连续多个换行显示为一个空格

  • rexml 解析 xml 解析效率 at November 29, 2013

    有个 ox 的工具,据说很快 https://github.com/ohler55/ox 。支持 SAX 解析

  • 那位大侠用过 Sidekiq? at November 26, 2013

    recurrence 是 sidetiq 里的,不是 sidekiq 的

  • ActiveResource 是用 HttpMock 来测试吗? at November 21, 2013

    看看源码,看样子是的

    https://github.com/rails/rails/blob/v3.2.15/activeresource/test/cases/authorization_test.rb

  • 办公室的包子味~! at November 21, 2013

    办公室吃东西会引来老鼠 😏

  • [美国] 大家也可以考虑下国外 at November 20, 2013

    #21 楼 @Yujing_Z 没有加急;RFE 的了两个多月才交资料的。。。 😢

  • [美国] 大家也可以考虑下国外 at November 20, 2013

    4 月提交申请的,抽签中了,现在还在审核(Request for Evidence Response Review),默默爬过……

  • 关于 render 的相对路径问题 at November 19, 2013

    我记得路径里只要有 / ,就会从 views/ 目录开始找

  • controller 中访问 model 中的 class 具体是通过什么途径? at November 19, 2013

    #2 楼 @zztczcx 可以了解一下 const_missing 这个方法。当常量找不到时,就会调用这个方法。所以可以重写这个方法,在这个方法里根据常量名加载对应的路径。楼主可以搜索 ActiveSupport::Dependencies 的实现。

    production 环境下叫 eager_load,是把 app/controllers,app/models 等目录下的文件在项目初始化的时候全部加载 (在加载的过程中其实也会遇到常量找不到的情况,rails 用的是 require_dependency 方法)。避免了线程安全问题

  • padrino&sinatra 的 session 最大只有 4k 怎么破? at November 18, 2013

    #9 楼 @huaoguo 为了快

  • padrino&sinatra 的 session 最大只有 4k 怎么破? at November 18, 2013

    What is the maximum size of a web browser's cookie's key? http://stackoverflow.com/questions/640938/what-is-the-maximum-size-of-a-web-browsers-cookies-key

    浏览器允许的 cookie 大多在 4k 以内。

  • 如何用代码描述问题而不是过程式思考? at November 15, 2013

    从如何测试的角度

  • selenium 报错 at November 14, 2013

    #1 楼 @TsingHan 格式化一下代码吧 😊

  • 请问有人遇到在内网开发时,rails 通过反向代理运行在 nginx 后端,调用 request.remote_ip 无法获取客户端 IP 或者报错吗? at November 14, 2013

    #1 楼 @xue98 除了 real_ip_header,还要用 set_real_ip_from 指令设置网段。见文档 http://wiki.nginx.org/HttpRealipModule

  • 请问有人遇到在内网开发时,rails 通过反向代理运行在 nginx 后端,调用 request.remote_ip 无法获取客户端 IP 或者报错吗? at November 14, 2013

    #9 楼 @ruohanc 😆 我们运维的同学,使用了 http_realip_module 这个 nginx 模块 http://wiki.nginx.org/HttpRealipModule 。指定一个网段,它会把 REMOTE_ADDR 设置为客户端的 IP。

  • rails 在 windows 平台下如何实现后台运行 at November 13, 2013

    将启动命令,做成 windows 服务来启动。

  • [上海] 百度诚招高级研发工程师 Ruby at November 11, 2013

    #71 楼 @siazhang 有兴趣,不过暂时不能投简历。招聘多少人啊?

  • 如何获取进程号? at November 11, 2013

    xargs 命令可以吗?

    以前删除系统所有的 gem,用 gem list | cut -d" " -f1 | xargs gem uninstall –aIx ...

  • [上海] 百度诚招高级研发工程师 Ruby at November 11, 2013

    标题不是写的是研发吗,怎么成运维了?

  • 艰难搞定 rails 4.0 下 mysql2 驱动 at November 10, 2013

    这个可能和 windows 关系不大。

    在 Linux 下我也遇到过缺少 mysql2.so 的情况。同样是 ruby2 + Rails4。也是通过拷贝 mysql2.so 解决的。

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