ssl certificate proxy

Posted on Saturday, June 21, 2014


I recently had an issue with testing a license on a flash program.  This flash program would only work when being accessed through certain urls.  For example it would only work on www.example.com or https://test.example.com but not on others.
Unfortunately the license I was using had not added a test address I commonly use and the only addresses they did add where secure addresses https….
Had it not been a secure address I could just simple update my /etc/hosts file and point that particular url to localhost 127.0.0.1.   But that was not what I had been given.
Here is my solution to this problem using an nginx server.

nginx on OS X

Posted on Thursday, June 19, 2014


Recently I had to install nginx on my OSX machine for some testing…. And I ran into some permission issues.
First I am using brew to install nginx on OSX.  The Brew website is located at http://brew.sh/ [1].  The command line install ‘one liner’ is located at the bottom of the page

Scala and Fibonacci

Posted on Saturday, June 14, 2014


After doing a few neat one liners in Scala I wondered what was a slick way to calculate the Fibonacci numbers using Scala.


The simplest solution was made by Luigi Plinge. And here it is




val fibs: Stream[Int] = 0 #:: fibs.scanLeft(1)(_ + _)



Scala Create All Paths

Posted on Thursday, June 12, 2014


I was recently talking to a colleague of mine who had been presented a problem from a friend of his.   In Scala take a files path as a string and return all sub paths of that string.

… In other words

Given a path as a String like this


val str:String = "/foo/bar/test/me"