Pete

Boulder, CO

stackoverflow.com/editing-help

Age: 34

Mostly working with AWS, Docker, Python, Rails, OpenLayers-3 & Postgis these days.

Mar
18
answered Ruby stubbing with faraday, can't get it to work
Feb
29
revised What is the fastest way to create mass HABTM associations in Rails?
use ActiveRecord::Base.transaction
Feb
29
comment How to use update all, when all records are different?
Note the database adapter must implement sql_for_on_duplicate_key_update or you will get an error like NoMethodError: undefined method sql_for_on_duplicate_key_update' for #<ActiveRecord::ConnectionAdapters::PostGISAdapter:0x0055a28cec6f10>.
Feb
26
comment Batch insertion in rails 3
@Anwar: Do you have gem 'activerecord-import' in your Gemfile? This is required to use Model#import.
Feb
23
awarded Electorate
Feb
18
awarded Popular Question
Feb
18
revised Cloudformation template for creating ECS service stuck in CREATE_IN_PROGRESS
use aws cli to fetch task definition revision
Feb
18
revised Cloudformation template for creating ECS service stuck in CREATE_IN_PROGRESS
deleted 8 characters in body
Feb
18
answered Cloudformation template for creating ECS service stuck in CREATE_IN_PROGRESS
Feb
8
awarded Notable Question
Jan
29
comment What's the best way to test delayed_job chains with rSpec?
Using stub from rspec-mocks' old :should syntax without explicitly enabling the syntax is deprecated in rspec-3. This seems to work expect(CommentMailer).to receive(:delay).and_return(CommentMailer). If you dont want to explicitly test it, you could use allow instead of expect.
Jan
22
comment Proper access policy for Amazon Elastic Search Cluster
The aws:SourceIp's in my example are intended to be your personal workstation IP so you can use Kibana. The IAM-restricted access enables one or more EC2 instances to write to Elasticsearch without worrying about which IPs belong to a particular instance or CIDR block.
Dec
11
reviewed Approve suggested edit on JSON and XML comparison
Dec
11
reviewed Approve suggested edit on Erasing row in 2D Vector - segmentation error
Dec
11
reviewed Approve suggested edit on python: how do I parse a stream of json arrays
Dec
11
reviewed Approve suggested edit on How to make apython program end when the only the enter key is pressed
Dec
11
reviewed Approve suggested edit on Exponential and double scalars problems
Dec
7
comment Best Docker logging architecture using ELK stack
Here's an example which uses the GELF log driver to capture docker logs output.
Dec
3
accepted How do I mock AWS SDK (v2) with rspec?
Dec
3
revised Upgrading Docker on Amazon Linux AMI
document how to do it in a ssh terminal or cfn::init
1 2 3 4 5