Posts about ruby
If you're a Ruby developer you are probably familiar with the website rubygems.org. It's "the" repository for all information about Ruby gems.
Things i find important when looking for a gem:
require "base64" require 'net/http' require 'json' # Base 64 the input image b64_data = Base64.encode64(File.open(ARGV, "rb").read) # Stuff we need api_key = "
" content_type = "Content-Type: application/json" url = "https://vision.g...
If you ever get this error:
can't link outside actor context
Followed by something like:
/Library/Ruby/Gems/2.0.0/gems/celluloid-0.16.0/lib/celluloid.rb:176:in `new_link' /Library/Ruby/Gems/2.0.0/gems/sidekiq-3.3.4/lib/sidekiq/launcher.rb:21:in `initialize' /Library/Ruby/Gems/2.0.0/gems/sidekiq-3.3.4/lib/sidekiq/cli.rb:81:in `new' /Library/Ruby/Gems/2.0.0/gems/sidekiq-3.3.4/lib/sidekiq/cli.rb:81:in `run' /Library/Ruby/Gems/2.0.0/gems/sidekiq-3.3.4/bin/sidekiq:8:in `