1. Computing
Send to a Friend via Email
Michael Morin

New Articles and Resources

By Michael Morin

    New Articles and Resources
    • Cloning 2048 in Ruby Created: Monday, March 31, 2014 Updated: Monday, March 31, 2014
      In this series of articles, a complete clone of the game 2048 is written from scratch.
    • The Final Few Methods Created: Monday, March 31, 2014 Updated: Monday, March 31, 2014
      Now that the core of the game is done, we take a few minutes and look at a few odds and ends. Among those, the code that spawns new tiles and the code that looks for the game over state.
    • The Core Algorithm Created: Monday, March 31, 2014 Updated: Monday, March 31, 2014
      Finally, onto the meat of 2048. We take a look at how the board is rotated and slid to implement the game of 2048.
    • The Board Class Created: Monday, March 31, 2014 Updated: Monday, March 31, 2014
      Before we dive into the heavy stuff, we'll look at the array we use to store the board, as well as how to print the board to the console and a few other things.
    • Rotating a Two Dimensional Array in Ruby Created: Monday, March 31, 2014 Updated: Monday, March 31, 2014
      In order to implement the 2048 algorithm cleanly, we'll need to know how to rotate a 2D array by 90 degrees in Ruby.
    • Two Dimensional Arrays in Ruby Created: Monday, March 31, 2014 Updated: Monday, March 31, 2014
      We'll use a two dimensional array to represent the 2048 game board, but how do we create a 2D array in Ruby?
    • The Algorithm Created: Monday, March 31, 2014 Updated: Monday, March 31, 2014
      Before we start coding, we take some time to look at the game of 2048.
    • Finishing the Project Created: Friday, February 28, 2014 Updated: Friday, February 28, 2014
      This last article just staples the previous articles together. Once you know how to do Win32 API calls and AJAX-powered web applications in Sinatra, it all just falls into place.
    • AJAX With Sinatra Created: Friday, February 28, 2014 Updated: Friday, February 28, 2014
      In this article we take a look at how to use jQuery and Sinatra to implement an AJAX interface.
    • Sinatra Web Applications in JRuby Created: Friday, February 28, 2014 Updated: Friday, February 28, 2014
      Now that we have a solid foundation in dealing with the Win32 API, we can start building the frontend using Sinatra and Haml.
    • Simulating Keystrokes with JRuby Created: Friday, January 31, 2014 Updated: Friday, February 28, 2014
      While Ruby and Windows don't always mix that well, we're going to apply just a bit of force and get them to mix. In this series of articles we'll look at automating Windows applications from JRuby.
    • Sending Win32 Keyboard Messages with via FFI Created: Friday, January 31, 2014 Updated: Friday, January 31, 2014
      Now that we have a cursory understanding of FFI, let's use it to find a specific window and send some keyboard events to it.
    • Using FFI to Access Win32 Created: Friday, January 31, 2014 Updated: Friday, January 31, 2014
      Breaking out of Ruby's jail is not so hard once you get the hang of FFI (the Foreign Function Interface). We'll use FFI to start automating some Win32 tasks.
    • Automating with Robot Created: Friday, January 31, 2014 Updated: Friday, January 31, 2014
      Automating doesn't have to be hard, some automation tasks can be done with the very simple Robot class.
    • What's new in Ruby 2.1.0: Strings Created: Tuesday, December 31, 2013 Updated: Tuesday, December 31, 2013
      Among Ruby 2.1.0's changes are a few additions to Ruby's String capabilities.
    • What's new in Ruby 2.1.0: Numerics Created: Tuesday, December 31, 2013 Updated: Tuesday, December 31, 2013
      Ruby 2.1.0 includes a new small changes to numeric literals if you're working with rational or imaginary numbers, as well as a few changes to how Bignum works under the hood.
    • What's new in Ruby 2.1.0: Under the Hood Created: Tuesday, December 31, 2013 Updated: Tuesday, December 31, 2013
      What's new in Ruby 2.1.0? There are two new features under the hood that you may not know about: Method caching and an enhanced garbage colllector.
    • An ROT13 Encoder Created: Saturday, November 30, 2013 Updated: Saturday, November 30, 2013
      Building a simple ROT13 encoder with JRuby.
    • Installing and Using JRuby Created: Saturday, November 30, 2013 Updated: Saturday, November 30, 2013
      How to install and use JRuby.
    • Generating QRCodes with Ruby Created: Thursday, October 31, 2013 Updated: Thursday, October 31, 2013
      Generating QRCodes in Ruby is easier than you think.
    • Ruby Tip Smorgasbord Created: Thursday, October 31, 2013 Updated: Thursday, October 31, 2013
      The following are a few tips that aren't long enough to warrant their own articles.
    • Ruby Tricks: Expressive Case Statements Created: Thursday, October 31, 2013 Updated: Thursday, October 31, 2013
      Ruby Trick: Abusing the Ruby case equality operator for Proc objects to make more expressive case statements.
    • Exploiting the Garbage Collector Created: Monday, September 30, 2013 Updated: Monday, September 30, 2013
      The ObjectSpace module gives you access to every single object in memory, and low level access to the garbage collector.
    • Predefined by Ruby Created: Monday, September 30, 2013 Updated: Monday, September 30, 2013
      Ruby defines a number of built in global variables you may find you need at one point.
    • More That Static Regular Expressions Created: Monday, September 30, 2013 Updated: Friday, February 28, 2014
      Regular expressions can do more than you think, and I was able to solve a problem in a very novel way.
    • Parsing using Named Capture Groups Created: Saturday, August 31, 2013 Updated: Saturday, August 31, 2013
      Now that we know how to use named capture groups as well as know a thing or two about the IRC protocol, let's put the two together.
    • Parsing IRC Messages using Regular Expressions Created: Saturday, August 31, 2013 Updated: Saturday, August 31, 2013
      Parising IRC messages using named capture groups.
    • A Look at the IRC Protocol Created: Saturday, August 31, 2013 Updated: Saturday, August 31, 2013
      A look at the IRC protocol, as well as how to interact with IRC using telnet and capture a log.
    • Parsing with Regular Expressions Created: Saturday, August 31, 2013 Updated: Saturday, August 31, 2013
      A novel feature of the Ruby regular expression engine can be used to parse structured text in an almost parser-like manner.
    • Parsing with Regular Expressions Created: Saturday, August 31, 2013 Updated: Saturday, August 31, 2013
      A novel feature of the Ruby regular expression engine can be used to easily parse text.
    • Exploring EventMachine the Fun Way Created: Saturday, August 31, 2013 Updated: Saturday, August 31, 2013
      The following is a number of articles written exploring EventMachine by creating an IRC bot with distributed plugins. The topics cover a wide range of topics.
    • Miscellaneous Tips and Tricks Created: Friday, August 30, 2013 Updated: Friday, August 30, 2013
      A few tips and tricks that were too small for their own articles.

    ©2014 About.com. All rights reserved.