Try using Mongo

November 14, 2012 Rajan Agaskar

Helps

AR/PG silently not saving commits under heavy load

  • People wondered if the transaction was getting rolled back, etc, everything seemed normal, but about 1 in 5 times the record wouldn’t write after an update_attributes.

Slanger for Pusher testing?

  • Nobody has used Slanger.

Interestings

Rspec and_call_original

New with Rspec 2.12, rspec mocks now have the ability to call through to the original implementation.

example:
banana.should_receive(:split).and_call_original

asserts that banana.split was called, and also executes banana.split

Don’t commit Gemfile.lock in your gems

See http://yehudakatz.com/2010/12/16/clarifying-the-roles-of-the-gemspec-and-gemfile/

tl;dr

ACCORDING TO YEHUDA … if you are maintaining a GEM

git rm –cached Gemfile.lock
echo “Gemfile.lock” >> .gitignore
git add .gitignore
git ci -m “Remove Gemfile.lock — cf. http://yehudakatz.com/2010/12/16/clarifying-the-roles-of-the-gemspec-and-gem”

(this advice may be controversial)

AWS ELB overwrites X-Forwarded-Proto and X-Forwarded-Port

http://aws.typepad.com/aws/2010/10/keeping-customers-happy-another-new-elastic-load-balancer-feature.html

About the Author

Biography

More Content by Rajan Agaskar
Previous
Tips for Employers On the Hunt for the Rare and Elusive Data Scientist
Tips for Employers On the Hunt for the Rare and Elusive Data Scientist

We’ve previously talked about the high demand for data scientists, and the eclectic backgrounds of practiti...

Next
Preserving Cloud Application Portability – Introducing Cloud Foundry Core
Preserving Cloud Application Portability – Introducing Cloud Foundry Core

The Cloud Foundry team is happy to announce Cloud Foundry Core – a program designed to preserve cloud app...

Enter curious. Exit smarter.

Learn More