Daniel Cao

Daniel Cao

3 Ways to Append to list in Python

List in Python are indexed and have a definite count while initializing. The elements in a list are indexed according to a definite sequence and the indexing of a list is done with 0 being the first index and the…

2 Ways to Fix SSL_ERROR_RX_RECORD_TOO_LONG

The error “SSL_ERROR_RX_RECORD_TOO_LONG” usually is a wrong configuration on the server-side. This usually means the implementation of SSL on an external server is not correct. The error is usually caused by a server-side problem which the server administrator will need…

2 ways to fix x509 certificate routines:X509_check_private_key:key values mismatch

For SSL key values mismatch issue, there are two main reasons. Error message about X509_check_private_key:key values mismatch root@s17925268:~# service nginx restart Restarting nginx: nginx: [emerg] SSL_CTX_use_PrivateKey_file(“/etc/nginx/conf.d/ssl/ssl.key”) failed (SSL: error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch) nginx: configuration file test failed Failed…

Python 3 String Operations

lower(): Converts a string to the lowercase letter. upper(): Converts a string to the uppercase letter. islower() / isupper(): Checks if the whole string is in lower case or upper case and returns bool value respectively. startswith(): Returns a bool…

2 Ways to Check DNS server response time

DNS is a system by which a browser or other software converts a domain name to a IP4 or IP6 address. Each time we access a website the browser needs to convert the domain name to a IP4/IP6 address using…

4 Ways to Check OS Version in Linux

The OS version of a Linux distribution can be determined by using the command-line interface as well as a graphical user interface. In Linux, CLI is preferred over GUI as it provides more control over the OS. In this article,…

3 Ways to Fix Too Many Open Files

When the “Too Many Open Files” error message is written to the logs, it indicates that all available file handles for the process have been used (this includes sockets as well). In a majority of cases, this is the result…

Understanding Linux Ulimit Command with Examples

Most UNIX-like operating systems, including Linux and macOS, provide ways to limit and control the usage of system resources such as threads, files, and network connections on a per-process and per-user basis. These “ulimits” prevent single users from using too…