Ruby China
  • 社区
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • 注册
  • 登录
蓝智恒
@lanzhiheng
会员
第 25043 位会员 / 2016-02-18

[email protected]
深圳云长文化科技有限公司
深圳
123 篇帖子 / 703 条回帖
154 关注者
21 正在关注
9 收藏
GitHub Public Repos
  • wechat-pay 46

    A simple Wechat pay ruby gem in api V3

  • stone 16

    The personal blog power by Ruby On Rails

  • adapay 8

    Gem for adapay https://www.adapay.tech/

  • python-vision-ml-project 0

  • vm_search 0

    image search engine

  • emacs.d 0

    An Emacs configuration bundle with batteries included

  • activeadmin 0

    The administration framework for Ruby on Rails applications.

  • formtastic 0

    A Rails form builder plugin with semantically rich and accessible markup.

  • Tools 0

  • activestorage-aliyun 0

    Wraps the Aliyun OSS as an Active Storage service.

More on GitHub
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • Postgres Fulltext Search (一) at 2021年02月21日

    好文,折腾了半天原来要先安装插件。不然就会报这个异常。😂

    simple=# create index fulltext_idx_1 on news using GIN (tag, to_tsvector('zhcfg', COALESCE(headline, '') || ' '  || COALESCE(content, '')));
    ERROR:  data type character varying has no default operator class for access method "gin"
    HINT:  You must specify an operator class for the index or define a default operator class for the data type.
    

    解决方案:

    CREATE EXTENSION btree_gin;
    
    simple=# select * from pg_available_extensions where name ~ 'tree';
        name    | default_version | installed_version |                     comment
    ------------+-----------------+-------------------+-------------------------------------------------
     btree_gin  | 1.3             | 1.3               | support for indexing common datatypes in GIN
     ltree      | 1.2             |                   | data type for hierarchical tree-like structures
     btree_gist | 1.5             |                   | support for indexing common datatypes in GiST
    (3 rows)
    
    simple=# create index fulltext_idx_1 on news using GIN (tag, to_tsvector('zhcfg', COALESCE(headline, '') || ' '  || COALESCE(content, '')));
    CREATE INDEX
    

    真的快了好多。

  • Linear Hash Revisit at 2021年02月21日

    cool. 😂 我是一直觉得实现线性的哈希表的代码不好写,所以一般都用链表来做那些重复数据的存放,你这个算法可以。

  • How DBMS Memory Buffer Works at 2021年02月21日
    1. “我们把内存里存放 page 的结构称为 frame。frame 除了放 page 的内容以外,还会存一些原数据,比如 page_id、pin_count、dirty 等。” -> 这里是不是元数据

    2. “frame 2 和 frame 3 还是空闲的。为了能找到空闲的 frame,我们还需要一个列表来记录这些空闲的 frame,我们可以叫它 free_frames 或者 free_list。” -> 从图看好像 frame0 和 frame2 才是空闲的吧?😂

  • 测试性能优化建议 - 续篇 at 2021年02月18日

    了解,我理解应该就是按需检测一下 Worker.jobs.size就好了。感谢指点。🙏

  • 20 年最火的前端技术 at 2021年02月05日

    是啊,也是考虑到招人的问题。

  • 20 年最火的前端技术 at 2021年02月04日

    最近公司要自己开发管理员后台,之前用 ActiveAdmin,不过交互贼差。正考虑着要不要前后端分离去做。前端小伙子是很倾向于分离,因为他不懂 Rails😂 。

  • 各位同僚都用什么工具写 Rails? at 2021年02月04日

    同 Emacs

  • 20 年最火的前端技术 at 2021年02月03日

    说的在理啊兄弟。

  • Ruby 和 Java 的性能差距太大了 at 2021年02月03日

    说到心坎里。

  • 提问 Homeland 的网站首页 HTML 需要怎么去写呢,我不会前端 at 2021年01月28日

    AccessDenied 权限?你查一下文档。

  • 测试性能优化建议 at 2021年01月28日

    😂 搞进去了。需要点时间才能深度使用。东西有点多 ruby-prof stackprof。层级有点深啊,哈哈哈哈。。。

  • Logisticed - 轻松记录操作人员和操作时间 at 2021年01月28日

    好像用这个也可以? https://github.com/paper-trail-gem/paper_trail

  • 微团队管理日志 at 2021年01月28日

    get

  • 提问 Homeland 的网站首页 HTML 需要怎么去写呢,我不会前端 at 2021年01月22日

    本地不好迁移其实。那个就加个参数而已,很容易的。

  • 提问 Homeland 的网站首页 HTML 需要怎么去写呢,我不会前端 at 2021年01月21日

    这个是阿里云的问题把,你是不是配置不对。后面的参数主要是做缩放的,可以参考一下这里。https://help.aliyun.com/document_detail/44688.html

  • 提问 Homeland 的网站首页 HTML 需要怎么去写呢,我不会前端 at 2021年01月21日

    😂 不过还是建议学以下咯。你 Rails 都学得会,html 不在话下吧?

  • 提问 Homeland 的网站首页 HTML 需要怎么去写呢,我不会前端 at 2021年01月21日

    你要哪部分呢?有些是 html 模板是直接记录在数据库里面的,或许可以给你一些。不过都是比较简单的。另外一些要有数据之后才有的。就像置顶帖子,还有下面的城市这些。

  • 求助 Docker 方式安装 Homeland 邮件配置发送不了邮件 at 2021年01月19日

    看不太出来.....这是所有的日志了吗?

  • null at 2021年01月17日

    https://github.com/norman/friendly_id 用这个是不是也可以?

  • ActiveStorage 原理剖析 - 数据表篇 at 2021年01月14日

    😂 你讲这东西我还是第一次听。

  • ActiveStorage 原理剖析 - 数据表篇 at 2021年01月14日

    是的。

  • [广州|深圳] 聆思芯片公司招聘 Ruby 高手 at 2021年01月13日

    厉害。

  • Google Analytics 存在的问题 at 2021年01月13日

    “最近在计划开发一个 Google Analytics 的替代品”。期待,我们也有这方面的需求。😂 😂 说不定有机会合作。目前业务还没起来就用 GA 先顶着。

  • ActionStore - 一步到位的 Like, Follow, Star, Block ... 等动作的解决方案 at 2021年01月13日

    赞,是真的挺方便的,项目都有在用。到时候看看要不要升级一下。

  • 微团队管理日志 at 2021年01月13日

    🙏 谢谢,你说的也很在理。

  • [深圳] Shoplazza 店匠招聘 Ruby 高級后端工程师 ( 15k - 30k ) at 2021年01月08日

    赞 顺便说一下头像很棒。😂

  • 用 Ruby 实现飞机自动驾驶仪 at 2021年01月08日

    了不起。

  • 微团队管理日志 at 2021年01月08日

    😂 谢谢。不过这种习惯没那么好养成就是了。都还在想办法。

  • Vue 的思路如同尿路,根本不符合程序员思维。 at 2021年01月08日

    我回头也看看。

  • Vue 的思路如同尿路,根本不符合程序员思维。 at 2021年01月07日

    ember 好玩吗?还没接触过。

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