How To Modify Files Inline Using PERL Edit In Place

Author: , July 8th, 2020

How To Get a Formatted Date in Perl

Author: , July 8th, 2020

How To Pretty Print JSON in PHP

Author: , June 11th, 2020

If you ever want to view your JSON as a human ;-} $pretty_json = json_encode($data, JSON_PRETTY_PRINT); https://www.php.net/manual/en/function.json-encode.php

How To Merge Object Variables in PHP

Author: , June 11th, 2020

$merged_object = (object) array_merge((array) $object1, (array) $object2);

How To Vertically Align Blocks Using CSS

Author: , June 4th, 2020

Outer Block – set the line-height: {some value} Inner Block – set the line-height: normal, along with display: inline-block; vertical-align: middle; Also works if you set OUTER height instead of the line-height (or together with the same value as the height).

How To Prevent Automatic HTML Line Breaks

Author: , May 14th, 2020

Recently, I had a list of command-line options in a table, and my browser was automatically inserting a line-break in-between the hyphen and the option character.

To prevent this, I simply added a little CSS:

NOTE: Never use the

HTML directive – it is obsolete!

How To Change the Destination Admin Email Address for User-Meta Pro Notifications

Author: , May 11th, 2020

Snow in May!

Author: , May 9th, 2020

How To Empty the Cache in Prometheus Using Curl

Author: , May 7th, 2020

I wanted to empty the time series data cache from the Prometheus server to start clean. The best practice is to use the administrative HTTP API via curl. For example, to clear all data for job mysqld as defined in the prometheus.yml configuration file:

If you want to delete ALL data from Prometheus, then […]

First Hummingbird Sighting!

Author: , May 6th, 2020