Upgrade to PHP 5.6 on Ubuntu 14.04 LTS

By Josh Sherman
1 min read
development
php
linux
ubuntu

PHP 5.6 is finally here and if you’re on Ubuntu 14.04 LTS you’re stuck with an older version of PHP. If you want to take advantage of the new awesomeness, you can do so very easily thanks to a PPA. If you’ve never added a PPA before, you will want […]

jQuery plugin to calculate read time

By Josh Sherman
1 min read
development
javascript
open-source software
reading

I love hosting my blog on GitHub by way of Jekyll but the Liquid templating system is far from a robust scripting language in my opinion. With the rise of Medium, I’ve been seeing the read time on more and more articles and figured it was time to add the […]

Fizz Buzz in PHP

By Josh Sherman
1 min read
development
php
career

Fizz buzz is a fairly common screening question to help sniff out non-programmers during the interview process. The task is to print out numbers 1 through 100 but for multiples of 3 print out “Fizz” instead of the number and for multiples of 5 print “Buzz” instead. If the number […]

Are GAWMiners Hashlets worth it?

By Josh Sherman
6 min read
reviews
bitcoin

I’ve only been the owner of a Hashlet from GAWMiners / ZenCloud for less than a week and I’m liking what I’m seeing thus far. My initial investment was a mere 15.99 USD for a 1MH/s Hashlet and honestly, the purchase itself was the most rocky situation. Seems with the […]

How to execute an HTTP POST using PHP cURL

By Josh Sherman
1 min read
development
php

I’ve been doing a lot of API integration recently and cURL ends up being exceptionally handy when you are POSTing to an endpoint. Fortunately using cURL in PHP is really easy: // Sets our destination URL $endpoint_url = 'https://somesite.com/path/to/endpoint'; // Creates our data array that we want to post to […]