Skip to content
Lupe Code

Lupe Code

Moonlight Coding

  • Home
  • Posts

Category: Code

Posted on 2020-08-222021-04-06

Thinking Like a Programmer – Roman Numerals

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”

Posted on 2019-09-122020-02-08

Run Multiple Versions of PHP in a Single Apache Vhost

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”

Posted on 2019-09-112019-09-11

PHP Array Key Value Shuffle

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”

Posted on 2019-09-072020-08-04

Setting Up a Local Apt Mirror for PPAs

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.

Continue reading “Setting Up a Local Apt Mirror for PPAs”

Posted on 2019-05-042019-09-07

Enabling TLS v1.3, HTTP2, and Push on Apache 2

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”

Posted on 2019-03-272019-05-04

Random Password Generator in Javascript

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.

Continue reading “Random Password Generator in Javascript”

Posted on 2018-11-122019-05-04

Integrating gtest with cygwin and cmake on Windows

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”

Posted on 2018-10-142019-05-04

Monty Hall Paradox

The Monty Hall paradox is a paradox because it is counter-intuitive even though it is mathematically correct.  This article demonstrates with PHP code how the paradox works.

Continue reading “Monty Hall Paradox”

Posted on 2018-07-262019-05-04

Getting More A+ SSL Ratings

In this post I mentioned about getting an A+ rating on ssllabs.com.  It was not easy for me to get an A+ on some of the other sites like HT Bridge, but I finally got it!  And with it I got compliance with:

  • PCI DSS
  • HIPAA
  • NIST

Continue reading “Getting More A+ SSL Ratings”

Posted on 2018-04-202019-05-04

Make and Unmake Sites, Automated; Single-Domain Version

This post is similar to Make and Unmake Sites, Automated with the difference that this is for a single-domain server created in Spinning up a single-domain web and email server.

Continue reading “Make and Unmake Sites, Automated; Single-Domain Version”

Posts pagination

Page 1 Page 2 Page 3 Next page
Powered by WordPress / WordPress Maintenance Service By Website Helper