Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client – This error actually means you have already sent response to the client and you’re trying to send […]
To list active connections and their details in MariaDB we can use the following queries. Using threads_connected Using processlist Using information_schema.processlist
In multiple cases you might’ve came across the situation where you have to cast a global variable and check the instance beforehand. A most common case in Android environment is […]
In this post let’s see how to install cloud sql proxy and connect to a mysql database setup in Google Cloud Engine Kubernetes cluster. You should have setup gcloud in […]
Miscellaneous commands Celery components View configuration Manage connections Manage DAGs Database operations Tools to help run the KubernetesExecutor Manage pools Display providers Manage roles Manage tasks Manage users Manage variables
To get all deployments under a namespace with kubectl, just run the following command. Example
To get container name using pod name with kubectl, just run the following command. Example
To copy files into a pod we can use kubectl cp command. Syntax This is very similar to docker cp command. Example
Unable to connect to the server: x509: certificate signed by unknown authority – kubectl error when connecting to gcloud pods. How to fix?
When you are using your kubectl for the first time you would face this error – Unable to connect to the server: x509: certificate signed by unknown authority. To fix […]
We are going to use the debian package managers to install Kubectl in Ubuntu. Output Output Output Output Output
To get OS version i.e 32 bit or 64 bit, just run the following command in terminal. This will return the number your processor is based on, 32-bit processor or […]
To pass arguments when you are running a Spring Boot application you can simply assign your parameters to -Dspring-boot.run.arguments To retrieve these params and use them in your code, declare […]
Error: Could not find or load main class org.apache.maven.wrapper.MavenWrapperMain
Caused by: java.lang.ClassNotFoundException: org.apache.maven.wrapper.MavenWrapperMain – How to fix?
When you are using maven as a build tool in your Spring Boot project you will get this error if there is no Maven wrapper found inside the root directory […]
Learn how a key can be dynamic in a MongoDB Node.js native API. In the above code snippet, user_tree is queried using userId. But what if userId is dynamic i.e […]
Updating packages in Ubuntu is sometimes needed to upgrade your Ubuntu to latest version and apply security updates. We can also upgrade all packages in the system to make sure […]
Cypress allows you to add custom assertions as Chai plugins and use them in global scope. I found a good Chai plugin to compare two objects in deep ignoring the […]
To remove duplicates from a simple array, we can use sortedUniq() method provided by Lodash.
Making a DELETE request in Axios is very similar to making a POST or GET request. Let’s assume we are making a DELETE request to delete a user. The endpoint […]
I came across a npm package called cloud-detect that lets you find the name of the cloud provider in a node.js application. Install the cloud-detect npm package in your node.js […]
Depcheck is a tool for analyzing the dependencies in a project to see: how each dependency is used, which dependencies are useless, and which dependencies are unused from package.json. To identify […]
The easiest approach is using regular expressions to detect and replace newlines in the string. In this case, we use replace function along with string to replace with, which in […]
We can use Number.prototype.toLocaleString() method which returns a string with a language-sensitive representation such as thousand separator,currency etc of the number.
To display vertical text with horizontal letters we can use two properties – text-orientation: upright and writing-mode: vertical-rl The output would look like:
Aadhaar is a verifiable 12-digit identification number issued by UIDAI (Unique Identification Authority of India)to the resident of India for free of cost. It’s similar to the Social Security Numbers […]
When your mongodb username or password contains ‘@’ you would get the error Unescaped at-sign in authority section. To fix this you can send the encoded value of @ that […]