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

lanzhihengrj@gmail.com
深圳云长文化科技有限公司
深圳
60 篇帖子 / 456 条回帖
59 关注者
8 正在关注
8 收藏
GitHub Public Repos
  • bean 29

    Simple programming language

  • stone 11

    The personal blog power by Ruby On Rails

  • formtastic 0

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

  • churchill 0

  • homeland 0

    :circus_tent: Open source discussion website.

  • notifications 0

    Notifications Center engine like GitHub or other application for any Rails applications.

  • shell-practice 0

    simple example written in shell

  • homeland-opensource_pr... 0

  • homeland-docker 0

    🚀 Deployment Homeland with Docker

  • canonical-rails 0

    Quick and configurable canonical tag to use in Rails views.

More on GitHub
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • 论 Rails 中结构化数据类型的存取 at 2021年03月02日

    哦吼,你这个可以用

    t.jsonb :json_attributes
    

    感觉空间利用率会高一些?Rails 自带哪个貌似只支持 json,或者 text

    NOTE: If you are using structured database data types (e.g. PostgreSQL hstore/json, or MySQL 5.7+ json) there is no need for the serialization provided by .store. Simply use .store_accessor instead to generate the accessor methods. Be aware that these columns use a string keyed hash and do not allow access using a symbol.

    先 star 有机会拿来用用看。

  • Hypercable Analytics open sourced at 2021年03月01日

    https://learnsql.io/settings 这个页面炸了。

  • Hypercable Analytics open sourced at 2021年03月01日

    cool

  • 中国饮食碎碎念 at 2021年02月25日

    get

  • 中国饮食碎碎念 at 2021年02月25日

    回头关注看看。

  • 中国饮食碎碎念 at 2021年02月25日

    噗,我看看。😂 不过减不减肥我倒没太在意了。都是顺带效果。

    是这个款吗?

  • 中国饮食碎碎念 at 2021年02月25日

    希望如此吧。不过要劝妥长辈有点难。

  • How DBMS Memory Buffer Works at 2021年02月21日

    😂

  • 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 模板是直接记录在数据库里面的,或许可以给你一些。不过都是比较简单的。 另外一些要有数据之后才有的。 就像置顶帖子,还有下面的城市这些。

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