How to set up hotlinking protection for static content on PushrCDN

If you have not enabled the hotlink protection for your static content (e.g., image, video, JavaScript), there are chances that other websites can use your static content. If the static content is served from your server, you will be billed for bandwidth usage, not other websites. Hotlink protection for static content prevents other websites from…

How to change the default category for WordPress posts

When you install WordPress, it usually comes with a sample post under the category “Uncategorized,” which is also the default category. If you want another category as the default category, you can rename “Uncategorized” to that category. However, if you already have set a default category and later decide to select another category as the…

How to uninstall Anaconda and remove its path from .bash_profile on Ubuntu 22

Anaconda Distribution is a Python/R data science distribution. Using its package manager conda, one can manage over 7,500+ open-source packages. Anaconda is free and easy to install and offers free community support. When you install Anaconda, it adds its path to .bash_profile if you select ‘yes’ to the option. That’s why you see the conda…

How to create Python virtual environment on Ubuntu (activate and deactivate it)

When working on a Python project to develop new applications, it is always advisable to use a virtual environment. This way, your project is isolated from the system environment. If you want to use a particular package version for your project, you can install it in your environment without affecting the whole system; it’s always…

[R] How to generate side-by-side R barplot with errorbar using ggplot

ggplot2 is an R graphics framework that can be used to generate almost any type of chart. The plots generated using ggplot2 look very elegant and aesthetically pleasing. When you create a plot using ggplot, you can start with a base structure, and then you can add additional visual properties (e.g., positions of text, colors,…