image optimization



Compressing PNG images on Linux

  • avatar
  • 7.7K Views
  • 6 Likes
  • 4 mins read
Preview image

PNG is short for Portable Network Graphic, a type of image file. It’s particularly popular file type with web designers and widely used on websites to display high-quality digital images because it can handle graphics with transparent or semi-transparent backgrounds. PNG files, which use the .png extension, can handle 16 million colors - which definitely sets them apart from most file types.

Setting up SQLite with Docker Compose

  • avatar
  • 28.6K Views
  • 26 Likes
  • 8 mins read
Preview image

Creating a Docker image with an SQLite database is a smart way to ensure that your application runs consistently across different environments. Docker simplifies the deployment process by allowing developers to package applications with all their dependencies into a single container. SQLite, being a lightweight database, fits well into this scenario. In this article, we'll walk through the steps needed to create a Docker image that includes an SQLite database, using Docker Compose for easy management.

Containerizing Laravel Application using Docker

  • avatar
Preview image

In the world of modern web development, containerization has emerged as a popular approach for packaging applications, providing isolated environments, and simplifying deployment processes. Docker, an open-source platform, has gained significant traction in this regard, allowing developers to encapsulate their applications and dependencies into containers. In this article, we will explore the benefits and steps involved in Docker containerization of Laravel applications, a popular PHP framework.

 Join Our Monthly Newsletter

Get the latest news and popular articles to your inbox every month

We never send SPAM nor unsolicited emails

Clean unused CSS with PurgeCSS & Laravel Mix

  • avatar
  • 10.7K Views
  • 4 Likes
  • 5 mins read
Preview image

PurgeCSS is a tool to remove unused CSS. When you are building a website, you might decide to use a CSS framework like TailwindCSS, Bootstrap, MaterializeCSS, Foundation, etc... You will only use a small set of the framework but a lot of unused CSS styles will be included.

PurgeCSS analyzes your content and your CSS files. Then it matches selectors used in your files with the ones in your content files. It removes unused selectors from your CSS, resulting in smaller CSS files. PurgeCSS comes with a JavaScript API, a CLI and plugins for popular build tools.

Containerizing Symfony Application using Docker

  • avatar
  • 4.9K Views
  • 1 Like
  • 11 mins read
Preview image

Containerization has become widely adopted in contemporary web development as a means of bundling applications, offering isolated environments, and streamlining deployment procedures. Docker, an open-source platform, has gained substantial popularity by enabling developers to package their applications and dependencies into containers. In this article, we will explore the benefits and steps involved in Docker containerization of Symfony applications, a popular PHP framework.

Practical guide to PHP 8.5 containerization

  • avatar
  • 4.1K Views
  • 1 Like
  • 7 mins read
Preview image

Containerization for PHP 8.5 gives a simple, predictable and practical way to run applications without worrying about what the host machine has installed. A container bundles PHP, extensions and all required tools in one place. This helps teams keep things clean, reproducible and easy to work with. The idea is straightforward: you build an image, start containers from it and share the image when needed. PHP 8.5 brings performance improvements and a smoother developer experience, so pairing it with Docker is a natural step for modern projects.

Getting started with Memcache for PHP

  • avatar
  • 3.4K Views
  • 1 Like
  • 5 mins read
Preview image

Memcache is a caching system that stores data in memory to make applications faster and more efficient. It works across multiple languages, including PHP, Python, Ruby, and others. In the context of PHP, it can reduce database load and speed up page rendering by keeping frequently accessed data available in memory. This article focuses on how to use Memcache specifically with PHP.

Your first Docker Hub image from scratch

  • avatar
  • 3.5K Views
  • 2 Likes
  • 7 mins read
Preview image

Docker provides the ability to package and run an application in a loosely isolated environment called a container. The isolation and security allow you to run many containers simultaneously on a given host. Containers are lightweight and contain everything needed to run the application, so you do not need to rely on what is currently installed on the host. You can easily share containers while you work, and be sure that everyone you share with gets the same container that works in the same way.

Maximizing MySQL performance with indexes

  • avatar
  • 2.2K Views
  • 2 Likes
  • 6 mins read
Preview image

Indexes are one of the tools MySQL uses to make data access faster. Without them, the database engine has to scan every row in a table to find matching records. This kind of full scan can be slow, especially when dealing with large datasets. Indexes allow MySQL to skip most of the table and go straight to the rows it needs. They're not just about speed, though. Indexes also help with enforcing uniqueness, sorting results, and supporting specific types of queries. But they come with trade-offs, like extra storage use and slower write operations.

Docker compose introduction

  • avatar
  • 3.2K Views
  • 3 Likes
  • 8 mins read
Preview image

Docker Compose is a tool for defining and running multi-container Docker applications. With Compose, you use a YAML file to configure your application’s services. Then, with a single command, you create and start all the services from your configuration.

The features of Docker Compose that make it effective are: