emptyingtheteacup.blogspot.com
September 2013 ~ Emptying the Tea Cup
http://emptyingtheteacup.blogspot.com/2013_09_01_archive.html
Emptying the Tea Cup. Monday, September 30, 2013. Girl Develop It: Code and Coffee. Posted on Monday, September 30, 2013 10:04 AM by Nhu. Girl Develop It (GDI) must be really popular, because when I signed up there were at least 10 people on the wait list. I'm still not sure how I managed to pass those and snatched a spot to go to the meetup. Jen was nice enough to be extra prepare and things people could work on. If this then that. For newbie (it's so cool). Pair up to code. Or your own project. Which h...
arches.io
Understand Memory Usage on Heroku Rails App using Oink : arches.io
http://arches.io/2013/07/understand-memory-usage-on-heroku-rails-app-using-oink
Understand Memory Usage on Heroku Rails App using Oink. This is a step-by-step overview of how to get Oink installed in your Rails app on Heroku, and use it to analyze your memory usage. Starts with a brief description of the problem space, skip down if you just want to get on with your Oink integration. My stack includes these technologies: Rails 3, Unicorn, NewRelic, Heroku, Hodel3000CompliantLogger, and now Oink. Why is understanding memory usage important? Oink is inserted as middleware into your Rai...
konarunsfree.net
October | 2013 | Kona runs free
http://konarunsfree.net/2013/10
Just another WordPress site. Monthly Archives: October 2013. Quick table dump from Rails 3. October 13, 2013. Table from Rails 3. Method 1, csv output from the index as explained here. To the controller, add format.csv. Respond to do format format.html # index.html.erb format.json { render json: @people } format.csv end. And create a view, people.csv.erb. With something like this:. People.each do p = raw #{p.first name} #{p.last name} end %. When you want a quick table, add extension “ .csv.
arches.io
This Is Professionalism : arches.io
http://arches.io/2014/03/this-is-professionalism
Very early in my career, I was setting up some pressure sensors. The sensors had tiny wires coming off them, which someone had soldered to shielded co-axial cable running back to the data acquisition board/laptop. My task was to fasten the sensors to a frame, which I completed quickly and thoroughly. My boss checked in, complimented my framed sensors, and mentioned that the way the tiny wires connected to the co-ax was too flimsy for our application. He worried they would break. The correction stung a li...
arches.io
Heroku CLI error : arches.io
http://arches.io/2015/11/heroku-cli-error
I randomly started getting this heroku error today:. Heroku - version ERROR: runtime error: invalid memory address or nil pointer dereference! Error getting commands pid 1923 exit 1. It was happening for every heroku command; heroku login, heroku releases, heroku run console, heroku logs. Doing a full uninstall. And reinstall of the heroku toolbelt. Fixed the problem for me. Table print ruby gem. Marco polo ruby gem.
arches.io
Environment Name in Console Prompt : arches.io
http://arches.io/2013/01/environment-name-in-console-prompt
Environment Name in Console Prompt. UPDATE: I made a gem. To your gemfile to see your app name and environment in your console prompt. I hate when I have a bunch of consoles open and I dont know which one is local, which is staging, and which is production. I could potentially do a lot of damage by using the wrong one. I find myself typing Rails.env over and over, to figure out which environment Im in. Super annoying! I want to have the app environment right there in my prompt so I always know for sure.
arches.io
Bold move, Stripe : arches.io
http://arches.io/2013/02/bold-move-stripe
Bold move, Stripe. From https:/ stripe.com/blog/stripe-checkout. It’s unfortunate that everyone has to reinvent the wheel when the time comes to implement a payments UI. We decided to build something that you can just drop in as a single tag. The script tag creates a buy button on your page. Clicking the button pops a modal payment form where the customer submits their info directly to stripe. Its a literally a 30 second integration. But heres the kicker:. Table print ruby gem. Marco polo ruby gem.
arches.io
table_print : arches.io
http://arches.io/2013/02/table_print
Imagine: you open a rails console and type. The output shows your database call, then. ACTIVE RECORD GUT PUNCH! Your screen is overrun with an inscrutable wall of text. I hated it. I had some coping mechanisms, but they were cumbersome. For example, the map-and-print:. Puts User.all.map { u #{u.id}, #{u.email}, #{u.bio} }.join( n); 0. I cried. When I use the SQL command line everything lines up! The lightbulb flashed and table print was born:. But wait. there’s more. Get table print at rubygems.org.
arches.io
How to Practice HTML : arches.io
http://arches.io/2013/03/how-to-practice-html
How to Practice HTML. So youve learned a few HTML tags and the basic structure of an HTML document. Now what? Since HTML adds meaning to content, the basis for all these suggestions is find some interesting content and add meaning. Really, anything that gets you in your editor or browser playing around with this stuff is going to be useful. Pretend youve been hired to make a web page for a company or nonprofit. Designers will often do this to build their portfolio. Maybe even some image links. Hopefully ...
arches.io
Restart Heroku Dynos Instead of Letting Them Swap to Disk : arches.io
http://arches.io/2013/08/restart-heroku-dynos-instead-of-letting-them-swap-to-disk
Restart Heroku Dynos Instead of Letting Them Swap to Disk. Heres what Heroku says about dyno memory usage:. Dynos are available in 1X or 2X sizes and are allocated 512MB or 1024MB respectively. Dynos whose processes exceed their memory quota are identified by an R14 error in the logs. This doesn’t terminate the process, but it does warn of deteriorating application conditions: memory used above quota will swap out to disk, which substantially degrades dyno performance. That is not good. Web1}match(/val=(...
SOCIAL ENGAGEMENT