Ruby China
  • 社区
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • 注册
  • 登录
Hooopo
@hooopo
管理员
第 8 位会员 / 2011-10-28

[email protected]
nil
北京
160 篇帖子 / 3013 条回帖
360 关注者
0 正在关注
74 收藏
聪明的妖怪录下了唐僧的紧箍咒
打赏作者
GitHub Public Repos
  • oh-my-github-circles 47

    GitHub User Circle Generator Using GitHub Actions

  • hackernews-insight 21

    Hackernews Insight using TiDB Cloud

  • repo-track-pipeline 6

    🔄 A flexible open-source data pipeline for seamlessly syncing data from any repository to your da...

  • oh-my-github-pipeline 6

    🔄 A flexible open-source data pipeline for seamlessly syncing data from any github user to your d...

  • chatgpt-xiaoai 3

    小爱音箱集成LLM,SaaS 服务

  • repo-contributor-circles 1

    GitHub repo contributor circles generator.

  • ossinsight-x 1

    Automatically post trending repos to Twitter every day.

  • mi-service 1

    XiaoMi Cloud Service for mi.com

  • hooopo 0

  • streamlit-echarts-demo 0

    Demo for Streamlit ECharts component

More on GitHub
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • Partial 性能太差 at 2013年07月13日

    你可以试试这个:https://github.com/n8/multi_fetch_fragments?source=cc

    I just implemented this on the staging environment of https://www.biglittlepond.com. The one-line render call for the most recently collected items dropped from ~700 ms to ~50 ms. 25 items per page. This will be going into the production release later this week.

    Nathaniel Jones

    加 collection 选项也可以快一点:http://ruby-china.org/topics/1040#reply11

  • 使用 ImageMagick 为你的网站减重 (2) at 2013年07月12日

    #19 楼 @pokkalee 不。是。吧

  • 调用外部程序要小心 at 2013年07月11日

    http://hooopo.writings.io/articles/1-Shell-Out-Best-Practice-In-Ruby

  • [求职] ruby/rails 工程师....找啊找,找啊找,找个好工作 at 2013年07月10日

    再文艺的简历也不能部署在 dev 环境啊..

  • Padrino 支持 Ruby 2.0 吗 at 2013年07月10日

    https://github.com/padrino/padrino-framework/blob/master/.travis.yml

  • 今天才发现 ruby 的标准库有个 un at 2013年07月08日

    -run太 magick 了 哈哈哈哈哈哈!

  • 使用 ImageMagick 为你的网站减重 (2) at 2013年07月08日

    #13 楼 @Saito 首先图片要有这个特性。浏览器也会控制的,比如 IE9 以下的浏览器就不支持。

  • 使用 ImageMagick 为你的网站减重 (2) at 2013年07月08日

    #9 楼 @bhuztez 但是我还没遇到过 IM 出什么问题。

  • 无聊无聊!大家无聊时都干什么? at 2013年07月08日

    无聊

  • 请问有什么好用的微博推特客户端吗? at 2013年07月07日

    网页是最好用的。

  • 你们也整天写报告吗? at 2013年07月07日

    以前写,很烦。

    程序员还需要写这些只能说明几个问题:

    1. 项目管理工具不好用/没用好
    2. 源码管理工具不好用/没用好
    3. 项目管理流程有问题
  • 使用 ImageMagick 为你的网站减重 (2) at 2013年07月07日

    #3 楼 @imlcl 又不是做 flickr 这种网站,功能丰富、文档全、资料多才是最重要的。

  • 使用 ImageMagick 为你的网站减重 (2) at 2013年07月07日

    #6 楼 @zhangyuan 用户和编辑上传的这种图片转成 JPEG 是最佳的,因为这类图(一般是相机拍摄的)不需要半透明或动画效果。存成 JPEG 更利于压缩和优化。

  • 使用 ImageMagick 为你的网站减重 (2) at 2013年07月07日

    #4 楼 @zhangyuan 你是用这东西处理用户上传到服务器的图片?我觉得 optipng 和 jpegoptim 这些只适合在本地处理网站用的 banner/logo/背景图片之类。做实时的不合适。

  • 使用 ImageMagick 为你的网站减重 (2) at 2013年07月07日

    #1 楼 @zhangyuan 反正就本地压缩一次..

  • url 安全问题 at 2013年07月07日

    #5 楼 @badboy 以我的经验,我估计 LZ 自己也不知道到底要干什么

  • url 安全问题 at 2013年07月07日

    楼主是想防伪造吧?

    1. 使用 HTTP Basic 或一些其他认证手段
    2. 用 HMAC 做签名
  • [手册更新中] 异步小轮子 nyara at 2013年07月07日

    为什么 request 对象会有一些 response 相关的方法

    [39] pry(#<Nyara::SimpleController>)> request
    => #<Nyara::Request:0x007fcaaab59f38>
    [40] pry(#<Nyara::SimpleController>)> request.response_header
    => {}
    [41] pry(#<Nyara::SimpleController>)> request.response_content_type
    => nil
    

    可以在 librelist上开个 list,问问题和订阅方便一些..

  • mac postgresql 安装版的问题 at 2013年07月07日

    #6 楼 @blacktulip 我的也是大象

  • mac postgresql 安装版的问题 at 2013年07月06日

    http://thechangelog.com/postgres-app/

  • 如何抓自己代码发起的 http 请求 at 2013年07月06日

    https://rubylution.herokuapp.com/topics/20

  • Puppet 和 Chef 哪个好用?哪个比较流行点?要学的话先学谁比较好? at 2013年07月04日

    follow your heart

  • Turbolinks 后端逻辑分析 (更新总集篇) at 2013年07月04日

    #18 楼 @Saito sass 和 coffee 也算是解决了一些问题,然后带来一些新问题的东西..

  • Turbolinks 后端逻辑分析 (更新总集篇) at 2013年07月04日

    #14 楼 @Saito Sprockets 有点用的,话说,我第一份工作就是写过发布之前打包+压缩静态文件的脚本。Rails 框架提供了这个功能,一夜之间 Rails 项目都是压缩合并的了,想起以前一些搞 PHP 的同事为怎么打包 JS 和 CSS 还争论了半天觉得好笑(最后项目 css 和 js 是否打包就不清楚了..)。

    你的并不好都是针对专业前端框架来说的,但 Rails 是后端方案或者是一站式方案,也不能苛求太多。

  • Turbolinks 后端逻辑分析 (更新总集篇) at 2013年07月04日

    #12 楼 @Rei 这个要结合 Rails 默认开启 Turbolinks 来理解.. 并不是每个项目都是单页应用。

  • Turbolinks 后端逻辑分析 (更新总集篇) at 2013年07月04日

    #7 楼 @Saito total agree.

    • Turbolinks 的出现是为了给 Rails Asset Pipeline 擦屁股,Asset Pipeline 解决了前端相关的大部分问题(减少 http 请求,压缩/混淆,缓存失效),但是引人的问题是增加了 js 和 css 的渲染时间(Assets Pipline 的最佳实践是所有静态文件打一个包)。Tubolinks 的描述是Turbolinks makes following links in your web application faster (use with Rails Asset Pipeline)

    • Turbolinks 把客户端 JS 改造成像 Ruby 这种常驻进程方式执行,解决了 Asset Pipeline 带来的增加了渲染时间的问题。同时带来的新问题是内存泄漏、学习曲线增高、隐藏太多复杂性、事件绑定方式变化。Tubolinks 282 行代码却开了 245 个 issue ,这些 issue 大部分是解决 turbolinks 和其他插件适配的。我觉得如果不是 DHH 发起的,这项目早就挂了..

  • 关于 HTML5 的 audio 标签在 Rails 中的使用 at 2013年07月02日

    #8 楼 @hicupp 是的

  • 关于 HTML5 的 audio 标签在 Rails 中的使用 at 2013年07月02日

    #6 楼 @hicupp 在 public 下就不用了

  • Grape 实现:手机、IP、地址 查询 GEO at 2013年07月02日

    不错,数据需要那个 csv 文件?

  • 如何在 Model 里生成页面的 html 文件 at 2013年07月02日

    弄个后台任务一个一个请求就可以啊 至于登陆不登陆问题设置一下 cookie 就行了

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