Common measurement conversions in PHP

One of the tricky things about being a web developer is that you are sometimes forced to accommodate visitors that use different measurement systems and formats. Currency symbols, date formats and measurement systems can all differ from one user to the next. The following PHP code snippets will help you to convert between some of […]

Read More...

How to tell if a player is friendly on DayZ.

DayZ is a multiplayer game that thrusts you into a harsh and unforgiving post-Soviet world where you are forced to survive against the elements, zombies, and other players. There is no end-game. You simply spawn on the shore of an enormous landmass with nothing but a flashlight and the goal of surviving for as long […]

Read More...
This article was posted in Gaming on January 15, 2014.

Slow MySQLi connection on Windows 7.

Not so long ago, I came across a peculiar issue with PHP’s MySQLi extension. For some strange reason, using the string “localhost” in the constructor will sometimes result in an unexpected delay in connectivity. For example, connecting to MySQL will take 1-2 seconds. This is despite the fact that the DBMS is on a local […]

Read More...

How to bullshit your way through football conversations.

If you don’t know anything about football, simply use one of our talking points below. In conversations about soccer, most men will just tirelessly repeat the exact same cliches to each other. Pick any defensive midfielder and call him “underrated”. It doesn’t matter who he is, just as long as he’s a holding midfielder who […]

Read More...

Generating Google Maps markers with PHP.

On too many occasions, I’ve come across developers using PHP loops to print out large amounts of JavaScript data. This seems to be particularly common among coders who are trying to generate multiple markers for the Google Maps API. Typically, they will grab a bunch of long / lat values from their database and then […]

Read More...

Do Irish people call it soccer or football?

This question arose during one of those riveting “soccer vs. football” debates. Predictably, it didn’t take long before the discussion devolved into an argument, with random punters from different countries around the world throwing their handbags at one another and calling each other names. God bless the Internet. Wait, what’s the issue here? To Americans, […]

Read More...

PHP – Redirecting a form with POST variables.

On more than one occasion, I’ve come across novice PHP developers looking for ways to redirect the user and their submitted form variables to an external website. More often than not, they’ll ask if they can somehow attach POST variables to a header redirect. After this fails and they finally realize that another solution is […]

Read More...

Movie Magic website: A forgotten Irish rental store.

Here are some screenshots of the old Movie Magic website, which no longer exists. Movie Magic was a video rental chain that existed in Ireland up until about 2007 or so. During my early teens, Movie Magic was the store I’d visit whenever I wanted to rent a PlayStation game or a movie. This was […]

Read More...