• Ruby 图片识别试卷 at 2016年12月25日

    #5楼 @hanluner 在github上有版本说明是需要装低地的tesseract, 但是我在安装低版本的时候出现了一个问题,是

    Error: Calling Resource#sha1 is disabled!
    Use Resource#sha256 instead.
    /Users/huzige/Library/Caches/Homebrew/Formula/tesseract.rb:123:in `block (2 levels) in <class:Tesseract>'
    

    这个鬼。。有点不明觉厉的感觉。。第一次搞这图像识别。很受伤。。。

  • Ruby 图片识别试卷 at 2016年12月23日

    #1楼 @ywjno #2楼 @jimrokliu 安装 tesseract-ocr , 启动的时候遇到这样一个异常现象。有什么解决办法呀。。

    /Users/.rvm/gems/ruby-2.3.0/gems/ffi-1.9.14/lib/ffi/library.rb:147:in `block in ffi_lib': Could not open library '/var/folders/bd/lgr6tqfd16b_z7k25c866vnr0000gn/T/.ffi-inline-501/a2a96759ac9899a5d051acec5a8ae12abdd65b02.dylib': dlopen(/var/folders/bd/lgr6tqfd16b_z7k25c866vnr0000gn/T/.ffi-inline-501/a2a96759ac9899a5d051acec5a8ae12abdd65b02.dylib, 5): Library not loaded: /usr/local/opt/tesseract/lib/libtesseract.3.dylib (LoadError)
      Referenced from: /var/folders/bd/lgr6tqfd16b_z7k25c866vnr0000gn/T/.ffi-inline-501/a2a96759ac9899a5d051acec5a8ae12abdd65b02.dylib
      Reason: image not found
    
    
  • #3楼 @leoliran

    brew install leptonica-devel 我这边安装的时候为什么找不到呀 Error: No available formula with the name "leptonica-devel" ==> Searching for similarly named formulae... Error: No similarly named formulae found. ==> Searching taps... Error: No formulae found in taps.

  • 在dashboard 如何实时监听数据数据更新并展示到页面。。。。。 x = ch.fanout("admin.page_views") ch.queue("dashboard.page_views", durable: true).bind("admin.page_views")

    x = ch.fanout("blog.page_views") ch.queue("dashboard.page_views", durable: true).bind("blog.page_views") 这段话没明白。作用时干嘛的。

  • #1楼 @huacnlee 两个客户端发送消息,在开发环境下发送消息很快, 但是在生产环境中,第一次发送消息需要很长时间,第二次失败,,,, 有没有遇到这个问题的呢, 不知道生产环境中是否还需要配置其它东西。。。。

  • #35楼 @zyjloveher 谢谢好人。。。

  • #32楼 @huacnlee 这是所有日志信息了。 初学。。求大神指教。。

  • #32楼 @huacnlee

    D, [2015-10-28T17:41:30.913095 #15649] DEBUG -- :
    D, [2015-10-28T17:41:30.913134 #15649] DEBUG -- :
    D, [2015-10-28T17:41:30.913150 #15649] DEBUG -- :
    D, [2015-10-28T17:41:30.913160 #15649] DEBUG -- :
    I, [2015-10-28T17:41:30.913247 #15649]  INFO -- : Started GET "/account/create" for 127.0.0.1 at 2015-10-28 17:41:30 +0800
    I, [2015-10-28T17:41:30.913281 #15649]  INFO -- : Started GET "/account/create" for 127.0.0.1 at 2015-10-28 17:41:30 +0800
    I, [2015-10-28T17:41:30.918152 #15649]  INFO -- : Processing by AccountController#create as HTML
    I, [2015-10-28T17:41:30.918192 #15649]  INFO -- : Processing by AccountController#create as HTML
    I, [2015-10-28T17:41:30.920299 #15649]  INFO -- :   Rendered account/new.html.erb within layouts/account (0.3ms)
    I, [2015-10-28T17:41:30.920351 #15649]  INFO -- :   Rendered account/new.html.erb within layouts/account (0.3ms)
    I, [2015-10-28T17:41:30.920506 #15649]  INFO -- : Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)
    I, [2015-10-28T17:41:30.920532 #15649]  INFO -- : Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)
    D, [2015-10-28T17:41:30.931817 #15649] DEBUG -- :
    D, [2015-10-28T17:41:30.931848 #15649] DEBUG -- :
    D, [2015-10-28T17:41:30.931864 #15649] DEBUG -- :
    D, [2015-10-28T17:41:30.931875 #15649] DEBUG -- :
    I, [2015-10-28T17:41:30.931980 #15649]  INFO -- : Started GET "/rucaptcha/" for 127.0.0.1 at 2015-10-28 17:41:30 +0800
    I, [2015-10-28T17:41:30.932102 #15649]  INFO -- : Started GET "/rucaptcha/" for 127.0.0.1 at 2015-10-28 17:41:30 +0800
    I, [2015-10-28T17:41:30.936878 #15649]  INFO -- : Processing by RuCaptcha::CaptchaController#index as HTML
    I, [2015-10-28T17:41:30.936913 #15649]  INFO -- : Processing by RuCaptcha::CaptchaController#index as HTML
    I, [2015-10-28T17:41:30.958078 #15649]  INFO -- :   Rendered text template (0.0ms)
    I, [2015-10-28T17:41:30.958136 #15649]  INFO -- :   Rendered text template (0.0ms)
    I, [2015-10-28T17:41:30.958228 #15649]  INFO -- : Sent data  (0.5ms)
    I, [2015-10-28T17:41:30.958247 #15649]  INFO -- : Sent data  (0.5ms)
    I, [2015-10-28T17:41:30.958317 #15649]  INFO -- : Completed 200 OK in 21ms (Views: 0.4ms | ActiveRecord: 0.0ms)
    I, [2015-10-28T17:41:30.958341 #15649]  INFO -- : Completed 200 OK in 21ms (Views: 0.4ms | ActiveRecord: 0.0ms)
    
  • #30楼 @huacnlee

    ERROR Errno::ECONNRESET: Connection reset by peer @ io_fillbuf - fd:18
        /Users/huzige/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/webrick/httpserver.rb:80:in `eof?'
        /Users/huzige/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/webrick/httpserver.rb:80:in `run'
        /Users/huzige/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread'
    

    跟这个有关系吗?