SShortSingh.
0
IndiaTimes of India ·

ITAT grants relief to insurance agent over Rs 35 lakh cash deposit flagged by tax department

An insurance agent deposited Rs 35 lakh in cash into his bank account, which the tax department treated as unexplained money and asked him to justify. The agent argued that the funds were not his own but premiums collected from customers who purchased policies through him. The Income Tax Appellate Tribunal (ITAT) subsequently provided him relief from the notice. The case highlights how premium collections by agents can be scrutinised when deposited as cash. Further details on the tribunal's reasoning are not specified in the report.

0
IndiaTimes of India ·

Kerala HC grants anticipatory bail to judge linked to fatal October car crash

The Kerala High Court has granted anticipatory bail to an additional sessions judge connected to a fatal accident on October 25. The crash killed a 54-year-old scooter rider. The judge's young son was reportedly driving a Mercedes-Benz that was involved in the collision. The court's decision came despite questions raised about the case. The ruling allows the judge to avoid arrest while the matter proceeds.

0
ProgrammingDEV Community ·

Open-source 'story box' built on ESP32 uses a kids' storytelling device for daily learning

A developer released Marelleo, an open-source story box built on an ESP32 microcontroller for his children, and it gained notable traction on Hacker News. The project's key design idea is to attach a daily training routine to content kids already enjoy, using a device already in the living room rather than new hardware. The article argues that long-term engagement, not hardware performance, is the main bottleneck in training and rehabilitation apps, which often lose users within the first week. The piece extends the same principle to vision therapy, citing Amblyotube, a Meta Quest app for amblyopia that delivers different visual feeds to each eye while users watch video content. The authors note that the app is a supplementary training tool and not a diagnostic or curative treatment.

0
ProgrammingDEV Community ·

A 3x3 median filter cut OCR errors on a book page, but the same filter backfired on a half-size scan

A developer tested whether a 3x3 median blur could stay as a fixed step before OCR, sweeping kernel sizes on one page of H. G. Wells's The Time Machine. At full size, the 3x3 filter cut Tesseract's character errors from 11 to 2, while larger kernels became harmful. When the same page was scaled to half width, the same 3x3 filter raised errors from 4 to 28, and no kernel helped. The author suggests the effect depends on how the filter's window compares with letter stroke width, though this is a hypothesis from a single page and single run. The results indicate the right preprocessing depends on scan resolution rather than being a constant.

0
ProgrammingDEV Community ·

How pg_trgm fixed empty product search for misspelled Hebrew and English queries

The ramo.co.il tools catalog returned no results when customers mistyped a word, because its ILIKE matcher required an exact substring. Product titles mix Hebrew text with Latin brand names and model numbers, and shoppers often combine scripts or misspell each half independently, which made the problem common rather than rare. Simple synonym lists and Hebrew stemming did not help, since the errors were typos rather than inflections. The team adopted PostgreSQL's pg_trgm extension, which scores strings by shared three-character slices and so still gives partial credit for a single wrong letter. They store one concatenated search column per product and combine whole-string and word-level similarity scores, with a 0.3 threshold for queries of four or more characters. Very short queries stay on prefix matching, and a keyboard-layout mapping covers queries typed in the wrong language.

0
ProgrammingDEV Community ·

Piping a script through tail hides its failing exit code from AI coding agents

A solo iOS developer in Japan found that Claude Code reported his check script as passing when it had actually failed. The agent ran the script piped into tail, so it saw tail's exit code of 0 rather than the script's exit code of 1. Two known failures were involved the first time, and a new failure in a request-validation check appeared during an unattended session the second time. The article explains that a pipeline's exit status comes from its last command, and shows how to recover the first command's status in bash or zsh using PIPESTATUS or pipestatus. It also covers set -o pipefail, which works in both shells, and notes that GitHub Actions' default bash shell behaves differently from an explicitly set one.

0
ProgrammingDEV Community ·

GPT-Image-2.6 Adds SVG and GIF Output, but Skips the Batch API

OpenAI released GPT-Image-2.6 Sunburst and Flare on November 4, adding SVG and animated GIF generation along with a new complexity setting. The Flare model supports only image generation and editing endpoints, with the Batch API marked unsupported, unlike the 2.5 Flare model, which offers a half-price batch option. Per-token pricing for the 2.6 models matches the 2.5 versions, though the newer models do not offer a dated snapshot for version pinning. A developer's forum comparison suggested medium-complexity images on 2.6 may use considerably more output tokens than on 2.5, though this is an unofficial estimate. Developers are advised to measure costs before switching model IDs in production.

0
ProgrammingDEV Community ·

Adding a fourth memcached server moved most cache keys and overloaded a product database

A PHP storefront team added a fourth memcached server to its three-server cache on a Monday morning before a peak sales season. Because the PHP Memcached extension used modulo hashing by default, most keys were reassigned to servers that did not hold them, so the cache hit rate dropped from about 97 percent to roughly 25 percent. The product database's read load rose more than twentyfold, and product pages timed out for around eighteen minutes until the cache refilled. The team later switched to consistent hashing via the ketama option, which moves only the keys that belong to the new server. They now restrict cache server changes to early Sunday mornings and plan database capacity around a cold cache.

0
ProgrammingDEV Community ·

PostgreSQL 18 Asynchronous I/O: Which Settings Are Worth Testing

PostgreSQL 18 introduces an asynchronous I/O subsystem that is active by default after an upgrade, so servers run it whether or not it was tuned. The default io_method is worker, which hands reads to dedicated I/O worker processes, while io_uring uses the Linux kernel ring interface and sync keeps the older blocking behavior. The feature mainly benefits sequential scans, bitmap heap scans and vacuum, with writes and WAL largely unaffected. The article advises keeping the default unless the system runs Linux with io_uring support and has read-heavy workloads with cold or large working sets. It recommends changing one setting at a time during controlled before-and-after tests, since warm caches and oversized worker counts can make results misleading or cause regressions.

0
ProgrammingDEV Community ·

Turning One Flat Product Photo into Lifestyle Scenes with Image-to-Image Prompts

A plain white-background product shot works for listings but often falls short for ads, social posts, and landing pages. Image-to-image workflows let creators keep the product from a reference photo and reimagine its setting through text prompts. The guide recommends starting with one sharp, front-facing image and a brief covering the surface, any human interaction, and lighting mood. It explains how Nano Banana CN's models differ, suggesting Nano Banana 2 as a default, Pro for legible labels, and 2.1 for multi-angle consistency. It also offers a five-block prompt structure, covering task, what to keep, scene, camera and light, and constraints, to prevent the model from altering the product.

0
ProgrammingDEV Community ·

Depot Fuel Tank Gauges Rely on 2G Networks Set to Be Switched Off

A company reviewing its mobile contracts found that fuel tank gauges at twelve depots send readings over 2G, as do electricity meters, gate barriers and timber store sensors. The UK networks have agreed to switch off 2G by 2033 at the latest, and some may do so sooner, which would leave these devices unable to report. Many of the devices were bought outside IT, and the fuel supplier's gauges are on a ten-year agreement signed in 2022. The company now requires a register of connected devices, with each device's network and expected end date, and prefers LTE-M or NB-IoT replacements. It has agreed replacement dates with suppliers, starting with the tank gauges.

0
ProgrammingDEV Community ·

Why OCR accuracy figures depend on scoring method and reading order

An author who reads OCR comparisons from the outside ran three engines on two clean printed pages, measuring results on an Apple M4 Mac in a desktop browser. They explain that edit distance penalizes misordered text heavily, while lost-character counts ignore order, so the two metrics can reveal different problems. On a rotated English page one tool scored 400 edits yet lost only one character, because paragraphs were out of order, while a rotated Chinese page lost about half its lines without any warning. The author stresses that choices such as the ground-truth transcription and character normalization, including how traditional forms and quotes are counted, materially change the scores. Single-run results are presented as illustrations of scoring effects rather than as rankings of engines.

0
ProgrammingDEV Community ·

Why Java's main method is declared as public static void main(String[] args)

Every Java program starts execution at the method public static void main(String[] args), which the JVM invokes directly. The article explains that each keyword serves a specific purpose in communicating with the Java Virtual Machine. The public modifier makes the method accessible to the runtime, while static allows it to be called on the class without creating an object instance. The void return type means the method returns nothing to the JVM, and the String[] args parameter stores any command-line inputs typed when launching the program.

← NewerPage 601 of 7359Older →