Skip to content

Archive / page 62

All articles

Every practical article from the Nalar archive, newest first.

Tech 07 Sep 2026 8 min read

Why Your Phone May Switch Between Wi-Fi and Mobile Data

You can be standing inside your home, still see a Wi-Fi icon, and notice that your phone starts using mobile data. In another situation, the phone may cling to a weak Wi-Fi connection even though the cellular network would work better. This can seem inconsistent because a phone does not choose a connection from signal strength alone. It is trying to answer a more useful question: which available connection is likely to provide working internet access right now?

Tech 07 Sep 2026 7 min read

Why Your Laptop Battery Can Drain While Plugged In

Seeing a laptop’s battery percentage fall while the charger is connected can seem contradictory. If the computer is plugged in, should the charger not power the laptop and charge the battery at the same time? Usually it can. But being connected to a power source does not guarantee that enough usable power is available for everything the laptop is doing. The computer itself needs power first, and charging the battery requires additional power. If the available input cannot cover both, charging can slow, stop, or, on some systems, the battery can supply part of the difference.

Tech 07 Sep 2026 7 min read

Why Your Device's Local IP Address Can Change

A device on your home network may be 192.168.1.24 today and 192.168.1.31 later. Nothing is necessarily wrong. On most home networks, local IP addresses are assigned automatically and are not meant to be permanent identities. This matters when you connect directly to a printer, media server, smart-home device, or another computer by its address. If you assume that address never changes, a connection that worked yesterday can suddenly fail even though both devices are still online.

Tech 07 Sep 2026 6 min read

Why Some USB Ports Can Charge Devices While Your Computer Sleeps

You close a laptop lid, leave your phone connected by USB, and later discover that the phone continued charging. On another computer, the same phone stops charging as soon as the computer sleeps. Sometimes even two USB ports on the same machine behave differently. The reason is that USB data activity and USB power are related, but they do not have to switch off together. A computer can stop most of its normal work while still keeping electrical power available to a USB port. Whether it does so depends on the computer’s hardware design, power state, firmware, settings, and sometimes which port you use.

Tech 07 Sep 2026 10 min read

Why Some Software Updates Need a Restart

A small app update may install without interrupting you. Another update asks you to close the app. An operating-system update may go further and require the whole phone or computer to restart. The difference is not simply the size or importance of the update. It mainly depends on which software is being changed and whether that software can be safely replaced while it is running. A useful mental model is to think of an update as replacing parts of a machine while the machine is operating. Some parts can be exchanged without stopping everything. Other parts are actively being used or are fundamental to the machine’s operation, so the system needs a controlled pause before it can switch from the old version to the new one.

Tech 07 Sep 2026 7 min read

Why Some Devices Stop Charging Before 100 Percent

You plug in a phone or laptop, leave it connected, and later notice that the battery has stopped at 80%, 85%, or another level below full. The charger is still attached, yet the percentage does not rise. That can look like a weak charger or a failing battery, but on many devices it can be deliberate. Some phones and laptops offer a charge limit or related battery-care feature. Instead of keeping the battery near its maximum state of charge whenever power is available, the device stops charging at a lower level. The reason is a trade-off: you give up some unplugged runtime today in exchange for conditions that can reduce battery ageing over the longer term.

Tech 07 Sep 2026 9 min read

Why Printing Can Start Later Even After You Click Print

You click Print, the application returns to normal, and yet the printer does nothing for several seconds. Sometimes the document appears in a print queue first. If another job is stuck, your new document may wait behind it even though the printer itself seems ready. That delay makes more sense once you separate submitting a print job from physically printing it. Your application usually does not feed each page directly to the printer while keeping the Print command open. Instead, the computer prepares a job, hands it to the operating system’s printing system, and lets that system manage delivery to the printer.

Tech 07 Sep 2026 7 min read

Why Photo and File Thumbnails Can Take Time to Appear

Open a folder full of photos and you may briefly see generic icons before small image previews appear. Scroll quickly through a large photo library and some squares may remain blank for a moment. After moving files to a new device, previews may take even longer to fill in. Those small previews are called thumbnails. They look simple, but the device often has to do real work before it can display them. Understanding that process explains why thumbnails can appear slowly, why they may disappear and return later, and why deleting a thumbnail cache usually does not delete the original files.

Tech 07 Sep 2026 8 min read

Why Holding a Key Makes It Repeat and How the Timing Works

Press a letter once and you normally get one character. Hold the same key down and, after a short pause, you may get a stream of characters instead. Holding Backspace can erase a whole line, while holding an arrow key can move continuously through a document. That behavior is called key repeat. It is deliberately designed to turn one long key press into repeated input, but the repetition does not usually begin the instant the key goes down. Understanding the two stages—waiting and repeating—makes keyboard settings such as repeat delay and repeat rate much easier to understand. It also explains why holding a key does not behave identically in every application.

Tech 07 Sep 2026 8 min read

Why Fast Motion Can Look Bent in Phone Photos and Videos

You photograph a fast-moving vehicle and a vertical pole seems to lean. You pan your phone quickly and straight buildings appear to wobble. In video, spinning objects can look strangely stretched or slanted even though they look normal to your eyes. These effects can come from rolling shutter, a way many camera sensors capture an image over a short span of time instead of recording every part of the frame at exactly the same instant. The effect is easiest to notice when the subject moves quickly, the camera moves quickly, or both.

Tech 07 Sep 2026 8 min read

Why Cloud Files Can Appear on Your Device Without Taking Full Space

A cloud-synced folder can create a confusing situation: thousands of files may appear in your file manager even though they use far less local storage than their combined file sizes suggest. Then one of those files may refuse to open when you have no internet connection. Nothing is necessarily wrong. Many cloud storage systems can show an online-only file in the normal file list while keeping most or all of that file’s contents in the cloud until you need them. The device keeps enough information to represent the file, then downloads its contents on demand.

Tech 07 Sep 2026 7 min read

Why Closing Background Apps Does Not Always Help Your Phone

Open the app switcher on a phone and you may see many apps that you used earlier. It is easy to assume that every card represents an app actively running, consuming processor time, and draining the battery. That is not generally how modern mobile operating systems work. An app can remain available in the recent-apps interface while doing little or no active work. The operating system decides how much memory and background execution each app receives, and it can reclaim resources when they are needed elsewhere.

Tech 07 Sep 2026 7 min read

Why a Screenshot Can Look Different From Your Screen

You take a screenshot because you want to preserve exactly what is on the screen. Yet the saved image can look brighter, duller, warmer, or less vivid when you open it later or send it to someone else. That does not necessarily mean the screenshot failed. A screenshot usually captures image data produced by the device, while what your eyes see is that data after a physical display and its settings have turned it into light. Those are related, but they are not the same thing.

Tech 07 Sep 2026 7 min read

Why a High-Resolution Screen Can Make Things Look Bigger, Not Smaller

A laptop with a very high-resolution screen can contain far more pixels than an older display of the same physical size. It seems logical that every icon, button, and line of text should therefore become much smaller. Yet modern devices often do the opposite: the interface stays comfortably sized while text and graphics look sharper. The reason is display scaling. Instead of treating one software-sized unit as exactly one physical screen pixel, the operating system can use several physical pixels to draw the same interface detail. This separates two ideas that are easy to confuse: how much detail the panel can show and how large interface elements appear to you.

Tech 07 Sep 2026 8 min read

What Formatting a USB Drive Does and Why File Systems Matter

A USB drive can have plenty of free space and still refuse a file, work on one device but not another, or suddenly ask to be formatted before you can use it. These problems often come down to the drive’s file system. Formatting is the process of preparing storage so a device can organize files on it. It is not simply a way to make a drive empty. Formatting creates or resets the structures that an operating system uses to keep track of filenames, folders, free space, and where file data belongs.

Tech 07 Sep 2026 8 min read

What Browser Zoom Changes and Why Websites Can Rearrange

Increasing browser zoom seems simple: text gets larger. Yet a page may also change from several columns to one, move a menu behind a button, or make an image occupy much more of the window. That can make zoom look as though it is changing the website rather than merely magnifying it. The useful idea is that browser zoom usually changes the effective space available to the page, not just the apparent size of letters. Modern websites often adapt their layout to the amount of space they appear to have. Once you understand that relationship, unexpected layout changes at 125%, 150%, or another zoom level make much more sense.

Artificial Intelligence 07 Sep 2026 8 min read

Weight Tying in Language Models

A language model needs to solve two related problems with vocabulary-sized parameters. At the input, it must turn each token ID into a vector. At the output, it must turn a hidden state into one score for every possible next token. A straightforward architecture gives these two operations separate parameter matrices. That works, but it can be expensive when the vocabulary and hidden dimension are large. Weight tying is a simple architectural idea: use the same learned matrix for the input token embeddings and the output token projection when their shapes and semantics are compatible.

Artificial Intelligence 07 Sep 2026 9 min read

Weight Decay in Adam and AdamW

A training configuration can contain a parameter named weight_decay without making it obvious what operation the optimizer actually performs. That ambiguity matters most with adaptive optimizers such as Adam: adding an L2 penalty to the loss and directly decaying parameters are not generally the same update. The distinction is easy to miss because the two procedures are closely related under ordinary stochastic gradient descent (SGD). Once an optimizer rescales different coordinates using gradient history, however, the equivalence breaks.

Cybersecurity 07 Sep 2026 8 min read

Verify the Entire Password Without Truncation

A password field may accept 100 characters while the authentication system verifies only the first 72, 64, or 20. The interface appears to accept the whole password, but the security decision does not. That mismatch is password truncation: silently discarding part of a password before storing or verifying it. Truncation can make two visibly different passwords authenticate as the same credential. It can also create confusing migration bugs when one component preserves the full password and another shortens it.

Cybersecurity 07 Sep 2026 10 min read

Verify a New Contact Before Making It Authoritative

Changing an account email address or phone number can look like an ordinary profile update. It is not ordinary when that contact is used for password resets, account recovery, login alerts, or other security decisions. If an application accepts a new address and immediately treats it as authoritative, a typing mistake can redirect important messages to someone else. An attacker who has gained limited account access may also try to replace a trusted recovery destination with one they control. In both cases, the dangerous step is the same: the application trusts a new destination before establishing that the account holder can receive messages there.

Software Engineering 07 Sep 2026 10 min read

Using Error Budgets to Balance Reliability and Change

Teams often agree that reliability matters and still struggle to decide what to do when reliability competes with product work. Should a risky release proceed? Should engineers stop feature work after a bad incident? Is one failed request enough to justify a freeze? Without a shared rule, these decisions can become arguments between vague goals: “move faster” versus “make it more reliable.” An error budget turns a reliability target into a limited allowance for unsuccessful service. The budget does not make failures desirable. It makes the acceptable amount of unreliability explicit so a team can reason about risk and change using the same constraint.

Python 07 Sep 2026 11 min read

Use Memory-Mapped Files for Random Access in Python

Reading a file with read() gives your program a straightforward model: ask for bytes, receive a bytes object, and let Python manage the buffer. That is often the right choice. Some workloads are different. A program may need to inspect small regions scattered across a large file, search the same file repeatedly, or pass file-backed bytes to APIs that understand the buffer protocol. Repeated seek() and read() calls can work, but they make every access an explicit file operation in your code.

Software Engineering 07 Sep 2026 11 min read

Understanding Two-Phase Commit

Suppose one business operation must update two independent transactional resources. Writing to the first and then the second creates an uncomfortable failure case: the first write may commit while the second fails. Reversing the order only moves the problem. Two-phase commit, usually shortened to 2PC, is a coordination protocol for making one commit-or-abort decision across multiple participants that can each prepare and commit a local transaction. Its purpose is atomicity across those participants: under the protocol’s assumptions, they do not intentionally finish with some participants committed and others aborted for the same transaction.

Linux 07 Sep 2026 12 min read

Understand Sparse Files on Linux Without Wasting Disk Space

A file can report a size of 100 GiB without consuming 100 GiB of disk blocks. That sounds contradictory until you separate two ideas that ordinary file APIs often present together: a file’s logical size and the storage that the filesystem has actually allocated for it. Linux filesystems can represent long ranges of unwritten bytes as holes. Reading a hole returns zero bytes, but the filesystem does not need to store one physical zero byte for every logical byte in that range. A regular file that contains holes is called a sparse file.