Ruby China
  • 社区
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • 注册
  • 登录
soledad
@zhang_soledad
会员
第 5178 位会员 / 2013-01-08

[email protected]
11
杭州
6 篇帖子 / 165 条回帖
10 关注者
41 正在关注
260 收藏
无证程序员
GitHub Public Repos
  • alchemic_avatar 56

    Creating letter avatar from a name

  • alchemic_pinyin 18

    Elixir汉字转化拼音

  • ckb-vm 1

    CKB's vm, based on open source RISC-V ISA

  • rust-rocksdb 1

    rust wrapper for rocksdb

  • ckb 1

    Nervos CKB is a public permissionless blockchain, the common knowledge layer of Nervos network.

  • molecule 1

    Another serialization system: minimalist and canonicalization.

  • Slayers 1

  • ckb-docker-builder 0

  • blake2b-rs 0

  • rfcs 0

    This repository contains proposals, standards and documentations related to Nervos Network.

More on GitHub
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • [RubyConfChina2017 话题分享] Ruby 异步编程奥德赛 at 2017年09月20日

    居然没人捧场

  • [杭州] 杭州秘猿科技招聘后端研发工程师 /前端研发工程师 at 2017年06月28日

    😀

  • UPYUN 支持 Elixir hex.pm 国内镜像 at 2016年11月18日

    💯

  • [活动] 又拍云 Open Talk B 站专场《哔哩哔哩幕后技术大探讨》 at 2016年11月12日

    图片?意思是都不想排版格式咯?

  • 如何正确阻挡有人不断尝试登入? at 2016年11月08日

    https://github.com/kickstarter/rack-attack

  • [大连] 招聘 Ruby 开发工程师 3 位,大米科技 (五常大米、智慧农业、智能厨房领域) at 2016年10月26日

    #3 楼 @lgn21st http://blog.plataformatec.com.br/2015/06/elixir-in-production-interview-garth-hitches/

    https://github.com/nerves-project/nerves

    不是稀奇事啊

    @zmbacker 前段时间去大连玩 是个好地方 😀

  • 现在想学习 Ruby,但是没有一点编程的知识?从哪里开始? at 2016年10月15日

    http://www.ituring.com.cn/book/1875 这本书门槛低相对一些 还帮你把 git 也入门了

    随代一提除了英文 gfw 也是要想办法去解决的

  • 如何重写自动生成的模型关联方法 at 2016年10月04日

    简单情况用 counter_cache 方便,我个人偏向用 DB trigger。

  • GitLab 8.11.7 中文版,有感兴趣的么? at 2016年09月27日

     汉化 没什么必要、

  • [杭州] ConsenLabs 创业团队招募 Ruby、前端、后端工程师 at 2016年09月23日

    #24 楼 @tcstory 年轻人不要听风就是雨 招聘也是要按基本法的

  • Ruby 里面算是 “一切皆对象” 么? at 2016年09月14日

    #6 楼 @gyorou a block is just part of the syntax of a method call #5 楼 @FrankFang 面向对象虽然是 Java 的核心设计,但是 Java 和“一切皆对象”相去甚远,Java 的数据类型分为内置数据类型、引用数据类型,

    There are eight primitive types in Java ——“core java”

    Integer 是对象,但是 int 就是 int。

  • 程序员如何写简历和面试 at 2016年09月13日

    简历写个 SPA 放到 github.io 上,很好使。

  • [杭州] ConsenLabs 创业团队招募 Ruby、前端、后端工程师 at 2016年09月10日

    你问我支不支持 我当然支持

  • 如何优雅地通过 before_action 来跳过 action 指定代码的执行? at 2016年09月08日

    #3 楼 @icepoint1999 http://guides.rubyonrails.org/action_controller_overview.html#filters

    If a "before" filter renders or redirects, the action will not run. If there are additional filters scheduled to run after that filter, they are also cancelled.

    本来就是设计的拦截器

  • 挥别 SelfStore,Rails 教程五折优惠 at 2016年08月26日

    好可惜 http://www.ruanyifeng.com/mt-archives/2006_03_02_262.html http://www.ruanyifeng.com/blog/2010/08/it_book_publishing.html 国内进口书的引进翻译这块是大问题,好多名著都被翻译毁了,技术书的翻译完全靠情怀,收入很微薄。

  • 在 Rails 里布局文件的 head 部分 csrf_meta_tags 是什么? at 2016年08月26日

    随手贴个 rails5 的 http://blog.bigbinary.com/2016/01/11/per-form-csrf-token-in-rails-5.html

  • Rails 怎么解析 post 过来的 XML? at 2016年08月19日

    如果是微信的,Hash.from_xml完全适用

    xml = <<-XML
    <?xml version="1.0" encoding="UTF-8"?>
       <hash>
         <foo>1</foo>
         <bar>2</bar>
       </hash>
    XML
    
    hash = Hash.from_xml(xml)
    # => {"hash"=>{"foo"=>1, "bar"=>2}}
    

    有 api 文档 多试多查

  • Rails 怎么解析 post 过来的 XML? at 2016年08月19日

    看起来是 微信的包吧 前面都推荐 Nokogiri Hash.from_xml 比较直接简单

    xml 的模板推荐你用roxml

    require "roxml"
    
    module Wechat
      module Message
        class Base
          include ROXML
          xml_name :xml
    
          xml_accessor :ToUserName, cdata: true
          xml_accessor :FromUserName, cdata: true
          xml_reader   :CreateTime, as: Integer
          xml_reader   :MsgType, cdata: true
    
          def initialize
            @CreateTime = Time.zone.now.to_i
          end
    
          def to_xml
            super.to_xml(encoding: "UTF-8", indent: 0, save_with: 0)
          end
        end
      end
    end
    
    
    # <xml>
    # <ToUserName><![CDATA[toUser]]></ToUserName>
    # <FromUserName><![CDATA[fromUser]]></FromUserName>
    # <CreateTime>12345678</CreateTime>
    # <MsgType><![CDATA[text]]></MsgType>
    # <Content><![CDATA[Hello]]></Content>
    # </xml>
    module Wechat
      module Message
        class Text < Base
          xml_accessor :Content, cdata: true
          def initialize
            super
            @MsgType = "text"
          end
        end
      end
    end
    

    破费

  • 请问如何在 Rails production 环境下 reload assets 静态资源? at 2016年07月15日

    https://github.com/alexspeller/non-stupid-digest-assets

  • 围绕 MacBook Pro 打造的工作站设计日志 at 2016年06月22日

    @dsh0416 不用解释了 写代码的时候还想艹猫

  • 围绕 MacBook Pro 打造的工作站设计日志 at 2016年06月22日

    艹猫狂魔 @dsh0416

  • 求助: Ruby 数组运用的问题 at 2016年06月07日

    上面的都是贴代码 这位小兄弟需要先明白什么是对象引用

  • 线上部署 Ruby China 帖子页面报错:Elasticsearch::Transport::Transport::Errors::NotFound at 2016年06月07日

    你的Elasticsearch没有部署或者配置好

  • Rails 用 RJS 简单有效的实现页面局部刷新 at 2016年04月25日

    #25 楼 @holysoros jQuery.ajax() dataType 设为“script” , 就会把 response 当成 js 来执行,严格来说这是 jQuery 实现的,rails 的 jquery-ujs 只是定义了一些全局事件和事件代理 detail: http://api.jquery.com/jquery.ajax/ @cassiuschen 你应该用事件代理,参考 jQuery 的 on(http://api.jquery.com/on/) 方法,把事件代理到父级元素上,不要把事件直接绑到操作的元素。 backbone 也是这种原理。

    $( "body" ).on( "click", "p", function() {
      alert( $( this ).text() );
    });
    
  • Nginx + Unicorn 部署重启的性能问题 at 2016年04月18日

    #5 楼 @kafka0102 如果有 slow client,可以考虑换 puma https://devcenter.heroku.com/changelog-items/594

  • Nginx + Unicorn 部署重启的性能问题 at 2016年04月18日

    2 核 CPU,woker20 个,nginx 和 unicorn 的 woker 数都是和 cpu 数直接相关的,核心数 + 1 就行了,多了多占用内存也调度不到,https://www.digitalocean.com/community/tutorials/how-to-optimize-unicorn-workers-in-a-ruby-on-rails-app ,用 unicorn 的话最好也加上 unicorn-worker-killer 这个 gem,控制每个 worker 的内存占用。

  • 同时需要 API 和 Web 页面的 Rails 项目,怎样结合 Grape 和 Rails? at 2016年04月15日

    @hewe active_record 是充血模型 逻辑都放在对应的领域模型里 只有在过于复杂跨多个领域模型的时候才会写 service 但是逻辑都不会写在 controller 里面

  • 同时需要 API 和 Web 页面的 Rails 项目,怎样结合 Grape 和 Rails? at 2016年04月15日

    同样的业务逻辑需要在 Grape 和 Rails 里分别写一遍? 你们逻辑难道在 controller 里面?

  • Agile Web Development with Rails 5 引进事宜 at 2016年04月13日

    前一版就已经做烂了

  • Rails Log 格式化 + Kids日志收集 at 2016年03月23日

    http://www.fluentd.org/blog/unified-logging-layer

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