web page hot reload in plain JavaScript + Apache & PHP 4

web page hot reload in plain JavaScript + Apache & PHP
Hot re-loading, that is automatically updating the web page, when its content changes on the server, into the browser is a convenient developer aid for modern tooling like, webpack, AngularJS, ReactJS, VueJS etc.  I created   super simple  way  by just adding one JavaScript include at the bottom of your file and it works with a ...

Javascript demo of Server Sent Events SSE (EventSource) tutorial 2

Javascript demo of Server Sent Events  SSE (EventSource) tutorial
This  easy to follow tutorial will show you how to stream server data  (sometimes called SSE’s, Server Sent Events) , in real-time to your browser. Using  Javascript’s EventSource API  interface we can seamlessly update and display on a web page real-time  server-sent data  all without the complexities of setting up a web socket server. There’s ...

my Retirement calculator – can you retire now? 2

my Retirement calculator - can you retire now?
I decided to create a modern, easy to use and practical on-line retirement calculator, and I open-sourced it too!  There are ton’s of these available all over the internet, but none really quite had enough details or the specific details I wanted to make them useful.  So I approached this  retirement calculator from the FIRE ...

Top 10 incredibly useful Javascript / Jquery code snippets 1

Top 10 incredibly useful Javascript  / Jquery  code snippets
Here’s my list of 10 useful  JavaScript &  some Jquery code snippets.  The  code snippets below are pretty useful and find myself reusing them again and again in all sorts of situations.  I have created full-page examples of these snippets, go grab them over at my Javascript Github Repo  Note: For the examples the use ...

Log events via PHP to database with Windows or Linux command line

Log events via PHP to database with Windows or  Linux command line
Here’s a neat example (for Linux and Windows systems) of how to easily capture (log) and store the result of some script or program or really anything, in a central database table. Sure you could use just a log file, but spinning up an instance of MySQL (or SQLite) is trivial, and in the long ...

Deepmind’s AlphaStar crushes best StarCraft 2 players

Deepmind's AlphaStar crushes best StarCraft 2 players
So today’s Deepmind’s StartCraft AI, named AlphaStar  neural network AI thoroughly trounced a couple of top StarCraft players. The first set of matches against Dario ” TLO ” Wünsch (StarCraft II player from Germany. TLO is a former Brood War and Supreme Commander player currently playing for Team Liquid.). AlphaStar beat TLO 5 games to ...

PHP on Linux authenticate users with a Windows Server Active Directory 5

PHP on Linux authenticate users with a Windows Server Active Directory
A common request when building INTRANET web applications is to have users use only one  common shared set of  login credentials. Typically in most small and medium businesses this means that logging into a Windows Server of some kind to access the network.  Windows Servers use Active Directory (AD) ,which is  basically Microsoft’s glorified LDAP ...

Easy battery powered Mailbox Door IoT sensor using ESP32 10

Easy battery powered Mailbox Door IoT sensor using ESP32
This post is how I took my rusty (literally) old mailbox and made it into a battery powered smart mailbox (an IoT device) , that sends you an SMS  (text messagE) or MQTT alerts, and in the process  how I  learned about Arduino and particularly  the ESP32 chip which lets us relatively easily  setup with minimal ...

Running Mosquitto MQTT on Windows 10 super easy 17

Running Mosquitto MQTT on Windows 10 super easy
So I’ve been playing with IoT lately,  using platforms such as  Arduino , Raspberry Pi and when it comes to being able to have these devices communicate with a hub or server, the de facto standard is to use a MQTT  server and protocol  . Unfortunately, prior to Windows 10  finding a  native Windows  version is ...