Ruby China
  • Topics
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • Sign Up
  • Sign In
mixbo
@lb563
VIP
NO. 257 / 2011-11-24

Longbridge
成都
127 Topics / 434 Replies
2 Followers
2 Following
26 Favorites
技术来源于积累,知识重于分享。
GitHub Public Repos
  • nuxt-seo-meta 44

    Help Nuxt create seo metadata easy

  • javascript-questions 2

    A long list of (advanced) JavaScript questions, and their explanations :sparkles:

  • freeCodeCamp 1

    freeCodeCamp.org's open-source codebase and curriculum. Learn to code for free.

  • content 0

    The content behind MDN Web Docs

  • gpui-component 0

    A UI components write in GPUI.

  • zed 0

    Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creato...

  • vscode 0

    Visual Studio Code

  • open-webui 0

    User-friendly WebUI for LLMs (Formerly Ollama WebUI)

  • chatgpt-on-wechat 0

    基于大模型搭建的聊天机器人,同时支持 企业微信、微信 公众号、飞书、钉钉 等接入,可选择GPT3.5/GPT4.0/Claude/文心一言/讯飞星火/通义千问/Gemini/GLM-4/Clau...

  • openapi-website 0

    Longbridge OpenAPI website

More on GitHub
  • Overview
  • Topics
  • Replies
  • Favorites
  • Following
  • Followers
  • 在 rails 中 call shell 到另外一个项目中执行命令? at August 08, 2012

    #4 楼 @ywjno 具体点呢?我感觉是 passenger 那里出了问题。

  • 在 rails 中 call shell 到另外一个项目中执行命令? at August 08, 2012

    #3 楼 @hooopo 还有一个,我用rails s启动服务来执行这个命令就能成功,但是用 passenger+nginx 的方式就不行。

  • 在 rails 中 call shell 到另外一个项目中执行命令? at August 08, 2012

    #1 楼 @hooopo 确实是可以在 consloe 环境下运行:

    [4] pry(main)> system "cd /mrli/dev/checker && bundle exec cucumber -p prod"
    Using the prod profile...
    => false
    

    但是同样的在 action 中就没有执行成功:

    def gen_report 
      system "cd /mrli/dev/checker && bundle exec cucumber -p prod"
      redirect_to root_path
    end
    
  • Rails 下有什么比较好的博客框架嘛? at August 07, 2012

    Otcopress + 1

  • 今天部署到 VPS 上,系统是 CentOS 好还是 Ubuntu Server 好呢? at July 30, 2012

    #25 楼 @zlx_star me too centos +1 , 不怕折腾 +1

  • 大家能帮我看看仿这个站适合用 Active Admin 或者 CMS 之类的后台 Gem 做吗? at July 30, 2012

    #2 楼 @whitecrow 没有做什么。你要是在用 active_admin 的时候遇到问题,可以找我一起讨论讨论。

  • 紧急!!!Ruby 1.8.6 如何 set 中文到页面 at July 30, 2012

    在脚本第一行加 #encoding: utf-8 试一试

  • 吐槽~ Firefox 除了 Firebug 还剩下什么能吸引我? at July 29, 2012

    个人很喜欢使用"鼠标手势"

  • 用 Ruby 封装 Tx 的开放平台接口 at July 29, 2012

    #4 楼 @sevk 这个也有关系 ?

  • 用 Ruby 封装 Tx 的开放平台接口 at July 29, 2012

    #2 楼 @zw963 前段时间在社区里问过一些人,他们告诉了些自己做的库,但是发现拿过来用,测试不通。于是就自己研究.最后把结果分享给大家。

  • 大家能帮我看看仿这个站适合用 Active Admin 或者 CMS 之类的后台 Gem 做吗? at July 27, 2012

    可以啊。只要需要明确就可以.我们的项目就在用 active_admin

  • 按照 railscast 学习的,但 mysql 始终无法连接的问题,怎么破 at July 27, 2012

    引用:":" 和密码之间加个空格

  • active_record 多数据库链接问题求助 at July 27, 2012

    自己回答一下吧: 在 Dev1,Dev2 类中加入"self.abstract_class = true" #=> 表示这个模型类不会与库中的任何表有关系,也就是一个抽象的类。

  • 求助 关于 pry 的使用 at July 27, 2012

    #10 楼 @reducm 是的楼上都热情回答了 ".clear"

  • Pines Notify,非常棒的 js notifications 扩展 at July 27, 2012

    果断收藏。谢谢分享

  • [成都] 想在学校建一个关于 ruby 的俱乐部或社团,各位前辈有啥建议? at July 16, 2012

    #33 楼 @fahchen 嗯,是的。加个 Q

  • [成都] 想在学校建一个关于 ruby 的俱乐部或社团,各位前辈有啥建议? at July 15, 2012

    @fahchen 你在哪个校区?大几呢?

  • 好无聊,求电影推荐~~~~~~~~~~~ at July 14, 2012

    迷雾

  • 80 端口不能使用! at July 11, 2012

    谢谢各位 @azhao 80 端口开了 @lgn21st 有修改过 hosts 文件,nginx 是用 sudo 启动的 @chucai 防火墙 ok

    现在我问题解决了,但是不清楚为什么我的机器上会有两个 nginx 的 master 进程,我把 nginx 进程全部杀掉后,再重启 nginx 就可以访问了。

  • ruby 有没有去除图片的白边技巧? at July 10, 2012

    #3 楼 @hooopo 在这之前我自己写了一个脚本,但是在执行过程中速度很慢,所以想到社区中来问一问. 现在我把我的脚本放到了 github 上:https://gist.github.com/3083018 分享一下。

  • ruby 有没有去除图片的白边技巧? at July 10, 2012

    #3 楼 @hooopo 是的,但是我得知道 crop 的范围。

  • ruby 有没有去除图片的白边技巧? at July 10, 2012

    @hooopo 好我上传一张图片

    能看见我只想要这张图片的一部分,但是这图片有太多的白边 (透明部分) 我想用 rmagick 来切除这些无用的白边。你有什么好的主意?

    PS: 这张图的尺寸为:550x400

  • Ruby or Rails 有没有针对一个 http request 访问性能测试的工具 at July 10, 2012

    可以使用:https://rubygems.org/gems/request-log-analyzer 很好用。

  • 复杂计算留给浏览器端 JavaScript 计算 at July 08, 2012

    #2 楼 @chucai 赞成使用 gon 很方便.给个链接:https://github.com/gazay/gon

  • 大家平常都几点睡觉 睡够 7 小时么? at July 05, 2012

    表示和 #6 楼 @huacnlee 差不多

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