Showing all posts with: ruby
Original
Original

Using Storable and Faker to Create Mock Collections

By Mike Tierney on February 13, 2013

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...

Blog_thumb

Requiring directories in Ruby, Node-style

By Michael Bleigh on January 18, 2013

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.

Original

Random Hacks of Kindness

By Serign Jobe on December 5, 2012

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.

Blog_thumb

Building Modular, Scalable Web Apps? Of CORS!

By Michael Bleigh on November 12, 2012

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.

Original

Rails + Girls = A Better Rails Community

By Renae Bair on August 24, 2012

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...

Original

GreenOnion, The New UI Testing Tool

By Ted O'Meara on August 13, 2012

Don't cry. We've all been there too. Regression issues in the presentation layer make the entire team go crazy. Why can't we have a methodical way of testing the UI to ensure once designs are styled as views, they stay the way that they were created?

Blog_thumb

Vermont, Meet Ruby. Ruby, Meet Vermont.

By Pete Jackson on July 18, 2012

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...

Original

Smart Timestamps with MongoDB

By Peter Gumeson on June 12, 2012

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...

Original

Building Streaming REST APIs with Ruby

By Jerry Cheung on May 24, 2012

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...

Blog_thumb
Blog_thumb
Original

Polishing Rubies (Part 3): Tools for Testing

By Michael Bleigh on March 23, 2012

A good toolchain is important for any development project. It makes the lives of developers easier by abstracting away or automating repetitive tasks. You should always spend some time at the outset of a project making sure you're using all of the best tools available. On an open source project this is 10 times more important. Instead of...

Blog_thumb

Polishing Rubies (Part 2): Creating A Gem

By Michael Bleigh on March 15, 2012

Eureka! You've thought of a new idea for an open source library. Perhaps you already have some code tucked away in your application that you're extracting into a library, or perhaps you're starting from scratch. Either way, your next step is going to be setting up a gem folder to which you can then add code, tests, and documentation....

Blog_thumb
Blog_thumb

301 Redirect in a Rails Route

By Intridea on March 2, 2012

What do you get when you discover you setup a route incorrectly ages ago? Why, a redirect of course! And a blog post with some handy redirect code that you might find useful one day!

Blog_thumb

Pry Productivity From Your Code

By Jerry Cheung on February 29, 2012

You've heard of Pry right? It's a full-featured alternative to the classic IRB shell that we use in Ruby, and it's awesomesauce. If you've ever felt like you wanted a crowbar to pry open your code during runtime... well, Pry is your answer. Pry is essentially a REPL (read–eval–print loop) tool that you can use to examine and...

Blog_thumb

Capitalizing Apple Products in Ruby (and more)

By Intridea on February 24, 2012

I've been doing a bit more Ruby and Ruby on Rails coding lately by virtue of silently commandeering the Intridea.com codebase. shhhh, it can be our secret. Last month I upgraded the site from Rails 2.3 to Rails 3.1; getting up and running on the asset pipeline was a much larger project than I imagined, and while I had plans for a supremely...

Blog_thumb

Imbue: A Module Configuration Pattern for Ruby

By Michael Bleigh on February 21, 2012

It's a very common practice in Ruby to use Module mixins to enhance the functionality of a class. In fact, one of the most powerful and useful features of the Ruby language is that it is so easy to do so. Great stuff all around. Another common pattern, however, is to want to provide some include-time configuration when the module is mixed...

Blog_thumb

Using Anonymous Classes and Modules in Ruby

By Michael Bleigh on February 13, 2012

One of my favorite aspects of Ruby is that just about everything is an object, even Class and Module. The ability to instantiate "anonymous" classes and modules can give you a great deal of power and help you out in situations where you otherwise might not have a clean solution. What do Anonymous Things Look Like? Anonymous classes...

Blog_thumb

DynamoDB for Ruby Developers

By Michael Bleigh on January 30, 2012

I've never read Amazon's Dynamo paper. I've also never had the opportunity to work with Cassandra or SimpleDB, but when Amazon announced DynamoDB I thought it was time to take a little bit of time to learn what it was just in case it was super-useful. I thought I'd share a few of my findings. Disclaimer: I'm completely new...

Original

Hunting Down Execution Order Test Failures

By Jerry Cheung on January 11, 2012

Unit tests should pass when run in random order. But for an existing legacy project, certain tests might depend on the execution order. One test might run perfectly fine by itself, but fail miserably when run after another test. Rather than running different combinations manually, RSpec 2.8 has the option to run specs in random order with the...

Original
Original

Implementing DRY Magic Methods in Ruby

By Michael Bleigh on November 16, 2011

As a new developer to Ruby you might wonder how certain methods seem to be magically available without being strictly defined. Rails's dynamic finders (e.g. find_by_name) are one example of this kind of magic. It's very simple to implement magic such as this in Ruby, but it's also easy to implement things in a way that doesn't...

Original

Michael Bleigh on Rails 3 at Ruby Midwest

By Intridea on November 2, 2011

Intridea Partner and open source crusader, Michael Bleigh, will be back in his hometown of Kansas City this week, presenting "Rails is the new Rails" at Ruby Midwest. The sweeping changes brought on by Rails 3 and 3.1 haven’t just made our existing development patterns easier, they have opened up the ability for us to build new patterns that...

Original

One Time, At RailsCamp

By Renae Bair on September 7, 2011

Last month Intridea sponsored RailsCamp New England - a Rails retreat in the western mountains of Maine. Adam and I attended the event for the second time (this was the fourth U.S. Rails Camp, and the second one in Maine) along with 38 other Ruby and Rails developers. On a rainy Friday evening we all settled in the cozy Maine house for a long...

Original

Hire a Guard for Your Project

By Michael Bleigh on August 25, 2011

Of all of the new tools that I've picked up using for development in the past six months, there is one that has come to stand above the others for its nearly universal utility. That tool is Guard. Guard is a RubyGem but don't let that fool you into thinking it's only useful for Ruby projects. Guard is essentially an autotest...

Original

Ruby Thankful

By Michael Bleigh on August 15, 2011

A lot has been made in the talkosphere recently about the brewing "multi-Ruby version manager" war, namely RVM vs newcomer rbenv. I'm not here to discuss the relative merits of either software solution, mostly because I take things pretty simple and straightforward in command-line world and I've never run into problems with...

Original

Web Application Development and The First Mover Advantage

By Chris Selmer on August 2, 2011

In the second post in the series on “Why Your Company Needs a Rails Shop”, we’re talking about the “first-mover advantage" and how outsourcing your development to a Rails company can get your product to market quicker. What’s The Big Idea? You’ve got a great idea. You know it’s great because you’ve done objective market research, talked...

Original

Setting Up a Ruby Development Machine From Scratch With OS X Lion

By Michael Bleigh on July 26, 2011

Every so often I like to completely wipe out my computer and start it over from scratch. This isn't because I particularly enjoy the pain of setting up a system from scratch, but it does come with some advantages. I took it upon myself to perform this task when I upgraded to OS X Lion and thought it would also be a great chance to write one...

Original

GemNotifier Goes Open Source

By Roc Yu on July 8, 2011

In April, I announced GemNotifier, a new Intridea SparkTime project. GemNotifier is a web app I created to send notifications to users when the gems they subscribe to are updated. Today, I'm excited to announce that we are open sourcing GemNotifier. At Intridea, we have a long history of support for open source development, and we make every...

Blog_thumb

RailsConf To Go: OmniAuth from the Ground Up

By Michael Bleigh on May 31, 2011

I had the opportunity to speak at RailsConf 2011 about OmniAuth, outlining some of the reasoning behind it as well as some current and upcoming features of Intridea's own "authenticate with anything" middleware. While the session wasn't video recorded, a little trick I've picked up is to run a screencasting program in the...

Original
Blog_thumb

Development for Designers

By Ted O'Meara on February 4, 2011

Designers and developers have a symbiotic relationship. While they may have complementing skill-sets, there are plenty of advantages to reaching across the aisle, so to speak. This two-part series discusses how designers and developers can benefit from becoming more familiar with each others skills and I'll offer some advice on how to get...

Blog_thumb

Fun with Ruby: Get All Nancy Drew on Chrome

By Jerry Cheung on February 2, 2011

I use the Chrome history tab when I forget about something I've looked up in the past. I initially thought that the data would be stored in a CSV or XML file and thought I could do some string munging for kicks and giggles. To my delight, when I looked in the "Application Support" directory for Chrome, I found several data-rich...

Blog_thumb
Blog_thumb
Blog_thumb
Blog_thumb

The Rails Rumble: An Intridean Tradition

By Intridea on October 18, 2010

This weekend was the fourth annual Rails Rumble event; a software contest among Rails developers, in which smalls teams of coders bring an app to life in just 48 hours. In the week following the Rumble, the apps are judged by an expert panel of judges, winners are selected, and honor is won. Intridea is no stranger to the Rumble. We've...

Blog_thumb
Blog_thumb

RubyWorld Conf 2010

By Tom Zeng on September 10, 2010

RubyWorld Conf 2010 was held in Matsue, the capital city of Shimane, Japan on Sept 6th and 9th. Matsue is a beautiful, small town that is only a 1 hour flight north-west of Tokyo. This was the second RubyWorld Conf and it was held in Matz's hometown both years. The theme for this year was the Ruby Ecosystem. RubyWorld Conf is one of the two...

Blog_thumb

Fixing Common Bundler Problems

By Jerry Cheung on August 23, 2010

When bundler first came out, I really wanted to like it. It promised a clean way to declare dependencies for your application in a single and definitive place, regardless of what kind of box your app was running on. Unfortunately, bundler has not lived up to the hype, and I've had plenty of headaches from bundler problems. Read on for a list...

Blog_thumb

Intridea at Lonestar Ruby Conference

By Intridea on August 18, 2010

For the third straight year in a row, senior-level developers from the Intridea team will be at the Lonestar Ruby Conference, on Thursday, August 26th, teaching students about Ruby. Students attending the Ruby Intrigue class will work with our Director of Mobile Development, Brendan Lim, our Director of Development, Adam Bair, and our Director...

Blog_thumb
Blog_thumb

Stop The Hate: Obj-C Deserves Your Love

By Sean Soper on July 13, 2010

My first foray into Objective-C was, for lack of a better description, a sink-or-swim situation. Our lead iPhone developer had just been laid off and the boss was in my office the next day asking me how quickly I could "get up to speed". "You know Ruby", he said, "How difficult could it be?" It was time to get some books.

Blog_thumb
Blog_thumb
Blog_thumb
Blog_thumb
Blog_thumb
Blog_thumb
Blog_thumb
Blog_thumb
Blog_thumb
Blog_thumb

Simple Mustache JSON Serialization

By Michael Bleigh on January 21, 2010

If you’ve taken a look at Mustache, the “stupid in a good way” templating engine, you might know that there are also Javascript Mustache renderers such as Mustache.js. Today we’ve released a small library called mustache_json that allows you to compile your Mustache view objects into JSON, allowing them to be interpreted...

Blog_thumb
Blog_thumb
Blog_thumb
Blog_thumb
Blog_thumb
Blog_thumb
Blog_thumb
Blog_thumb
Blog_thumb
Blog_thumb
Blog_thumb
Blog_thumb
Blog_thumb
Blog_thumb
Blog_thumb

Beboist -- Updates and Attention

By Pradeep Elankumaran on April 4, 2008

Our friends at "Bebo":http://www.bebo.com have selected our "Beboist plugin":http://www.intridea.com/2008/1/11/beboist-a-rails-plugin-for-the-bebo-social-api to be one of their "featured Bebo Social API libraries":http://developer.bebo.com/blog/index.php/2008/04/03/introducing-a-ruby-api-for-bebo/. This joyous...

Blog_thumb
Blog_thumb
Blog_thumb

OpenSocial, Buzz and the Tao of Releasing an API

By Pradeep Elankumaran on November 3, 2007

Michael Arrington announced OpenSocial on TechCrunch two days before its official release. Prior to that, there were whispers everywhere about Google’s new social platform, but not many seemed to know what exactly was about to go down. Needless to say, this is good buzz. Two days before ‘launch’ the overwhelming mood among web...

Blog_thumb

Improved BetterNestedSet Plugin

By Adam Bair on October 27, 2007

On a recent project when I was using the BetterNestedSet plugin to manage a large hierarchal set of data, I encountered a problem that required me to find all of the items in a nested set that had children and those that didn't. In nested set terms I wanted: all 'parent' nodes and all 'leaf' nodes that exist within the 'tree'. If you want to...

Blog_thumb
Blog_thumb
Blog_thumb