We have a task to take a number and convert it into Roman numerals. That’s easy, right? Lets work through the problem.
Continue reading “Thinking Like a Programmer – Roman Numerals”
Moonlight Coding
We have a task to take a number and convert it into Roman numerals. That’s easy, right? Lets work through the problem.
Continue reading “Thinking Like a Programmer – Roman Numerals”
I recently solved a situation where Apache was unable to start as a service under SystemD using systemctl start httpd
, but started no problem using httpd -k start
. This issue took place on our fleet of CentOS
servers, but only affected one of them.
Continue reading “Apache Cannot Start as Service, Starts Manually”
It is super easy to implement authentication via an app where your users get a new code every 30 seconds.
Continue reading “2FA with Authenticator App, No SMS Needed”
When upgrading to the next release of PHP it’s nice to be able to test it in place. Continue reading “Run Multiple Versions of PHP in a Single Apache Vhost”
Recently I had need to shuffle an array, but keep the associative keys. Here’s the simple function to do that. Continue reading “PHP Array Key Value Shuffle”
I use the PPAs for both Apache and PHP. I know that when running apt update
downloading from the PPAs takes a while. This post describes how to set up a local apt mirror to speed that up.
Keeping the server spec up to date take regular effort. In this post we will discuss how to set up and enable some of the most recent web technologies.
Continue reading “Enabling TLS v1.3, HTTP2, and Push on Apache 2”
I’ve been wanting to have a simple password generator. There are a few solutions out on the internet, but none quite what I wanted. Here is a simple and customizable JavaScript password generator.
The Ubuntu repo has version 0.16, while the current version is 2.5. It’s really out of date and does not work properly.
Continue reading “PSA: Do NOT Use the Repo Version of Prometheus on Ubuntu”
I had need to use Google’s C++ unit testing frame work, gtest
, in one of my projects. I spent a lot of time Googling on what folders to include, where to put it, how to configure cmake
, etc. Here’s the guide so you don’t end up pulling out your hair like I did.
Continue reading “Integrating gtest with cygwin and cmake on Windows”