December 9, 2014 by Daniel P. Clark

Ruby & Ruby on Rails Methods for Discovery Part 1

When I program I see it as both an art and a challenge.  The art is in the how.  The challenges I see as detective work.  The answer is unknown as of yet, and it’s your job to sleuth it out.  A detective hunts down the clues until an answer is found.  Yes, that is…

Continue Reading »

August 4, 2014 by Daniel P. Clark

Create a Game Instance in Rails

So you need to load a class instance in Rails for your visitors to play your game. But Rails generally is a static website with static database lookups. So for this we’re going to assign a class instance to a game room. First let’s generate our project; we’re going to start with a prebuilt devise/bootstrap…

Continue Reading »

August 1, 2014 by Daniel P. Clark

Manual Polymorphic Creation in Rails

Finding documentation online to do this was pretty much a no go.  The answer I’ve provided here was grasped from hints given on many websites of what could be done but without anything I could really sink my teeth into. What this code allows you to accomplish is to create a belongs_to/has_many relationship to something…

Continue Reading »

May 8, 2014 by Daniel P. Clark

Ruby SSL with Twitter failed on cert OpenSSL issue on Windows 7

I’ve searched high and low for an answer to this. Many people have their own answers. None of them have worked for me. I’ll provide the situation. So I want to access twitter and upon using net:HTTP’s post function I get this error. SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed  Yes…

Continue Reading »

May 3, 2014 by Daniel P. Clark

Code Golf Challenge Unique Base 64 Incrementor

The goal is to write a script that will use your (Base 64) numbering system and never repeat any character within the string while incrementing. When you rollover a big number that jumps to the next place value you need to substitute it with the next unique in place… example (in Base 10) 0985,0986,0987 jumps…

Continue Reading »

Page 7 of 7
1 5 6 7
1 5 6 7