Ruby China
  • 社区
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • 注册
  • 登录
Cam
@camel
高级会员
第 558 位会员 / 2011-12-23

[email protected]
上海
50 篇帖子 / 745 条回帖
41 关注者
10 正在关注
25 收藏
阿里巴巴急招前端,邮件简历
GitHub Public Repos
  • You-Dont-Need-jQuery 20299

    Examples of how to do query, style, dom, ajax, event etc like jQuery with plain javascript.

  • blog 3654

    ✍️Front-end Development Thoughts

  • fetch-jsonp 1002

    Make JSONP request like window.fetch

  • chrome-github-mate 359

    Chrome extension to make single file download effortless and with more features

  • fetch-ie8 277

    A window.fetch JavaScript polyfill supporting IE8

  • chatgpt-engineer-prompts 168

    Awesome ChatGPT prompts for engineers😇

  • fetch-detector 39

    检测浏览器版本判断是否支持 Fetch

  • areact 36

    Write React from scratch

  • react-source-debug 26

  • yarn-duplicate 18

    A small tool to help you check package duplicates in `yarn.lock`

More on GitHub
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • [上海][2012年09月04日] Ruby Tuesday 活动召集 at 2012年09月01日

    回复时连击了“提交回复”,没想到一下子出了 3 条。

  • 北京哪些靠谱店可以买到 macbook air at 2012年09月01日

    #2 楼 @yakjuly 要多锻炼啦~ pro 把光驱拆掉,HDD 换 SSD,重量减轻不少。凑合着还行吧。

  • cap deploy SSH 密码出错 at 2012年09月01日

    参见:http://ruby-china.org/topics/499 http://ruby-china.org/topics/1696

  • cap deploy SSH 密码出错 at 2012年08月31日

    你可以多贴出来些代码,只凭上面两行,看来出问题。 你可以用cap deploy -v 看一下详细的 log 其实建议你使用 ssh key 验证,省去输密码的繁琐,而且还更安全。

  • 说一说你最最常用的 linux 命令有哪些,也算是给新手指导 at 2012年08月31日

    #27 楼 @fsword 也有用,只是如果命令相似度比较高,还是狂按 ctrl+p 快些。

    另外我常用的还有:

    搜索进程的 pid 号,并删除 grep 那一行。 ps aux | grep "ruby" | grep -v "grep"

    从倒数 200 行开始实时看 log tail -200f log_file_name

    在指定目录和子文件中查找包含的字符串,path_name 可以用正则来只搜索指定文件。 grep -R text_to_find path_name

    查看当前文件夹大小 du -hs .

    查看当前文件夹下子文件和目录的大小 du -hs *

    想看当前文件夹大小 less 结合 space, f, b 来前后移动来快速查看文件很好用。

  • 说一说你最最常用的 linux 命令有哪些,也算是给新手指导 at 2012年08月31日

    #12 楼 @quakewang !?是好东西啊,我一般都是狂按 ctrl+p, ctrl+n

  • [北京] 20-25 万,朝阳门美企聘一个大型 web 开发-Ruby on Rails at 2012年08月31日

    楼主是猎头还是外包公司啊?

  • lazy_high_charts 1.2.2 稳定版发布。画图就用它了 at 2012年08月31日

    #3 楼 @xds2000 最近项目也使用 high chart,后来找到了你写的这个 gem,正准备用。 这个 gem 和https://github.com/michelson/lazy_high_charts 是什么关系?

  • mongoid save 问题 at 2012年08月31日

    params 的值 应该是

    "post" => {"author"=>"asdasd fdsfasd",
    "source"=>"das",
    "platform"=>"dasdas",
    "size"=>"das",
    "watch"=>"dasdas",
    "description"=>"das",
    "category_names"=>"audio"}
    

    你现在的 params[:post] 是空的呀。

  • cap deploy SSH 密码出错 at 2012年08月31日

    mike 左边的引号有问题啊

  • [上海][2012年09月04日] Ruby Tuesday 活动召集 at 2012年08月31日

    -

  • [上海][2012年09月04日] Ruby Tuesday 活动召集 at 2012年08月31日

    -

  • [上海][2012年09月04日] Ruby Tuesday 活动召集 at 2012年08月31日

    http://rubyer.me/speed-up-with-rails-cache.html 分享的 slide 在这里,更多的是实战。

  • RubyConfChina 2012 志愿者征集贴 at 2012年08月31日

    本人相貌端正,思想健康,略懂撸比。😋 距创智天地步行 10 分钟。可以参与现场布置会资料整理各种工作

  • 一边敲代码,一边看后台 at 2012年08月31日

    2007-03-24 楼主看的视频好老啊。

    直接在 rails console 里输入ActiveRecord::Base.logger = Logger.new(STDOUT) 你就能直接在 terminal 中看到 sql 了。

  • Migration 文件是不是可以 “用后即焚”? at 2012年08月30日

    其实 schema.rb 开头的说明已经很清楚了。

    # This file is auto-generated from the current state of the database. Instead # of editing this file, please use the migrations feature of Active Record to # incrementally modify your database, and then regenerate this schema definition. # # Note that this schema.rb definition is the authoritative source for your # database schema. If you need to create the application database on another # system, you should be using db:schema:load, not running all the migrations # from scratch. The latter is a flawed and unsustainable approach (the more migrations # you'll amass, the slower it'll run and the greater likelihood for issues). # # It's strongly recommended to check this file into your version control system.

    #5 楼 @valentine schema.rb 删掉不会对当前程序运行有任何影响。但有两种情况我感觉 schema.rb 很有用: 查看一个开源代码的数据库结构,如果看 migration 会头大,但看 schema 一目了然。 还有就是对于一些烂尾的项目 migrate 太多可能会执行出错,就直接rake db:schema:load

  • 请问 Rails 有能够上传图片的 TextEditor 的 Gem 吗? at 2012年08月29日

    你可以试一下无比臃肿的CKEditor

  • 集成支付宝付款求助 at 2012年08月29日

  • Ruby-China.org 选择用 Thin 还是 Unicorn? at 2012年08月29日

    @huacnlee 刚看到 ruby-china server 又从 unicorn 改到 thin 了,能说下原因吗?

  • 如果手动创建文件,一般需要几个文件? at 2012年08月29日

    model, controller, action, views, helper, migrate 都是相互独立的,可以在需要时单独创建。

    如果你只需要存数据,就 rails generate model [model_name] 如果你需要处理请求,就创建 controller 和 action, 可以rails generate controller [controller_name], [index_name] 如果你需要一个新页面就创建 view 如果数据库要修改,就rails generate migration ...,然后执行rake db:migrate

  • 什么时候需要增加测试 at 2012年08月29日

    什么时候需要增加测试

    当你敲完rails new **后,当然你也可以严格按照 TDD

    什么时候需要修改测试,什么时候不需要修改测试(关于测试质量)

    当测试不通过的时候。

    如何审查测试

    有新代码修改必须附带测试,否则 ignore。 我一般除了 view 不写测试 (有集成测试),其它尽量都覆盖。

    一开始写测试可能有点慢,但熟练后就很快了。 写不写测试更多和团队氛围有关,大家都写,你自然会写。

  • mac 10.8 下默认 ruby 版本问题 at 2012年08月28日

    如果你用的是 bash,在~/.bashrc 中加入 rvm use 1.9.3 这样你每次打开 terminal 都会自动切换到你想要的 ruby 版本。

  • capistrano 部署的 task 应该写在 capfile 还是 config/deploy.rb at 2012年08月28日

    一般全写在config/deploy.rb里,已经够用。 Capfile 一般是用来加载其它文件,包括'config/deploy',所以config/deploy里的都可以写在这里。 如果你需要多个部署文件,可以在Capfile里 load 进来

  • 分享关于 cache 的不错文章 at 2012年08月28日

    已被分享过了 http://ruby-china.org/topics/4170 内容很赞

  • 想问一下配置 alias 的问题 at 2012年08月28日

    直接killall [proc_name]即可

  • Rails 中的搜索表单怎么做 at 2012年08月28日

    form_for 默认是 post 方法,所以对应的是'post_controller#create'的路由。 你可以新建个 create 方法,也可以在 form_for 后面加上:method => 'get'来把路由指向到 index 方法

  • 征集今年 RubyConfChina 的分会场即兴话题 at 2012年08月25日

    #29 楼 @ericguo OLE 跨平台太差,可以不考虑。推荐 spreadsheet 和 axlsx。

    关于这场大会,我想听的话题有:缓存 (#5 楼 @HungYuHei), Extending Ruby/Rails, Test, Security , Rails flavored Ruby, Digging deep in ActiveSupport, ActiveRecord, Massive data, etc. 我觉得这些才是干货,只是本人能力有限,讲不出来。

  • 新一期的 Railscasts China The Rails Initialization Process 发布了 at 2012年08月11日

    非常多的干货,赞

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