Showing all posts with: ruby

Using Storable and Faker to Create Mock Collections

By Mike Tierney on February 13, 2013

Original

As part of my work, I often create prototypes of Rails applications. My preferred tool for doing this is Serve. But as excellent as it is, it's a very thin application with no persistence layer. To be honest, I don't really want a persistence layer at this stage. But there are times when I want to be able to iterate over collections of...

Requiring directories in Ruby, Node-style

By Michael Bleigh on January 18, 2013

Blog_thumb

Node.js has a pattern that I personally enjoy: if you require a directory, it will automatically look for a file called index.js in that directory and require it if present. This, to me, presents a simple, usable way to manage complex require schemes. On a whim, I decided to see how easy it would be to implement such a pattern in Ruby.

Random Hacks of Kindness

By Serign Jobe on December 5, 2012

Original

This past weekend I participated in Random Hacks of Kindness (RHoK) hosted by the OpenGov Hub in DC. I was extra excited this time around because RHoK was being held alongside the first ever Sanitation Hackathon, an event that tries to find technological solutions to some of the very serious sanitation problems around the world.

Building Modular, Scalable Web Apps? Of CORS!

By Michael Bleigh on November 12, 2012

Blog_thumb

Last weekend I had the opportunity to speak at RubyConf 2012 about a topic that is very exciting to me: Cross-Origin Resource Sharing (CORS). CORS allows for true cross-domain AJAX in the browser which, while simple in concept, is powerful in potential.

Rails + Girls = A Better Rails Community

By Renae Bair on August 24, 2012

Original

The Rails community has had its share of misogynistic controversy over the last several years. Dominated by male programmers (recent statistics suggest 94% of employed Rails programmers are male), the inroads to professional Rails development for females are not exactly accessible or welcoming. Of course, it's not just the Rails community...

Vermont, Meet Ruby. Ruby, Meet Vermont.

By Pete Jackson on July 18, 2012

Blog_thumb

I'll be spending the last weekend of July with passionate Ruby developers and pioneers in Burlington, Vermont - a small but charming city situated on the eastern shore of sparking Lake Champlain, and the perfect spot for Vermont's first Ruby conference. Though this is a much anticipated retreat from the commotion of New York City (which...

Smart Timestamps with MongoDB

By Peter Gumeson on June 12, 2012

Original

I really like using MongoDB and Mongoid, but a while back I ran into some shortcomings with querying timestamps. The problem was that I wanted to query only part of a timestamp, such as the day, week or year. So for example, let's say we need to find all users that signed up on a Wednesday. In SQL there are date functions that let you to...

Building Streaming REST APIs with Ruby

By Jerry Cheung on May 24, 2012

Original

Twitter popularized the term "firehose API", to mean a realtime stream of data sent through a persistent connection. But even if you're not a realtime service, streaming APIs are great for pushing data from the backend to clients. They reduce resource usage because the server can decide when it's a good time to send a...