• 霸气!

  • First RubyMotion Meetup at 2013年06月04日

    #3 楼 @dazuiba 几乎没有黑盒子,就是 Objective-C 同等地位的一种语言,调用的是 Objective-C Runtime,就有点类似一些 Java 平台上的 Scripting Language 一样,生成 O 文件,链接。

    如果发现任何问题,他们还是比较负责的修复的。从语言角度上说,Ruby 比 OC 要先进太多。节约大量事件,专注于软件设计

  • First RubyMotion Meetup at 2013年06月04日

    RubyMotion 爱好者 +1

  • 有人用 RubyMine 吗? at 2013年06月04日

    +1

  • #151 楼 @ssqq 用的 Gvim?试试看 vim,我用到后来觉得 vim + tmux 是王道

  • Ruby 开发者沙龙资料篇... at 2013年06月03日

    rubymotion 的捏?

  • 这个软件是什么名字? at 2013年05月15日

    if it's a web app, prezi +1

  • #12 楼 @jasl share deployment key 貌似在 5.2 的 roadmap 里面

  • 开车 5xx 公里,总算赶上两个 topic 了

  • #40 楼 @lgn21st 哈哈,这回你错了,我带了全家去杭州,得整两套房了,所以真是能省点就是点。Daniel 这回要来哇!

  • 我报名,顺带周日去杭州一日游。那到哪里住呢?有杭州朋友有协议价么。。。省点是点

  • HpyDict at 2013年05月08日

    下个给领导用,我自己觉得 Mac 的字典够用了

  • 长时间暴光,不过这个图片的确挺赞

  • #1 楼 @Rei 企业比较大了,年份久了,做一些决定不容易。用 GitLab 自底向上推动 Git 在组织内的推广。如果大家都认同 git,并且认为 Github 提供更丰富的功能,自然会用 github。

    企业内对于代码安全之类的也有自己的考虑,和这些法律部门搞起来,还不如自己搭建 gitlab

  • Upgrade 到 Rails4 的一些感想 at 2013年05月03日

    @xdite 谢谢!好文,转日我也把我的一个站点 upgrade 一下

    BTW, leanpub 的 Link 错写成相对路径了。

  • API service 的开发 at 2013年04月24日

    API 各个公司的方式方法都有不一样,这就是为啥没有统一的解决方案的原因,用了这个以后很多东西就不太灵活了。

  • awesome : Windows + Enter !

    WOWOWOW

  • 安装 Pry 和 Pry Doc

    结合 cd 和?来了解 RDoc

    举个简单例子来说明 Net:HTTP

    ~  pry
    
    [3] pry(main)> require 'net/http'
    => true
    [4] pry(main)> cd Net::HTTP
    [5] pry(Net::HTTP):1> ls
    constants: Copy  Delete  Get  HAVE_ZLIB  Head  HTTPVersion  Lock  Mkcol  Move  Options  Patch  Post  Propfind  Proppatch  ProxyDelta  ProxyMod  Put  Revision  SSL_ATTRIBUTES  Trace  Unlock
    Net::Protocol.methods: protocol_param
    Net::HTTP.methods:
      Proxy         get        get_response       https_default_port  is_version_1_2?  newobj     proxy_address  proxy_pass  proxy_user   start         version_1_2
      default_port  get_print  http_default_port  is_version_1_1?     new              post_form  proxy_class?   proxy_port  socket_type  version_1_1?  version_1_2?
    Net::HTTP#methods:
      active?   ca_path=     ciphers                   continue_timeout=  get2     key=          open_timeout=  post       proxy_address  proxyport      request       send_request      ssl_version=  use_ssl=          verify_depth=
      address   cert         ciphers=                  copy               head     lock          options        post2      proxy_pass     put            request_get   set_debug_output  start         use_ssl?          verify_mode
      ca_file   cert=        close_on_empty_response   delete             head2    mkcol         patch          propfind   proxy_port     put2           request_head  ssl_timeout       started?      verify_callback   verify_mode=
      ca_file=  cert_store   close_on_empty_response=  finish             inspect  move          peer_cert      proppatch  proxy_user     read_timeout   request_post  ssl_timeout=      trace         verify_callback=
      ca_path   cert_store=  continue_timeout          get                key      open_timeout  port           proxy?     proxyaddr      read_timeout=  request_put   ssl_version       unlock        verify_depth
    instance variables: @is_proxy_class  @proxy_addr  @proxy_pass  @proxy_port  @proxy_user
    locals: _  __  _dir_  _ex_  _file_  _in_  _out_  _pry_
    [6] pry(Net::HTTP):1> ? get
    
    From: /Users/jian/.rbenv/versions/1.9.3-p327-perf/lib/ruby/1.9.1/net/http.rb @ line 981:
    Owner: Net::HTTP
    Visibility: public
    Signature: get(path, initheader=?, dest=?, &block)
    Number of lines: 35
    
    Gets data from path on the connected-to host.
    initheader must be a Hash like { 'Accept' => '*/*', ... },
    and it defaults to an empty hash.
    If initheader doesn't have the key 'accept-encoding', then
    a value of "gzip;q=1.0,deflate;q=0.6,identity;q=0.3" is used,
    so that gzip compression is used in preference to deflate
    compression, which is used in preference to no compression.
    Ruby doesn't have libraries to support the compress (Lempel-Ziv)
    compression, so that is not supported.  The intent of this is
    to reduce bandwidth by default.   If this routine sets up
    compression, then it does the decompression also, removing
    the header as well to prevent confusion.  Otherwise
    it leaves the body as it found it.
    
    This method returns a Net::HTTPResponse object.
    
    If called with a block, yields each fragment of the
    entity body in turn as a string as it is read from
    the socket.  Note that in this case, the returned response
    object will *not* contain a (meaningful) body.
    
    dest argument is obsolete.
    It still works but you must not use it.
    
    This method never raises an exception.
    
        response = http.get('/index.html')
    
        # using block
        File.open('result.txt', 'w') {|f|
          http.get('/~foo/') do |str|
            f.write str
          end
        }
    
    [7] pry(Net::HTTP):1>
    
  • 求推荐机械键盘 at 2013年03月08日

    FILCO 87 Brown

  • gitlab-shell for gitlab v5.0 at 2013年03月05日

    #11 楼 @Saito 我从 4.1 升级到 4.2 以后发现我的服务器有点不稳定了,经常一天左右就挂了,sidekiq 莫名其妙就死了,只能 restart gitlab service

  • 是否你安装 RVM 的时候,用了 sudo 安装 rvm 无需管理员权限

  • gitlab-shell for gitlab v5.0 at 2013年03月04日

    @Saito 哦,经你这么一提醒,我想起来了,gitlolite 的确是把所有的 repository 放在一个 git 里面的,当 project 变多了以后的确很费时间。

    按你上述的表述,如果已经修改了 authorized_key,那应该 gitlab-shell 不会因为 gitlab 下线而影响 Checkin 的吧,倒不是到时候还要查询 GitLab 来确认自己的权限?

    那我倒是很好奇,GitHub 理论上来说已经上百万的用户了,他 SSH 倒是不算慢,怎么做到的呢?莫非他自己改写了 ssh 的 PAM 认证?

  • gitlab-shell for gitlab v5.0 at 2013年03月04日

    #4 楼 @Saito 看来我的理解是正确的,我倒是在想是否有办法双轨制度,可以让用户来决定用哪个机制?

    另外我不大清楚这句话的细节:“gitolite 自身的配置文件是利用 git 管理的,而面对较大数据量的文件。性能极差... gitlab-shell 保守提高了 10x 的性能.”

    具体是什么文件的数据量大?是指 gitolite 的用户库,还是指 checkin 的文件尺寸。

  • gitlab-shell for gitlab v5.0 at 2013年03月04日

    我倒是有一个 concern,最近我的 GitLab 不太稳定,如果用了 gitlab-shell 以后,是不是 gitlab 出现问题的时候用户就无法 checkin 了?

  • jQuery Mobile 就是个废物 at 2013年02月27日

    jQuery 可以用在 Hybrid View 里面,Hybird 并不一定要求所有资源都从服务器端获取,Client 可以缓存这些 CSS/JS

  • #21 楼 @xdite 赞同

  • RubyMine 5 is out at 2013年02月16日

    赞,明个就去收一个!

  • 教训啊 at 2013年02月01日

    cronttab 内容一般我们都在 code repository 里面

  • #2 楼 @xdite cape 挺好的,学习了。

    这个 helper 也是我学习写类 rspec 的框架的产物,可惜我文笔不足,无法描述在这个过程中的一些心得,就 Open Source 出来大家提提意见