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
| pi@raspberrypi:~/erlang/erlang-ale$ make | |
| make[1]: Entering directory `/home/pi/erlang/erlang-ale/deps/gproc' | |
| /bin/rebar get-deps | |
| ==> gproc (get-deps) | |
| /bin/rebar compile | |
| ==> gproc (compile) | |
| make[1]: Leaving directory `/home/pi/erlang/erlang-ale/deps/gproc' | |
| make[1]: Entering directory `/home/pi/erlang/erlang-ale/deps/meck' | |
| ==> meck (compile) | |
| make[1]: Leaving directory `/home/pi/erlang/erlang-ale/deps/meck' |
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
| $10 iTunes Gift Card | |
| product = Spree::Product.find 11666 | |
| variant = Spree::Variant.where(:product_id => product.id).first | |
| line_items = Spree::LineItem.where(:variant_id => 11622).map{|x| x.id} | |
| RewardDelivery.where(:reward_id => line_items) | |
| $5 Claire's Gift Card | |
| product = Spree::Product.find 11689 |
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
| Moped::Errors::OperationFailure (The operation: #<Moped::Protocol::Command | |
| @length=285 | |
| @request_id=3 | |
| @response_to=0 | |
| @op_code=2004 | |
| @flags=[] | |
| @full_collection_name="qs2_development.$cmd" | |
| @skip=0 | |
| @limit=-1 | |
| @selector={:aggregate=>"payouts", :pipeline=>[{"$match"=>{"user_id"=>"507dcb538e9c022557000003", "active"=>true, "created_at"=>{"$lte"=>2013-12-08 06:00:00 UTC}}}, {"$project"=>{"amount"=>1, "type"=>1}}, {"$group"=>{"_id"=>"$type", "total"=>{"$sum"=>"$amount"}}}]} |
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
| I am trying to save an Array of objects in a field and get an undefined method __bson_dump__ for the object type in the Object in the Array I'm trying to save. I added: | |
| def __bson_dump__(io = "", key = nil) | |
| as_document.__bson_dump__(io, key) | |
| end | |
| to my model and it worked. | |
| My problem is I have another model in a gem I wrote that is giving me that error yet the gem doesn't use mongo. How do I handle the __bson_dump__ error in that model? |
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
| def __bson_dump__(io = "", key = nil) | |
| as_document.__bson_dump__(io, key) | |
| 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
| require_relative './base_importer' | |
| module Importers | |
| class Le | |
| class StudentCheckingImporter < BaseImporter | |
| def run | |
| @credit_manager = CreditManager.new | |
| point_data.each do |datum| | |
| transfer_points(datum) | |
| 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
| require 'csv' | |
| require 'logger' | |
| require 'forwardable' | |
| module Importers | |
| class Le | |
| class BaseImporter | |
| extend Forwardable | |
| def_delegators :@logger, :warn, :info, :debug |
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
| tail_duplicate(N,Term) -> | |
| tail_duplicate(N,Term,[]). | |
| tail_duplicate(0,_,List) -> | |
| List; | |
| tail_duplicate(N,Term,List) when N > 0 -> | |
| tail_duplicate(N-1, Term, [Term|List]). |
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
| lib/location_cloner.rb:26:in `clone_page!' | |
| lib/location_cloner.rb:13:in `clone!' | |
| app/controllers/admin/locations_controller.rb:61:in `clone' | |
| lib/rack/expantion_tracker.rb:10:in `call' | |
| lib/rack/bounce_images.rb:17:in `call' | |
| lib/rack/bounce_dumb_urls.rb:11:in `call' | |
| lib/rack/document_forwarder.rb:20:in `call' | |
| lib/rack/web_forwarder.rb:9:in `call' | |
| lib/rack/ops.rb:14:in `call' |
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
| ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCifCtTI+hBW7UnqzP8wQJN+G/57q3/C8bCB9LWnT0QjYcQFcBVvCOvRM12Gz8a+a1iNU6kzmFi37x4LrCFUzRF6xuBRd0G6VTTF5cFtgJ2RJP0k92N75H4BgDCAvg+rdtItHO8xggICr7aFvSoC0ChTRw0XbP/meQGWemFym2iQhpxjCV17DJXEmOtlTxsBy46hyyaofZg6NYyFPFoI8T0LzclIRjvadTZkacdhti1reKv+/cy5FYgAp6avmc72/xQ6RbfDGdBodZCNXI/eULVNQHA2JVVyLyro9uyiDx7WeuR5ItOl0BSehN5f9R3eOZWI1Xdyqsrv/BhzYEPn/Vz [email protected] |