MySQL is a popular open-source relational database management system used for web applications. Creating a new user and granting permissions in MySQL is a crucial step in securing your database. […]
Rsync is a powerful tool for syncing files and directories between local and remote systems. It is a popular choice for backup and mirroring tasks, as it can efficiently transfer […]
One of the most popular tools for working with JSON is jq, a command-line tool that is designed to manipulate and transform JSON data. In this article, we will take […]
React is a popular JavaScript library for building user interfaces. Bun is a build tool that is designed to work with React, and it can help you build React applications […]
React is a popular JavaScript library used for building dynamic user interfaces. Vite, on the other hand, is a fast build tool and development server that provides an instant feedback […]
In recent years, ReactJS has become a popular choice for web application development. However, as with any technology, there are certain security vulnerabilities that developers need to be aware of. […]
Basic Editing Navigation Search Debugging Extensions Editor Management User Interface Source Control I hope that this list helps you with your work in Visual Studio Code!
When working with dates in Python, it’s important to know how to format them properly. In this article, we will discuss the basics of how to format dates in Python, […]
Python is a popular scripting language that is widely used for data analysis, automation, and web development. By reading a file line by line with Python, you can process large […]
When working with Python, there may be times when you need to execute shell commands directly from your Python code. This can be particularly useful for automating tasks, managing system […]
Python provides several ways to write data to a file, including using the built-in open() function and the with statement. In this article, we’ll cover how to write to a […]
Validating a Social Security Number (SSN) using regular expressions in Java is a common task when working with user input. A regular expression is a pattern that defines a set […]
Docker is a popular platform that allows developers to create, deploy, and run applications in containers. However, when working with Docker, it’s important to keep your system clean and remove […]
When building web applications with React, you may want to set focus on a particular element after it has been rendered. This can be useful for improving the accessibility of […]
Java 8 introduced a new Stream API that makes it easy to process collections of data. One of the most common tasks when working with streams is collecting the results […]
Spring Boot is a popular framework used to develop Java-based web applications. By default, Spring Boot applications run on port 8080. However, in some cases, you may need to change […]
XML files are a common data format used for exchanging data between different systems. Python provides several libraries for parsing and manipulating XML files, including the popular xml.etree.ElementTree module. In […]
Resizing images is a common task in web development, especially when it comes to optimizing website performance. In React, there are several approaches to resizing images, each with its own […]
Concatenating strings in Bash is a common task that you may come across when working on shell scripts. This article will guide you through various methods of concatenating strings in […]
PostgreSQL is a popular open-source relational database management system. It offers many advanced features and is widely used in production environments. Python is a powerful programming language that is also […]
Aligning images in React Native is a crucial aspect of building any mobile app. In this tutorial, we’ll go over various ways to align images in React Native, from basic […]
Here’s the script to melt data with pandas and SQLAlchemy.
To return the whole object of unique values, try the following code snippet.
Callbacks can be used to write clean implementations of anything Promises in Node.js. This is a sample code to read files using callbacks.
Anti-shake and throttling are both ways to solve performance problems caused by high-frequency trigger events. Anti-shake means that after the event is triggered, wait for a certain period of time […]
Data Access Audit logs are disabled by default as its cost depends on the usage. To enable them using Terraform we can use the following script.
To start a blank PowerPoint presentation: To start a blank Word document: To start a blank Excel document: To start a blank Outlook document: To start a blank OneNote document: […]
A Curated list of Testnet faucets for Ropsten, Goerli, Kovan, Polygon/Mumbai, FantomTest, Sokol, Aurora etc. Networks Etherspot Etherspot testnet PoA Etherspot is a multi-chain non-custodial Smart Wallet platform that allows […]
Hilt is a modern android DI framework for dependency injection. It is merely a wrapper around Dagger2. Forget dagger-android, hilt brings a lot to our plate. This article covers steps to […]
You install a particular version of nodejs according to a workspace with pnpm. For installation, you need a .npmrc file. Steps Create a .npmrc file The first step is to create a .npmrc file in the […]
Code snippet to render a graphic using clutter and detect user click on the image, also demonstrates using the clutter library in a functional style and OO style. Source
Simple Clutter example showing how to create a label. Source
This code snippet shows how to group actors so that animations will effect them all uniformly. Source
Testing in Android has been a pain from the beginning and there is no standard architecture setup to execute the frictionless test. As you know there is no silver bullet […]
[ Originally published at https://mahendranv.github.io/posts/android-gradle-deps-kit ] Starting an android project will bring in a new set of challenges 👀 aka adding tons of Gradle dependencies. Even though you use these […]
We can use the array at method to fetch the items from the last element of an array.
You can alternatively already provide the searchKey in lowercase. If you want it as a function: If the key can’t be found, then it’ll return undefined, just like normal. If you […]
If you want the unique values as a list (or dataframe) then just replace the nunique with unique Source
Object destructuring assigns the properties of an object to variables with the same names by default. Here are a few examples. Source
Let’s assume you are passing a few values from the command line when you are running a node command. These values can be read inside your code using process.argv. All […]