This file contains 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
[Web Dev]: /vagrant/src/nomster $ heroku logs | |
2018-09-24T23:10:38.543681+00:00 app[web.1]: [ce288261-5d40-4519-b1b6-a2f4e5276dc6] vendor/bundle/ruby/2.4.0/gems/railties-5.0.7/lib/rails/engine.rb:522:in `call' | |
2018-09-24T23:10:38.543683+00:00 app[web.1]: [ce288261-5d40-4519-b1b6-a2f4e5276dc6] vendor/bundle/ruby/2.4.0/gems/puma-3.12.0/lib/puma/configuration.rb:225:in `call' | |
2018-09-24T23:10:38.543685+00:00 app[web.1]: [ce288261-5d40-4519-b1b6-a2f4e5276dc6] vendor/bundle/ruby/2.4.0/gems/puma-3.12.0/lib/puma/server.rb:658:in `handle_request' | |
2018-09-24T23:10:38.543687+00:00 app[web.1]: [ce288261-5d40-4519-b1b6-a2f4e5276dc6] vendor/bundle/ruby/2.4.0/gems/puma-3.12.0/lib/puma/server.rb:472:in `process_client' | |
2018-09-24T23:10:38.543688+00:00 app[web.1]: [ce288261-5d40-4519-b1b6-a2f4e5276dc6] vendor/bundle/ruby/2.4.0/gems/puma-3.12.0/lib/puma/server.rb:332:in `block in run' | |
2018-09-24T23:10:38.543690+00:00 app[web.1]: [ce288261-5d40-4519-b1b6-a2f4e5276dc6] vendor/bundle/ruby/2.4.0/gems/puma-3.12.0/lib/puma/thread_po |
This file contains 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
/home/vagrant/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/fog-core-2.1.2/lib/fog/core/service.rb:244:in `validate_options': Missing required arguments: aws_access_key_id, aws_secret_access_key (ArgumentError) | |
from /home/vagrant/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/fog-core-2.1.2/lib/fog/core/service.rb:268:in `handle_settings' | |
from /home/vagrant/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/fog-core-2.1.2/lib/fog/core/service.rb:98:in `new' | |
from /home/vagrant/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/fog-core-2.1.2/lib/fog/core/services_mixin.rb:16:in `new' | |
from /home/vagrant/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/carrierwave-1.2.3/lib/carrierwave/uploader/configuration.rb:126:in `eager_load_fog' | |
from /home/vagrant/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/carrierwave-1.2.3/lib/carrierwave/uploader/configuration.rb:139:in `fog_credentials=' | |
from /vagrant/src/some-repo-nomster/nomster/config/initializers/carrierwave.rb:5:in `block in <top (required)>' | |
from /home/vagrant/. |
This file contains 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
Started GET "/places/1" for 10.0.2.2 at 2018-09-24 23:56:23 +0000 | |
Cannot render console from 10.0.2.2! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 | |
ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" | |
Processing by PlacesController#show as HTML | |
Parameters: {"id"=>"1"} | |
Place Load (0.4ms) SELECT "places".* FROM "places" WHERE "places"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] | |
Rendering places/show.html.erb within layouts/application | |
User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2 [["id", 1], ["LIMIT", 1]] | |
User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] | |
Comment Load (0.3ms) SELECT "comments".* FROM "comments" WHERE "comments"."place_id" = $1 [["place_id", 1]] |
This file contains 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
<h1>Clark</h1> | |
<h2>EDUCATION</h2> | |
Master of Science in Computer Science | |
Software Engineer |
This file contains 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
[Web Dev]: /vagrant/src/nomster $ heroku logs | |
2018-09-25T03:32:03.142040+00:00 app[web.1]: [5e938907-02a8-44ec-b6b6-6f375afe7648] vendor/bundle/ruby/2.4.0/gems/railties-5.0.7/lib/rails/engine.rb:522:in `call' | |
2018-09-25T03:32:03.142041+00:00 app[web.1]: [5e938907-02a8-44ec-b6b6-6f375afe7648] vendor/bundle/ruby/2.4.0/gems/puma-3.12.0/lib/puma/configuration.rb:225:in `call' | |
2018-09-25T03:32:03.142043+00:00 app[web.1]: [5e938907-02a8-44ec-b6b6-6f375afe7648] vendor/bundle/ruby/2.4.0/gems/puma-3.12.0/lib/puma/server.rb:658:in `handle_request' | |
2018-09-25T03:32:03.142044+00:00 app[web.1]: [5e938907-02a8-44ec-b6b6-6f375afe7648] vendor/bundle/ruby/2.4.0/gems/puma-3.12.0/lib/puma/server.rb:472:in `process_client' | |
2018-09-25T03:32:03.142046+00:00 app[web.1]: [5e938907-02a8-44ec-b6b6-6f375afe7648] vendor/bundle/ruby/2.4.0/gems/puma-3.12.0/lib/puma/server.rb:332:in `block in run' | |
2018-09-25T03:32:03.142047+00:00 app[web.1]: [5e938907-02a8-44ec-b6b6-6f375afe7648] vendor/bundle/ruby/2.4.0/gems/puma-3.12.0/lib/puma/thread_po |
This file contains 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
Expected(200) <=> Actual(403 Forbidden) excon.error.response :body => "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Error><Code>SignatureDoesNotMatch</Code><Message>The request signature we calculated does not match the signature you provided. Check your key and signing method.</Message><AWSAccessKeyId>AKIAJ2RQOQBOJMYPONAA</AWSAccessKeyId><StringToSign>AWS4-HMAC-SHA256\n20180925T040826Z\n20180925/us-east-1/s3/aws4_request\n51084e7bdac32193855a6a5ef553b0430bf5e6b9dd01a6861b48c2a7000b1392</StringToSign><SignatureProvided>b0f1fcc8bf6bcd1d035cb2b3e1cbb97dc3653c94181af0c1ffc9a17fa7cd6771</SignatureProvided><StringToSignBytes>41 57 53 34 2d 48 4d 41 43 2d 53 48 41 32 35 36 0a 32 30 31 38 30 39 32 35 54 30 34 30 38 32 36 5a 0a 32 30 31 38 30 39 32 35 2f 75 73 2d 65 61 73 74 2d 31 2f 73 33 2f 61 77 73 34 5f 72 65 71 75 65 73 74 0a 35 31 30 38 34 65 37 62 64 61 63 33 32 31 39 33 38 35 35 61 36 61 35 65 66 35 35 33 62 30 34 33 30 62 66 35 65 36 62 39 64 64 30 31 61 36 38 36 31 62 34 38 63 32 61 37 30 30 30 62 31 33 39 |
This file contains 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
-----> Ruby app detected | |
-----> Compiling Ruby/Rails | |
-----> Using Ruby version: ruby-2.4.4 | |
-----> Installing dependencies using bundler 1.15.2 | |
Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment | |
Fetching gem metadata from https://rails-assets.org/... | |
Fetching gem metadata from https://rubygems.org/......... | |
Fetching version metadata from https://rails-assets.org/.. | |
Fetching version metadata from https://rubygems.org/.. | |
Fetching dependency metadata from https://rails-assets.org/.. |
This file contains 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
[Web Dev]: /vagrant/src/nomster $ heroku logs | |
2018-09-26T02:15:21.091076+00:00 app[web.1]: I, [2018-09-26T02:15:21.091005 #4] INFO -- : [113d43a7-38cb-4a4d-8644-06141c1f6567] Rendered devise/passwords/new.html.erb within layouts/application (5.6ms) | |
2018-09-26T02:15:21.090957+00:00 app[web.1]: I, [2018-09-26T02:15:21.090838 #4] INFO -- : [113d43a7-38cb-4a4d-8644-06141c1f6567] Rendered devise/shared/_links.html.erb (0.6ms) | |
2018-09-26T02:15:21.105047+00:00 app[web.1]: I, [2018-09-26T02:15:21.104917 #4] INFO -- : [113d43a7-38cb-4a4d-8644-06141c1f6567] Completed 200 OK in 30ms (Views: 28.3ms | ActiveRecord: 0.0ms) | |
2018-09-26T02:15:21.107176+00:00 heroku[router]: at=info method=GET path="/users/password/new" host=nomster-clark-ngo.herokuapp.com request_id=113d43a7-38cb-4a4d-8644-06141c1f6567 fwd="24.22.246.12" dyno=web.1 connect=1ms service=38ms status=200 bytes=3519 protocol=https | |
2018-09-26T02:15:24.160728+00:00 heroku[router]: at=info method=GET path="/users/sign_in" host=nomster-clark-ngo.herokuapp.com r |
This file contains 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
# other solution | |
=begin | |
def find_missing_number(sequence) | |
number_sequence = sequence.split.map(&:to_i).sort | |
number_sequence.each.with_index(1) do |actual, expected| | |
return expected unless actual == expected | |
end | |
0 |
This file contains 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 Book < ApplicationRecord | |
validates :title, presence: true | |
validates :author, presence: true | |
validates :genre, presence: true | |
validates :classification, presence: true, :inclusion { :in => @allowed_classifications } | |
@allowed_classifications = [ | |
'General Works - encyclopedias', | |
'Philosophy, Psychology, Religion', |
OlderNewer