Detect bots and spammers with Project Honey Pot and PHP

By Josh Sherman
2 min read
development
open-source software
php
spammers

Project Honey Pot is one of my favorite services. They offer an API that allows you to pull information on an IP address. This comes in very handy when vetting traffic coming to your website. I discovered the service a few years back after realizing that I had some spammers […]

How to convert a string to a time with PHP

By Josh Sherman
1 min read
development
php

Converting a string to a timestamp is one of my favorite things about PHP. In fact when trying to decide which language to build [HolidayAPI][holidayapi] in I couldn’t find an implementation of PHP’s strtotime() that rivaled the original. The strtotime() function takes a textual string as input and then spits […]

Cutting the cord on cable

By Josh Sherman
6 min read
personal finance
productivity

IT HAPPENED, IT FINALLY HAPPENED! I have been fighting the good fight against my wife for a while now. Why are we paying for Netflix, Hulu, Amazon Prime and the occasional Redbox movie on top of paying for cable? NO MORE! We are now cable free and I couldn’t be […]

Set array pointer to a specific key or value in PHP

By Josh Sherman
2 min read
development
php

PHP arrays are absolutely fantastic. They hold stuff, doesn’t really matter what. The interfacing is pretty consistent and there’s a boat load of built-in array functions. What PHP lacks is the ability to set the array pointer to an arbitrary key or value. There are ways to move forward and […]

Safari bug when signing up for Twitter

By Josh Sherman
1 min read
apple
safari

Wasn’t entirely sure what I was going to blog about today when a stroke of inspiration occurred after the wife was strugglging to create a new Twitter account for an upcoming adventure. I tried it from her computer and everything seemed fine. She said it was because I type faster […]