Skip to Content

David Cao

David is a Cloud & DevOps Enthusiast. He has years of experience as a Linux engineer. He had working experience in AMD, EMC. He likes Linux, Python, bash, and more. He is a technical blogger and a Software Engineer. He enjoys sharing his learning and contributing to open-source.

Optimizing the PostgreSQL database server’s performance heavily relies on adept memory management. The server’s behavior is governed by settings in the postgres.conf file. While default parameter values are provided, customizing these to align with specific workloads and operational environments can significantly boost efficiency. Understanding PostgreSQL’s Memory Architecture PostgreSQL categorizes memory into two distinct types: Local …

Read More about Understanding PostgreSQL’s Memory Architecture

To open a port with Python, you typically create a server socket that listens on a specific port for incoming connections. Here’s a simple example of a server that listens on a specific port: import socket # Create a socket object s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) # Define the port on which you want to connect …

Read More about Open a listening Port with Python

You can utilize systemd-logind configurations or set up a custom script to terminate idle sessions. Here are the two methods. We have verified on RHEL Linux. Using systemd-logind (For Systems with systemd) Edit logind.conf: Open the /etc/systemd/logind.conf file in a text editor. You’ll need administrative privileges to edit this file. sudo vi /etc/systemd/logind.conf Configure StopIdleSessionSec: …

Read More about 2 ways to automatically terminate idle sessions in a Linux system

The error message “SSL: SSLV3_ALERT_CERTIFICATE_EXPIRED” indicates that the server you’re trying to connect to has an expired SSL certificate. This can cause issues when accessing websites, using APIs, or connecting to any secure service that relies on SSL/TLS for encryption. Here’s a detailed guide on how to fix this error, step-by-step: Verify the Certificate Expiry …

Read More about Solution for “SSL: SSLV3_ALERT_CERTIFICATE_EXPIRED” Error: A Detailed Guide

To find dates that are greater than today’s date in Excel, you can use the IF function combined with a logical comparison. Assuming your dates are in column A starting from A1, you can use the following formula in cell B1: =IF(A1>TODAY(), A1, “”) This formula checks if the date in cell A1 is greater …

Read More about how to find date greater than today’s date in excel

The process of dividing data from one column into multiple columns in Excel involves using the “Text to Columns” feature. This function allows users to separate a single column of data into different columns based on specific criteria such as delimiter characters, fixed width, or other separators. Here’s a step-by-step guide on how to achieve …

Read More about How to Separate Data from a Single Column into Multiple Columns in Excel