"Life In The Stack Trace..."

Main feature

About Me:

I am a developer and an entrepreneur. I have twenty plus years of experience in the field of computing. My experience spans many platforms, programming languages, and I am an advocate of the open-source world. Uniquely positioned in life, I search for application and service ideas that can be converted into profitable or open-source products. Most important to me is positive energy and accomplishment.

Recent Article:

Using apt-cache to determine package version prior to install

Last updated: 03/05/2014 01:13:12 PM

Ever want to know the version of a package that you are about to install prior to installing it? I found two different ways to accomplish this task.The policy option is a lot less verbose that the show option. For example, let's say we would like to install the minidlna package from the repositories and would like to know the version that would be installed first.The following command:You can see the version information:The policy option...



Ruby 2.0 - New Kernel method __dir__

Last updated: 02/25/2014 06:27:11 PM

Ruby 2.0 Kernel includes a new convenience method named: "__dir__" which returns the canonicalized absolute path of the directory of the file from which this method is called. The symbolic links in the path will be resolved. "__dir__" returns nil if "__FILE__" is nil.How many times have you done something like the following in your code.Now, all you need to do is......

Install rtorrent 0.9.0 on Ubuntu

Last updated: 02/25/2014 06:22:49 PM

So, today I decided to install the latest version of rtorrent. I dug around most of the doc found at:http://libtorrent.rakshasa.no/and attempted to install stable version 0.8.0, however, I could not get it to compile, so, I decided to give the unstable version 0.9.0 a shot.I figured it would compile and install without a hitch as I have just have many development packages installed on my machine. There were two packages I needed to install to...

Ruby 2.0 NilClass OpenStruct Struct have a to_h method

Last updated: 02/25/2014 06:21:53 PM

Some Ruby 2.0 classes have a to_h method. to_h converts the object to a Hash. At the time of this writing, the following classes have the to_h method:Here is the contents of test.rb...

Ruby 2.0 Symbol Arrays

Last updated: 02/25/2014 06:21:24 PM

Ruby 2.0 supports a feature to make the creation of an Array of Symbols convenient.Below are a few variations producing the same results.Download the support file and run the example....

Installing Ruby 2.0.0

Last updated: 02/25/2014 06:20:58 PM

Ruby 2.0.0 has been released!! Follow the release link here: http://www.ruby-lang.org/en/news/2013/02/24/ruby-2-0-0-p0-is-released/I run Linux exclusively and my favorite distro is Ubuntu. The following is an install script I used to install Ruby 2.0.0 on my Ubuntu distro. You may need to tweak it a little to meet your needs, however, the actual script is in the support files....

Determine Rails Autoload Paths

Last updated: 02/25/2014 06:20:11 PM

Determining the autoload path for your app at runtime is pretty simple.Create a Rails app.Edit config/application.rb and add the lib directory to the autoload paths.Fire up the Rails consoleAt the prompt, type:If you created your rails app in the /tmp directory, then, you should see something like the following:It will work in any Rails environment: test, development, production....

Ruby 2.0.0, Apache, and Passenger

Last updated: 02/25/2014 06:19:45 PM

I was very excited when I noticed that Ruby 2.0.0 had been released. I jumped through all of the hoops to install Ruby 2.0.0 and ran into a small snag while testing everything on my staging server. While trying to install Passenger on my staging server the following error occurred:After digging around a little bit I figured out something that would work:passenger-4.0.0.rc4.gem is the file that was produced at the time of this writing. You...

Runnable And Non-Runnable Files

Last updated: 02/25/2014 06:19:28 PM

DuckTest automagically runs tests by watching directories and files for changes. You define the files that are watched and ran using directives in a configuration file specific to your environment: test, development, production (BTW, running tests in production is not recommended). All attributes are configured inside a DuckTest.config block.Watched files are broken down into two categories: runnable and non-runnable.To understand all of the moving parts, it is important to explain how files are watched. The...

Duck Test Quick Start

Last updated: 02/25/2014 06:19:14 PM

Duck Test facilitates running tests within the Rails IRB console. Running tests are essential to solid application development and the standard Rails mechanism for running tests does a fine job. However, as the Rails framework has matured coupled with the plethora of gems available to developers the start up of the Rails environment can increase to a point that can make TDD a bit painful. Ducktest runs within the Rails console allowing the developer to...