timd + ruby   90

lightness/lightrail
"Lightrail is a minimalist Rails 3 stack for apps that serve primarily APIs, with a particular focus on JSON APIs. This makes Lightrail an ideal Rails backend for client-heavy HTML5/JS applications, particularly single-page applications written in frameworks like Backbone.js, Ember.js, and Spine.

If Sinatra doesn't give you enough, but Rails is still too much, Lightrail is for you."
api  json  rails  ruby  rubyonrails  sinatra 
11 weeks ago by timd
The Secret Ninja Cucumber Scrolls
Cucumber documentation (covers Sinatra and other non-Rails frameworks)
bdd  cucumber  rails  ruby  tdd 
february 2012 by timd
Ruby HTTP clients features
Rather scarily detailed list of Ruby HTTP clients
ruby  http  code  api  client  libraries  library 
january 2012 by timd
Haskell web programming
"A simple yesod tutorial. Yesod is an Haskell web framework. You shouldn’t need to know Haskell."
haskell  code  howto  ruby  rails  framework 
january 2012 by timd
My top 7 RSpec best practices | Dmytro Shteflyuk's Home
I use RSpec in all my projects. It’s really hard to overemphasize how helpful it is and how much easier becomes your life if you have good specs coverage. But its outstanding flexibility enables many ways to make your specs awful: horribly slow, over-bloated, even non-readable sometimes. I do not want to teach you BDD and RSpec here, but instead I will give you some ideas how to improve your specs quality and increase efficiency of your BDD workflow.
rspec  bdd  rails  ruby  testing  tdd  agile 
january 2012 by timd
Self-guided Ruby on Rails 3.1 Tutorial - Devalot
"One of the complaints about Ruby on Rails that I hear most often is its complexity, despite all the video tutorials showing how easy it is to build a simple application in 5 minutes. In reality, Rails was a huge paradigm shift for web application development and even with its complexity it's a great platform.

I've spent the better part of the last 6 years writing applications using Ruby on Rails and people often ask me for my perspective on how to bootstrap an application and best practices for using Rails. I also see a lot of people getting lost in the noise of scaffolding and complicated tutorials.

That's why I decided to write an example application using Ruby on Rails 3.1. The application is on Github to make it easy to get to, and takes advantage of source code control features like branches so you can follow along as the application gains functionality."
ruby  rails  rubyonrails  guide  tutorials  teaching 
november 2011 by timd
How do I test my code with Minitest?
Tutorial/guide for Ruby testing with Minitest
ruby  testing  minitest  tdd  bdd  rails  development  code 
august 2011 by timd
just few tuts: derailed_duke ~ now test any website using cucumber as an independent testing utility
"derailed_duke ~ now test any website using cucumber as an independent testing utility"
cucumber  testing  tdd  bdd  rails  ruby  development  code 
august 2011 by timd
Unfolding Code: Using RVM to Install Rails 3.1: Best Practices
This article focuses on the workflow of installing RVM, and use it to install Ruby 1.9.2 (MRI), create gemsets and install Rails 3.1 Release Candidate, while considering current best practices.
rvm  ruby  rails  howto  osx 
june 2011 by timd
Sinatra Book Contrib
"Community contributed documentation for the Sinatra Book, a cookbook for the Sinatra Web Framework."
sinatra  code  development  ruby  rails  documentation 
february 2011 by timd
Nathan Humbert's Blog: Using Sinatra with Bundler to deploy on Heroku
"I decided to try using sinatra for a small project I started the other day. I normally work in rails and host my personal projects on heroku. Since rails 3 came out I have also gotten hooked on bundler. I could not find any single source that documented how to use all of these together nicely. Here is how I got it to work."
deployment  heroku  ruby  sinatra 
february 2011 by timd
Understanding Ruby Blocks, Procs and Lambdas - Robert Sosinski
Blocks, Procs and lambdas (referred to as closures in Computer Science) are one of the most powerful aspects of Ruby, and also one of the most misunderstood. This is probably because Ruby handles closures in a rather unique way. Making things more complicated is that Ruby has four different ways of using closures, each of which is a tad bit different, and sometimes nonsensical. There are quite a few sites with some very good information about how closures work within Ruby. But I have yet to find a good, definitive guide out there. Hopefully, this tutorial becomes just that.
ruby  code  development  lambda  block  proc 
february 2011 by timd
Improving your tests with Capybara custom selectors | Plataforma Tecnologia Blog
Here at PlataformaTec we like to use Capybara for acceptance tests. Recently we have discovered the custom selectors feature in Capybara and we would like to share with you how that feature helped us to improve our tests.
rails  capybara  test  testing  tdd  bdd  cucumber  rspec  ruby  development  code  how-to 
february 2011 by timd
How do I make a command-line tool in Ruby?
Ruby, as a dynamic language, is always used for quick processing command-line tool for its simplicity and productivity.

This article talks about three ways to write a command-line tool.
ruby  scripting 
january 2011 by timd
Converting OSGB36 (Eastings/Northings) to WGS84 (Longitude/Latitude) in Ruby « Peter Hicks' Blog
"The excellent people at the Greater London Assembly have released a list of bus stops and bus routes in London. The coordinates of each bus stop are in eastings and northings, and I wanted to convert these to longitude and latitude for my Ruby on Rails application.

Using the proj4rb gem and some projection definitions from spatialreference.org – with some help from Harry Wood’s blog, I came up with the following code"
ruby  code  coordinates  maps  mapping  osgb  development  projects 
november 2010 by timd
facebooker-1.0.69 Documentation
"Facebooker is a Ruby wrapper over the Facebook REST API. Its goals are:

Idiomatic Ruby
No dependencies outside of the Ruby standard library (This is true with Rails 2.1. Previous Rails versions require the JSON gem)
Concrete classes and methods modeling the Facebook data, so it‘s easy for a Rubyist to understand what‘s available
Well tested"
facebook  rails  ruby  rubyonrails  development  code  api 
september 2010 by timd
Ruby on Rails Tutorial: Learn Rails by Example | by Michael Hartl
The Ruby on Rails Tutorial Book
A thorough introduction to web development with Ruby on Rails
Up-to-date (now Rails 2.3.8, Rails 3 ASAP)
Associated screencast series coming soon
rails  ruby  rubyonrails  development  code  tutorial  programming  how-to 
july 2010 by timd
30 free programming eBooks [UPDATED] - citizen428.blog()
"Learning a new programming language always is fun and there are many great books legally available for free online. Here’s a selection of 30 of them"
rails  how-to  tutorial  code  development  programming  lisp  ruby  javascript  haskell  erlang  python  smalltalk  perl  prolog  objective-c 
july 2010 by timd
Roadmap for Learning Rails | techiferous
"Here is a roadmap specially designed for a beginner to navigate their way to Rails mastery.

I’ve intentionally structured this roadmap so that you can learn one thing at a time. That way, you’ll spend more time creating and less time confused."
rails  ruby  rubyonrails  resources  tutorial  tutorials  how-to  code  development  training  webdevelopment 
july 2010 by timd
The Elegant Ruby Web Framework - Padrino Ruby Web Framework
"Padrino is a ruby framework built upon the excellent Sinatra Microframework. Sinatra is a DSL for quickly creating simple web applications in Ruby. Padrino was created to make it fun and easy to code more advanced web applications while still adhering to the spirit that makes Sinatra great!"
ruby  rails  sinatra  padrino  framework  frameworks  development  code 
june 2010 by timd
#haml
Haml takes your gross, ugly templates and replaces them with veritable Haiku.

Haml is the next step in generating views in your Rails application. Haml is a refreshing take that is meant to free us from the shitty templating languages we have gotten used to.

Haml is based on one primary principle. Markup should be beautiful.
haml  ruby  rails  rubyonrails  templates  templating  code  development 
may 2010 by timd
Posty – our new gem for geolocation in Ruby – The Dextrous Web
ust last week Ordnance Survey released a tonne of data. This is of course a wonderful thing for everybody, and software making use of this data has only started appearing in the past week. This morning, in fact, we noticed a gem, pat by Stef Lewandowski which uses Pezholio/Stuart Harrison’s very useful UK Postcodes.
We took a look at it, and decided to make a gem that uses a local database (usually a bit faster than using a Web-based API), but which is similarly easy to use.
Three hours later, we present to you posty!
The data it provides from CodePoint Open is:
postcode
quality
latitude
longitude
country
nhs_region
nhs_health_authority
county
district
ward
In all these cases, rather than proving the name of the county/district/ward/etc, it only provides the identifier used in the data set. This is a case where UK Postcodes would be a better option.
posty  gems  ruby  rails  code  postcodes  postcode  latitude  latlong  geolocation  development 
april 2010 by timd
How To Write Your First Ruby Web Bot In Watir
The holy grail for a lot of Internet Marketers is automation. This can be obtained through simple iMacros scripts, some PHP scripts on a server, or with a little tool called Watir using the Ruby programming language. All of these combos have their own inherent advantages and disadvantages, but that’s not something I’m going to go over here. I like to use Watir for a lot of botting needs, so that’s what I’m going to show you how to do today.
automation  ruby  rails  scripting  firefox  development  code 
april 2010 by timd
edgecase's ruby_koans at master - GitHub
The Ruby Koans walk you along the path to enlightenment in order to learn Ruby. The goal is to learn the Ruby language, syntax, structure, and some common functions and libraries. We also teach you culture. Testing is not just something we pay lip service to, but something we live. It is essential in your quest to learn and do great things in the language.
ruby  testing  rubyonrails  learning  tutorial  tdd 
january 2010 by timd
gist: 230009 - GitHub
Alex's recipe for setting up RoR on Snow Leopard
rails  mac  macports  ruby  rubyonrails  configuration 
december 2009 by timd
japh(r): "Newbie" Feedback
"I recently had the privilege to supply the challenge for the second ever Ruby Programming Challenge For Newbies. I thought it pretty cool that the challenge provoked 40+ "newbies" to submit responses. As one might expect, there was some rough Ruby, but very few butcherings of the language.

In the spirit of the code review, I tried to provide constructive feedback to all participants. Following is a summary of some common suggestions that I had to offer..."

Contains an interesting example of how tests could have prevented some problems...
testing  tests  ruby  rails  code  programming  rubyonrails 
october 2009 by timd
Twitter and Hpricot--How to Parse Twitter XML in Ruby on Rails
If you're using the Twitter API and you issue the command to query a timeline, you'll get what looks to be a whole mess of XML. If you look closely, the XML is well-structured and hierarchical. The encompassing array is the statuses element. This houses a list of status elements which describes each individual status update. In the status element are various other elements, such as text and created_at. Nested even more deeply inside the status element is the user element, which describes the user the update belongs to.
twitter  api  xml  hpricot  rails  ruby  rubyonrails 
october 2009 by timd
Twitter--How to Twitter in Ruby on Rails
The Twitter API (Application Programmming Interface) in Ruby on Rails is about as simple as you can get. Twitter is a RESTful Rails application. API calls that query for information are GET requests, while information that changes, creates or deletes information are POST requests. The commands themselves are the URL your program accesses. Twitter will return status codes in the HTTP response code, and data in the format of your choosing (HTML, XML, RSS, etc).
twitter  ruby  rails  rubyonrails  api 
october 2009 by timd
ruby-nxt
The ruby-nxt library lets you control the LEGO Mindstorms NXT robotics kit via Bluetooth using the Ruby language.

There are three interfaces:

* High-Level: The NXT class provides multi-threaded, object-oriented interface to the motors, sensors, and most other core NXT functions.
* NEW High-Level: The Commands module (included with NXTComm) provides a command object-based interface very similar to the Blocks in NXT-G. (this may replace the NXT class in the future)
* Low-Level: The NXTComm class provides direct access to the NXT Bluetooth bytecode protocol. There is also the UltrasonicComm class which implements the I2C communications needed to interact with the ultrasonic sensor (via NXTComm).

ruby-nxt requires the ruby-serialport library which you must manually download and install from: rubyforge.org/projects/ruby-serialport
ruby  nxt  mindstorms  robotics  programming  hacks  arduino 
may 2009 by timd
Tender Lovemaking » Blog Archive » Nokogiri Is Released
"With the help of super awesome ruby hacker Mike Dalessio, I wrote an XML/HTML parsing library for ruby called Nokogiri. What is so great about Nokogiri? Well, for one it is really easy to parse HTML or XML:"
nokogiri  ruby  rails  code  development  hpricot  xml  parser  parsing 
april 2009 by timd
Why MacRuby Matters (Present & Future) | Zen and the Art of Programming
While MacRuby is a younger, lesser known implementation, it has the potential to become a game changer - at least for Mac developers. Based on Ruby 1.9, MacRuby’s main aim is to provide programmers with the ability to write Mac OS X applications in Ruby, making Ruby a first class Cocoa programming language. In what may sound like an utopistic effort, MacRuby strives to provide the high level abstractions, power and syntax sugar of Ruby, without the characteristic performance hit of its main implementation.
ruby  macruby  development  code 
march 2009 by timd
Sinatra
"Sinatra is a DSL for quickly creating web-applications in Ruby with minimal effort"
sinatra  ruby  web  applications  development  code  webdevelopment 
january 2009 by timd
FeedTools
"FeedTools is a simple Ruby library for handling rss, atom, and cdf parsing, generation, and translation as well as caching. It attempts to adhere to Postel’s law—i.e. a liberal parsing and conservative generation policy.

It’s ideal for parsing RSS feeds in Ruby on Rails applications and equally useful in just simple scripts. FeedTools can also create new feeds for you in only a few lines of code."
ruby  rails  development  code  api  feeds  rss  atom  rdf  parsing 
january 2009 by timd
mootoh.log - TwitterBot by Ruby
"This tutorial describes how to write your own Twitter bot by Ruby."
ruby  twitter  bot  code  development  jabber  xmpp 
january 2009 by timd
Ruby and XMPP/Jabber Part 2: Logging in and sending simple messages
"In this part I will show how to log in to a Jabber server and send a simple message. This is the basis of everything else, and will give you something nice to start with. After all, sending messages is the most common use for Jabber."
ruby  xmpp  jabber  code  development 
january 2009 by timd
How to Build a Twitter Agent
"In this article we will build an actual useful Twitter Service that will allow us to track the Blogosphere. In the process we will get hands on programming experience with Ruby, DRb, Twitter and Jabber. This will sharpen our developer skill-set to get ready for the upcoming (Folk)Semantic Web. Also we evaluate the problems seen and opportunities ahead."
twitter  code  development  ruby  jabber  im  instantmessaging  api 
january 2009 by timd
Send photos from iPhoto to Wordpress using Ruby : RubyFlow
"Garrick van Buren has written a clever little script that uses rb-appscript and XMLRPC to send photos from iPhoto to a Wordpress blog. It's surprisingly short and effective."
ruby  iphoto  script  blog  wordpress  xml  xmlrpc 
january 2009 by timd
HTML Scraping with scRUBYt! for Fun and Profit
"...Filtering out meaningful data from such a HTML mess is referred to as web scraping and in this article I’d like to show you how to do it with scRUBYt!, Ruby’s probably most popular web scraping framework."
ruby  scraping  html  code  examples  tutorial  screenscraping  data 
december 2008 by timd
ADC—Developing Cocoa Applications Using MacRuby
"Ruby is a dynamic programming language that, over the last few years, has enjoyed enormous popularity, thanks in part to the Rails web framework. Now with MacRuby, you can create Mac OS X applications with Ruby while maintaining the peformance benefits of a fully fledged Cocoa application. This article will show you how to get started with MacRuby and build your first sample application."
mac  macruby  ruby  development  code 
october 2008 by timd
Developing iPhone applications using Ruby on Rails and Eclipse, Part 1: Serving content for iPhones
Developing iPhone applications using Ruby on Rails and Eclipse, Part 1: Serving content for iPhones
iphone  development  code  ruby  rubyonrails 
june 2008 by timd
%w(Akita On Rails) * 2.0 / Rolling with Rails 2.1 - The First Full Tutorial - Part 1
Rails 2.1 is right around the corner and now comes my update for “The First Full Rails 2.1 Tutorial”.
rails  rails2.0  tutorial  development  ruby  rubyonrails 
june 2008 by timd
The WHY behind TDD/BDD and the HOW with RSpec
A brief introduction to the why behind TDD and an explanation on how BDD builds on that. A quick walk through of the ruby BDD framework, rspec
rspec  rails  ruby  rubyonrails  development  code 
june 2008 by timd
Tom ten Thij's homepage: RSpec plain text story runner on a fresh rails app
Basic intro to using rspec - with an example using restful_authentication
rspec  testing  ruby  rails  rubyonrails 
april 2008 by timd
Rails for PHP Developers - About
Our goal is to make it as easy as possible for you to add Rails as a tool to your development toolbox. If you’re proficient with PHP, you already have the essential skills needed to build web applications. This site will present an ongoing discussion of
rails  ruby  rubyonrails  php  migration  code  development 
april 2008 by timd
Ruby Forum
The main Ruby and Rails forums, all bazillion of them.
ruby  rubyonrails  rails  forums  support 
april 2008 by timd
Programming Ruby: The Pragmatic Programmer's Guide
An online copy of the first edition of the Pickaxe.
ruby  rails  rubyonrails  pickaxe 
april 2008 by timd
Photo Gallery with Attachment_Fu: Tutorial
"Photo galleries can be developed easily with Rails using the attachment_fu plugin. In this blog entry i will give an example of how you could get started with this plugin, based on my own experience with it."
rails  rubyonrails  ruby  tutorial  attachment_fu  plugins  tutorials 
april 2008 by timd
Top 12 Ruby on Rails Tutorials
A list of the "top 12" RoR tutorials. From 2005, so getting somewhat outdated, but useful nonetheless.
ruby  rubyonrails  rails  tutorials  tutorial 
april 2008 by timd
RAD
RAD is a framework for programming the Arduino physcial computing platform using Ruby. RAD converts Ruby scripts written using a set of Rails-like conventions and helpers into C source code which can be compiled and run on the Arduino microcontroller.
arduino  development  rails  ruby  rubyonrails  hacking 
april 2008 by timd
DZone Snippets: Store, sort and share source code, with tag goodness
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
code  snippets  development  rails  ruby  rubyonrails 
april 2008 by timd
DECODING AVIATION ROUTING WEATHER REPORT (METAR)
Key to decoding US-style METAR reports, with notes on how they differ to ISO standards
metar  aviation  weather  rails  ruby  projects 
march 2008 by timd
Ruby Screen-Scraper in 60 Seconds - igvita.com
I often find myself trying to automate content extraction from a saved HTML file or a remote server. I've tried a number of approaches over the years, but the dynamic duo of Hpricot and Firebug blew me away
hpricot  ruby  rubyonrails  rails  development  code  tutorial  howto 
march 2008 by timd
Hpricot, a fast and delightful HTML parser
Hpricot is a very flexible HTML parser, based on Tanaka Akira's HTree and John Resig's JQuery, but with the scanner recoded in C (using Ragel for scanning.)
hpricot  ruby  code  rails  rubyonerails  development  shippingforecast 
march 2008 by timd
Graticule
Graticule is a geocoding API for looking up address coordinates and performing distance calculations. It supports many popular APIs, including:

* Yahoo
* Google
* Geocoder.ca
* Geocoder.us
* PostcodeAnywhere
* MetaCarta
api  rails  ruby  rubyonrails  geocoding  goecode  geographical 
february 2008 by timd
HowToDoTestDrivenDevelopmentInRails in Ruby on Rails
Test-driven development is A Good Thing. There are many sites out there that will give you abstract discussions on why you should be doing it, so this page won’t dwell too much on that. This is intended to give a basic ‘recipe’ to follow, mostly for
testing  ruby  rails  rubyonrails  development  code  tutorial 
january 2008 by timd
an introduction to RSpec - Part I
Here’s an introductory tutorial for those of you interested in getting started with RSpec.
rspec  ruby  rubyonrails  development  code  tutorial 
january 2008 by timd
A Guide to Testing the Rails |
This article is for fellow Rubyists looking for more information on test writing and how that fits into Ruby On Rails. If you’re new to test writing or experienced with test writing, but not in Rails, hopefully you’ll gain some practical tips and insi
ruby  rails  rubyOnRails  development  code  testing 
january 2008 by timd
« earlier      

related tags

agile  ajax  api  apis  appengine  applications  apps  arduino  articles  atom  attachment_fu  authentication  automation  aviation  bdd  block  blog  book  books  bot  business  capybara  cheats  cheatsheet  client  cloud  code  coding  configuration  cool  coordinates  cucumber  data  deployment  design  development  dhh  docs  documentation  dotnet  erlang  examples  facebook  feeds  fireegale  firefox  forums  framework  frameworks  geek  gems  geocoding  geographical  geolocation  goecode  google  guide  hacking  hacks  haml  haskell  heroku  how-to  howto  hpricot  html  http  iis  im  instantmessaging  instantrails  iphone  iphoto  jabber  javascript  json  lambda  latitude  latlong  learning  libraries  library  lisp  mac  macports  macruby  mapping  maps  metar  migration  mindstorms  minitest  navigation  nokogiri  nxt  object  objective-c  online  opensource  osgb  osx  padrino  parser  parsing  perl  php  pickaxe  plugins  postcode  postcodes  posty  proc  programming  projectmanagement  projects  prolog  python  rails  rails2.0  rdf  reference  regex  regularexpressions  resources  rest  restful  robotics  rspec  rss  ruby  rubyonerails  rubyonrails  rvm  scraping  screencast  screenscraping  script  scripting  server  shippingforecast  sinatra  smalltalk  snippets  social  socialnetworking  software  stubs  support  tdd  teaching  tech  templates  templating  test  testdrivendevelopment  testing  tests  tools  training  tutorial  tutorials  twitter  visualization  weather  web  webdesign  webdev  webdevelopment  widgets  wiki  wikibook  windows  wordpress  xml  xmlrpc  xmpp 

Copy this bookmark:



description:


tags: