• #3 楼 @jokry 测试了一下,不同地域搜索结果不同。在家里搜索结果以 Backbone 为主,在公司搜索,以 spinejs 为主。

  • #165 楼 @yedingding 100 max connections, 200,000 message 就需要 19 USD / month,贵贵的感觉。

  • 绑定表单改变为表单提交 at 2012年05月29日
    <%= form_tag url_for(controller: 'topics', action: 'rate', id: topic.id), :remote => true, :class => "rating_form", method: "post" do %>
      <input id="_assets_action_rate_controller_topics_id_28_ratings" class="rating_input" value=<%= "#{topic.rating}" %> max="5" min="0" name="ratings" size="1" step="1" type="text" style="display:none" />
      <!--%= f.text_field :ratings, :size => 1, :min => 0, :max => 5, :step => 1 %-->
      <div class="rateit" data-rateit-backingfld="#_assets_action_rate_controller_topics_id_28_ratings" data-rateit-resetable="true" data-rateit-ispreset="true">
      </div>
        <%= topic.rate_count %> Votes
    <% end %>
    

    然后使用:

    $("form.rating_form input.rating-input").change () ->
        $(this).parent().submit()
    

    仍然无法绑定。

  • Firefox 下 UI 还需改进呀? at 2012年05月27日

    #5 楼 @huacnlee 对齐还是有问题,上传的 DIV 还是打不开,截图如下 (顺便把 FireFox 版本也截屏了):

  • Firefox 下 UI 还需改进呀? at 2012年05月27日

    #1 楼 @lb563 第一个 bug 社区里有人提过,第二个 bug 要截个视频才行。呵呵!

  • CarrierWave 文件上传问题: at 2012年05月22日

    #8 楼 @sharp 找到问题所在啦,没有 attr_accessible。你看得真仔细呀,谢谢!

  • CarrierWave 文件上传问题: at 2012年05月22日

    #10 楼 @hujoy 貌似没有区别。

  • CarrierWave 文件上传问题: at 2012年05月22日

    贴一段能正常上传的:

    Processing by AccountController#update as HTML
      Parameters: {"utf8"=>"✓", "authenticity_token"=>"[FILTERED]", "user"=>{"name"=>"hujoy", "avatar"=>#<ActionDispatch::Http::UploadedFile:0x0000000884a1e0 @original_filename="Revolutionary.jpg", @content_type="image/jpeg", @headers="Content-Disposition: form-data; name=\"user[avatar]\"; filename=\"Revolutionary.jpg\"\r\nContent-Type: image/jpeg\r\n", @tempfile=#<File:/tmp/RackMultipart20120403-1681-aw1qkz>>, "email"=>"[email protected]", "location"=>"", "github"=>"", "website"=>"", "tagline"=>"", "bio"=>""}, "commit"=>"更新资料"}
    
  • CarrierWave 文件上传问题: at 2012年05月22日

    #7 楼 @sharp 呵呵,ruby-china 的源程序中有的,/app/views/shared/_error_messages.html.erb 中。

  • CarrierWave 文件上传问题: at 2012年05月22日

    主要可以看这一段:

    Processing by TopicsController#create as HTML
      Parameters: {"utf8"=>"✓", "authenticity_token"=>"[FILTERED]", "topic"=>{"node_id"=>"7", "title"=>"显式显示type是否会成功。", "cover"=>#<ActionDispatch::Http::UploadedFile:0x000000083ec530 @original_filename="facebook.jpg", @content_type="image/jpeg", @headers="Content-Disposition: form-data; name=\"topic[cover]\"; filename=\"facebook.jpg\"\r\nContent-Type: image/jpeg\r\n", @tempfile=#<File:/tmp/RackMultipart20120522-2435-qsoh6v>>, "cover_cache"=>"", "body"=>"```\r\n    <%= image_tag(@user.avatar_url) if @user.avatar? %>\r\n    <%= f.file_field :avatar %>\r\n    <%= f.hidden_field :avatar_cache %>\r\n```"}, "commit"=>"保存"}
    
  • CarrierWave 文件上传问题: at 2012年05月22日
    Started GET "/topics/new" for 127.0.0.1 at 2012-05-22 21:01:14 +0800
    Processing by TopicsController#new as HTML
    [36mMONGODB[0m (0ms) hujoy_db_development_apr5['[34musers[0m'].[33mfind[0m({:_id=>14}).limit(-1).sort([[:_id, :asc]])
    [35mMONGODB[0m (0ms) hujoy_db_development_apr5['[34m$cmd[0m'].[33mfind[0m({"count"=>"notifications", "query"=>{"user_id"=>14, :read=>false}, "fields"=>nil}).limit(-1)
      Rendered topics/_base.html.erb (1.9ms)
      Rendered shared/_error_messages.html.erb (0.0ms)
    [36mMONGODB[0m (1ms) hujoy_db_development_apr5['[34msections[0m'].[33mfind[0m({}).sort([[:sort, :asc]])
    [35mMONGODB[0m (1ms) hujoy_db_development_apr5['[34mnodes[0m'].[33mfind[0m({"section_id"=>1}).sort([[:sort, :asc]])
    [36mMONGODB[0m (0ms) hujoy_db_development_apr5['[34mnodes[0m'].[33mfind[0m({"section_id"=>2}).sort([[:sort, :asc]])
    [35mMONGODB[0m (0ms) hujoy_db_development_apr5['[34mnodes[0m'].[33mfind[0m({"section_id"=>3}).sort([[:sort, :asc]])
    [36mMONGODB[0m (1ms) hujoy_db_development_apr5['[34mnodes[0m'].[33mfind[0m({"section_id"=>4}).sort([[:sort, :asc]])
    [35mMONGODB[0m (1ms) hujoy_db_development_apr5['[34mnodes[0m'].[33mfind[0m({"section_id"=>5}).sort([[:sort, :asc]])
    [36mMONGODB[0m (1ms) hujoy_db_development_apr5['[34mnodes[0m'].[33mfind[0m({"section_id"=>6}).sort([[:sort, :asc]])
    [35mMONGODB[0m (1ms) hujoy_db_development_apr5['[34mnodes[0m'].[33mfind[0m({"section_id"=>7}).sort([[:sort, :asc]])
    [36mMONGODB[0m (1ms) hujoy_db_development_apr5['[34mnodes[0m'].[33mfind[0m({"section_id"=>8}).sort([[:sort, :asc]])
    [35mMONGODB[0m (1ms) hujoy_db_development_apr5['[34mnodes[0m'].[33mfind[0m({"section_id"=>9}).sort([[:sort, :asc]])
      Rendered topics/_editor_toolbar.html.erb (1.0ms)
      Rendered topics/_form.html.erb (61.1ms)
      Rendered app/cells/topics/sidebar_for_new_topic_node.html.erb (0.0ms)
      Rendered app/cells/topics/reply_help_block.zh-CN.html.erb (0.0ms)
      Rendered topics/_sidebar_for_new_topic.html.erb (5.1ms)
      Rendered topics/new.html.erb within layouts/application (69.5ms)
      Rendered common/_search_form.html.erb (0.2ms)
      Rendered common/_user_nav.html.erb (1.8ms)
      Rendered common/_google_analytics.html.erb (0.1ms)
    Completed 200 OK in 139ms (Views: 118.3ms | Mongo: 11.7ms | Solr: 0.0ms)
    
    
    Started POST "/topics" for 127.0.0.1 at 2012-05-22 21:01:37 +0800
    Processing by TopicsController#create as HTML
      Parameters: {"utf8"=>"✓", "authenticity_token"=>"[FILTERED]", "topic"=>{"node_id"=>"7", "title"=>"显式显示type是否会成功。", "cover"=>#<ActionDispatch::Http::UploadedFile:0x000000083ec530 @original_filename="facebook.jpg", @content_type="image/jpeg", @headers="Content-Disposition: form-data; name=\"topic[cover]\"; filename=\"facebook.jpg\"\r\nContent-Type: image/jpeg\r\n", @tempfile=#<File:/tmp/RackMultipart20120522-2435-qsoh6v>>, "cover_cache"=>"", "body"=>"```\r\n    <%= image_tag(@user.avatar_url) if @user.avatar? %>\r\n    <%= f.file_field :avatar %>\r\n    <%= f.hidden_field :avatar_cache %>\r\n```"}, "commit"=>"保存"}
    [36mMONGODB[0m (0ms) hujoy_db_development_apr5['[34musers[0m'].[33mfind[0m({:_id=>14}).limit(-1).sort([[:_id, :asc]])
    [35mMONGODB[0m (0ms) hujoy_db_development_apr5['[34m$cmd[0m'].[33mfind[0m({"count"=>"notifications", "query"=>{"user_id"=>14, :read=>false}, "fields"=>nil}).limit(-1)
    WARNING: Can't mass-assign protected attributes: node_id, cover, cover_cache
    WARNING: Can't mass-assign protected attributes: node_id, cover, cover_cache
    [36mMONGODB[0m (0ms) hujoy_db_development_apr5['[34musers[0m'].[33mfind[0m({:login=>/^(user|user)$/i, :_id=>{"$ne"=>14}}, {:_type=>1, :_id=>1}).limit(5)
    [35mMONGODB[0m (0ms) hujoy_db_development_apr5['[34mnodes[0m'].[33mfind[0m({:_id=>7}).limit(-1).sort([[:_id, :asc]])
    [36mMONGODB[0m (0ms) hujoy_db_development_apr5['[34m$cmd[0m'].[33mfind[0m({:findandmodify=>"mongoid.auto_increment_ids", :query=>{:_id=>"topics"}, :update=>{:$inc=>{:c=>1}}, :new=>true, :upsert=>true}).limit(-1)
    [35mMONGODB[0m (0ms) hujoy_db_development_apr5['[34mtopics[0m'].[33minsert[0m([{"mentioned_user_ids"=>[], "replies_count"=>0, "follower_ids"=>[], "likes_count"=>0, "tags"=>[], "title"=>"显式显示type是否会成功。234", "body"=>"```\r\n    <%= image_tag(@user.avatar_url) if @user.avatar? %>\r\n    <%= f.file_field :avatar %>\r\n    <%= f.hidden_field :avatar_cache %>\r\n\n```", "_type"=>"Topic", "user_id"=>14, "node_id"=>7, "updated_at"=>2012-05-22 13:01:37 UTC, "body_html"=>"<div class=\"highlight\"><pre>    &lt;%= image_tag(<a href=\"/users/user\" class=\"at_user\" title=\"@user\"><i>@</i>user</a>.avatar_url) if <a href=\"/users/user\" class=\"at_user\" title=\"@user\"><i>@</i>user</a>.avatar? %&gt;\n    &lt;%= f.file_field :avatar %&gt;\n    &lt;%= f.hidden_field :avatar_cache %&gt;\n</pre>\n</div>", "node_name"=>"杂志", "node_slug"=>"journals", "created_at"=>2012-05-22 13:01:37 UTC, "replied_at"=>2012-05-22 13:01:37 UTC, "_id"=>28}])
    [36mMONGODB[0m (0ms) hujoy_db_development_apr5['[34mnodes[0m'].[33mupdate[0m({"_id"=>7}, {"$inc"=>{"topics_count"=>1}})
    [35mMONGODB[0m (0ms) hujoy_db_development_apr5['[34musers[0m'].[33mupdate[0m({"_id"=>14}, {"$inc"=>{"topics_count"=>1}})
    [36mMONGODB[0m (0ms) hujoy_db_development_apr5['[34musers[0m'].[33mfind[0m({:_id=>{"$in"=>[]}})
      [1m[32mSOLR Request (10.0ms)[0m  [ path=#<RSolr::Client:0x00000008c3a9a8> parameters={data: [1m[1m<?xml version="1.0" encoding="UTF-8"?><add><doc><field name="id">Topic 28</field><field name="type">Topic</field><field name="class_name">Topic</field><field name="node_id_i">7</field><field name="replied_at_d">2012-05-22T13:01:37Z</field><field name="title_textsv">显式显示type是否会成功。234</field><field name="body_textsv">```
        &lt;%= image_tag(@user.avatar_url) if @user.avatar? %&gt;
        &lt;%= f.file_field :avatar %&gt;
        &lt;%= f.hidden_field :avatar_cache %&gt;
    
    ```</field></doc></add>[0m, headers: [1m[1m{"Content-Type"=>"text/xml"}[0m, method: [1m[1mpost[0m, params: [1m[1m{:wt=>:ruby}[0m, query: [1m[1mwt=ruby[0m, path: [1m[1mupdate[0m, uri: [1m[1mhttp://localhost:8983/solr/update?wt=ruby[0m, open_timeout: [1m[1m[0m, read_timeout: [1m[1m[0m} ]
    Redirected to http://hujoy.com:3000/topics/28
      [1m[32mSOLR Request (533.6ms)[0m  [ path=#<RSolr::Client:0x00000008c3a9a8> parameters={data: [1m[1m<?xml version="1.0" encoding="UTF-8"?><commit/>[0m, headers: [1m[1m{"Content-Type"=>"text/xml"}[0m, method: [1m[1mpost[0m, params: [1m[1m{:wt=>:ruby}[0m, query: [1m[1mwt=ruby[0m, path: [1m[1mupdate[0m, uri: [1m[1mhttp://localhost:8983/solr/update?wt=ruby[0m, open_timeout: [1m[1m[0m, read_timeout: [1m[1m[0m} ]
    Completed 302 Found in 1345ms
    
    
    Started GET "/topics/28" for 127.0.0.1 at 2012-05-22 21:01:38 +0800
    
    以下是显示新创建的topic
    
  • CarrierWave 文件上传问题: at 2012年05月22日

    error_messages 无任何错误提示,development.log 也已经查过,没有错误提示。整个过程无任何错误提示,只是文件不会上传,然后:cover 为 nil

  • 澳州不行,在天朝,各方面的人才需求都多一些。

  • CarrierWave 文件上传问题: at 2012年05月22日

    UP!

  • https://github.com/proton/mongoid_rateable 不知道怎样?试着用用看。

  • #11 楼 @leekelby Railscasts 还好吧,至少免费的也能学到很多东西。

  • #4 楼 @fredwu 呵呵,职位和能力不符的人在哪个行业都很多,见多就不怪啦。

  • #2 楼 @fredwu 你这样做已经不专业啦,删了此贴吧。

  • #3 楼 @hhuai 俺们这旮旯,都是凹凸曼

  • put.im 的用户报道,可惜没有把 put.im 数据移过来,否则应该能进前 10 吧。

  • 《Ruby 元编程》正在预售 at 2012年02月12日

    订单 4076548961 已提交。预计 2 月 15 日送达。 迅速入手,希望不要向上次买的某书一样,翻译一定要到位。

  • 感兴趣的同学,我的邮箱:huaqingping@极麦尔道卡姆。

  • #2 楼 @lyfi2003 rss 聚合比较容易,难就难在目标网站不提供 rss feed.

  • 还是觉得卡片机不错,现在分辨率高。另外,摄影,首先要求技术,其次才是设备。我去年参加公司的活动,一个女孩用单反拍的几张照片,全都要不得,还不如手机拍的。

  • #19 楼 @ono_li 精辟!

  • #11 楼 @lanwen 能在帝都混,都是牛 X 级!

  • #10 楼 @Lucifer 没看归在“瞎扯谈”node 下吗?呵呵,只是提供一个思路

  • #12 楼 @fredwu 端茶扫地要求很高的,你尚达不到标准。还是做回老本行吧

  • #7 楼 @lanwen 很牛 X 的经历。目前在哪高就呀?

  • #3 楼 @lgn21st 应该是他比较 draft 的版本吧。好像 51qiangda 目前有界面的改版,不知道还是不是他在做?