<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>hbm (charles)</title>
    <link>https://ruby-china.org/hbm</link>
    <description></description>
    <language>en-us</language>
    <item>
      <title>请建议 rails 里数据管理</title>
      <description>&lt;p&gt;后台用 python 获取和处理数据，会用到一些机器学习的库，所以基于 python。&lt;/p&gt;

&lt;p&gt;打算用 rails 全栈来做 web.&lt;/p&gt;

&lt;p&gt;请问大家怎么建议 python/rails 之间的数据管理：&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;只用一个 rails 数据库，Python 子系统通过 API 写入，读取数据&lt;/li&gt;
&lt;li&gt;只用一个 rails 数据库，Python 子系统直接通过 sql 写入，读取数据&lt;/li&gt;
&lt;li&gt;python 子系统用自己的数据库，基于 sqlalchemy,  写一个任务周期性把新数据导入 rails&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;2) 可能不好，请问 1/3 大家如何选择和建议。谢谢！&lt;/p&gt;</description>
      <author>hbm</author>
      <pubDate>Mon, 04 Dec 2023 23:38:36 +0800</pubDate>
      <link>https://ruby-china.org/topics/43497</link>
      <guid>https://ruby-china.org/topics/43497</guid>
    </item>
    <item>
      <title>RailsConf 违背 dhh 的意愿,没有邀请他做今年的 keynote</title>
      <description>&lt;p&gt;&lt;a href="https://world.hey.com/dhh/no-railsconf-faa7935e" rel="nofollow" target="_blank"&gt;https://world.hey.com/dhh/no-railsconf-faa7935e&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;这个会从 2006 年到现在每年的 keynote 都是 dhh, 主办方今年想请别人来做 keynote. 大家怎么看？&lt;/p&gt;

&lt;p&gt;So imagine my surprise when I got this email from the folks at Ruby Central, who've been organizing RailsConf, the conference I helped kick off in 2006:&lt;/p&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Hi David,

Hope you’ve been well.

With you having been mostly offline the last year, the program committee has decided it would be valuable for the community to start sharing the opening keynote stage with other contributors. We have a few in mind but if you have any suggestions of people who have been impactful this year, please share them.

If you have any questions, please let me know.

 - Evan
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;It's a real shame that this is the world we find ourselves in now. One so sharply divided by politics and ideology that we can't even share the love of Ruby on Rails together at a conference without a need to settle scores.&lt;/p&gt;</description>
      <author>hbm</author>
      <pubDate>Sat, 05 Mar 2022 02:26:14 +0800</pubDate>
      <link>https://ruby-china.org/topics/42182</link>
      <guid>https://ruby-china.org/topics/42182</guid>
    </item>
    <item>
      <title>基于 docker 部署 rails 占用内存的疑问？</title>
      <description>&lt;p&gt;使用 docker 部署 homeland,  &lt;/p&gt;

&lt;p&gt;用 docker stats, 看到内存占用如下，尤其 homeland_app 占用 700M
&lt;img src="https://l.ruby-china.com/photo/hbm/1bada2e5-c5b5-4fe9-94e4-742e9c560392.png!large" title="" alt=""&gt;&lt;/p&gt;

&lt;p&gt;在 host 机器上用&lt;code&gt;Top&lt;/code&gt;查看占用内存，却看不到 docker 里面使用的内存
&lt;img src="https://l.ruby-china.com/photo/hbm/50397657-cb11-40a7-a86b-e74fab1bbdcc.png!large" title="" alt=""&gt;&lt;/p&gt;

&lt;p&gt;应该信任哪一个？&lt;/p&gt;</description>
      <author>hbm</author>
      <pubDate>Wed, 23 Feb 2022 07:41:00 +0800</pubDate>
      <link>https://ruby-china.org/topics/42156</link>
      <guid>https://ruby-china.org/topics/42156</guid>
    </item>
    <item>
      <title>Homeland 开发环境和一个新手问题</title>
      <description>&lt;p&gt;2022 年开始学 ruby/rails, 有同伴吗？20 年体验学习了 go/vue，感觉不错，但个人中小项目希望生态系统更丰富，既然对 web 感兴趣，决定通过 homeland 来学习 ruby/rails. &lt;/p&gt;

&lt;p&gt;文档里基于 docker 的部署很顺利，但是配置本地开发环境遇到些问题。我目前&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;通过 docker 使用 postgres11&lt;/li&gt;
&lt;li&gt;用 rbevn 使用本地的 ruby 3.1.0. rails 7.0.1,&lt;/li&gt;
&lt;li&gt;没有配置 redis, &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;yarn start/rails start, 可以启动本地 server,  但是注册用户，发布一个 topic 之后主页遇到“wrong const name", 重新配置数据库以后依然有这问题。&lt;/p&gt;

&lt;p&gt;想请问大家&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;推荐怎样的 homeland 开发环境。完全基于 docker，还是用 rbenv 管理 ruby/rails 更合适？&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Update:
原来 &lt;a href="/qichunren" class="user-mention" title="@qichunren"&gt;&lt;i&gt;@&lt;/i&gt;qichunren&lt;/a&gt; 朋友已经遇到这个问题 &lt;a href="https://github.com/ruby-china/homeland/issues/1313" rel="nofollow" target="_blank"&gt;https://github.com/ruby-china/homeland/issues/1313&lt;/a&gt; 在本地配置使用 redis cache 绕开了这个问题。&lt;/p&gt;</description>
      <author>hbm</author>
      <pubDate>Sun, 13 Feb 2022 04:28:03 +0800</pubDate>
      <link>https://ruby-china.org/topics/42132</link>
      <guid>https://ruby-china.org/topics/42132</guid>
    </item>
    <item>
      <title>homeland 文档下线？ homeland.ruby-china.org</title>
      <description>&lt;p&gt;Github 里的文档指向这个失效的 URL&lt;/p&gt;

&lt;p&gt;&lt;img src="https://l.ruby-china.com/photo/hbm/70b326cd-836c-44ae-94bd-35d3bdcec41a.png!large" title="" alt=""&gt;&lt;/p&gt;</description>
      <author>hbm</author>
      <pubDate>Fri, 11 Feb 2022 10:57:19 +0800</pubDate>
      <link>https://ruby-china.org/topics/42124</link>
      <guid>https://ruby-china.org/topics/42124</guid>
    </item>
    <item>
      <title>newsletter/邮件列表功能实现？</title>
      <description>&lt;p&gt;想给自己的网站增加一个 newsletter 功能：用户订阅，确认，然后每周我们发送个性化的内容（每个用户不一样，不能用简单的模板来实现) &lt;/p&gt;

&lt;p&gt;我可以自己实现这些&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;用户订阅，验证，退订等。&lt;/li&gt;
&lt;li&gt;定期发送邮件，比如用 mailgun. &lt;/li&gt;
&lt;li&gt;数据分析可以用 mailgun 内置的&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;想问问大家有没有开源的，或者付费的方案解决这个问题，看起来是一个轮子（没有搜索很好的方案）&lt;/p&gt;

&lt;p&gt;付费方案：&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;mailgun 只有发邮件本身，不包括用户管理，订阅，退订等。&lt;/li&gt;
&lt;li&gt;mailchimp 等适合群发邮件，不能是高度定制化的内容。&lt;/li&gt;
&lt;/ul&gt;</description>
      <author>hbm</author>
      <pubDate>Sat, 06 Feb 2021 08:44:59 +0800</pubDate>
      <link>https://ruby-china.org/topics/40895</link>
      <guid>https://ruby-china.org/topics/40895</guid>
    </item>
    <item>
      <title>前后端分离的接口单元测试</title>
      <description>&lt;p&gt;可以在后端写单元测试，也可以测试 restful API 接口。都写的话比较多冗余。大家在实际项目中怎么操作？&lt;/p&gt;</description>
      <author>hbm</author>
      <pubDate>Tue, 29 Dec 2020 11:56:13 +0800</pubDate>
      <link>https://ruby-china.org/topics/40757</link>
      <guid>https://ruby-china.org/topics/40757</guid>
    </item>
    <item>
      <title>用不同语言重写 Web 应用，数据库如何导入？</title>
      <description>&lt;p&gt;比如用  rails 写的应用，后期用 go，重写，已有的数据如何导入新的应用？&lt;/p&gt;

&lt;p&gt;1）重用数据库，新的应用里仔细定义 ORM, 比如 gorm,  和原有数据库兼容，可能的问题是不同的框架对 relation，array 等高级一些的关系有不同的实现。&lt;/p&gt;

&lt;p&gt;2）新建数据库，重新建表，写程序导入原有数据。&lt;/p&gt;

&lt;p&gt;请问大家的经验用那一种方法？&lt;/p&gt;</description>
      <author>hbm</author>
      <pubDate>Thu, 05 Nov 2020 12:48:10 +0800</pubDate>
      <link>https://ruby-china.org/topics/40548</link>
      <guid>https://ruby-china.org/topics/40548</guid>
    </item>
    <item>
      <title>Vue UI 框架选择: Vuetify vs. BootstrapVue</title>
      <description>&lt;p&gt;下一个项目初步打算二选一。大家推荐 Vuetify 的人比较多 &lt;a href="https://www.v2ex.com/t/700419" rel="nofollow" target="_blank"&gt;https://www.v2ex.com/t/700419&lt;/a&gt; 想问问大家这两者具体怎么比较？&lt;/p&gt;

&lt;p&gt;项目的主要在内容，对于 UI，要简洁，移动友好，尽可能降低开发难度，尤其是样式方面，但是也希望封装适度，偶尔能定制和调试问题&lt;/p&gt;

&lt;p&gt;几个方面，自己看了一些，但是经验不够，请问大家怎么看&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;组件的丰富程度&lt;/li&gt;
&lt;li&gt;开发的难易程度，不希望是类似 bulma 的纯 css，需要额外逻辑&lt;/li&gt;
&lt;li&gt;生态：第三方插件等&lt;/li&gt;
&lt;li&gt;模版：能不能比较容易加入 dark 模式，或者第三方模式等。&lt;/li&gt;
&lt;li&gt;性能，大小&lt;/li&gt;
&lt;li&gt;后续开发，升级维护，&lt;/li&gt;
&lt;/ul&gt;</description>
      <author>hbm</author>
      <pubDate>Fri, 18 Sep 2020 04:39:26 +0800</pubDate>
      <link>https://ruby-china.org/topics/40416</link>
      <guid>https://ruby-china.org/topics/40416</guid>
    </item>
    <item>
      <title>PostgreSQL with Gorm 区分大小写的问题</title>
      <description>&lt;p&gt;PostgreSQL 不区分大小写，大家推荐的方案或者用 citext, 或者自定义的 validator&lt;/p&gt;

&lt;p&gt;但是我用 gorm 作为 orm，没有看到 gorm 的支持，请教大家&lt;/p&gt;</description>
      <author>hbm</author>
      <pubDate>Thu, 17 Sep 2020 10:10:36 +0800</pubDate>
      <link>https://ruby-china.org/topics/40413</link>
      <guid>https://ruby-china.org/topics/40413</guid>
    </item>
    <item>
      <title>请大家推荐高质量，清晰的 Vue 和 Go 的代码</title>
      <description>&lt;p&gt;不光能 work, 并且注重代码的结构，质量，单元测试。新手模仿不会养成怀习惯... Go 最好是基于 Gin 和 Gorm.&lt;/p&gt;</description>
      <author>hbm</author>
      <pubDate>Sun, 13 Sep 2020 07:42:08 +0800</pubDate>
      <link>https://ruby-china.org/topics/40401</link>
      <guid>https://ruby-china.org/topics/40401</guid>
    </item>
    <item>
      <title>其他语言开发的应用使用 Rails 项目，比如 Homeland</title>
      <description>&lt;p&gt;项目的主系统用 java，但是想集成 homeland 的论坛。打算先上线论坛，后续再开发其他功能。&lt;/p&gt;

&lt;p&gt;Homeland 和主应用共享用户可以用 single sign on。如果要共享更多数据，比如获取用户发表的文章，可以 rails 和其他应用直接访问共享的数据库吗？会不会有冲突。&lt;/p&gt;

&lt;p&gt;个人项目希望用最简单的方案，大家怎么推荐？&lt;/p&gt;</description>
      <author>hbm</author>
      <pubDate>Sun, 19 Jul 2020 00:12:35 +0800</pubDate>
      <link>https://ruby-china.org/topics/40174</link>
      <guid>https://ruby-china.org/topics/40174</guid>
    </item>
    <item>
      <title>Homeland React 前端的性能/体验</title>
      <description>&lt;p&gt;看了&lt;a href="/huacnlee" class="user-mention" title="@huacnlee"&gt;&lt;i&gt;@&lt;/i&gt;huacnlee&lt;/a&gt; 写的 &lt;a href="https://react-homeland.herokuapp.com/" rel="nofollow" target="_blank"&gt;https://react-homeland.herokuapp.com/&lt;/a&gt; 很赞  但是页面切换总有一个短暂的载入画面，性能好像不如 ruby-china, 体验也算很好。我理解这是 react 要等所有资源载入以后才开始渲染&lt;/p&gt;

&lt;p&gt;如果保持前后端的分离，&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;有哪些可能的优化可以减轻这个问题&lt;/li&gt;
&lt;li&gt;其他网站怎么解决这个问题&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;是不是可以认为 react/vue 等框架适合 app 类型的应用，比如在线文档，而不是页面/内容型的 web 应用？&lt;/p&gt;</description>
      <author>hbm</author>
      <pubDate>Sun, 26 Apr 2020 04:47:25 +0800</pubDate>
      <link>https://ruby-china.org/topics/39801</link>
      <guid>https://ruby-china.org/topics/39801</guid>
    </item>
  </channel>
</rss>
