tagged ruby

by mars on 2011-04-16 0 Comments

Confounded by the inability of Ruby on Rails' rake gems:install to do its work? Rake FAIL?

My specific experience is that gems:install depends on the gems it tries to install!

I found some answers at Stack Overflow, but none fix my situation.

Ends up this Rails app had quite a few tasks defined in lib/tasks that began with require 'config/environment'. Since rake loads all those tasks on start-up, it was trying to boot the whole Rails environment every time.

The Fix

Swap out require 'config/environment' with proper task dependencies, like task :make_me_coffee => :environment do … end.

Epilog

Rails' rake task files are all loaded on each call to rake. Use require carefully, perhaps putting the statement inside the tasks' do … end block or declaring a task dependency.

by mars on 2007-08-03

Here's a WSDL file for Zimbra's Admin SOAP API.

Read the rest of this entry

by mars on 2007-06-05 0 Comments

Say for instance you just applied a software update to your Mac OS X Server and rebooted.

Suddenly a Rails app that was running fine spits out an error when ActionPack does a redirect_to. In the Rails production.log:

SystemStackError (stack level too deep)

Well my friend, before you set off to debugging the Ruby install on your OS X machine, try clearing the Rails sessions. At the command line:

rake tmp:sessions:clear RAILS_ENV=production

Everyone must login again, but alas the problem is solved! [for me]

Is it because we're using Apple's built-in Apache 1.3 web server with source-compiled FastCGI support? Hmmm.

by mars on 2007-05-19 0 Comments

Texas' premier Ruby Conference web site is now officially live.

Lone Star Ruby Conf

The site is powered by RadiantCMS running on two Mongrels balanced by Nginx.

There's not much info yet, just a pre-registration form to help the plan the event. Plan to come on down to the Ruby Conference in Austin. It might actually drop under 100-degrees by September 7th!

by mars on 2006-10-03 1 Comment

Ruby programmers in Austin have a new face of organization & connection.

Now is the time for programmers to stand up for what is good & true in the internet world today!

Austin Ruby web site

The guts are a trendy full-stack-HTTP set-up, running Mephisto as a cluster of Mongrels.

The design was inspired by the beauty of the ruby, and love of edible brown things, like cacao & coffee.

by mars on 2006-08-13 2 Comments

Which one is right for your Rails application?

In RMagick vs MiniMagick I will compare various aspects of these two Ruby image processing libraries.

Especially poignant if your app will be deployed in a shared hosting environment, save some brain-aches by weighing their differences before your code hits resource limits.

I'll be making this lightening presentation at Tuesday's Austin on Rails meeting.

Presentation (exported from Keynote): RMagick vs MiniMagick (PDF)

by mars on 2006-07-16 7 Comments

Mogrify is ImageMagick's command-line utility to transform images. I'm using it within MiniMagick, a Rails plugin that allows image manipulation with minimum memory usage compared to the more ruby-like RMagick bindings.

So the point of this post... Do you get errors like "mogrify: unable to open module file" when it's looking for a coder?

Read the rest of this entry

by mars on 2006-07-11 0 Comments

In what 750-page tome do you get fugal themes of formal systems, Tortoise & Mr. Crab, canons of dialog, artificial intelligence, genetics, hardwired behaviors of a wasp, consciousness, records that break record players, & etchings of strange loops?

Gödel, Escher, Bach: An Eternal Golden Braid

Read the rest of this entry

by mars on 2005-12-04

In the spirit of Ruby's & Rails' blossoming community of open-source developers, these meetings are free to attend & open to all.

There are different levels & types of people involved, but of course the more prevalent & outspoken tend to be the more confident & experienced developers (though this is less true for the Rails group).

There are two different groups...

Read the rest of this entry

by mars on 2005-10-25

This project has been consuming me; it's my entry for the typo theme garden.

Concomitant Screenshot

The dictionary says concomitant is:

A phenomenon that naturally accompanies or follows something.

In this context, concomitant is the name of a minimalist theme for typo that flows with your content.

Read the rest of this entry

by mars on 2005-08-06 2 Comments

Do you get header not found errors when installing a Ruby Gem? (In my case, it's the FastCGI bindings.)

Read the rest of this entry

by admin on 2005-06-18 0 Comments

After months of weekend-afternoon cafe work & late-night development sessions, I'm pleased to present a new web site created for sword/knife designer, bladesmith & goldsmith Jot Singh Khalsa of Millis, Massachusetts:

Visit this new site which features almost 150 fine handcrafted knives & swords created by Jot Singh over the past three decades.

I constructed the site in Ruby on Rails, that new-skool web development framework that lets web developers gracefully build high-quality, sustainable applications.

The site is hosted at TextDrive using lighttpd/FastCGI/Ruby/MySQL.

by admin on 2005-05-22 0 Comments

Web development, a never-ending story, the evolution of information, practically dropped into my lap by the universe. My preparation for the world of producing information software was void of formal training. Each time I attempted formal training, I felt too limited, and so I always escape.

So now, I am exploring Ruby's unit testing framework (extended in Rails).

Never having used a software unit test framework, I see: this beautiful facet of programming which makes software work intrinsically better.

In this process, I've found many references to Extreme Programming [XP]. Part of XP process uses these unit tests (small embedded assertions which can be tested automatically) to alter the traditional development process from "code, then test" to "test, then code", making software systems emerge as organic & sustainable collectively owned source code.

I like where this is headed.

by admin on 2004-12-31 0 Comments

Rails Logo Remix

Between learning probably the most advanced web application framework and an upcoming project to develop a custom email server filter module, both in Ruby, a 10-year-old object-based scripting language born in Japan, I am one busy coding monkey.

At this point, I am convinced that Ruby is not a programming language in the traditional sense. Ruby is expressive codespeak. The most challenging aspect of learning it, is unlearning the convoluted tricks that the utilitarian languages of my last 10-years tattooed into my brain.

This shift of thinking is akin to a shift I experienced around 1990 from line-number-based BASIC programming [on my family's TI-994a!], to modular HyperTalk/Pascal/VBScript/PHP.

Mars now waxes nostalgic to the late nights he spent in high school whipping up HyperCard stacks on his sister's Macintosh Classic II. Mars dearly thanks Natalie for having that little toaster at home where he could use it!



Everything is here.