MrAnt

Rumblings from a tired mind

Contact

Power Apps are rubbish #206

I want to set a field in a SharePoint List to the current User Easy enough. You can use the Patch Command to update a record in a SharePoint list so as follows? Nope Thanks for the Low Code solution Microsoft!

VPS Hosting comparison

Digital Ocean, Hetzner, Linode and Vultr offer some fantastic Virtual Server solutions from as little as $5. A comparison table of the entry level virtual servers from these three providers are listed below and any of them will provide a great solution if you want to run your own server. Linode and Digital Ocean have …

Read more

Show vehicle positions with the Google Maps v3 API

Most people are already familiar with Google Maps, so why not utilise that to present your business data to your users. Today I am going to show you how to use the Google Maps API to track vehicles using their AVL data. This is something I have done for the Fire Service to show the location of Fire Engines across the county.

For this we are going to need the following:

  • JQuery
  • The Google Maps JavaScript API
  • A page that displays the google map
  • Some JavaScript to pull the vehicle locations
  • A PHP Script to serve the vehicle locations
  • A way to generate dynamic icons

To start with we will need a simple page that will include the required JavaScript, StyleSheets and HTML code to provide a placeholder for the Google Map.

Read more

Generating Dynamic Icons for Google Maps with PHP

Google Maps provides a standard Marker marker image that looks like this and whilst I do not intend to offend Ji Lee, this icon can be replaced with an image of your choice. By using PHP to create an image dynamically on the fly you can have images that provide much more information.

Read more

Categories PHP

UwAmp cURL error 60: SSL certificate problem

UwAmp cURL error 60: SSL certificate problem: unable to get local issuer certificate (see http://curl.haxx.se/libcurl/c/libcurl-errors.html) If you get the above error you may need to specify a certificate file in your PHP.INI which you can download from https://curl.haxx.se/ca/cacert.pem Once downloaded edit your PHP.INI and set the following

Testing Stripe Webhooks with Localhost

Stripe allows you to test your webhooks, but if you are running a local development environment such as UwAmp then it is difficult to integrate. The solution is to use Putty to create a reverse tunnel to publish the local dev enviornment through your webserver. On NGinx on the VPS server you need to allow the remote port …

Read more