Category: General

General content for site.

Inline CSS Code for Responsive iFrame Using YouTube Video

Here is a simple example of how to make an iframe responsive for a YouTube video using inline CSS. <div style="position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;"> <iframe style="position: absolute; top: 0; left: 0; width: 100%; height: 100%;" src="https://www.youtube.com/embed/YOUR_VIDEO_ID" frameborder="0" allowfullscreen></iframe> </div> Please

Cookies are Becoming Taboo - Time to Use Browser Session Storage

Given the concerns around cookies and their limitations, such as small storage capacity, privacy concerns, and the fact that they can be blocked by users, storing values in a browser session might indeed be a more privacy-conscious and user-friendly alternative. Session storage is a part of the Web Storage API, alongside local storage, and is designed to hold data for the duration of a page

How to create self-signed ssl certificate for domain

Why self-signed certificate? I use "real looking" domain names on a local server using AlmaLinux and need SSL for real life testing. IMPORTANT: when you see the line below in your terminal / putty, be sure to add your domain name. For Example: Common Name (eg, your name or your server's hostname) []:example.com To create a self-signed SSL certificate for example.com, you can follow these steps:

Using GitHub to jsDelivr CDN

Did you know that you can use the wonderful and FREE JSDelivr CDN to deliver your GitHub project files? Yes, you can! For instance, go here and enter the URL to one of your GitHub project files. You will enter in this type of format and MUST be done for each file: https://github.com/oleteacher/Qik-Exit-Intent-Popup/blob/main/js/bioep.min.js Then the JSDelivr page will return something like this:

Installing Office 2019 Without a Product Key

Download from here and install Office 2019 Once installation is completed, you can open any Office program to verify some basic information. Skip the “enter product key” window by clicking close button at the top right corner. IMPORTANT: Bypass “Enter your product key” modal. Do NOT enter any keys. Open one of the installed programs and you will see in PRODUCT NOTICE that the trial

CORS and htaccess

This works on most all my servers to setup cors: <IfModule mod_headers.c> Header always set Access-Control-Allow-Origin "https://cdpn.io" Header always set Access-Control-Allow-Methods "POST, GET, OPTIONS, DELETE, PUT" Header always set Access-Control-Allow-Headers "x-requested-with, Content-Type, origin, authorization, accept, client-security-token" </IfModule> This works on most of

No Cache for Apache

Navigate to your httpd.conf file (xamppapacheconf) and open it using your favourite text editor. If you do not have access to this folder/file, open your .htaccess file instead. Underneath the "#LoadModule" lines, add the following: # Instruct the browser to always check for the latest version of your files using Apache directives <IfModule mod_headers.c> <FilesMatch