Get the day of the week from a date in PHP

Typical of PHP, it’s very easy to get the day of the week from a date, but they also provide the data in multiple format. Three in fact. The first, and arguably the most straight forward is to get the textual name of the day of the week. <?php echo […]

Calculate time left in day in PHP

Before PHP 5.3, finding the difference between two dates was a bit of a pain. Convert the date strings to UNIX timestamps (if they weren’t already), subtract them, and then divide the result until you had each of the components (seconds, minutes, et cetera). As of PHP 5.3+ you can […]

$10 Showdown: Linode vs. DigitalOcean (July 2016)

Been a minute since my last $10 Showdown. Since then, Linode has turned thirteen and doubled the RAM offered on all of their servers for new and existing customers. This means that Linode is offering twice the RAM as DigitalOcean at the ten dollar price point! Here’s the plan overview: […]

How to pull from git

Had a peculiar request on one of my posts asking for a tutorial on how to pull from git. To be honest, I’m not entirely sure if the comment was just trolling or what, but figured may as well do a post on it. Cloning a respository If you want […]

How to make sauerkraut

Sauerkraut is one of my favorite things to make. Incidentally, it’s one of the easiest things to prepare. It’s always an exercise in extreme patience. As they say, “it’s ready when it’s ready”. Before we talk about it being ready, let’s talk about how to start your journey. To begin […]