Dan

The Ruby Show 109: Puns

In this episode of The Ruby Show, Dan and Jason bring you the latest news and some bad puns.

The Ruby Show 108: Shameless self promotion

Dan and Jason discuss the latest Ruby and Rails 3 news, some jQuery, and work in some shameless self promotion.

The Ruby Show 107: Rails 3, Gems In a Box

In this episode Dan and Jason go over Rails 3 at length and also discuss the right occasion for gems in a box (every single holiday).

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.

The Ruby Show 105: Average Size

In this episode, Dan and Jason bring you a ton of news and keep it short and sweet.

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.

Running In A Console Window?

Someone recently asked me how to determine if your code is running in a console window or not. Perhaps you have a program that provides both GUI and command line interfaces and you need to know which interface is being used. You may wish to output error messages to the console, if it exists, but to a file if the console doesn't exist.

UPDATE: Perhaps the preferred means for this is the STDIN.isatty method, which returns true if running in a console window and false otherwise...


if STDIN.isatty
Syndicate content