The Ruby and Rails community linklog
Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!
Submit a post
Post Preview
Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.
Amazing Graph Visualization with Sinatra and little JavaScript
We use Ruby to get the data we need from Neo4j and let Processing.js make it look amazing.
m: a test/unit test runner that can run tests by line number.
Read about how to use it here! It’s metal.
037 Ruby Rogues Versioning and Releases
This week the Rogues talk about different methods of versioning projects, the advantages and disadvantages of several different schools of thought on the subject and they share a few words on release processes as well.
The Sprockets::BlackCoffee Gem
Yes, sometimes it may be OK to render your CoffeeScript files using the –bare option. Most notably, in test spec helper files under Jasmine. I give to you the sprockets-blackcoffee gem.
Command Line Reporter 2.0 Released
The latest version of Command Line Reporter now supports table formatting of your data. The DSL is very similar to writing HTML tables making it easy to build sophisticated reports. The gem is available on rubygems.org with source on github
Getting started with Ruby and the Neo4j Graph Database
Don’t let the “4j” fool you, I show you how to use Ruby with Neo4j in this blog series.
Backbone.js vs Ember.js
My thoughts on Backbone.js vs Ember.js. I have been using Backbone.js for a while and recently dived into Ember.js!
An Exhaustive Explanation of Minimax, a Staple Game AI Algorithm - Ruby tic-tac-toe included
I put together a description of minimax and used a Ruby tic-tac-toe game as an example implementation.
Ruby Object Model - example in a 3D perspective
The document at http://www.atalon.cz/rb-om/ruby-object-model/ now contains an elaborated example using SVG.
Blog Post: Improve Your Work Environment
As a programmer, you should have the best work environment possible. Go read my thoughts on the topic if you’re interested.
braumeister.org – An online listing of Homebrew packages
braumeister.org is an open-source Rails application that lists all MacOS X packages available via Homebrew. Why may this be interesting for the average Rubyist? First, braumeister.org is a Rails application and it’s open-source, so everyone is free to contribute. Second, Homebrew itself is driven by Git and Ruby, and lots of Rubyist are running Macs, so there’s a good chance that you’re interested in both, Ruby and Homebrew.
[video] A Brief Intro To EmberJS
We spend a few minutes learning about Ember.js.
Up and running with RefineryCMS edge, Rails 3.1, and Zurb Foundation framework
I’ve posted a couple of articles on how to get the master branch of RefineryCMS working with Rails 3.1.3, including what to expect and how to get around a couple of gotcha’s along the way: Basic Refinery and Rails setup and Adding the Refinery Blog engine and Zurb Foundation framework
A Primer on Ruby C Extensions
A simple introduction to building C extensions in Ruby: A Primer on Ruby C Extensions
Gon-sinatra - your Sinatra variables in your JS
I just created gon-sinatra. The same idea as gon, but for Sinatra
Ruby Float quirks
Working with Float values sometimes really leads to unexpected behavior. In this article I cover how to cope with weird Float problems. Read more
Ruby DataMapper Status
Learn (more) about the development of DataMapper 2.0: solnic.eu/2012/01/10/ruby-datamapper-status.html
Another rubygem to summarize text
I just spent a few days cleaning up a ruby interface to Open Text Summarizer that I had written a year or so back. https://github.com/deepfryed/ots Read more
How to create local copy of Rails API doc and Guides
There are many occasions, when you’ve wished to have an offline version of the API document. For instance when you face connectivity problems or network issues and you just can’t get online, or even while traveling in airplanes, as we know, internet accessibility is not always possible. In this post I’m showing you how to generate your own copy of Rails API doc and Guides.
Ruby On REST 3: One Model, Multiple Representations!
In the 3rd post of the Ruby on REST series we learn a bit more about resources and why and how one particular model can be represented in multiple contexts.
New release of rglpk - the ruby linear programming library
Have you ever needed to solve a linear program in your ruby app? Well, if you have, you know that rglpk (pronounced Wriggle-Pick) allows you to use the power of the GNU Linear Programming Kit (glpk) from within ruby. The latest version fixes some memory leaks that hindered performance.
method_proxy, a new AOP style gem for deep debugging
A friend just released method_proxy, a little gem that allows you to tap into method calls for deep code inspection. Use it for AOP style meta-programming, or to record method calls in order to play them back later in a regression test. Enjoy!
IProcess is born
IProcess, short for Inter Process Communication(IPC) Process, is a Domain Specific Language(DSL) that can be used to share Ruby objects between processes on UNIX-like operating systems. The README covers the basics, and there is the API documentation for everything else. Read more
Geo-Rails part 7 posted
I just posted the rather awkwardly-named Geo-Rails part 7: Geometry vs. Geography, or, How I Learned To Stop Worrying And Love Projections, the latest installment in my ongoing series on geospatial programming using Ruby and Rails. It is an opinionated look at the use of geometry vs. geography columns in PostGIS, and in general gives some guidelines on choosing a coordinate system for your spatial database.
rbenv-prompt
If you use rbenv (with our without gemsets) you can use this plugin to get the current Ruby version and gemset in your prompt. Hope this is useful!