Skip to content

Archive / page 66

All articles

Every practical article from the Nalar archive, newest first.

Cybersecurity 07 Sep 2026 10 min read

Bind Access Grants to Stable Principal Identifiers

An application may grant access to alex@example.test and appear to work correctly for years. Then Alex changes address, leaves the organization, or the old address is assigned to someone else. If the authorization system treats that address as the identity itself, access can follow the label instead of the person or service that was originally approved. This is an identity-binding problem. Authorization needs to answer not only what may this requester do? but also which principal does this grant actually belong to? A principal is the security identity that receives permissions, such as a user account or service account.

Artificial Intelligence 07 Sep 2026 10 min read

Average Neural Network Weights with Stochastic Weight Averaging

A neural network rarely finishes training at the only useful point in parameter space. Late in training, stochastic gradient descent (SGD) can visit several nearby parameter settings that all perform reasonably well, while the final checkpoint represents only one of them. Stochastic weight averaging (SWA) turns that observation into a simple training technique: collect model parameters from multiple points late in an SGD trajectory and compute their arithmetic mean. The result is one model with averaged weights, so inference does not require running an ensemble of all collected checkpoints.

Cybersecurity 07 Sep 2026 11 min read

Authorize Bulk Data Exports as Sensitive Actions

An application may correctly authorize every page and API request yet still expose too much data through an export feature. The common mistake is treating “can read this data” and “can copy a large collection of this data” as the same security decision. They are not necessarily equivalent. A support agent who may view customer records one at a time might not need permission to download the entire customer directory. A project member who can inspect documents in a workspace might not be allowed to export documents from other workspaces. Even when every exported row is individually readable, collecting thousands of rows into one portable file changes the impact of a mistake or compromised account.

Software Engineering 07 Sep 2026 8 min read

Adding Behavior Safely with Sprout Methods

A small feature can become a risky change when it must be added inside a large method that has weak tests. The obvious edit may be only ten lines, but those lines become mixed with old branches, mutable state, database calls, or other behavior you do not fully understand. Testing the new rule then requires exercising the entire method. One useful response is a sprout method: put the new behavior in a new, focused method and make the existing code call it. The old method changes only enough to connect the new behavior. The new method can often be tested directly with much less setup.

Artificial Intelligence 07 Sep 2026 10 min read

Adapt Neural Networks with Gradient Reversal

A classifier can perform well in evaluation and then weaken after deployment because the inputs changed. Product photos may come from a new camera, support messages may use different vocabulary, or sensor readings may come from different hardware. Collecting labels for the new environment can be expensive even when unlabeled examples are easy to obtain. Domain-adversarial training addresses one version of this problem. It asks a feature extractor to support the prediction task while making the source and target domains difficult to distinguish. A gradient reversal layer makes those two goals trainable with ordinary backpropagation by reversing the domain classifier’s gradient before it reaches the feature extractor.

Tech 06 Sep 2026 7 min read

Why Your Phone Can Have Signal Bars but No Internet

Your phone can show several cellular signal bars while websites refuse to load, messages stay unsent, and apps report that they are offline. The bars make this seem contradictory: if the signal is strong, why is there no internet? The answer is that cellular signal and internet access are related but separate parts of the connection. Signal bars mainly describe the phone’s radio connection to the mobile network. Reaching an internet service requires additional steps beyond that radio link, and any of those steps can have a problem.

Tech 06 Sep 2026 8 min read

Why Your Phone Can Charge Over USB but Not Transfer Files

You connect your phone to a computer with a USB cable. The battery icon shows that charging has started, yet the phone does not appear as a place where you can browse files. It is tempting to conclude that the cable and port must be working because power is clearly getting through. Charging proves only part of the connection. USB can carry electrical power and data, but those functions are related rather than identical. A phone can receive power even when the data path is unavailable, disabled, or set to a mode that does not expose files.

Tech 06 Sep 2026 10 min read

Why Your Phone Camera Sometimes Struggles to Focus

You point your phone at a subject, but the image keeps shifting between sharp and blurry. Perhaps the camera focuses on the background instead of the object in front of you, or it refuses to make a very close subject look crisp. These problems make more sense once you know what autofocus is trying to do. A phone camera does not simply make the whole scene sharp. It has to decide where to focus, adjust its optics for that distance, and determine whether the result is good enough. Low light, low contrast, movement, reflections, and subjects that are too close can all make that job harder.

Tech 06 Sep 2026 9 min read

Why Your Laptop Fan Speeds Up and Slows Down

A laptop can be almost silent while you read a document, become noticeably louder during a video call, and keep its fan running for a while after the call ends. The changing noise can make it seem as though the computer is working unpredictably. Usually, the opposite is true. The laptop is adjusting its cooling to match changing heat inside the machine. The fan does not simply respond to whether an application looks demanding. It responds to temperatures and to the cooling policy chosen by the laptop’s hardware and software.

Tech 06 Sep 2026 7 min read

Why Wi-Fi Extender Placement Matters

A Wi-Fi extender can make a weak part of your home network more usable, but only if the extender itself has a good enough connection to the rest of the network. This creates a common placement mistake: putting the extender in the room where Wi-Fi is already almost unusable. That location may give your phone strong Wi-Fi bars to the extender while the extender has a poor link back toward the router. The result can be a connection that looks strong but still feels slow or unreliable.

Tech 06 Sep 2026 8 min read

Why Websites Can Think You Are in the Wrong Location

A website can sometimes place you in the wrong city even though a map app on the same device knows exactly where you are. That can affect local news, store suggestions, search results, language choices, or other location-based features. The apparent contradiction usually has a simple explanation: there is more than one way to estimate where a device is. A site that has access to your device’s location can receive a fairly precise position. A site that does not may make a rough guess from your internet connection instead.

Tech 06 Sep 2026 8 min read

Why System Data and Other Storage Can Grow on Your Phone

A phone’s storage screen usually divides used space into familiar categories such as photos, apps, and media. Then there is often a less obvious category with a name such as System, System Data, Other, or something similar. That category can be confusing because its size may change even when you have not deliberately saved anything. It may also be much harder to inspect than a folder of photos or downloads.

Tech 06 Sep 2026 7 min read

Why Some Downloads Can Resume After They Are Interrupted

A large download reaches 80%, your connection drops, and then two very different things can happen. One download continues from roughly where it stopped. Another starts again from zero. The difference is not simply whether your internet connection is fast or stable. Resuming works only when the downloading app can keep the data it already received and the server can provide the missing part in a way that still belongs to the same file.

Tech 06 Sep 2026 7 min read

Why Phones and Laptops Use More Than One Microphone

A phone may have several tiny microphone openings, and a laptop can have a row of microphones near its screen. It is reasonable to wonder why one microphone is not enough when all of them seem to be listening to the same room. The important difference is position. Sound reaches microphones in different places at slightly different times and levels. A device can compare those signals and use the differences as clues about where sound is coming from.

Tech 06 Sep 2026 8 min read

Why Deleting Files May Not Free Storage Immediately

You delete several large videos because your phone or computer is nearly full, then check storage and see little or no improvement. It can feel as though the deletion did not work. Often, it did work—but deleting a file and reclaiming its storage are not always the same event. A device may first move the item into a recoverable trash area, an application may keep its own copy, or the storage display may simply need time to update.

Tech 06 Sep 2026 8 min read

Why Bluetooth Accessory Battery Levels Can Jump or Lag

Your wireless headphones show 70% battery for a long time, then suddenly drop to 60%. An earbud may report a different level from its charging case, or your phone may show an old percentage for a while after you reconnect an accessory. These behaviours can look like a faulty battery, but the number on your phone is usually not a continuous measurement made by the phone itself. The accessory estimates its own battery state and reports information to the connected device. The phone, tablet, or computer then decides how and when to display that information.

Tech 06 Sep 2026 7 min read

Why Battery Percentage Is an Estimate, Not an Exact Measurement

A phone showing 42% battery appears to be reporting a simple measurement. It is tempting to imagine a sensor looking inside the battery and finding that exactly 42% of its energy remains. That is not how the number is produced. Battery percentage is an estimate of state of charge: how much usable charge the system believes remains relative to the battery’s current usable capacity. The device builds that estimate from electrical measurements and a model of how its battery behaves.

Tech 06 Sep 2026 7 min read

Why Background Browser Tabs Sometimes Reload

You leave a web page open in a background tab, work elsewhere for a while, and then return to it. Instead of appearing exactly as you left it, the page briefly goes blank, shows a loading indicator, or fetches its contents again. This can look like a browser failure, but it is often deliberate resource management. An open tab is not necessarily a promise that the entire page will remain active in memory indefinitely. Browsers and operating systems can reduce the resources used by pages you are not currently viewing, especially when memory is needed elsewhere.

Tech 06 Sep 2026 9 min read

Why an App’s Download Size and Installed Size Can Be Different

An app store might show an app as a 200 MB download, yet the app can occupy considerably more space after you install and use it. The reverse can also happen: two people can download the same app and receive different amounts of data. These numbers are not necessarily contradictory. Download size measures data transferred to obtain the app, while installed size measures storage used by the app on the device. They describe different stages of the same process, and modern app delivery can make the relationship between them less obvious.

Tech 06 Sep 2026 8 min read

Why a USB Hub Can Slow Down Fast Devices

A USB hub can turn one computer port into several useful connections. That makes it easy to attach an external drive, webcam, keyboard, card reader, and other accessories at the same time. But adding ports does not necessarily add data capacity. Several devices behind a hub may ultimately communicate with the computer through the hub’s single upstream connection. When multiple high-data devices are active together, that shared path can become a bottleneck.

Tech 06 Sep 2026 8 min read

What Wi-Fi Channel Width Means and Why Wider Is Not Always Better

A router may offer Wi-Fi channel-width settings such as 20 MHz, 40 MHz, 80 MHz, or, on newer equipment, even wider options. It is tempting to treat the largest number as the fastest setting. Sometimes it is. But a wider Wi-Fi channel also occupies more radio spectrum, which can make interference and congestion harder to avoid. The useful question is not simply “Which width is fastest?” It is “How much clear spectrum can this connection actually use?”

Tech 06 Sep 2026 8 min read

What Haptic Feedback Is and Why Devices Use It

Tap a control on a phone and you may feel a tiny click even though nothing physically moved. Type on an on-screen keyboard and each key can seem to answer your finger. That sensation is haptic feedback: information a device communicates through touch. Haptics are easy to dismiss as ordinary vibration, but modern devices can use carefully timed physical motion to make an interaction feel more definite. A short pulse can confirm a selection, mark a boundary on a slider, or tell you that a long press has been recognised without requiring you to keep watching the screen.

Cybersecurity 06 Sep 2026 11 min read

Validate File Uploads Before You Trust Them

A file upload endpoint accepts more than bytes. It also receives a filename, a declared content type, a size, and often assumptions about what the application will do with the file later. The security problem begins when those claims are treated as proof. A user can rename a file. A client can send an arbitrary Content-Type value. A file can satisfy one superficial check while still being unsuitable for the parser, storage location, or download behavior that follows. If the application accepts the wrong file, the consequence may be unsafe parsing, unexpected active content, storage abuse, or a file being served in a context the application never intended.

Software Engineering 06 Sep 2026 9 min read

Using Snapshot Tests Without Freezing Incidental Details

Some outputs are awkward to test one assertion at a time. A serializer may produce a structured document, a formatter may emit many related lines, or a component may build a nested representation. Writing an assertion for every field can obscure the behavior you are trying to protect. A snapshot test takes a representative output and compares it with a previously accepted copy, called the snapshot. When the output changes, the test shows the difference and asks the developer to decide whether the new output is correct.