×


Blog


Reverse a String in Python - How to do it ?

This article covers the procedure on how to reverse a string in Python. Strings can be reversed using slicing. To reverse a string, we simply create a slice that starts with the length of the string, and ends at index 0.

To reverse a string using slicing, write:

$ stringname[stringlength::-1] # method 1 

Or write without specifying the length of the string:

$ stringname[::-1] # method2

The slice statement means start at string length, end at position 0, move with the step -1 (or one step backward).


Configure HTTP/2 in Nginx on Ubuntu 20.04 - Best way to do it ?

This article covers how to enable HTTP/2 on the Nginx webserver on Ubuntu 20.04. In fact, the primary focus of HTTP/2 is to reduce overall web page loading time, thus improving performance. It also focuses on network and server resource usage as well as security because, with HTTP/2, SSL/TLS encryption is mandatory.

If the Nginx server is sitting behind a web application firewall, ensure that the web application firewall (WAF) is capable of parsing HTTP/2 traffic.

HTTP/2 protocol main advantage over its predecessor HTTP 1.1 is that it has a higher transfer speed required for content-rich websites.


Ghostscript for Changing the Resolution of a PDF - How to use this tool in Linux Mint System ?

This article covers the step by step guide to install Ghostscript on your Linux system and use it for changing the resolutions of your desired PDFs. You can use Ghostscript command line tool for compressing a PDF file. Most Linux distributions include the open source version of Ghostscript already. However, you can still try to install it just to make sure.

On Debian/Ubuntu based distributions, use the following command to install Ghostscript:

$ sudo apt install ghostscript


Hidden Files and Directories in Ubuntu Linux System - How to create and view them ?

This article covers how to create and view hidden files and directories in Linux via command line and GUI. We also covered how to unhide the files and directories in Linux through a keyboard shortcut, command line, and File Manager. In fact, Linux, by default, hides many of the sensitive system files. Hidden files are usually system or application files, concealed to prevent accidental changes.


Install and Configure Redis on CentOS 8 - Step by Step Procedure ?

This article covers the complete Installation guide of Redis on the CentOS 8 system. Redis is an open-source in-memory data structure store. In fact, You can use it as a Memcached alternative to store simple key-value pairs, as a NoSQL database, or even a message broker with the Pub-Sub pattern.

Also, Redis supports data structures such as strings, hashes, lists, sets, sorted sets with range queries, bitmaps, HyperLogLogs and geospatial indexes with radius queries. Redis has built-in replication, Lua scripting, LRU eviction, transactions and different levels of on-disk persistence, and provides high availability via Redis Sentinel and automatic partitioning with Redis Cluster.


Automatic Kernel Updates on Linux - How to Configure it ?

This article covers the procedure on how to set up automatic kernel updates on Linux. In fact, Applying security updates to the Linux kernel is a simple process that can be done with tools like apt, yum, or kexec. 

For organizations with more than a few servers, live patching is the best option. It is an automatic way to fix the Linux kernel while the server is running, making it more efficient and safer than manual methods.