Ruby China
  • Topics
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • Sign Up
  • Sign In
@est
Member
NO. 14358 / 2014-08-05

9 Topics / 254 Replies
6 Followers
0 Following
21 Favorites
GitHub Public Repos
  • cx-extractor 7

    Automatically exported from code.google.com/p/cx-extractor

  • metronome 7

    Web metronome made with Web Audio in javavscript

  • aether-pelican 5

    A responsive and clean Pelican theme ported from Hugo josephhutch/aether

  • snippets 4

    Collection of scripts that serves no fixed purpose

  • ddns.est.im 3

    dynamic dns you say?

  • BaiduExporter 1

    Assistant for Baidu to export download links to aria2/aria2-rpc

  • ctypescrypto 1

    Python interface to some openssl function based on ctypes module

  • kaimen 1

    Port knocking in Python

  • awesome-ld-preload 1

    List of resources related to LD_PRELOAD, a mechanism for changing application behavior at run-time

  • def.est.im 0

    this project has moved to https://github.com/est/rhcloud

More on GitHub
  • Overview
  • Topics
  • Replies
  • Favorites
  • Following
  • Followers
  • 看了下招聘版,小城市用 Ruby 真的没有未来? at May 19, 2015

    我是过来膜拜 10 年 rails 开发经验的。10 个月的路过。

  • 订单编号是用 ID 自增主键显示的,但这样会暴露订单数量,有什么办法? at May 15, 2015

    #1 楼 @blacktulip 第一个东东不错。可逆 hash。其核心是 https://github.com/namick/scatter_swap/blob/master/lib/scatter_swap/hasher.rb

    也就是 minimal perfect hash function 算法。

    LZ 的问题其实分 2 个层面:

    1. 知道商品总量
    2. 知道商品增量

    如果仅仅不想让别人知道商品总量,那么从 10000 + rand() * 1000 开始自增计数不就行了么。。。

    想让人不知道商品增量,必须采用离散不冲突的 hash 来解决。

  • Rails 默认没有防止表单重复提交功能? at May 14, 2015

    我记得坛子里有个非常好的方案是:用 etag 判断 post 的资源是否已经改变。

  • [成都] tap4fun+Ruby on Rails 工程师 at May 13, 2015

    贵厂在圈子里也是小有名气了。。。。。。。。面过一批贵厂出来的人。还是非常不错的。至于为啥会出来那么多。。。。。。。。。

  • 为什么国外的创业公司更喜欢 Rails? at May 13, 2015

    #19 楼 @hooopo 恩。我搞错了。

    https://www.coursereport.com/resources/ruby-on-rails-vs-python-and-django-which-should-a-beginner-learn

    For example, RoR was too slow for HULU so they ended up re-coding lots of stuff in C.

  • 为什么国外的创业公司更喜欢 Rails? at May 13, 2015

    #17 楼 @rei 恩。我发现规律了。报业用 django 的特别多。

    还有一些 django 写的网站:

    • Rdio
    • 部分 mozilla.com 页面
    • guardian.co.uk
    • Mahalo
    • Globo.com
    • Washington Post
    • LA Times
    • curse.com
    • rasp.yandex.ru
    • Pownce(已挂)

    来源 http://stackoverflow.com/questions/886221/does-django-scale

    码农周边用 rails 的特别多

  • 为什么国外的创业公司更喜欢 Rails? at May 13, 2015

    Rails 的成功案例不太多呀。。。大 Django 成功案例:

    • Instagram
    • Quora
    • Pinterest
    • Disqus
    • Onion
    • Hulu
    • The Boston Globe
    • NYTimes
    • Telegraph.co.uk
    • Bitbucket
    • SourceForge
    • edX
  • Bundler 的作用及原理 at May 12, 2015

    直接 bundle 和 bundle install 有啥不同?

  • 真是用了 Ruby 就没法再用其他语言了 at May 05, 2015

    好吧,来个 python 版的:

    any(x for x in production.option_types if '颜色' in x.get('presentation', '') )

  • 写起 Python 来各种不习惯…… at May 05, 2015

    #11 楼 @chiangdi #12 楼 @spacewander

    对。因为没有 end 或者 } ,lambda 要支持多行,会产生语法上的二意性。。。。。。所以 python 的 lambda 是半残废的。

    上面有人说,ruby 代码比 python 少,是因为 ruby 糖比较多。比如脱离 active_support,ruby 写起来要麻烦很多。

  • 写起 Python 来各种不习惯…… at May 05, 2015

    #8 楼 @chiangdi 你觉得没 end 能实现各种 block?python 的 lambda 就是吃了没 end 的亏,只能写一行。。。。。。。。。。

    #9 楼 @cqcn1991 有这个属性的。。。__len__() 即可。

  • Mac 下的数据库设计软件? at May 04, 2015

    可以试试 mysql workbench,可以画 ER 图。

  • 阿里云 OSS at April 29, 2015

    #9 楼 @hxh1246996371 我这里有差不多 10 几行上传阿里云的 sinatra 函数。要不要?

  • Ruby 的方法多的来由 at April 27, 2015

    active_support 加上的方法才叫多

  • 用了 Ruby 以后,发现瓶颈已不在数据库,而在语言 at April 27, 2015

    这个叫瓶颈。。。。。。。?你用数组的方式操作 raw sql 也可以的呀。

  • 旧爱 Bootstrap,新欢 Materialize at April 23, 2015

    #9 楼 @chairy11 听起来好像一个化妆的过程。。。眼线啊,打底啊什么的。。。。。。

  • 那些年经历的 KPI at April 19, 2015

    怒转 v2ex。

    我觉得加班可以充分推断出中层或以上至少存在一位什么都不懂的人。

    对自己的团队把控没信心,才会用加班弥补自己的傻逼。

  • ETL with Ruby at April 15, 2015

    做 app 后端也是 ETL,就是从一坨乱七八糟的数据筛选出有用的数据封装成 json 给 app。。。

  • Rails 4 只有一条记录不能 all 也不能 each at April 13, 2015

    应该是你那里姿势没对,但是有一个可以无损转换为 Array 的办法:

    Array(any_object)

  • Python 也有 Ruby 的 string interpolation 了,无性能损失 at April 13, 2015

    #6 楼 @Kabie 这个已经被 dropbox 做出来了。顶楼有贴 https://github.com/dropbox/pyxl

  • 听说拉勾上的招聘薪酬都是虚高? at April 10, 2015

    说拉钩虚高的,你们是没上过猎聘啊。。。。随便一个公司都敢写 50w,进去就给 1w 拉倒。

  • [已解决] whenever + capistrano 3, 部署时出错,说是 invalid byte sequence in US-ASCII (ArgumentError),但系统明明显示 en_US.UTF-8 at April 09, 2015

    #3 楼 @chairy11

    LANGUAGE=zh_CN:

    还是这个的问题。

  • [已解决] whenever + capistrano 3, 部署时出错,说是 invalid byte sequence in US-ASCII (ArgumentError),但系统明明显示 en_US.UTF-8 at April 09, 2015

    LANGUAGE=en_US:

    就这的问题。

  • Python 也有 Ruby 的 string interpolation 了,无性能损失 at April 09, 2015

    #2 楼 @huacnlee 这个 trick 可以任意变换。。。。。。

  • [已解决] 部署时,为什么单独用一个 deploy 用户,而不用 root? 各种 Permission denied 怎么破解? at April 07, 2015

    root 部署。。。。。。。。。我想起我厂需要 sudo 才能 git 的某生产服。。。。。

  • 搜索框还是一开始就显示比较好 at April 07, 2015

    #4 楼 @lips http://tower.im/ 基于 RoR 的

  • 搜索框还是一开始就显示比较好 at April 07, 2015

    #1 楼 @nightire tower 那个搜索框也是这样设计的,点一下才能出来,我用了 4 个月才发现 tower 有搜索功能。。。。。。

  • 使用 Etag 在并发控制中实现乐观锁机制 at April 07, 2015

    太机智了。👍

  • 借 “互联网 +”,聊聊我们能改变的事儿 [成都站] at April 03, 2015

    貌似不错哟

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