Wednesday, 2 July 2025

How to Measure Program Execution Time in the Linux Shell

When running commands or scripts in the Linux shell, it’s often useful to know how long they take to execute, especially when optimizing or testing under different conditions. Here are several ways to measure execution time in Bash, from basic to more advanced methods.

1. Using the time Command

The simplest way to measure execution time is with the built-in time command, which outputs real, user, and system time taken by a command.

time sleep 2
Read more »

Labels:

Tuesday, 1 July 2025

Solving React Native Emulator Issues on macOS

If you’re developing mobile applications with React Native, you might encounter issues when trying to launch an Android emulator. A common error is:

Failed to launch emulator. Reason: The emulator quit before it finished opening.

This blog post explores solutions to this frustrating problem, based on real-world experiences and slightly different scenarios.

Read more »

Labels:

Monday, 30 June 2025

Harnessing Data with ServiceNow’s Performance Analytics API

In the fast-paced world of enterprise data, the need for precise and actionable insights has never been greater. ServiceNow’s Performance Analytics (PA) API offers organizations a powerful tool to harness this data, providing detailed analytics capabilities that go beyond conventional reporting. This blog post delves into how you can leverage the PA API to transform raw data into strategic insights, fostering informed decision-making and operational excellence.

Introduction to the Performance Analytics API

ServiceNow’s Performance Analytics API allows for deep interaction with the platform’s analytics engine, offering access to advanced data processing and visualization capabilities. It enables organizations to collect, aggregate, and analyze performance data across various dimensions and timeframes, facilitating a comprehensive understanding of operational effectiveness.

Read more »

Labels:

Sunday, 29 June 2025

How do I check if an element is hidden in jQuery?

 jQuery, with its simplicity and power, has been a cornerstone of web development for years. Among its plethora of features, handling element visibility is a common requirement. In this blog post, we’ll dive into various methods of checking if an element is hidden, toggling its visibility, and testing its visibility status.

Checking if an Element is Hidden

The question of whether an element is hidden often arises in dynamic web applications. While the .is(":visible") and .is(":hidden") methods are commonly used, there are alternative approaches worth exploring.

Read more »

Labels:

Saturday, 28 June 2025

Troubleshooting Python in Git Bash on Windows: A Guide with Solutions

Encountering issues when trying to run Python in Git Bash on Windows is a common problem that many developers face. If you’ve found that typing python in your Git Bash command line results in the terminal freezing without any error messages or output, you’re not alone. In this post, we will explore different ways to troubleshoot and resolve this issue, offering both temporary and permanent solutions.

The Problem

The issue arises when you try to run Python directly from Git Bash, only to find that the terminal becomes unresponsive or simply sits idle without launching the Python interpreter. This behavior is different from what you might experience in PowerShell, where Python runs without any problems. Here’s what the problem might look like in your Git Bash terminal:

Read more »

Labels:

Thursday, 26 June 2025

Sending HTTP Headers Using cURL

When working with APIs or trying to send requests to a server, you may often need to include HTTP headers in your cURL requests. These headers can include anything from authentication tokens to content type specifications. Below, you’ll find a guide on how to include these headers in your requests using cURL, a powerful tool available on most Unix-based systems (including Linux and macOS) and Windows.

Why Use Headers?

Headers allow you to pass additional information with your HTTP requests and responses. Some common use cases include:

Read more »

Labels:

Wednesday, 25 June 2025

What happens first when Linux server is started?

The Linux boot process is a meticulously orchestrated sequence of events that transforms a powered-off machine into a fully operational system. For system administrators, developers, and enthusiasts, understanding this process is critical for troubleshooting, optimizing performance, and securing infrastructure. In this comprehensive guide, we’ll dissect every stage of the Linux boot process, from the moment you press the power button to the user login prompt. We’ll explore modern components like UEFI, initramfs, and systemd, and provide practical examples to solidify your understanding.

Table of Contents

  1. Introduction: Why Understanding the Boot Process Matters
  2. Stage 1: Power-On Self-Test (POST)
  3. Stage 2: UEFI/BIOS Initialization
  4. Stage 3: Bootloader (GRUB2) Execution
  5. Stage 4: Kernel Initialization and initramfs
  6. Stage 5: systemd – The Modern Init System
  7. Stage 6: Targets, Services, and Dependency Management
  8. Stage 7: User Login and Session Management
  9. Troubleshooting Boot Issues
Read more »

Labels: