Quickie: Creating a new EC2 instance with the AWS-SDK for Ruby version 2

Because the documentation for the version 2 SDK has made this incredibly unclear, here you go. ec2 = Aws::EC2::Client.new(region: ‘us-west-2′) res = Aws::EC2::Resource.new(client: ec2) #remove dry_run: true from the parameters to actually create an instance inst = res.create_instances(image_id:’ami-123456’, min_count:1, max_count:1, instance_type: ‘t1.micro’, dry_run: true) Some helpful methods on the instance returned: inst.public_ip_address inst.state inst.data To … [Read more…]

Bye Bye, Silicone Bakeware

I received the America’s Test Kitchen Family Baking Book for Christmas this year, and while leafing through it, I came across the “10 Baking Gadgets You Don’t Need.” First on the list was “silicone bakeware.” What? Are you kidding? Nothing sticks to it! And … well ok, I’ll bite. Why not? “In our testing, we found … [Read more…]

Om Nom Cornbread

I love Jiffy brand cornbread mix. I like to keep a few boxes on hand at all times. It’s great with soups, chili, stew – most hearty American meal-in-a-bowl foods can benefit from a side of cornbread. It’s probably too sweet for some tastes, but I like a sweeter cornbread. (Hey, I never said I was … [Read more…]

Copying all Devise emails to Salesforce

I’ve had the “joy” of working with Salesforce.com in the last year or so. When users receive emails from my application, the sales department wants to know about it, including anything that Devise sends (account confirmations, password resets, etc.). Setting this up is fairly simple. I’m using Devise 3.1.1 in this instance. First, create a … [Read more…]

Tech and feminism

Anyone who knows me would know that I am not particularly militant when it comes to feminism. I am not a man-hater. I like men. I have many menfriends. I married one. I think they’re neat. But crap like this happens, and I have to say something: http://stoptechfeminism.tumblr.com/ Talking about acts of sexual assault at tech … [Read more…]

Checking your SSL Certificate setup

Had a problem recently where the SSL cert expired and I didn’t add the intermediate certs when putting the new one in an EC2 instance. Made for some annoying troubleshooting. This service will check your setup and make sure everything is correct: http://www.digicert.com/help/

Ruby on Rails and FTPS

If you’re unlucky enough to have to connect to an FTPS server (SFTP ends up being much easier), the Double Bag FTPS gem makes things much easier. A few finer points to note: “verify_mode: OpenSSL::SSL::VERIFY_NONE” makes your life easier in development mode – not to mention some FTPS sites won’t even have one Most servers don’t … [Read more…]

DIY syrups!

I’ve seriously been neglecting this blog, apparently. I started a new one, which you may find amusing: http://www.mommashouldataughtyou.com/ Anyway, I made some syrups because I remembered helping my Mom making pancake syrup when I was a kid, and for the life of me I couldn’t remember why I wasn’t doing that. Sure, it’s not “real” … [Read more…]