Ruby China
  • 社区
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • 注册
  • 登录
Marble Wu<活靶子.NET>
@huobazi
高级会员
第 15 位会员 / 2011-10-31

西安
110 篇帖子 / 1708 条回帖
51 关注者
97 正在关注
128 收藏
请叫我靶子哥哥. :D
GitHub Public Repos
  • carrierwave-qiniu 177

    Qiniu Storage support for CarrierWave

  • ajax-upload-with-carri... 42

    使用 AjaxUpload 和 Carrierwave 在 Rails && Mongoid 中批量上传图片

  • dackup 23

    Dackup is a free, open source, backup client for your files and database to Cloud

  • vuejs-with-rails-api-a... 11

    Vue.js example with rails-api and JWT

  • carrierwave-qiniu-example 9

    This a example project for carrierwave-qiniu

  • vimrc 6

    my vim settings

  • huobazi.github.com 2

    huobazi.github.com

  • dotfiles 2

    My dotfiles

  • indicator_button 2

    A Flutter button with indicates progress on iOS and Android

  • ruby-china 1

    ruby-china.org website source code.

More on GitHub
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • 对象存储服务(OSS)省钱建议 at 2022年01月11日

    搞反代当然是主机流量不花钱的 😜

  • 有没有人一起摸鱼聊天,讨论技术的? at 2022年01月07日

    先换个头像吧

  • docker 部署可以做成类似 mina 和 cap 的工具吗? at 2022年01月07日

    mina 还活着吗?

  • 对象存储服务(OSS)省钱建议 at 2022年01月07日

    我自己用都是,云主机 Nginx 反代到 OSS,缓存时间搞大,这样算内网流量了,白嫖

  • 程序员如何工作到 60 岁? at 2021年06月29日

    好公司把程序员当作资产,而不是成本

    👍

  • 被低代码坑惨了,老板坚持要用咋办? at 2021年06月23日

    等你老板让你拖拽出一个淘宝?

  • Elixir 进展和学习 at 2021年04月30日

    https://elixir-lang.net/ 挂了

    :(
    
    _STORAGE_WRITE_ERROR_:./Application/Runtime/Cache/Home/2a94b8bda04ff446dcedd42276fc99ee.php
    错误位置
    FILE: /home/wwwroot/elixir/ThinkPHP/Library/Think/Storage/Driver/File.class.php  LINE: 48
    
    TRACE
    #0 /home/wwwroot/elixir/ThinkPHP/Library/Think/Storage/Driver/File.class.php(48): E('_STORAGE_WRITE_...')
    #1 [internal function]: Think\Storage\Driver\File->put('./Application/R...', ' #2 /home/wwwroot/elixir/ThinkPHP/Library/Think/Storage.class.php(37): call_user_func_array(Array, Array)
    #3 /home/wwwroot/elixir/ThinkPHP/Library/Think/Template.class.php(114): Think\Storage::__callstatic('put', Array)
    #4 /home/wwwroot/elixir/ThinkPHP/Library/Think/Template.class.php(76): Think\Template->loadTemplate('./Application/H...', '')
    #5 /home/wwwroot/elixir/ThinkPHP/Library/Behavior/ParseTemplateBehavior.class.php(32): Think\Template->fetch('./Application/H...', Array, '')
    #6 /home/wwwroot/elixir/ThinkPHP/Library/Think/Hook.class.php(119): Behavior\ParseTemplateBehavior->run(Array)
    #7 /home/wwwroot/elixir/ThinkPHP/Library/Think/Hook.class.php(89): Think\Hook::exec('Behavior\\ParseT...', 'run', Array)
    #8 /home/wwwroot/elixir/ThinkPHP/Library/Think/View.class.php(126): Think\Hook::listen('view_parse', Array)
    #9 /home/wwwroot/elixir/ThinkPHP/Library/Think/View.class.php(72): Think\View->fetch('./Application/H...', '', '')
    #10 /home/wwwroot/elixir/ThinkPHP/Library/Think/Controller.class.php(56): Think\View->display('', '', '', '', '')
    #11 /home/wwwroot/elixir/Application/Home/Controller/IndexController.class.php(7): Think\Controller->display()
    #12 [internal function]: Home\Controller\IndexController->index()
    #13 /home/wwwroot/elixir/ThinkPHP/Library/Think/App.class.php(173): ReflectionMethod->invoke(Object(Home\Controller\IndexController))
    #14 /home/wwwroot/elixir/ThinkPHP/Library/Think/App.class.php(110): Think\App::invokeAction(Object(Home\Controller\IndexController), 'index')
    #15 /home/wwwroot/elixir/ThinkPHP/Library/Think/App.class.php(204): Think\App::exec()
    #16 /home/wwwroot/elixir/ThinkPHP/Library/Think/Think.class.php(120): Think\App::run()
    #17 /home/wwwroot/elixir/ThinkPHP/ThinkPHP.php(97): Think\Think::start()
    #18 /home/wwwroot/elixir/index.php(23): require('/home/wwwroot/e...')
    #19 {main}
    
    ThinkPHP3.2.3 { Fast & Simple OOP PHP Framework } -- [ WE CAN DO IT JUST THINK ]
    
  • 通过加班实现加薪是真的吗? at 2021年04月30日

    有一篇课文叫《包身工》

  • 为什么 Ruby 的体积是最小的 at 2021年04月20日

    这个东西由意思

  • IT 人方可读得轻松的科幻神秘小说 at 2021年03月23日

    还是看爽文比较好:https://shanggu.net/

  • Golang 生态是否有能与 Rails 媲美的框架? at 2021年03月17日

    拍簧片一直拍一直爽

  • Golang 生态是否有能与 Rails 媲美的框架? at 2021年03月16日

    ben,我现在常用的是全世界最好的语言 PHP 😂

  • Golang 生态是否有能与 Rails 媲美的框架? at 2021年03月16日

    论美感,.net core 都可以甩 golang 几条街

  • 有哪些 gem 一直在用而且很好用的 但不再维护了的 at 2021年03月11日

    rails 3 😄

  • 大小厂程序员区别 at 2021年03月05日

    朋友曾经在我跟前抱怨过说,大厂两三年的的螺丝工出来很喜欢说“我们以前 xxxx”,我们以前都是用 xxxxx”结果实操起来,那些 xxxxx 都是别人弄的 😀

  • 论 Rails 中结构化数据类型的存取 at 2021年03月02日

    attr_json 也是一个很不错的选择,我用他处理过 EAV 场景,很好用。

  • 大家的开发机器多数是多大内存的?联动用什么工具写 rails at 2021年02月22日

    12 年的 md 101 换 ssd 加到 10G 内存,可以忍受 😂

  • 网站业务前台和管理后台写在一起有什么弊端? at 2021年02月18日

    可以写在一起,分开部署啊

  • gems.ruby-china.com 不太好使的情况下, 大家可以试试清华大学的源 at 2020年12月29日

    不错,谢谢!

  • 正在使用 Flutter 开发一款 Ruby-China 的客户端 at 2020年12月23日

    多谢反馈

  • 正在使用 Flutter 开发一款 Ruby-China 的客户端 at 2020年12月22日

    使用 Oauth2 的 password 模式

    接口是 https://ruby-china.org/oauth/token

    
    final String _authEndpoint = Config.OauthBasetURL + "/oauth/authorize";
    final String _tokenEndpoint = Config.OauthBasetURL + "/oauth/token";
    
    final String _clientId = Config.OauthClientId;
    
    Future<ResultData<Oauth2Credentials>> login(
        {String username, String password}) async {
      if (username == null || (username != null && username.isEmpty))
        return Future.error('用户名不能为空.');
      if (password == null || (password != null && password.isEmpty))
        return Future.error('密码不能为空.');
    
      var data = FormData.fromMap({
        "client_id": _clientId,
        "grant_type": "password",
        "username": username,
        "password": password,
      });
      var response =
          await HttpManager.instance.request(_tokenEndpoint, "post", data: data);
    
      if (response.ok) {
        var credentials = Oauth2Credentials.fromJson(response.data);
        return  ResultData<Oauth2Credentials>(true, response.code,
            data: credentials, meta: response.data["meta"], raw: response.raw);
      } else {
        var error = {
          'error': '登陆错误',
          'message': ['用户名或密码错误'],
        };
    
        return  ResultData<Oauth2Credentials>(
          false,
          response.code,
          data: null,
          error: Error.fromJson(error),
          raw: response.raw,
        );
      }
    }
    

    也可以参考 https://github.com/ruby-china/ruby-china-ios/blob/master/ruby-china-ios/Libraries/OAuth2.swift#L66

  • Ruby 3.0.0-preview 版发布了 at 2020年12月21日

    rc1 https://www.ruby-lang.org/en/news/2020/12/20/ruby-3-0-0-rc1-released/

  • 正在使用 Flutter 开发一款 Ruby-China 的客户端 at 2020年12月21日

    flutter 大法好,我也用 ruby-china 魔改了一个网站,app 也用的 flutter http://apk.yufuxiansheng.com/yfxs

  • 很想做 Ruby,但起步为什么这么困难,是我的方式不对吗 at 2020年12月18日

    不是 windows 不堪,是没人直接在 windows 上玩啊,另外,win 10 wsl 已经很好用了啊

    下载不来?

    https://ruby-china.org/wiki/ruby-mirror

    https://gems.ruby-china.com/

    建议:不要一上来就扎进 rails 里,15 分钟搞个 blog 找信心吗?万一是找了闹心了呢?

    把 lrthw 里的东西都走一遍,有过编程经验会很快的,https://learnrubythehardway.org/book/

    再回过头玩 rails , 下面这三个对照着玩

    https://ruby-china.github.io/rails-guides/

    https://guides.rubyonrails.org/

    https://edgeguides.rubyonrails.org/

  • 基于 Docker 在 Win10 平台搭建 Ruby on Rails 6.0 框架开发环境 at 2020年11月19日

    我觉得 win 10 wsl 挺好的

  • 111 at 2020年11月04日

    今天好热闹~O(∩_∩)O 哈哈~

  • 我也撸了一个古诗词网站 at 2020年09月25日

    都做吧,可以参考这个:https://github.com/chinese-poetry/chinese-poetry

  • PostgreSQL with Gorm 区分大小写的问题 at 2020年09月17日

    gorm 最终不是转换成 sql 执行的吗?只要你创建表时 column 设定加上 CITEXT 就可以了啊

    如果你是说 gorm 定义 struct 时指定 citext 这个就不清楚了,官方问比较好。

    俺们 rails 内,就很简单了,我们的口号是”能不刀耕火种,就不刀耕火种" 😀

    ActiveRecord::Schema.define(version: 2020_05_04_062010) do
    
    enable_extension "citext"
    
    create_table "users", force: :cascade do |t|
        t.citext "login", null: false
        t.citext "name"
        t.citext "email", null: false
     end
    end
    
  • 我的黑苹果之路 at 2020年09月14日

    没有人用 deepin 吗?

  • [远程] FeedMob - 初级软件开发工程师 at 2020年09月07日

    说的是美元还是英镑?

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