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 …
🖥️ Find a text in Vim and Vi
This is how to search a text in Vim and Vi : Go to your file folder and open your file $> cd path/to/your/file $> vi yourFile.extension Press ESC key Type / folloed with your text to find. Example /haizly Press Enter Hit n to search for the next occurence and N to search backwards
👴🏿 Demystifying Log Files: Your Ultimate Guide
What are Log Files? Log files are automatically created data files that hold a record of events linked to a specific software. They play a crucial role in network observability and IT operations. Log files capture user patterns, activities, and the operations taking place within an operating system, application, server, or other devices. While most …
🖥️ Insight about a well defined adversary of Json: GraphQL
Graphql Created by Facebook in 2012 and open-sourced in 2015. Graph query language is used for communicating with a server to retrieve data. Offers strong data typing, enabling better management of missing data and data overload. Coexistence with Existing Methods GraphQL is an additional querying method alongside existing ones like REST. It doesn’t aim to …
⚙️ Deploy a docker container offline – without access to Internet
Here, we will explain how to deploy a docker container without internet access. 1. Go to the project folder and run “`powershell # Command : docker build –tag [MY_PROJECT]:x.x . “` [MY_PROJECT]: is the name of your project. Take the name used in your docker-compose.yaml file x.x: is the version of your app. Now, you …
⚙️ Automating Docker Startup on Windows: Ensuring Hassle-Free Workflows
Let us see how to automatically start Docker on Windows immediatly after start-up. In order to do that, you just need to perform the following steps: Create a text file and rename it dockerAtStartup.ps1 Add the following code: start-service -Name com.docker.service start C:\’Program Files’\Docker\Docker\’Docker Desktop.exe’ NB: Don’t forget to write ‘Program Files’ instead of Program …
🖥️ 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 a keytab file for authentication ?
A keytab is simply a file that stores authentication credentials information to help users access remote systems easily. The file contains Kerberos principals along with encrypted keys. Keep in mind that the keys are automatically generated from the Kerberos password. Thereore, the encrypted keys will change whenever you change the Kerberos password. How to create …