December 11, 2015 by Daniel P. Clark

Faith Defined

The meaning of the word faith has been broken by media and many in society.  It’s become more synonymous with “magical” wishful thinking. “You keep using that word; I do not think it means what you think it means”. Michael Ramsden has quite well expressed the rational behind the typical understanding of faith. In the…

Continue Reading »

December 7, 2015 by Daniel P. Clark

Insecurity

Insecurity – “uncertainty or anxiety about oneself; lack of confidence.” Where does it come from? Why does it exist? There are times when we need to take a deeper look at ourselves and identify what potential insecurities we may have and how to deal with them. Thinking on it I think of a young baby…

Continue Reading »

November 27, 2015 by Daniel P. Clark

Iterative Evaluation

In computer programming, an iterator is an object that enables a programmer to traverse a container, particularly lists. [1][2][3] -Wikipedia Gatcomb, Joshua. “Understanding and Using Iterators”. Perl.com. Archived fromthe original on 2005-06-16. Retrieved 2012-08-08. A user-defined iterator usually takes the form of a code reference that, when executed, calculates the next item in a list…

Continue Reading »

November 13, 2015 by Daniel P. Clark

Implement a Lazy Hash in Ruby

I use the term Lazy Hash in the same way you would call an Enumerator a lazy iterator.  That being; the values don’t get evaluated until they are needed.  In a Hash this is also utilizing memoization, where the value gets assigned the first time it’s used.  E.G. @variable ||= :value Let’s say you own…

Continue Reading »

November 13, 2015 by Daniel P. Clark

Rails Rumble – the Experience

Rails Rumble is a yearly programming challenge.  Each team is given 48 hours to complete and publish a website written in Ruby.  You are permitted solo entry or up to 4 people as a team.  You can do no coding of the project beforehand, but you can draw up and discuss plans as much as…

Continue Reading »

September 21, 2015 by Daniel P. Clark

Introspection by Design in Ruby

If I have one pet peeve in Ruby it’s knowing state at a certain point in the program’s process.  Sure they make plugins for advanced diagnosis of this.  And when you start out learning to program it’s common practice to use puts everywhere to see what’s going on.  But this causes a lot of back…

Continue Reading »

August 15, 2015 by Daniel P. Clark

Install Ubuntu 15 Over the Network PXE/BootP/TFTP NetBoot

No Floppy?  No CD/DVD?  No Bootable USB ports?  No Problem! What I used for the installation: Debian based Linux Distro (CrunchBang++) on my Netbook to act as a Network boot server. Crossover cable (possible with 2nd hub/router setup) External USB Wifi adapter Software for implementation: atftpd lftp isc-dhcp-server Ubuntu 15.04 (Vivid Vervet) Netboot The Process…

Continue Reading »

July 25, 2015 by Daniel P. Clark

Play HD Youtube from the Raspberry Pi Command Line

Quick tip for most Linux distros.  You can just use the mpv player to play a Youtube video from the command line.  It’s a take off on mplayer2, and it has quvi built in.  Unfortunately it’s not available for the Raspberry Pi architecture. Now the Raspberry Pi has some pretty good graphics built in.  But…

Continue Reading »

July 23, 2015 by Daniel P. Clark

Ruby on the Raspberry Pi (free distro image)

I’ve customized my own Raspberry Pi distro (Raspbian) with Ruby 2.2.2 on it.  It’s available for download for you to use.  Here are the details. 4 GB image with 370Mb of free space at a download size of 1.9Gb DOWNLOAD Custom Ruby 2.2.2 on Raspbian Distro (ruby_rpi.img.bz2) User: pi Pass: raspberrypi Checksum:

This Raspbian…

Continue Reading »

June 21, 2015 by Daniel P. Clark

Ruby Refinements – Not quite ready for production

I recently looked for a method on Array for a boolean response on its uniqueness.  As Ruby currently doesn’t have one I figured it’s easy enough to write one.  Now Ruby’s refinements are fairly new and a nice feature to have around.  So I decided to write a benchmark for different ways to test the…

Continue Reading »

1 2 3 4 10