Lorbic._

Decoding the mechanics of high-performance systems.

Technical Journal // Recent Articles
Feb '24

NGINX: Building from Source and Installation on Linux (Updated)

In this blog we are going to build NGINX from source code. And we will configure NGINX's settings, paths, and add or remove modules.

Jan '24

Build a URL redirector application with Cloudflare Workers and Cloudflare D1

Discover the power of Cloudflare Workers and D1 database as we guide you through building a robust URL redirector application on LorbiC.com. Shorten and customize your links effortlessly, optimizing user experience and website performance. Learn step-by-step with prerequisites, database setup, and code implementation. Unlock the potential of Cloudflare's edge computing and revolutionize URL handling for seamless redirections. Elevate your web application's performance with this comprehensive guide at Lorbic.com.

Dec '23

Setting Up Llama 2 with Docker on Your Gaming Laptop Using Ollama

Effortlessly set up Llama 2 on your gaming laptop using Docker and Ollama, with a user-friendly interface and local data storage for privacy.

May '23

AWS - Host Static Website With S3 + Cloudfront + Route53

In this blog learn how to host a static website on AWS with S3, Cloudfront and Route53. Enable HTTP/2, HTTP/3 and reditect insecure http to secure https. Set the bucket to private.

Apr '23

Simplifying Search Activation: A Quick Guide with JavaScript

Learn how to enhance user experience by activating the search input field with a simple key press on your website. This quick guide provides a code snippet and easy-to-follow steps.

Apr '23

Setting Up a PostgreSQL Container: A Quick Guide

Learn the simple and fast process of creating a PostgreSQL container using Docker. This guide provides both the command and a detailed explanation of the container and PostgreSQL database configuration.

May '21

Learn Dart Programming

Learn basics of Dart programming language with code examples and explainations.

May '21

Types of Pointers in C/C++

Photo of Hyacinth macaw by Roi Dimor on Unsplash Types of Pointers in C / C++1. Null PointerIt is a pointer pointing to nothing. NULL pointer points to the base address of the segment. -EXAMPLE- c 1int * ptr = (int) * 0; 2float * fptr = (float) * 0; 3double * dptr = (double) * 0; 4char * chptr = (char) * 0; Other ways of initializing NULL pointer c 1int * ptr = NULL; 2char * chptr = '\0'; NULL also means 0 in macro c 1#define NULL 0 2. Dangling PointerA pointer pointing to the memory address of any variable (or object) which has been deleted from memory. When a pointer points to a deleted memory address, the pointer is called as a dangling pointer.

May '21

Avoid Memory Leaks In C++

Instructions Things You’ll Need Proficiency in C++ C++ compiler Debugger and other investigative software tools Part 1Understand the operator basics. The C++ operator new allocates heap memory. The delete operator frees heap memory. For every new, you should use a delete so that you free the same memory you allocated: cpp 1char* str = new char [30]; // Allocate 30 bytes to house a string. 2delete [] str; // Clear those 30 bytes and make str point nowhere. Part 2Reallocate memory only if you’ve deleted. In the code below, str acquires a new address with the second allocation. The first address is lost irretrievably, and so are the 30 bytes that it pointed to. Now they’re impossible to free, and you have a memory leak:

May '21

Operators in Bash Shell Programming

Photo by NASA on Unsplash If you want to learn bash bash scripting please read this article. Learn complete Linux bash (shell) scripting in one article Operators help us perform various types of operations such as addition, multiplication etc. There are following types of operators present in bash: Arithmetic, Relational, Boolean, File Test, String Test 1. Arithmetic OperatorsAll the arithmetic operators present in bash are discussed below with examples. These operators work with integers.