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 …
🖥️ Install GitUI on Debian
GitUI is written in Rust, so you need to install Rust support for your Linux distribution and its Package manager Cargo. In the terminal, use the following commands: sudo apt update sudo apt install curl sudo apt install gcc cmake curl –proto ‘=https’ –tlsv1.2 -sSf https://sh.rustup.rs | sh cargo install gitui
🖥️ 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 …
🖥️ Marklogic Tutorial
Marklogic Documents Add Documents Using Javascript: From Files declareUpdate(); // Mandatory to edit resources in MArklogic xdmp.documentLoad(“path/file.json”); // Keep Uri as path/file.json xdmp.documentLoad(“path/file.json”, {“uri”: “NewUriPath”}); // Change Uri to NewUriPath /*Load Bulk documents*/ const pathToDocs = “/home/Docs”; const docResults = xdmp.filesystemDirectory(pathYoDocs); docResults.forEach(fucntion(doc){ xdmp.documentLoad(doc.pathname, {“uri”:”/patents/”+doc.filename})}); Using Javascript: Document created in memory ( form, response to api, …
🔑 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 …
📦 Marklogic
Marklogic For a recap on what-is-marklogic-server, see this article. Documents Add Documents Using Javascript: From Files ‘use strict’; declareUpdate(); // Mandatory to edit resources in MArklogic xdmp.documentLoad(“path/file.json”); // Keep Uri as path/file.json xdmp.documentLoad(“path/file.json”, {‘uri’: ‘NewUriPath’}); // Change Uri to NewUriPath /*Load Bulk documents*/ const pathToDocs = ‘/home/Docs’; const docResults = xdmp.filesystemDirectory(pathYoDocs); docResults.forEach(fucntion(doc){ xdmp.documentLoad(doc.pathname, {‘uri’:’/patents/’+doc.filename})}); Using …
🖥️ Setting Up a Complete Docker Container on Windows
Preliminary Steps Obtain Docker by visiting this page: Docker Installation Read our article on Gitlab Establishing Connection between Docker and GitLab Repository Obtain a deploy token for this machine from the GitLab repository (restricted to maintainers). More details can be found here: GitLab Deploy Tokens Set up the deploy key as an environmental variable by …
🖥️ Handling External Dependencies Update
I. Overview Navigating large-scale projects invariably involves managing external dependencies. The onus falls on the developer and project overseer to continuously seek updates and decide their applicability. This guide provides insights into the aspects of updating external packages. II. Advantages of Updating Unlocks the potential to incorporate new features into your existing project. Addresses issues …