Ruby China
  • 社区
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • 注册
  • 登录
Ryan
@wongyouth
高级会员
第 1899 位会员 / 2012-04-20

上海
8 篇帖子 / 90 条回帖
3 关注者
3 正在关注
11 收藏
Do things the stupid way.
GitHub Public Repos
  • vimfiles 29

    Vim config file specially focus on Rails programming.

  • dotfiles 2

    config files for zsh, bash, completions, gem, git, irb, rails

  • wxpay 1

    A node package for WeChat Pay

  • free-chatgpt-api 0

    Access ChatGPT (GPT-3.5) API for absolutely free, hosted from your own computer! No API key requi...

  • vscode-yaml-outline 0

    Provide Symbols for YAML files

  • edgetunnel 0

    在原版的基础上修改了显示 VLESS 配置信息转换为订阅内容。使用该脚本,你可以方便地将 VLESS 配置信息使用在线配置转换到 Clash 或 Singbox 等工具中。

  • gatsby-site 0

  • stream_chat 0

    LiveView app to demonstrating streams

  • wongyouth.github.com 0

    Personal blog

  • deeplearning-exercise 0

    Deep learning exercises for specific problem

More on GitHub
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • [上海][2025 年 2 月 18 日] Ruby 线下聚会 - 使用 Dify 做 AI 应用 at 2025年02月18日

    好近,走路 5 分钟,报名支持大神

  • [上海][8-24,25] RubyConf China X 讲师和主题介绍 at 2019年06月20日

    @ericguo 期待大神

  • 升级 Yosemite 的常见问题解决办法 at 2014年10月22日

    PostgreSQL 不能启动的对应

    mkdir /usr/local/var/postgres/pg_tblspc
    mkdir /usr/local/var/postgres/pg_twophase
    mkdir /usr/local/var/postgres/pg_stat_tmp
    

    http://stackoverflow.com/questions/25970132/pg-tblspc-missing-after-installation-of-os-x-yosemite

  • 有没有好点的邮件服务器,求推荐 at 2014年07月16日

    已经没有人用 sendgrid 了吗?发 QQ 邮箱也都 ok

  • 给 sort 传参,不能排序 at 2014年07月11日

    options.sSortDir_0 是多少?0 吗

    可用的输入项应该是 1 或者 -1 吧

  • "wget -O - http://foo.com",'-O' 后的'-'什么含义? at 2014年07月11日

    应该重定向到标准输出吧

  • [已解决] twitter bootstrap 与 slim 搭配时遇到的一个问题 at 2014年07月10日

    应该这样写

    p
      - post.tags.each do |tag|
        span.label.label-default
          = tag.name
          '
          | Something else
    

    '是在行尾加了空格,相当于多写了一行带一个空格的单行。

    比较之后发现 js 的 jade 没有这个功能,所以写起来很痛苦

  • 你们的 Redmine 是最新版本吗? at 2014年07月03日

    我只用了个 A5 的 Theme,以前还用过别的插件,发现升级出问题,现在是裸奔了。 于是更新就没有了一点压力。

  • 你们的 Redmine 是最新版本吗? at 2014年07月03日

    你们都用了哪些插件?

  • 最近项目里需要用到城市数据,遂写了个 Gem 用来取得最新数据。 at 2014年07月01日

    @ywjno 我觉得要看你的数据如何建模的。

    如果你的数据是导入到数据库,应该会用数据库的 id 来建立层级关系。 这样如果某县变成某市的区,只要改变层级父子关系就好了。如果某个县市合并了,需要把所有引用的旧 id 变更到新 id 上。

    一般一个县市数据即使变更了,使用旧的地址邮递系统应该都能够辨识出来,不是特别有要求的系统我觉得 5 年之内没有必要考虑更新的问题,至于 5 年之后可能系统都重写或者换掉了也不一定哈。~。~

  • 我想做一个解决 it 男单身问题的网站 靠谱么 at 2014年05月30日

    @hlt 有哲理

  • haml slim 之流真的好吗? at 2014年04月25日

    +1 可读性大大提高

  • 写了个 播报"xx 宝"收益的命令行工具 (Ruby 版) at 2014年04月21日

    赞

    @neverlandxy_naix Unicode 长度问题可以用 unicode-display_width 这个 gem

    require 'unicode/display_width'
    >> s='你的就是我的'
    => "你的就是我的"
    >> s.size
    => 6
    >> s.display_size
    => 12
    
  • 盛大云,默认 DNS 问题严重 at 2014年04月16日

    查了一下项目所在的盛大机器配置,有 Ubuntu12.04,10.04 机器,都是默认值

    • 华北机房
    nameserver 211.147.12.9
    nameserver 211.147.12.10
    nameserver 8.8.8.8
    

    查 IP 地址显示是 北京电信所有

    • 华东机房
    nameserver 58.215.170.70
    nameserver 58.215.170.71
    nameserver 8.8.8.8
    

    查 IP 地址显示江苏无锡电信所有

    访问外网速度貌似没有问题,而且机器用了都超过一年了。

  • [上海][2014年4月15日] 四月周中聚会 at 2014年04月15日

    签到,今天人很多啊

  • Rails 是怎么实现事务管理的? at 2014年04月10日

    使用支持事务的数据库:MySQL(InnoDB)或者 PostgreSQL

  • if, unless 块中定义的变量块外还可以使用? at 2014年04月10日

    我记不清在哪里看到过说这种if的作用域问题以后 Ruby 版本升级可能会有变化,个人觉得最好能避免这种写法。

  • [西安] 金数据招聘 Ruby/Rails 开发人员 (以及设计师、客服) at 2014年03月15日

    @mechiland 看你的 Rubychina Conf 演讲稿很受启发,期待 14 年新干货。西安的朋友们把握机会啊!

  • 论 Rails 跑在 Windows 的可能行 at 2014年03月05日

    用 Vagrant 一步到位平台无关,虚拟机环境可分享,新进员工零配置。

  • 曾经沧海难为水 at 2014年02月19日

    @cassiuschen 请介绍下用什么 APP,如何调试,部署?

  • 用 Ruby on Rails 实现适应各种平台的在线 Office 文档预览 at 2014年02月19日

    文档转换工具推荐 unocov 不用自己写代码,依赖 OpenOffice

    #各种文档转换成pdf
    
    #install libreoffice
    sudo apt-get install libreoffice
    
    #需要安装中文字体,不然不识别中文
    sudo apt-get install ttf-wqy-zenhei
    
    #install unoconv
    sudo apt-get install unoconv
    
    #Or install the latest version from github https://github.com/dagwieers/unoconv
    
    #convert usage
    unoconv -f pdf *.ppt *.doc *.xls
    
  • Ruby China 已经正式换成 Puma 来跑了! at 2013年11月08日

    GitLab5.4 切换到 unicorn,然后 GitLab6(2013-8-20 发布) 又切换回到 unicorn 了。看这里 貌似在 MRI 环境下 puma 多线程会有很严重的内存泄露,而且 CPU100% 很高。

    We switched from Puma in GitLab 5.4 to unicorn in GitLab 6.0.

    why switch back to Unicorn again?

    Puma caused 100% CPU and greater memory leaks when running mult-ithreaded on systems with many concurrent users. That's because people used MRI. You MUST use JRuby or Rubynius when using Puma. Or else the world breaks apart.

    Mathieu adds in the comments:

    Yes, Unicorn is better (but more memory-eager) on MRI setups. Puma is better on Rubinius & JRuby, that's all.

    They can't force people to use other implementations of the Ruby Runtime, so they just fell back to the best setup for most setups :) –

  • 日常口腔护理心得 at 2013年11月04日

    我知道日本人用电动牙刷的比率很高,好的电动牙刷销量一直很好。 正确刷牙如果手动去刷的确蛮累的,一直要小范围做圆周运动。

  • vim 上如何 debug rails 代码? at 2013年11月04日

    目前常用 debugger 或者 pry-nav,不过都要修改代码, 这一点 rubymine 比较好用

  • Ruby China 已经正式换成 Puma 来跑了! at 2013年10月31日

    之前 robin 发过一个服务器的帖子 http://ruby-china.org/topics/10832 ,有空还打算试试 rainbow 呢,现在业界风向又回到 puma 了吗?

  • Google 15 岁了,你打糖了吗? at 2013年09月27日

    秀个分

  • [UCloud 开源接力]#[email protected]#19wu at 2013年09月24日

    抢小米

  • TimeWithZone 的格式化问题 at 2013年09月09日

    可以重写 as_json 方法

    class ActiveSupport::TimeWithZone
      def as_json(options=nil)
        time.strftime "%F %T"
      end
    end
    

    不过不推荐改默认的,可以用 jbuilder 之类得到想要的 json

  • [福利] 七牛新后台上线 携手 Ruby China 放送现金券 at 2013年08月02日

    @lgn21st 谢了,又帮我发了新的号,但是还是不好用。问了七牛的客服,说是已经过期了。想要的同学可以通过 36kr+ 拿到。

    您好,您的抵用券已过期。您可以到七牛合作伙伴36kr+申请新的。
    
  • 1
  • 2
  • 3
  • 下一页
关于 / RubyConf / Ruby 镜像 / RubyGems 镜像 / 活跃会员 / 组织 / API / 贡献者
由众多爱好者共同维护的 Ruby 中文社区,本站使用 Homeland 构建,并采用 Docker 部署。
服务器由 赞助 CDN 由 赞助
iOS 客户端 / Android 客户端 简体中文 / English