Google Maps Geocoding Example with PHP

Today’s code is a Google Maps geocoding example with PHP and we also use some Google Maps JavaScript to show the geo-coded data on the map.

You can use this code if you want to create a store locator. Why this is useful? Imagine if you have several addresses on your database, you will never want to manually pin point the latitude and longitude of each of those addresses.

That’s why we have the geocoding method. Just input the addresses and Google will try to identify the approximate location of that address.

The contents of this post include:

Continue reading

Yo App Super Funny Comments

Few days ago, an app called “Yo” was released. Like the name suggests, the “Yo” app has one simple function: sending a single message: Yo.

How it works? You create a list of contacts. You tap one of those contacts, and they get a “Yo” message. According to the app’s description, it can mean pretty much whatever the sender wants it to mean, depending on context:

yo app super funny comments

Continue reading

Product Unit of Measure Conversion Pseudocode

I don’t know if we will have the same term in mind, but here in our country we call it Product Unit of Measure or UOM. For example, we have a “candy” product. Possible unit of measures could be: pieces, packs and boxes.

The purpose of this post is to solve the problem of converting product quantity or inventory values in different unit of measures. I think SAP has this functionality. Just in case you want to have the same in your current program, keep on reading!

Unit of Measure Conversion Pseudocode

The following questions might give you some more ideas about this post:

How many box are 132 pieces?
How many box are 309 packs?
How much of a box are 33 pieces?
How much of a box are 5 packs?

…and many other combinations. So let’s get started!

Continue reading