Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
-
Economics & Finance
Articles on Trending Technologies
Technical articles with clear explanations and examples
How to Forward Ports With Iptables in Linux?
Port forwarding is a technique that allows external devices to access services running on internal network devices by redirecting traffic through specific ports. When you want to run a web server from your home computer, external users need to connect through your public IP address via port 80 (HTTP) or port 443 (HTTPS). Without proper port forwarding configuration, incoming connection requests are blocked by your router's firewall, preventing access to internal services. Iptables is a powerful Linux firewall utility that operates at the kernel level, providing robust packet filtering, NAT (Network Address Translation), and connection tracking capabilities. It can ...
Read Morecfiles - A Fast Terminal File Manager with Vim Keybindings
cfiles is a terminal-based file manager written in C that combines speed, lightweight design, and Vim keybindings. It provides an efficient alternative to graphical file managers for users who prefer command-line interfaces and are familiar with Vim navigation patterns. What is cfiles? cfiles is designed to be fast, lightweight, and highly customizable. While inspired by ranger (another popular terminal file manager), cfiles distinguishes itself through its native Vim keybinding support and minimalistic approach. The tool focuses on providing essential file management functionality without unnecessary bloat, making it ideal for system administrators and developers who work extensively in terminal ...
Read MoreHow to exit from a Linux terminal if a command failed?
It is a common scenario that certain commands might fail for various reasons − differences between GNU and BSD versions of core utilities, logical errors, or missing dependencies. When commands fail, you may want to terminate the process or exit the terminal without manually pressing CTRL + C. Here are several methods to handle command failures gracefully. Using bash exit command with || The logical OR operator (||) allows you to execute a command only if the previous command fails. This is useful when you want to exit the terminal immediately upon command failure. my_command || ...
Read MoreApple iOS Architecture
iOS is the operating system created by Apple Inc. for mobile devices. iOS powers many Apple mobile devices such as iPhone, iPod, and iPad. It is the second most popular mobile operating system globally, trailing only behind Android in market share. The iOS architecture follows a layered design pattern. It contains intermediate layers between applications and hardware, ensuring they do not communicate directly. The lower layers provide basic system services, while higher layers offer user interface components and sophisticated graphics capabilities. iOS Architecture Overview iOS Architecture Layers ...
Read MoreTransactional memory
Transactional memory originated in database theory and provides an alternative strategy for process synchronization. It allows multiple operations on shared data to be grouped together and executed atomically, without the complexity of traditional locking mechanisms. A memory transaction is an atomic sequence of memory read-write operations. If all operations in a transaction complete successfully, the transaction is committed. Otherwise, the operations must be aborted and rolled back to maintain data consistency. Traditional Locking vs Transactional Memory Consider a function update() that modifies shared data. Traditionally, this function would use mutex locks or semaphores: void update() ...
Read MoreHow to use date command in day to day practical usage
In this article, we will learn about the date command in Linux and how to practically use it in day-to-day usage with some practical examples. The date command is used to print or change the system date and time, making it an essential tool for system administrators and users. General Syntax [root@localhost ~]# date [OPTION]... [+FORMAT] [root@localhost ~]# date [-u|--utc|--universal] [MMDDhhmm[[CC]YY][.ss]] Key Features of the Date Command Print current date and time on the system Display date and time in custom formats Read dates from files Display Universal Coordinated Time (UTC) Set system ...
Read MoreLinking with x86 shared library on Linux x64
Dynamic Link Libraries, also known as Shared Libraries, are collections of compiled code, data, and resources that can be loaded and executed by an application at runtime. Shared libraries are commonly used in development of Linux applications and are an integral part of x86 architecture. In this article, we will explore the process of linking with x86 shared libraries on Linux x64 systems. Understanding x86 Shared Libraries An x86 shared library is a file that contains compiled code, data, and resources that can be shared among multiple applications at runtime. Shared libraries are loaded into memory only when ...
Read MoreTesting Bash Scripts With Bats in Linux
Bash Automated Testing System (BATS) is a testing framework designed specifically for bash scripts. It allows developers to write automated tests for their bash code, ensuring scripts function correctly before deployment and improving code reliability in production environments. BATS provides a structured approach to testing bash scripts similar to testing frameworks available for other programming languages like Python or Java. It uses a simple syntax that makes writing and maintaining tests straightforward for shell script developers. What is BATS? BATS stands for Bash Automated Testing System. It is a TAP-compliant testing framework that runs tests written in ...
Read MoreA Guide To Buying A Linux Laptop
Linux is a popular open-source operating system that is favored by many programmers, developers, and tech enthusiasts. If you're looking to buy a Linux laptop, you may be wondering where to start. In this guide, we'll go over everything you need to know before making a purchase, including hardware requirements, compatibility, and popular brands. Hardware Requirements for a Linux Laptop Before diving into specifics of different Linux laptop models, it's important to know what hardware requirements your laptop should have to run Linux smoothly. The good news is that Linux doesn't require a lot of computing power, so ...
Read MoreApt Linux Command with Examples
If you are using Linux as your operating system, then you might be familiar with the apt command. APT stands for "Advanced Package Tool" and it is a package manager used in Linux distributions like Ubuntu, Debian, and others. APT is a command-line tool that allows users to search, install, remove, and manage software packages on their Linux system. Basic Package Management Operations Updating Package Lists Before installing any package on your Linux system, it's important to update package lists. APT uses package lists to know which packages are available for installation. sudo apt update ...
Read More