Stampede Press

- Technology Applied -

Author: Stampede (page 2 of 7)

Rock Paper Scissors in Ruby

Recently I’ve been working on developing my Ruby programming skills, simply due to the lots of great opportunities to use it on Linux servers. I’ve been reviewing both the evergreen “Learn Ruby the Hardway” and “The Well-Grounded Rubyist” by: David A. Black which both have ¬†proven to be extremely useful. The LRTHW online platform serves as a great review/introduction while The Well-Grounded Rubyist goes into some nitty gritty details.¬†As an aside, my membership the the ACM (Association of Computer Machinery) has been vital because it gives me access to both the Safari Books library and the Skillsoft library. A lot of books on endless technical topics, too bad studying couldn’t be your day job.

So at last to make some of this knowledge “my own” so-to-speak I’ve developed a basic command line version of “Rocks Paper Scissors”

It can currently be found on my GitHub page:

MD5 Checksums

This is a quick and easy bit of command line to check the integrity of your files. Many downloads can come with a md5 checksum file or you can create your own for your own files.

 After running the compare command you will see if the files have been altered, be it by you or outside nefarious forces.

Create md5 file:

md5sum > checksum.md5

Compare md5 file against files :

md5sum -c checksum.md5

Successive Approximation

I’ve been reading a lot about various algorithms lately, and there are a number that just strike me in awe. Their simplicity and efficiency at solving a problem are as masterful and poetic as a well written Haiku. It’s really fascinating.

I have a great example for you called the successive approximation of square root values, and I have written a program for you in C to demonstrate it in action.

Continue reading

Older posts Newer posts

© 2017 Stampede Press

Theme by Anders NorenUp ↑