/Justin Laing

About Justin Laing

Justin is the chief software architect for MerchantOS, a company that provides web based point of sale and inventory control to small retailers.

Floating Point Comparisons In PHP and Javascript

2010-05-25T22:45:59+00:00 January 8th, 2008|JavaScript, PHP|

Here’s the problem. Say you’re comparing two floating point numbers a (71.00) and b (71.00) to see if they are the same. The problem is if you’ve done any calculations to arrive at these numbers they might actually be stored as 71.00000000001. Now if one of them is stored that way and the other isn’t and you compare the two to see if they are equal you’ll get a FALSE as the response, even though they should be the same.

Create a Facebook Application With PHP

2010-05-25T22:45:39+00:00 January 7th, 2008|PHP, Social Media|

This tutorial covers the basics of using the Facebook PHP Client Library and how to get your application started, including, installing the Facebook Developer Application, downloading the Facebook PHP Client Library, create your application, a hello Facebook! example, FBML - Facebook Markup Language and using the Facebook API.

Scraping Links With PHP

2010-05-25T22:45:54+00:00 January 6th, 2008|PHP|

In this tutorial you will learn how to build a php script that scrapes links from any web page, some things that can be created via scraping links and the legal issues associated with scraping content.