The Ruby Craftsman


  • Postgres Regex Parsing

    For some reason a Ruby array of BigDecimals was being inserted into a String column in our Portgres DB. With a lot of trying out different things and some help from another software developer and DBA we came up with a solution to parse out the numbers. The goal was to convert a string of ["83000.0", "119000.0"] to an PG array {83000.0, 119000.0}. It Take some regex, but it’s doable.

    Read more

  • Why use ActiveMocker?

    959 Tests in 4.9 Seconds

    Read more

  • Growing Up With Football

    Somewhere in between middle school and my freshman year of high school my Dad came into my room to try to convince me to play football. He had tried before and I always said no, but this time he a pitch that was much more up my alley.

    Read more

  • Early Memories With Technology

    My earliest memory of using a computer was a computer running DOS. To login my dad had made the password the numeric part of our address so I would memorize it. I remember one game that was side scrolling game where a kid was bouncing on a pogo stick.

    Read more

  • Managing Global State In The Context of a Web Request

    I’m going to be talking about the global state in the context of a web request. When a request comes in it will be running within a thread. That thread exists for the life of the request. If you want to store some state in the context of that thread you can use thread local variables.

    Read more

subscribe via RSS

Subscribe to my mailing list

* indicates required