Ruby China
  • Topics
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • Sign Up
  • Sign In
Jasl
@jasl
Admin
NO. 1107 / 2012-02-21

[email protected]
北京
126 Topics / 3960 Replies
396 Followers
11 Following
82 Favorites
Ass♂we♂can
GitHub Public Repos
  • wx_pay 462

    An unofficial simple wechat pay gem

  • zk_dcap_verifier_poc 1

  • jetson-stacks 1

    Yet another re-implement of jetson-containers, targeting for Jetson Thor, Spark, and x86.

  • vllm-flash-attention 0

    Fast and memory-efficient exact attention

  • DeepGEMM 0

    DeepGEMM: clean and efficient FP8 GEMM kernels with fine-grained scaling

  • vllm 0

    A high-throughput and memory-efficient inference and serving engine for LLMs

  • bitsandbytes 0

    8-bit CUDA functions for PyTorch

  • xformers 0

    Hackable and optimized Transformers building blocks, supporting a composable construction.

  • FBGEMM 0

    FB (Facebook) + GEMM (General Matrix-Matrix Multiplication) - https://code.fb.com/ml-applications...

  • parity-common 0

    Collection of crates used in Parity projects

More on GitHub
  • Overview
  • Topics
  • Replies
  • Favorites
  • Following
  • Followers
  • 计算机工程师之歌 at May 12, 2013

    @lostleaf @ericguo @bhuztez perl 还是挺有人文情怀的...

  • can't type chinese on mobile at May 11, 2013

    #15 楼 @Guest 你先把网接上再说 - - 去网吧的干活。。。

  • can't type chinese on mobile at May 11, 2013

    你都 Guest 了还能说话 不科学啊。。。

  • GitLab 搭建遇到的两个问题 克隆和 push pull 需要输入用户名和密码,只能采用 http 方式 at May 11, 2013

    #14 楼 @gene_wu 那就好了,这个功能还是很常用的

  • “杭州 Ruby 开发者沙龙” 明天 (星期六下午一点) 就开始啦 at May 11, 2013

    擦擦...毕设答辩 ing...

  • Ubuntu Server + nginx + unicorn tcp socket 方式如何设置运行多个 app at May 11, 2013

    unix domain socket 会比 tcp socket 快,而且节约端口,不过小应用来讲,快的可以忽略不计

    unicorn 里的 listen 就是监听指定端口,127.0.0.1:3000 表示只监听本机的 3000 端口,所以会拒绝来自其他主机的请求

    socket 文件是由 unicorn 创建,而不是你手动创建,也就是说运行 unicorn 的进程应当对/tmp 有写权限,777 不是一个好习惯,生产环境要谨慎 unicorn 抛出异常,则是 unicorn 配置的问题,与 nginx 无关

    不同的 app 应该配置不同的 upstream,然后在 server 节设置 listen 不同的端口,不过这时候你就需要通过http://ip:port方式访问网站,或者绑定到不同的域名上 或者用 virtual host 方式,这个你 google "virtual host nginx"就是了,大概就是在 domain 设置上有点 trick 同时配合一下域名那边的 a record

    nginx 与 unicorn 配合的大概的原理是:外部请求进来,nginx 会匹配,然后把请求转发给对应的 upstream,这里就是 unicorn,然后 unicorn 承载的 rails app 处理请求之后返回结果给请求者,nginx 只是作为一个中间人存在,这也就是为啥管他叫反向代理的原因

    至于出现 something went wrong,你需要检查 app 的日志,看是什么异常

    小技巧,nginx 的配置语法有误,启动或重启 nginx 时会提示,bad gateway 说明 upstream 配置有误或者 unicorn 未启动,sth went wrong 说明 rails 程序写疵了,unicorn 抛出异常说明 unicorn 配置有误 定位好错误源第一反应去查对应的日志,根据日志的信息才好做出正确的解决方案

    关于 nginx 的配置可以参考我的https://github.com/jasl/a_rails_start_up_omakase/tree/master/lib/generators/conf/templates unicorn https://github.com/jasl/a_rails_start_up_omakase/blob/master/config/unicorn/production.rb

  • 计算机工程师之歌 at May 10, 2013

    #3 楼 @bhuztez 光有文青 feel 没妹子有球用 - -

  • 计算机工程师之歌 at May 10, 2013

    #1 楼 @bhuztez perl 和 bash 一样折磨人 - -

  • GitLab 搭建遇到的两个问题 克隆和 push pull 需要输入用户名和密码,只能采用 http 方式 at May 10, 2013

    #3 楼 @Saito 插楼问个问题,更新到 5.x 后 deploykey 只能用在一个 repo 上了

  • 最近谁在外面写项目?(北京) at May 10, 2013

    #9 楼 @siyang1982 避风塘现在还自助不?

  • 发来你就觉得最酷的一段代码,我要把它印成 T 恤 at May 10, 2013

    #44 楼 @luikore 现在不是流行参悟佛经么.... 佛曰:罰顛侄利侄想無俱涅侄至諳上吉俱三諳殿跋諳至俱他哆婆梵曳皤以寫呐娑冥麼他羅冥咒缽耨參娑所諸梵怖哆耨奢南罰伽諳諸缽利諸孕菩即梵竟道穆那他梵般奢竟諳吉諳世南梵故

  • 发来你就觉得最酷的一段代码,我要把它印成 T 恤 at May 10, 2013

    eval %w(world' 'hello puts).reverse.join(' ')

  • 程序员时髦值指南 at May 10, 2013

    1642 - -

  • Secret Tokens 很多人忽略的安全问题 at May 10, 2013

    #9 楼 @zj0713001 哈哈。。。这事我得记小本上不能忘,话说我已经大量应用 rake 和 generator 了 https://github.com/jasl/a_rails_start_up_omakase/tree/master/lib/generators/conf/templates 可以大幅度减少部署的时间

  • Secret Tokens 很多人忽略的安全问题 at May 10, 2013

    #7 楼 @zj0713001 对哦。。。settingslogic 也可以用在 initializer 的。。。不只是这个 secret_token,现在用 devise 的也很多,devise 的 salt 也是应该重新生成的

  • Secret Tokens 很多人忽略的安全问题 at May 10, 2013

    #5 楼 @zj0713001 既然是 initialize 就是把所有的配置都搞好啊,生成 token 啊,rename db.yml.sample 啊 之类的... secret_token.rb.sample 也是个好方法 呵呵

  • Secret Tokens 很多人忽略的安全问题 at May 10, 2013

    #3 楼 @zj0713001 其实我有个考虑是准备一个 initialize 的 rake task 来...

  • Secret Tokens 很多人忽略的安全问题 at May 10, 2013

    确实容易被忽略,我自己的项目要是开源的话,会自己创建一个私有的版本库,然后重新生成一个全新的 token...不过使用者不注意的话 倒是有可能产生安全问题,看来开源到 github 的时候要考虑这个问题...

  • RubyConfChina 2013 计划 at May 10, 2013

    #136 楼 @Koz @lgn21st what do you think?

  • RubyConfChina 2013 计划 at May 09, 2013

    #126 楼 @chairy11 待定,还没正式开始呢

  • RubyConfChina 2013 计划 at May 09, 2013

    #124 楼 @chairy11 cool!

  • RubyConfChina 2013 计划 at May 09, 2013

    #120 楼 @chairy11 with Beijing-Rubyists

  • RubyConfChina 2013 计划 at May 09, 2013

    #117 楼 @jjym @ChanceDoor 在♂一♂起!在♂一♂起!敲碗

  • RubyConfChina 2013 计划 at May 09, 2013

    #114 楼 @ChanceDoor 唔... @jjym 你怎么看?

  • RubyConfChina 2013 计划 at May 09, 2013

    #111 楼 @ChanceDoor 因为我在北京 - -

  • RubyConfChina 2013 计划 at May 09, 2013

    #108 楼 @chairy11 那之前并不明朗

  • RubyConfChina 2013 计划 at May 09, 2013

    #106 楼 @chairy11 好啊,剧透,今年大概会办在北京

  • Ruby 的多线程应用服务器介绍 at May 09, 2013

    #18 楼 @bhuztez 好吧。。。。

  • [做个试验] Rails 学习指导服务——指导你更有效率的学习 Rails 开发 [已暂停] at May 09, 2013

    #22 楼 @ginchenorlee 开源跟免费是两码事啊,railscasts 上收费视频非常多,说实话 railscasts-china 的质量和覆盖面和 railscasts 比还有一些差距的。此外,商业 linux 发行版,前天还看到 sidekiq 出了 pro 版 500 刀一套呢,有太多例子反驳这种观点了

  • [做个试验] Rails 学习指导服务——指导你更有效率的学习 Rails 开发 [已暂停] at May 09, 2013

    #20 楼 @ChanceDoor 做过教育或者经常在各个地方回答问题之后,就会发现,并不是这样的,人和人的差异很大,智力其实却是都差不多,心态导致了分层严重

    个人看法就这样吧...毕竟别人好与不好跟自己一点关系都没有...

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