send messagemessage
articles
journals
info

How to render formulas

asbness's profile picture
Published in 
 · 1 year ago
This is a small example of an HTML page rendering Latex equations with Katex on browser side. <!DOCTYPE html> <html lang="en"> <head> <title>Equations</title> <link rel="stylesheet" href="./katex.css"> <script src="./katex.js"></script> <script defer src="./auto-render.js" onload="renderMathInElement(document.body);"></script> <style> /* optional - uncomment and customise next line to change maths font size .katex { font-size: 1em !important; } */ </style> </head> <body> Find $$\{ x, y, z \} \in \N$$ where: $$x^2 + y...

How to install and Configure NVM on Mac OS

asbness's profile picture
Published in 
 · 1 year ago
nvm (Node Version Manager) is a tool that allows you to install and manage multiple versions of Node.js on your Mac. nvm is a version manager for node.js, designed to be installed per-user, and invoked per-shell. nvm works on any POSIX-compliant shell (sh, dash, ksh, zsh, bash), in particular on these platforms: unix, macOS, and windows WSL. To install nvm on a Mac, you will need to follow these steps: Install Homebrew nvm is not available in the default package manager for Mac, so you will need to install Homebrew first. To do this, open a terminal window and run the following command: /bin/bash -c "$(curl -fsSL https://r...

How to add watermark to an images on the fly with .htaccess

asbness's profile picture
Published in 
 · 1 year ago
How to generate a Watermark on the fly Step 1 First, you need to create your one watermark.png image with your favorite image editor and simply call it "watermark.png". Step 2 Create a watermark.php file and copy/past this code: <?php // loads a png, jpeg or gif image from the given file name function imagecreatefromfile($image_path) { // retrieve the type of the provided image file list($width, $height, $image_type) = getimagesize($image_path); // select the appropriate imagecreatefrom* function based on the determined // image type switch ($image_type) { case IMAGETYPE_GIF: return imagecreatefromgi...

Set up Apache and PHP, MySQL and phpMyAdmin with Homebrew on macOS

asbness's profile picture
Published in 
 · 1 year ago
Set up Apache and PHP, MySQL and phpMyAdmin with Homebrew on macOS
TABLE OF CONTENTS Install Homebrew Install Apache and PHP Edit hosts file Edit httpd files Create a SSL sertificate Test it Install mysql and phpmyadmin Setup MySQL Setup phpMyAdmin Conclusion Looking to run your PHP webpage locally on your Mac? Look now further. In this post I will guide you through setting up a local server with SSL. To do it all, I will use the package manager Homebrew. Install Homebrew Open Terminal in macOS and paste the following code from brew.sh to install Homebrew. /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" Install Apache and PH...
loading
Neperos cookies
This website uses cookies to store your preferences and improve the service. Cookies authorization will allow me and / or my partners to process personal data such as browsing behaviour.

By pressing OK you agree to the Terms of Service and acknowledge the Privacy Policy

By pressing REJECT you will be able to continue to use Neperos (like read articles or write comments) but some important cookies will not be set. This may affect certain features and functions of the platform.
OK
REJECT