Tutorial: Checking Minimum Required Version of Java Jar in PySpark Application Disclaimer: This tutorial demonstrates various methods of checking the minimum required version of a Java jar in a PySpark application. The provided code examples serve for illustrative purposes and may not be robust in real-world scenarios. Method 1: Direct Package Version Check on Python …
Code
🖥️ Creating a Service for Automatic App Launch on Boot (Linux & MacOS)
In this tutorial, we will guide you through the process of creating a systemd service to ensure your application automatically starts after the system boots up. This is particularly useful for server setups, ensuring the continuous operation of your application. 👉 Linux: Systemd Service Step 1: Open and Edit the Systemd Service File 1.1 Open the …
🖥️ Building a Python Package
Building and Deploying Python Packages: A Comprehensive Tutorial for Experts Introduction Developing and distributing Python packages is a crucial aspect of software development. This tutorial will guide you through the process of creating a Python package, configuring it with setuptools, and deploying it using pip. We’ll cover topics such as project structure, setup.py and setup.cfg …
🔑 Understanding ABAC vs. RBAC with Code Examples
ABAC : Attribute-Based Access Control RBAC : Role-Based Access Control Access control is a crucial aspect of security in software applications. Two popular models for implementing access control are Attribute-Based Access Control (ABAC) and Role-Based Access Control (RBAC). In this tutorial, we’ll delve into the concepts of ABAC and RBAC, and provide code examples to …
🖥️ CMake Tutorial
Introduction CMake is a tool for controlling the build process, which creates scripts to turn C++ source code into a specific project. Examples: Generates vcxproj files for Microsoft Visual Studio 2017, toolchain, and MSVC 19 Generates project for MinGW If you want to know how to setup a complete C++ project, go to Cpp Dev …
🖥️ Adding TODO and FIXME in you code
I have seen many codes that include TODO statements. In general, TODOs should be added only in your own Git branch. However, there are cases where it is acceptable to let TODOs in the code base. Let us see it in more details. 💡 Please keep in that this is also acceptable for both TODO …
🖥️ How to use Pip to install packages to Anaconda Environment
If you want to use Pip in order to instalI packages to a conda environment, you can follows these steps: – Run conda create -n myenv – Run conda activate myenv – Run conda install pip. This will install pip to your myenv directory. – Go to your Anaconda folder – Find the myenv folder, …
🖥️ Set up your dev workspace C++
In this article, I will show you how to setup your working environment for C++ Projects. Let’s get started: Create a folder named: HOME_DEV, ideally in : C:/ for Windows ~ for Linux /Users/${YOUR_NAME}/ for Mac Examples: – Windows: `C:/HOME_DEV/` – Linux: `~/HOME_DEV` – Mac: `/Users/${YOUR_NAME}/HOME_DEV` 💡 CLI: Run mkdir “/Users/${USER}/HOME_DEV” to create the folder. …
🆕 Essential Principles to Uphold During Code Review
In the world of coding, perfection is but a myth. Thus, remember these golden rules to keep your code review process grounded and balanced. 1. 🗣️ Opinions are Not Absolute Your opinions do not make you the ultimate authority. When reviewing a solution, rely on technical facts and standards rather than personal preference. 2. 💬 …
🆕The Art of Code Review in Modern Software Development
Introduction 🦁 As a team, our main objective is to create and deliver high-quality software solutions. Code review plays a crucial role in achieving this objective by ensuring that our code is of the highest possible quality. A code review is an examination of a piece of code by another developer to identify defects and …