Ruby China
  • Topics
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • Sign Up
  • Sign In
WildCat
@imwildcat
Member
NO. 14174 / 2014-07-21

42 Topics / 152 Replies
17 Followers
0 Following
43 Favorites
Reward
GitHub Public Repos
  • scylla 4001

    Intelligent proxy pool for Humans™ to extract content from the internet and build your own Large ...

  • uniffi-rs-fullstack-ex... 96

    Build Rust for Android and iOS (with potential for all mobile platforms, Windows, Mac and Web*)

  • faster-whisper-api 63

    self hosted whisper api system based on container

  • ReactNative-Binary 33

  • expo-rust-demo-module 9

    A demo project with Expo + Rust (with automatic binding generation using uniffi-rs). Write once u...

  • clash-rs 1

    custom protocol network proxy

  • remote-browser-server 0

  • xtrpc 0

    Export your tRPC router to massively improve language server performance and/or let your users co...

  • react-native-purchases 0

    React Native in-app purchases and subscriptions made easy. Support for iOS and Android.

  • dokploy 0

    Open Source Alternative to Vercel, Netlify and Heroku.

More on GitHub
  • Overview
  • Topics
  • Replies
  • Favorites
  • Following
  • Followers
  • 如何在中国的一座小城市注册公司 at May 10, 2017

    不好意思,原文中忘了说了。 注册资本是认缴制,不需要注册公司的时候到账。理论上 0 元注册公司都可以。实际刻章、开户需要一点费用。

  • Rails 5.1 使用 yarn 和 webpack 实战 (vue, 构建等) at May 01, 2017

    内存小的机器小心内存炸,webpack babel 编译还是很吃内存的

  • Rails 4.x 中如何自动 reload Grape?官方文档中的似乎是 3.x 的方案,不管用了 at April 25, 2017

    时间太久不记得了抱歉;现在 rails 自带 api

  • 还有中文变量的正则为什么容易经常带 “?-mix” at April 19, 2017

    主要是用中文字符串变量生成的正则表达式带这个 mix,然后匹配经常莫名其妙失败(重启一下 rails 就好了)。这个问题有什么解决思路吗?

  • 还有中文变量的正则为什么容易经常带 “?-mix” at April 19, 2017

    如何 escape 呢?URI.escape 似乎不是 \uXXXX 的形式

  • 升级到 Rails 5.1rc 后,belongs_to 好像成了必填项 at April 10, 2017

    5.1 发布了?issues 上来看 rc 版 bug 很多呀

  • 如何在中国的一座小城市注册公司 at April 06, 2017

    哈哈。抱歉,下次一定先写中文版。

  • 现在国外服务器还有救么? at March 30, 2017

    这时候就需要万能的淘宝了,找不到的话联系我(GitHub 有邮箱)

  • 现在国外服务器还有救么? at March 29, 2017

    国外服务器怎么没法备案?备案的时候看的你的域名,IP 只是个形式而已。 走个阿里云什么的备案,然后去 CDN 厂商绑定就好了。

    不想备案的话用 CloudFlare 也行。实在不行买个 hk 的低配大流量 vps 反代。

  • [12 台减至 3 台] 用 Golang 重写 Sidekiq 的 worker at March 23, 2017

    Ruby worker or go worker?

  • 另一个微信开发的 Ruby Gem: wechat-gate at March 23, 2017

    需要注册公司的。没那么容易。

  • 另一个微信开发的 Ruby Gem: wechat-gate at March 22, 2017

    太全了!完整的小程序和后端 rails 项目都有,十分十分感谢!

  • 另一个微信开发的 Ruby Gem: wechat-gate at March 22, 2017

    楼主您好,有没有微信小程序的 gem?主要是用户信息 ID 的解密

  • 用 Docker 跑数据库,ElasticSearch, Apache Kafka 等需要存储的服务,数据存储是怎么解决的? at March 11, 2017

    https://docs.rancher.com/rancher/v1.2/en/rancher-services/storage-service/

    差不多能解决吧

  • 站点启用 https 协议后,任何 post 请求都会:Can't verify CSRF token authenticity (基于 homeland 的 docker 部署) at December 03, 2016

    #1 楼 @sefier #1 楼 @sefier 直接取消 forgery_protection_origin_check 有点太粗暴了。

    修改了 nginx.conf

    user root;
    worker_processes 4;
    pid /var/www/pids/nginx.pid;
    daemon off;
    
    events {
        worker_connections 768;
        # multi_accept on;
    }
    
    http {
    
        ##
        # Basic Settings
        ##
    
        sendfile on;
        tcp_nopush on;
        tcp_nodelay on;
        keepalive_timeout 65;
        types_hash_max_size 2048;
        # server_tokens off;
    
        # server_names_hash_bucket_size 64;
        # server_name_in_redirect off;
    
        include /etc/nginx/mime.types;
        default_type application/octet-stream;
    
        ##
        # Logging Settings
        ##
    
        access_log /var/www/log/nginx-access.log;
      error_log /var/www/log/nginx-error.log;
    
        ##
        # Gzip Settings
        ##
    
        gzip on;
        gzip_disable "msie6";
    
        # gzip_vary on;
        # gzip_proxied any;
        # gzip_comp_level 6;
        # gzip_buffers 16 8k;
        # gzip_http_version 1.1;
        # gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
    
        ##
        # nginx-naxsi config
        ##
        # Uncomment it if you installed nginx-naxsi
        ##
    
        #include /etc/nginx/naxsi_core.rules;
    
        ##
        # nginx-passenger config
        ##
        # Uncomment it if you installed nginx-passenger
        ##
    
        #passenger_root /usr;
        #passenger_ruby /usr/bin/ruby;
    
        ##
        # Virtual Host Configs
        ##
    
        include /etc/nginx/conf.d/*.conf;
        include /etc/nginx/sites-enabled/*;
    }
    
    
    #mail {
    #   # See sample authentication script at:
    #   # http://wiki.nginx.org/ImapAuthenticateWithApachePhpScript
    #
    #   # auth_http localhost/auth.php;
    #   # pop3_capabilities "TOP" "USER";
    #   # imap_capabilities "IMAP4rev1" "UIDPLUS";
    #
    #   server {
    #       listen     localhost:110;
    #       protocol   pop3;
    #       proxy      on;
    #   }
    #
    #   server {
    #       listen     localhost:143;
    #       protocol   imap;
    #       proxy      on;
    #   }
    #}
    
    upstream [app]_backend {
      server app:7000 fail_timeout=0;
      keepalive 3;
    }
    
    server {
      listen 80;
      listen 443 ssl http2;
      server_name [xxx];
    
      # ~2 seconds is often enough for most folks to parse HTML/CSS and
      # retrieve needed images/icons/frames, connections are cheap in
      # nginx so increasing this is generally safe...
      keepalive_timeout 5;
    
      # path for static files
      root /var/www/[app]/public;
      access_log /var/www/log/[app]-access.log;
      error_log  /var/www/log/[app]-error.log;
    
      # this rewrites all the requests to the maintenance.html
      # page if it exists in the doc root. This is for capistrano's
      # disable web task
      if (-f $document_root/maintenance.html) {
        rewrite  ^(.*)$  /maintenance.html last;
        break;
      }
    
      location / {
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header Host $http_host;
    
        # If the file exists as a static file serve it directly without
        # running all the other rewrite tests on it
        if (-f $request_filename) {
          break;
        }
    
        # check for index.html for directory index
        # if it's there on the filesystem then rewrite
        # the url to add /index.html to the end of it
        # and then break to send it to the next config rules.
        if (-f $request_filename/index.html) {
          rewrite (.*) $1/index.html break;
        }
    
        # this is the meat of the rack page caching config
        # it adds .html to the end of the url and then checks
        # the filesystem for that file. If it exists, then we
        # rewrite the url to have explicit .html on the end
        # and then send it on its way to the next config rule.
        # if there is no file on the fs then it sets all the
        # necessary headers and proxies to our upstream pumas
        if (-f $request_filename.html) {
          rewrite (.*) $1.html break;
        }
    
        if (!-f $request_filename) {
          proxy_pass http://[app]_backend;
          break;
        }
      }
    
      # Now this supposedly should work as it gets the filenames with querystrings that Rails provides.
      # BUT there's a chance it could break the ajax calls.
      location ~* \.(ico|css|gif|jpe?g|png|js)(\?[0-9]+)?$ {
         expires max;
         break;
      }
    
      # Error pages
      # error_page 500 502 503 504 /500.html;
      location = /500.html {
        root /var/www/[app]/public;
      }
    }
    
  • [济南] 隆恩经贸 招聘 Ruby on Rails 工程师 3-4 名 全职 at November 17, 2016

    #6 楼 @xamenglv 哈哈,当时跟你们技术负责人谈的好不开心哦,如果是你你应该记得我。 目前肉身在海外,圣诞回国,可能在济南呆一两天,到时候可以面基 ^^

  • [济南] 隆恩经贸 招聘 Ruby on Rails 工程师 3-4 名 全职 at November 16, 2016

    电面过贵司,虽然最后没有去简直,但是作为老乡支持一个。 公司的电商平台:http://meiguogouwu.com 貌似最近改版过,不错!

  • RubyConf Taiwan 2016 售票开始! at November 14, 2016

    超喜欢台湾,可惜大学毕业之后就不能办自由行签证了,哎

  • Rails 5 的 generator 老是卡住怎么办? at September 25, 2016

    #1 楼 @lithium4010 任何名字都会这样

  • 又一篇讲为什么从 Python (文中的观点也可以适用于 Ruby) 迁移到 Erlang 的文章 at July 13, 2016

    PHP 核心开发者 Laruence(鸟哥)在 QCon 2015 上说了这么一段话(大意):

    我曾经用了 PHP 和某高级语言做 hello world 的 benchmark,结果某高级语言胜过 PHP 一个数量级。 然后我分别添加了一条 SQL 查询,它们变成了一个数量级,但是某高级语言还是比 PHP 快两三倍。 然后又加到 10 条 SQL 查询,他们几乎没区别了。

    https://www.v2ex.com/t/191046

  • 有人使用 Docker 来简化部署 Rails 的吗? at April 11, 2016

    我是 docker 新手。好像 docker 的最佳实践就是每次重新 build

  • Sequel 在做纯 API 项目时是不是比 ActiveRecord 更有优势? at April 11, 2016

    新手路过。对于我来说,用 RoR 的一大关键原因在于 ActiveRecord

  • Rails 配置 Webpack 终极篇 at April 11, 2016

    #10 楼 @citysheep 好的,多谢!

  • Rails 配置 Webpack 终极篇 at April 08, 2016

    #4 楼 @citysheep react_on_rails 现在可以用 CommonJS 那种方式引入了吗?以前不可以这样的。。。

  • Happy 2016! AMA - Ask Me Anything :) at March 07, 2016

    #74 楼 @fredwu 谢谢您啦!祝生活、工作愉快!

  • Happy 2016! AMA - Ask Me Anything :) at February 29, 2016

    #72 楼 @fredwu 感谢您的回复! 工作经验这个必须有工作证明才能衡量吗?Github 开源项目/自己上架 App Store 有一定用户量的项目算不算呢?

  • Happy 2016! AMA - Ask Me Anything :) at February 29, 2016

    楼主您好,想多问几个问题:

    1. 我本科将要拿到的是英国的一个商科文学士,申请澳洲的 CS 硕士是否有希望?
    2. 非八大院校 CS 硕士找工作会不会比八大的学生难很多?
    3. 去澳洲找工作,您推荐什么技术栈?(rails?Java?.net)我感觉澳洲有很多不错的公司自己很喜欢,比如做 CrossyRoad 的工作室
  • Ruby 2.0.0, 2.1 将不再支持了哦 at February 27, 2016

    #7 楼 @hooopo 弱弱的问一下这是什么统计的?

  • 关于 elasticsearch-rails 的疑问 at February 24, 2016

    #1 楼 @huacnlee Ruby China 这样的站,ES 设置了多大的内存?

  • 对所有已登录的用户开放 rack-mini-profiler 统计结果 at February 22, 2016

    #59 楼 @huacnlee 能否告知 Ruby China 当前的服务器配置、UV、PV 吗?做个参考。

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