Ruby China
  • 社区
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • 注册
  • 登录
Hooopo
@hooopo
管理员
第 8 位会员 / 2011-10-28

[email protected]
nil
北京
160 篇帖子 / 3013 条回帖
360 关注者
0 正在关注
74 收藏
聪明的妖怪录下了唐僧的紧箍咒
打赏作者
GitHub Public Repos
  • oh-my-github-circles 47

    GitHub User Circle Generator Using GitHub Actions

  • hackernews-insight 21

    Hackernews Insight using TiDB Cloud

  • repo-track-pipeline 6

    🔄 A flexible open-source data pipeline for seamlessly syncing data from any repository to your da...

  • oh-my-github-pipeline 6

    🔄 A flexible open-source data pipeline for seamlessly syncing data from any github user to your d...

  • chatgpt-xiaoai 3

    小爱音箱集成LLM,SaaS 服务

  • repo-contributor-circles 1

    GitHub repo contributor circles generator.

  • ossinsight-x 1

    Automatically post trending repos to Twitter every day.

  • mi-service 1

    XiaoMi Cloud Service for mi.com

  • hooopo 0

  • streamlit-echarts-demo 0

    Demo for Streamlit ECharts component

More on GitHub
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • Rails secret key 泄漏了,是不是逆向计算任意用户 Cookie at 2013年08月27日
    1. release = code base + config,不应该部署的时候通过脚本修改代码替代 config 的职责。
    2. 即使 RubyChina 部署的时候修改了 secret key,其他使用 RubyChina 源码部署的网站未必也修改了。
  • 百度 PaaS 平台可能要支持 Ruby 啦 at 2013年08月26日

    做的好一定有人用啊

  • 推荐一本对你影响最大的书 at 2013年08月26日

    #31 楼 @lgn21st 我只看了数学版的十万个为什么…

  • 推荐一本对你影响最大的书 at 2013年08月25日

    小王子

  • Third-Party Cookies Is Dead, Long Live First-Party Cookies at 2013年08月25日

    #13 楼 @jjym

    • 不是 ajax,是 jsonp,因为跨域请求,jquery 自动做的转换
    • 默认浏览器就会发 etag ,cache true 作用是阻止 jquery 在 url 里加随机数,这样 url 变了 etag 就变了
  • Third-Party Cookies Is Dead, Long Live First-Party Cookies at 2013年08月25日

    #9 楼 @zgm 就是说以前这种需求都是用第三方 cookie 来解决的,demo 里是一种不涉及到第三方 cookie 读写的方案。

  • Third-Party Cookies Is Dead, Long Live First-Party Cookies at 2013年08月25日

    #4 楼 @jjym 5 楼解释的不错。至于为什么要这样,是因为其他方案都很难达到跨域标识用户的效果。

  • Third-Party Cookies Is Dead, Long Live First-Party Cookies at 2013年08月25日

    #5 楼 @cantin yes

  • Third-Party Cookies Is Dead, Long Live First-Party Cookies at 2013年08月25日

    #2 楼 @jjym 跨站 session 这种需求你理解不?比如,淘宝和天猫虽然是两个网站,域名不同,但是他们想共享用户购物车里的商品。

  • 周末打算写个关于测试的博文,大家想知道些什么? at 2013年08月24日

    #21 楼 @nightire 明白。。。我只是顺便八卦一下:)

    就会上逮到了 Jeremy 本人,我记得趁着酒劲我问了几个问题:

    您这代码都怎么写出来的?您有没有 TDD 呀?Jeremy 说我一般不写测试,不过为了保证质量,他会补充一些测试。他说我就是 write codes which make sense ……好的,Make sense 是对直觉型程序员常说的。彪悍是不需要解释的。 您平常也看别人的开源项目获取灵感么?您如何平衡写自己的东西和看别人的东西?Jeremy 说,啥?我写代码那是为了糊口,看别人的代码那不挣钱呀。所以我一般不怎么看别人的东西,我就写我自己的东西,我觉得 make sense 的东西,当然要写的 make sense ……

    via: http://www.diamondtin.com/2012/backboneconf2012-%E5%8F%82%E5%8A%A0%E4%BA%86backbone-js-conference-2012/

    PS. Jeremy 是 coffeescript、underscore.js 还有 backbone.js 的作者。

  • 周末打算写个关于测试的博文,大家想知道些什么? at 2013年08月24日

    #11 楼 @happypeter 这个小道消息还算靠谱吧..

    整个 Slides 还是很好的,充满了各种重构的例子,使用 jasmine 写的测试。

    不过真正有趣的部分出现在 Q&A 阶段:

    某人站起来问 @bkeepers 请问 Github 是如何测试(人家没问如何 TDD)的呢?

    然后 @bkeepers 说一线的代码不是我写的,然后叫了现场的一个 Github 同事回答这个问题。然后他的同事非常尴尬的站起来很不好意思的说:”大哥,咱 Github 不写测试的“……全场哄笑。

    然后 @bkeepers 笑着说:“看我回去教这帮坏小子如何写测试去……”

    via: http://www.diamondtin.com/2012/backboneconf2012-the-plight-of-pinocchio-javascripts-quest-to-become-a-real-language-by-brandon-keepers/

  • Run Ruby2.0 App On Heroku at 2013年08月24日

    #22 楼 @gelihai1991 没。

  • User.current 这种用法到底靠谱不靠谱? at 2013年08月24日

    #29 楼 @ywencn 一提到 session 我就发现大多数人不懂 web 开发啊...

  • 史蒂夫 鲍尔默 要下台了 at 2013年08月23日

    so what?

  • User.current 这种用法到底靠谱不靠谱? at 2013年08月23日

    #26 楼 @ywencn 哈哈哈哈

  • 发现今天 Ruby-China 点击链接的时候,右上角会转圈圈 at 2013年08月23日

    那个圈圈干扰视线呀

  • [9.16 更新两位讲师] RubyConf China 2013 讲师介绍 at 2013年08月23日

    #7 楼 @luikore 戴帽子是因为没有头发么 ...

  • 为毛 Linode 说我借助我的 Linode 攻击它的服务。。 at 2013年08月23日

    #15 楼 @jasl 躺枪.. ps. 头像看起来不错。。帮我也弄一个啊

  • 有没有人有获取 ip 的代码,继续 at 2013年08月23日

     👏

  • SQL is Agile at 2013年08月23日

    http://www.mysqlperformanceblog.com/2013/08/01/schema-design-in-mongodb-vs-schema-design-in-mysql/

  • [9.16 更新两位讲师] RubyConf China 2013 讲师介绍 at 2013年08月20日

    补充一下关于 Steve Klabnik 的:

    • 2011 年的Ruby Hero
    • thechangelog 的主要维护者
    • Hackety Hack 的主要维护者
    • Designing Hypermedia APIs 这本书的作者
  • Secure Your Application : The Basic at 2013年08月19日

    brakeman -o brakeman.html

  • 看到好多不懂技术,做 niche 站月收入比普通 rails 年收入还高。。。 at 2013年08月18日

    #23 楼 @bhuztez 那什么是技术?PHP 只是一种语言啊...

  • 看到好多不懂技术,做 niche 站月收入比普通 rails 年收入还高。。。 at 2013年08月18日

    #6 楼 @bhuztez HTML 是技术,复制粘贴 HTML 不是技术。

  • 构建你自己的 Rails console at 2013年08月15日

    好像不依赖 rake 更直接一些。 只需要三行:

    require 'irb'
    require 'irb/completion'
    IRB.start
    

    https://github.com/hooopo/direct_web_spider/blob/master/script/console

  • 来分析分析这段 Ruby 代码 at 2013年08月15日

    #2 楼 @blackanger 一定是先找到码点,生成字符,再复制的..

    [33, 287, 179, 179, 179, 163, 33, 64665, 8865, 8865, 8801, 64793, 33, 34349, 2099, 12371, 2163, 61613, 33, 37017, 43169, 43169, 43105, 16665, 33, 2335, 32305, 34889, 32869, 16547, 33, 28817, 43177, 43177, 43177, 12433, 33, 63521, 4129, 2081, 2081, 4129, 33, 28837, 35043, 35011, 37043, 65197, 33, 16541, 61443, 43203, 43187, 43179, 61597, 33, 63521, 2213, 12575, 2209, 61473, 33, 165, 227, 195, 179, 173].pack("U*")
    
     => "!ğ³³³£!ﲙ⊡⊡≡ﴙ!蘭࠳こ\u0873!邙ꢡꢡꡡ䄙!ट縱衉聥䂣!炑ꢩꢩꢩゑ!အࠡࠡအ!炥裣裃邳ﺭ!䂝?ꣃꢳꢫ!\u08A5ㄟ\u08A1!¥ãó­"
    
  • Rails has Two Default Stacks at 2013年08月14日

    #23 楼 @wppurking 从这篇翻译看,刚开始叫37signals Stack,由于DHH 不同意这种叫法,改成了Omakase Stack

  • Rails has Two Default Stacks at 2013年08月14日

    #29 楼 @bhuztez 这样? https://github.com/sshingler/resque-web/blob/master/examples/config.ru#L18-L20

    run Rack::URLMap.new \
      "/"       => Demo::App.new,
      "/resque" => Resque::Server.new,
      "/resque2" => Resque::Server.new
    
  • Rails has Two Default Stacks at 2013年08月14日

    #16 楼 @bhuztez 等我干完活儿的..

  • Rails has Two Default Stacks at 2013年08月14日

    比如有个 blog app 你能 mount 两次么 (两次分别用各自的数据库表)

    目前还没有这种变态需求,不过这个很难实现么

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