Ruby China
  • Topics
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • Sign Up
  • Sign In
caleb.xiang
@calebx
VIP
NO. 693 / 2012-01-07

杭州
19 Topics / 105 Replies
0 Followers
0 Following
1 Favorites
hush.
GitHub Public Repos
  • number_to_cn 17

    transfer number into chinese characters

  • ctp-alone 3

    ctp experiment project

  • potato-quant 2

    Experimental quantitative trading system in rust

  • zhiboo 1

  • calebx.github.io 0

    Blog

  • calf-css 0

    calf style only

  • boiler201912 0

    nothing but testing

  • go-nested-set 0

    go-nested-set is an Golang implementation of the Nested set model for GORM

  • debx 0

  • benchmark 0

More on GitHub
  • Overview
  • Topics
  • Replies
  • Favorites
  • Following
  • Followers
  • clone? dup? =? at March 22, 2012

    肿么解释?

  • 找一个可以 @user 的 gem。 at March 22, 2012

    那是不是可以继续集成一个功能,在某个状态栏里,给一列@me的列表什么的。

  • 找一个可以 @user 的 gem。 at March 22, 2012

    真是个好东西。非常实用阿。

  • 不能 Marshal.dump 分页数据?? at March 21, 2012

    所以这是个疑难问题。

  • 找一个可以 @user 的 gem。 at March 21, 2012

    那如何在显示@user的时候,变成一个 link_to? 有 redcloth 那种功能么?

  • 找一个可以 @user 的 gem。 at March 21, 2012

    真是太棒啦!

  • 社区 Logo 出来了 at February 21, 2012

    ls 的想法有意思! 那可以是晴天红宝石;

  • 求教,学习 EventMachine 时遇到的问题 at February 21, 2012

    第 2 个问题 Name Num Action Description INT 2 exit KILL 9 exit cannot be blocked TERM 15 exit USR1 exit USR2 exit

    9) SIGKILL 用来立即结束程序的运行。本信号不能被阻塞,处理和忽略. 15) SIGTERM 程序结束 (terminate) 信号,与 SIGKILL 不同的是该信号可以被阻塞和 处理。通常用来要求程序自己正常退出。shell 命令 kill 缺省产生这个信号. 12) SIGUSR2 留给用户使用

    require 'eventmachine'  
    
    module EchoServer  
      def post_init  
        puts "-- init"  
      end  
    
      def receive_data data  
        send_data "-- you sent: #{data}"  
        close_connection if data =~ /quit/i  
      end  
    
      def unbind  
        puts "-- disconnected"  
      end  
    end  
    
    EventMachine::run {  
      trap("TERM") { puts "==>TERM" }
      trap("USR2") { puts "==>USR2" }
      trap("KILL") { puts "==>KILL" }
      trap("INT")  { puts "==>INT"}
      EventMachine::start_server "127.0.0.1", 8081, EchoServer  
    } 
    

    kill -USR2 13059 ==>USR2

  • 求教,学习 EventMachine 时遇到的问题 at February 21, 2012

    别理他,走火入魔了。

  • 求教,学习 EventMachine 时遇到的问题 at February 21, 2012

    mark~ 我也不懂。

  • 者也挂了? at January 09, 2012

    为什么要关掉阿。

  • 创建一个 Golang 的节点,有兴趣的可以多聊聊 at January 08, 2012

    go to go, lets go.

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