WhatCodeCraves

Rails Flash with Ajax

One small annoyance about working with the flash in Rails is that it only works well if you render separate pages per action. The flash falls apart if you do an Ajax call and render an RJS template or some inline javascript. The flash won't show up when it should, and it'll show up on some other page when you don't want it to. I made 2 small changes to my app to make flash behave better when an Ajax call is made.

Read more

OS X GUI Tool 'HTTP Client'

Kyle sent out this amazing tool for testing and debugging at the HTTP level. This would've been a lifesaver a few weeks ago when I was working on RESTful API stuff for work, but better late than never.

Read more

How to Make an API for a Rails App

I've come across the same problem in my personal projects and also at work. You have an existing Rails app that has some authentication and authorization scheme to protect who has access to your controllers, but now you need to write an API that can access those controllers. How do you keep the same authentication routine for your API users?

Read more

Deploying into the Night

Yesterday was an emotional roller coaster of brutality and awesomeness, mixed with a good share of productivity. The day started off innoculously enough. I checked my incoming tickets, went through my email for tasks to do on my projects, scrummed with the team, and enjoyed a delicious steak lunch on the house...

Read more

Subversion for the Lazy

I've been asked about subversion enough times to justify writing this quick and dirty article to save me future time. Read this guide if you absolutely need to get subversion working ASAP. Otherwise I highly recommend going through the svn book for more background information and advanced usage.

Read more

About

I'm an optimistic programmer living and working in the Bay Area. I help write the best hosted purchasing software for small and medium businesses at Coupa.

I enjoy geeking out and programming in my free time. Someday, I'd like to lead my own successful software startup(s), be surrounded by both crappy cars and exotic cars, and run my own cafe. In the meantime, I'll keep this tech diary to remind myself of my goals. -Jerry