All posts tagged Ruby

  • Helpful Tools for Web Developers: TryRuby.org

    If you’re looking for an interactive way to mess around with Ruby without installing anything, I’d checkout TryRuby.org. It’s a really cool interactive terminal that let’s you execute ruby commands from the comfort of your browser. You can even step through a quick 15 minute tutorial inspired by Why’s Guide to Ruby.

  • Helpful Tools for Web Developers: Ruby Fiddle

    Recently, I talked about my desire to learn more Ruby to help round out my skill set. Well, if you’ve ever taken up the task of learning a new language, you know that the most difficult part can be getting the proper development environment up and running, especially if you’re trying to run an open source language on a Windows platform. If you’re looking to start messing around with Ruby with out having to install anything, I recommend you check out Ruby Fiddle. It’s basically JsFiddle for Ruby developers and it’s a great way to both tinker with Ruby code and execute some of the examples in the Ruby Koans project I mentioned in an earlier post.

    As I’ve messed around with it, I have found a couple of weird issues. First, it appears that the “gistify” button doesn’t work as expected. Second, there’s no way for me to login and save the “fiddles” I make (JsFiddle allows you to do this). Hopefully these issues get fixed soon.

  • Learning Ruby Through Ruby Koans Online

    As you’ve probably noticed, I talk a lot about front-end development on here. Recently, I’ve come to the conclusion that it’s about time I round out my skill set with a robust back-end language to balance things out. Originally, I thought about going back to PHP since I’ve already spent 4+ years developing in it. But PHP jobs are getting harder to find around here and I figured that I could challenge myself by attempting to master a new language that I don’t have much experience in: Ruby.

    To help my along my journey, I’ll be walking through Ruby Koans Online. Ruby Koans is a series of TDD-driven code katas designed to help you learn Ruby. Each week, I hope to go through a new koan and t hen write about it here. I highly encourage you to check out the Ruby Koans Online site and follow along with me.

  • TorrentFiend: A Lesson in File Manipulation Using RSS, SQLite3 and Ruby

    Back when I was in college, I didn’t have cable or even a TV. In order to stay entertained, I relied heavily on bittorrent to keep up with my favorite free and totally legal to download shows like, *ahem* Found and How I Lost Your Father. Unfortunately, with my busy work/class schedule I didn’t have time to surf my favorite torrent site and download the latest episodes of all the shows I watched each week. To combat this problem, I wrote a small perl script that ran during the week, checking an RSS feed for new episodes of each show. Now, as part of my goal to learn Ruby, I’v converted the script into Ruby and have decided to release the code publicly for those who would like a better understanding of how Ruby reads and manipulates RSS data.

    Read more

  • Using RMagick and The Envato API to Make Dynamic Images

    Image made up of tiny thumbnails from the popular items on GraphicRiver

    Not too long ago, I began my first solid attempt at learning Ruby and decided that my first project would be to combine data from the Envato API with RMagick to create a collage of thumbnails from some of the more popular images on GraphicRiver*. I figured it would be fun to take the time to walk you through some of the code I used as well as share my thoughts on my first major Ruby experience.

    Assumptions

    I’m going to assume that you already have a development environment set up that allows you to run Ruby from the command-line and have successfully installed RMagick. If you need instructions on how to do this, you can visit the Downloads page of the Ruby website and the RMagick website. I’m also going to assume that you have a firm grasp of the Ruby-language syntax. Don’t worry, I’ll offer clarification on any parts of the code I considered to be¬†unorthodox. At the end of the blog post, I’ll be posting links to the complete code including the API wrapper I wrote, documentation, unit tests, and the code samples written directly in this blog post.

    Read more