Image optimization is crucial in web development for improving website performance. Two popular Node.js packages for image compression are Sharp and Imagemin. In this post, we will compare these two libraries in terms of image size reduction and processing speed.
Techniques for Compressing PDF Files
Have you ever been tasked with reducing the size of a PDF file. Or tried uploading a PDF file to a website that has size limitation? Here I will be showing you two ways to reduce the size of PDF file using Nodejs.
Laravel: This form is not secure
This form is not secure, autofill has been turned off
Have you ever been frustrated with the the situation in the topic above? In my case, we have an nginx reverse proxy with ssl certificate which has configuration that points to each internal application exposed through the reverse proxy. The ssl certificate of the reverse proxy ought to cover for all the applications exposed through it, so that we don’t need to generate ssl certificate for each application.
Python 3: Get First and Last element of a list
Sometimes, you are presented with a list in python, and you will like to get the first and last elements of the list. In other programming languages like JavaScript (es6), you have feature called destructuring for unpacking a list of items.
Sass and CSS Dark theme support
Photo by Atanas Teodosiev on Unsplash
Introduction
The reason for this post is to highlight the steps I took to add dark theme support and why I took certain decisions. Your mileage will vary so see it as a guide and not the gospel. The starter kit used to bootstrap this site already made a few decisions which I wouldn’t want to change like SCSS which is pretty great. With a CSS-In-Js library like styled-components or emotion, few things would have been easier.