Articles

Automating Excel with Ruby: One Cell, Multiple Fonts

As a loyal reader mentions in the comments to my article about Formatting Worksheets, he wanted to apply different formatting to separate words in a single cell. Specifically, he had cells containing a surname, a comma, and then first name, such as:

Jeter, Derek
Matsui, Hideki
Teixeira, Mark

His goal was to format the last name in bold, while leaving the first name in normal weight font:

zsh git status

Sure, you could have status shown in your bash prompt but that’s not your only option for shells! zsh, or Z Shell is another popular command line interface that is in use by plenty of programmers, and there’s quite a few scripts that will get your repo’s status shown easily and quickly.

20 minutes to setup production rails / Installing gems with ruby enterprise

I started moving an app over to slicehost today, and was impressed with how fast it is now.

I used josh’s slicehost cap recipes

The one hangup was that passenger initially gave me a cryptic error screen. It was pretty easy to figure out what the issue was though (db password).

On Ubuntu, passenger will log startup errors to /var/log/apache2/error.log

Second, passenger gives an error screen if you don’t have gems installed.

Autoloading ActiveResource schemas

I just committed my first new Rails feature in months: Autoloading ActiveResource schemas. Note: this is in my personal fork that’s up to date with the rails repo, and will probably be merged in for Rails 2.3.

Facets Associations

For this edition of our exploration of Ruby Facets we’ll look at something a bit unconventional. As many of you may already be aware all of the libraries in Facets are divided into three groups. The CORE library houses all the extensions to Ruby’s core classes; the LORE library (the most recent division) is a funny name for extensions to Ruby’s standard library; and the MORE library is a collection of original additions. In the MORE library you will find a script called, association.rb.

Introducing ShadowPuppet

We’ve been using Puppet here at Rails Machine to manage our internal infrastructure for quite a while now, and it’s been great solution. Unfortunately, Puppet’s external DSL can be unfamiliar to Rubyists used to other Ruby-based DSLs like Rails, Rake, and Capistrano. But fortunately, Puppet actually has had a proof-of-concept Ruby DSL since July of 2006.

New Rails plugin - Quick Scopes

I’ve just release a new Rails plugin called Quick Scopes that adds some generic named_scopes to your models to quickly manipulate the results you receive from associations.

It’s great to have easy access to methods to get all associations but sometimes you need to manipulate how you receive those results.

installing git

This is probably the most basic tip: installing the system itself! Turns out that it’s easier than you think to start using Git on your system. This tip will continue to be updated with the latest and easiest ways to install Git on your favorite operating system.

If this list doesn’t have your favorite operating system’s directions, if links have become outdated, or you have an easier way let us know in the comments! Also, if you’re having snags getting Git installed/compiled give a shout.

Too much rails?

NVidia Graphics Update 2009-01-26

NVidia logoI’ve written before about the problems with the Mini DisplayPort to dual link DVI adapter from Apple. Today Apple has released a graphics update that is supposed to fix the cursor movement problem. After having installed it, it does NOT fix the out of sync issues. I guess we’ll have to wait on that one for a little while yet.

Ruby Thoughts | Rails Fire

Ruby Thoughts

Shoes app included XML-RPC Client

I read RUBIMA (Japanese Rubyist Magazine), Introduce Standard Library #1 XMLRPC4R, Oct. 2005. This is not a new article, but is still cool!So, I came up with an idea to use XMLRPC4R for Andrew O'Brien's interesting idea, AndrewO/assert_acceptable.# sample78-3.png

Shoes Policeman with Ruby 1.9.1 or 1.8.7

Look at the commit on github. Now can build Shoes both with Ruby 1.9.1 or 1.8.7.# snapshot-shoes-v-191.png

FROM ALL OVER THE WORLD

Core Ruby 17th batch started on 10th April at RubyLearning.org.We are now 175 participants from 27 countries. Let's have fun! ;-)

Gems available with Shoes Policeman

After sniffing around Shoes.setup for a few days, came up with an idea. Now you can use any gems in Shoes. Not a complete solution but like a monkey patch, though. ;-)# snapshot-shoes-setup.png

Checking Shoes Samples: simple-menu.rb

simple-menu.rb doesn't work well with both Raisins and Policeman. So, implemented simple-menu1.rb in other way. ;-)Look at online demo.# snapshot-simple-menu1.png

Checking Shoes Samples: expert-irb.rb

Battle Viewer on Shoes

Ruby and Rails: Ruby Symbols Ultimate Guide

I love Metaprogramming Ruby so much.

A new option :dash for Shoes

Syndicate content