This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2013-06-19T12:32:08.442569+00:00 app[web.2]: E, [2013-06-19T12:32:08.441564 #15] ERROR -- : app error: closed stream (IOError) | |
2013-06-19T12:32:08.442569+00:00 app[web.2]: E, [2013-06-19T12:32:08.441635 #15] ERROR -- : /app/vendor/bundle/ruby/1.9.1/gems/unicorn-4.6.2/lib/unicorn/http_response.rb:53:in `write' | |
2013-06-19T12:32:08.442569+00:00 app[web.2]: E, [2013-06-19T12:32:08.441675 #15] ERROR -- : /app/vendor/bundle/ruby/1.9.1/gems/unicorn-4.6.2/lib/unicorn/http_response.rb:53:in `http_response_write' | |
2013-06-19T12:32:08.442569+00:00 app[web.2]: E, [2013-06-19T12:32:08.441706 #15] ERROR -- : /app/vendor/bundle/ruby/1.9.1/gems/unicorn-4.6.2/lib/unicorn/http_server.rb:562:in `process_client' | |
2013-06-19T12:32:08.442569+00:00 app[web.2]: E, [2013-06-19T12:32:08.441732 #15] ERROR -- : /app/vendor/bundle/ruby/1.9.1/gems/unicorn-4.6.2/lib/unicorn/http_server.rb:632:in `worker_loop' | |
2013-06-19T12:32:08.442569+00:00 app[web.2]: E, [2013-06-19T12:32:08.441771 #15] ERROR -- : /app/vendor/bundle/ruby/1.9.1/gems/unicorn |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2013-07-05T11:16:09.177945+00:00 app[web.2]: Started PUT "/problems/51d6882c78c3f738fc000046" for 203.123.164.34 at 2013-07-05 11:16:09 +0000 | |
2013-07-05T11:16:10.446408+00:00 app[web.2]: | |
2013-07-05T11:16:10.446408+00:00 app[web.2]: Mongoid::Errors::InvalidFind ( | |
2013-07-05T11:16:10.446408+00:00 app[web.2]: Problem: | |
2013-07-05T11:16:10.446408+00:00 app[web.2]: Calling Document.find with nil is invalid. | |
2013-07-05T11:16:10.446408+00:00 app[web.2]: Summary: | |
2013-07-05T11:16:10.446408+00:00 app[web.2]: Document.find expects the parameters to be 1 or more ids, and will return a single document if 1 id is provided, otherwise an array of documents if multiple ids are provided. | |
2013-07-05T11:16:10.446408+00:00 app[web.2]: Resolution: | |
2013-07-05T11:16:10.446408+00:00 app[web.2]: Most likely this is caused by passing parameters directly through to the find, and the parameter either is not present or the key from which it is accessed is incorrect.): | |
2013-07-05T11:16:10.446408+00:00 app[web.2]: app/controllers/p |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# sinatra_street_view.rb | |
require 'sinatra' | |
require 'sinatra/reloader' if development? | |
def formatted_url(address) | |
base_url = 'http://maps.googleapis.com/maps/api/geocode/xml?sensor=false&' | |
encoded_address = URI.encode address | |
"#{base_url}#{encoded_address}" | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{"name"=>"animal", "spec"=>{"generator"=>["In List", ["dog", "horse", "cow", "goat", "ox"]], "transformers"=>{}}}, {"name"=>"time", "spec"=>{"generator"=>["Normal Distribution", "6", "2"], "transformers"=>{"In Between"=>["1", "4"]}}}, {"name"=>"velocity", "spec"=>{"generator"=>["Normal Distribution", "6", "5"], "transformers"=>{"Greater Than"=>["1"]}}}, {"name"=>"name", "spec"=>{"generator"=>["In List", ["aa", "bb", "cc", "dd", "ee", "ff", "gg"]], "transformers"=>{}}}] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ClassMethodDemo | |
def self.greet | |
puts "Hello, Ruby" | |
end | |
end | |
ClassMethodDemo.greet |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ClassMethodDemo | |
def self.greet | |
puts "Hello, Ruby" | |
end | |
ClassMethodDemo.greet | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ClassMethodDemo | |
def self.greet | |
puts "Hello, Ruby" | |
end | |
greet | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ClassMethodDemo | |
def self.greet | |
puts "Hello, Ruby" | |
end | |
end | |
class UseDemo < ClassMethodDemo | |
greet | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Aa | |
def a_foo | |
puts "A's foo" | |
end | |
end | |
module Bb | |
def b_foo | |
puts "B's foo" | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Mammal | |
def breathe | |
puts "inhale and exhale" | |
end | |
end | |
class Cat < Mammal | |
def speak | |
puts "Meow" | |
end |
OlderNewer