Articles

Reading Advantage Database Server Files (.ADT) in Ruby

I recently received some data in the Advantage Database Server file format (.adt).  In the past I have worked with DBF, Access, and .xls.  I was able to find some way to retrieve data from these formats using open source software.  The open source solutions were much easier to work with, usually not requiring any sort of driver installation, etc.

How Ruby Manages Memory and Garbage Collection

garbage.jpgGarbage Collection and the Ruby Heap is a presentation given by Joe Damato and Aman Gupta at the recent LA Ruby Conference. You only get the slides for now (all 70 of them!), but they're very detailed and can almost work as a standalone concise e-book on Ruby's garbage collection system.

5 Chapters of O’Reilly’s Ruby Best Practices – Free!

rbp.pngRuby Best Practices is a book by Gregory Brown (and published by O'Reilly) that looks into the "Ruby way" of doing things in the Ruby language and, specifically, why Rubyists tend to write Ruby the way they do.

Gettext for Rails 3.0.0 beta

We just posted an open-source task on the newly released nextsprocket site. The reward is $300 for a functional demo app, check the task for more details.

You can view the task here.

Rails and Merb Merge: ORM Agnosticism (Part 5 of 6)

It’s been a little while since I’ve last posted in this series. During that time, we released Rails 3.0 beta, and announced the launch of RailsPlugins.org. Plugin authors have registered almost 150 plugins, with 40 already boasting compatibility with Rails 3. Over the next few weeks, we’re going to roll out some more features to help users find projects to help get updated, so keep an eye out.

Ruby Tuesdays: RBP Chapter 5

If you’re reading this blog, you probably know that the Ruby Best Practices book exists. Even if you haven’t read it, you might have a sense for the sort of topics we cover based on the content you’ve seen on this blog. But now, everyone is going to get a chance to read RBP the way its meant to be read: as a conversation.

Beaut little hover detail on Michael Flarup’s flysleepy.com



Beaut little hover detail on Michael Flarup’s flysleepy.com



Michael Flarup, who you may recognise from his work at Robocat,...



Michael Flarup, who you may recognise from his work at Robocat, last week released his travel blog Fly Sleepy.



RPCFN: Broadsides (#7)

GitHub Meetup SF #16

Articles | Rails Fire

Articles

Rails 3 Beta is Out — A Retrospective

The Rails team has finally released the Rails 3 beta, after more than a year since the Rails and Merb teams started working on this release. You can read all about it at the official Rails blog, but I figured I’d take the opportunity to share my take on the release.

First of all, you’re probably sick of hearing this, but we’ve done far, far more than we ever expected. A lot of that happened in the last few weeks.

Active Record Query Interface 3.0

I’ve been working on revamping the Active Record query interface for the last few weeks ( while taking some time off in India from consulting work, before joining 37signals ), building on top of Emilio’s GSOC project of integrating ARel and ActiveRecord. So here’s an overview of how things are going to work in Rails 3.

Railscasts Xcode theme

For those of you who use the excellent Railscasts TextMate theme and want to replicate the theme in Xcode, you can grab my version from Github. This is what it looks like:

The Ruby Show 106: Making Up Words

In this episode, Dan and Jason have fun making up words and also report on the latest with MacRuby, Rails 3, and more.

Shopify & 100k contest in NYTimes

Article

Homebrew: OS X’s Missing Package Manager

Managing software packages on Unix has always been, to put it politely, a giant pain, and most Linux distributions are built around the different ways we’ve all been trying to alleviate that pain. In this post, I’ll walk you through Homebrew, a fantastic new option for package management made simple.

Multiple Domain Page Caching

The other day Brandon Wright emailed me about the following tweet:

Just deployed full page caching on Harmony. Our log file stopped spinning by which made me happy and sad.

Chapter 6 of the Ruby on Rails Tutorial book

A draft of Chapter 6 of the Ruby on Rails Tutorial book is out. Enjoy!

Screencast: How To Upgrade Your Rails 2 App to Rails 3 in 25 Minutes

Geoffrey Grosenbach (of PeepCode fame) has put together a FREE 25 minute screencast showing how he's converted a Rails 2.x app to Rails 3.0.

GitHub Drinkup, Paris Edition

As I’ll be speaking at the Symfony Live Conference in Paris in a few weeks, GitHub and Sensio Labs are co-hosting a GitHub meetup in Paris on Wednesday, February 17th at 8pm.

We’ll be joined by a bunch of PHP people from the Symfony Live Conference hopefully, so if you’re a GitHubber not going to that, please join us for some cross-language nerd chatter. I’m also giving a short Git talk at 8:30p if you want to see that.

We hope to see you there!

Articles | Rails Fire

Articles

Finally, a sentiment we can all get behind

From the ever-fantastic Photoshop Disasters blog, someone from the Globe forgot to replace that trust standby placeholder text with the real content.

Just In Time, Not Just In Case

Something that has finally become a habit for me is adding code when it is needed, not in case it is needed. Often times we “think” we are going to need something, so we add the code to support it. What happens most often with that code is it sits and rots. It adds bloat and weight to your program that is not needed.

Example

I like to see examples first, so I will start with one. In Harmony, sites have users. I had a method in the site model named add_user.

Saving Microsoft Office Documents as PDFs

A recent discussion in the Ruby Forum reminded me that it is possible with Microsoft Office 2007 applications to save a document in Adobe PDF format.

In the Microsoft Word object model, you can call the Document object's SaveAs() method, passing it a filename, and the document will be saved in the default format.


document.SaveAs('c:\temp\MyDocument.doc')

Broadcasts

<!-- -*-Markdown-*- -->

Over the past couple of days, you may have noticed a new piece of UI, GitHub broadcasts:

Rails Autocomplete without Ajax (Autocompleter.local)

This was fun - though not easy to find the answer right away.I wanted to add an autocomplete to a form, but I wanted the suggestions to be local (I didn't want to make any ajax requests, I wanted to use a pre-defined javascript array).This ended up to real easy.The scenario here - I have a nested set of objects that an admin may want to give membership privileges to an existing user in their

Explore GitHub

This week kneath and I (with some help from The Changelog) rolled out Explore GitHub – a new page showing trending repositories, repositories recently featured on The Changelog, and recent episodes of their weekly podcast.

The Ruby Show 104: Something New

In this monumental episode, Jason and Dan announce both the end of something old and the beginning of something new, and of course cover all the latest Ruby and Rails news.

Simple Mustache JSON Serialization

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 by Javascript Mustache rendering engines.

DB2 support for Ruby/Rails turns 2.0

The API development team just released a major version of the ibm_db gem. Detailed installation instructions are available on RubyForge (PDF). Among several improvements, there are three particularly newsworthy features:

Episode 104: Something New

Episode #104: Something new. I’m sad to say that this will be the last episode of the Rails Envy podcast. I’m happy to say that Dan and I will be doing The Ruby Show which will follow the same general flow of Rails Envy. There’s no need to update your feeds (though you can if you’d like) because the feed will redirect for the foreseeable future. We’ve also got some other fun stuff planned like The Dev Show so stay tuned!

Articles | Rails Fire

Articles

RTeX 2.0 Released

I’m happy to finally release RTeX v2.0.

RTeX is a Ruby library for generating PDFs via the LaTeX typesetting system, and can be used as a standalone executable or Rails plugin for pdf.rtex files. If you need to generate complex (and well- typeset) documents dynamically, this might be the ticket.

Ask Your Doctor About mod_rails

We need new inventions that reveal people’s true intentions, a portable pride protector, affordable lie detector…—Buck65

UPDATE: You can learn all about Phusion Passenger with the new PeepCode Screencast on the topic.

Half A Dream


Living on the Edge (of Rails) in Spanish

Juan Lupión wrote in to inform me that he’s also translating my Living on the Edge (of Rails) series of blog posts to Español. Thanks Juan!




Living on the edge (of Rails) #21

It’s another slow week (just 2 changes of note imho) after the release of the 1st Release Candidate (RC1) of Rails 2.1. Follow that link for installation instructions – though if you’re reading this blog post you probably don’t care! (because you’re, you know, “living on the edge”).

72. Integrating Rails app with Campaign Monitor API

In this episode you will learn how to use campaign monitor gem to integrate your Rails app to Campaign Monitor Web Service API.

Rubinius runs Rails

Congratulations to the rubinius guys on getting our little web framework that could to start up and serve requests. It’s great to see so much experimentation and progress happening in one large and bazaar-like community!

71. How to create a SEO sitemap for Rails Apps

The Sitemap Protocol allows you to inform search engines about URLs on your websites that are available for crawling.

RTeX on Lighthouse

I’ve just opened up a Lighthouse project for RTeX here. This fills out the RTeX family of pages to be:

* Documentation

* Development

* Issue tracking

The Two Kinds of Programmers


Photo courtesy of Roby72

In my time as a developer, and now managing a team of developers, I have come to realize that there are two kinds of programmers: the Journeyman and the Craftsman. These terms aren’t mine – I’ve seen them used other places – but they describe the developers I’ve worked with pretty well.

HotSpot | Rails Fire

HotSpot

In-depth JRuby Q&A: What Makes JRuby Tick in 2010?

JRuby is undoubtedly the most mature of the alternative Ruby implementations. Supporting Ruby 1.8.7 and 1.9.1 (mostly!) and JIT compilation, JRuby is already in use in mission critical Ruby apps and runs scarily fast on the JVM. In this interview with JRuby core member, Charles Nutter, we dig deep into what makes JRuby tick.

Syndicate content