SShortSingh.
0
ProgrammingDEV Community ·

Streaming Large CSV Exports in Laravel to Avoid Out-of-Memory Failures

A Laravel export feature failed silently for high-volume accounts because it loaded every matching order into memory and built the entire CSV as one string. The author explains that this approach causes memory exhaustion from Eloquent hydration, the growing string, and the response buffer, and also produces malformed output when fields contain commas. The proposed fix uses Laravel's streamDownload to write rows directly to the output as they are produced, so the full file never sits in memory. Input should be streamed as well, with lazyById() recommended for its key-based paging and eager-loading support. Explicit fputcsv arguments are advised to keep output RFC 4180 compliant and avoid PHP 8.4 deprecation warnings.

0
ProgrammingDEV Community ·

Meta ends feature development for Quest 2 and Quest Pro; app store stays open

Meta has announced that feature development for the Quest 2 and Quest Pro headsets is ending. According to Engadget, the app store will remain open beyond next year, but no new features will be added. The article also notes that the shift leaves existing hardware owners relying on current software. A separate developer post describes using the Amblyotube app on a Quest headset as a vision therapy aid for amblyopia. That app is published by Seven Sports on the Meta Quest store, and the author says it is a supplementary tool rather than a medical device.

0
ProgrammingDEV Community ·

Five few-shot examples nearly doubled the cost of a short LLM prompt

A developer found that adding five worked examples to a short extraction prompt almost doubled its per-call cost. Because APIs bill for every input token on every request, the examples are resent and charged each time, even though the model keeps no memory between calls. In the author's test, the examples made up about half of the input cost, and the multiplier stayed roughly the same across several major models. The effect matters most for short tasks, since long documents dilute the examples' share of the bill. The article suggests using structured output for format issues and keeping only the examples that address genuine judgment calls.

0
ProgrammingDEV Community ·

Open-source tool removes Android bloatware without root and measures the speed gain

A developer has released adb-kit, a tool that uses wireless ADB to disable or uninstall unwanted phone packages per user, requiring no root access. Because each change is per-user, any removed package can be restored, avoiding permanent damage to the device. The tool also profiles results with gfxinfo to measure performance rather than relying on subjective impressions. On a vivo V21, the developer reported that removing 52 packages cut average frame time from 18 ms to 12 ms and reduced janky frames from 0.27% to 0.00%. The figures are documented in the project repository with screenshots, though they come from a single device and workload.

0
ScienceWIRED ·

WIRED Tests 30 Computer Speaker Pairs to Name Its Top Eight Picks for 2026

WIRED has published a roundup of the best computer speakers for 2026, based on testing 30 different pairs. The guide covers a range of options, including stereo speaker sets, subwoofer setups, and surround sound systems. The article is intended to help readers choose speakers for their computers. The source material provides only this general overview, so specific models, prices, and performance findings are not detailed here.

0
ScienceWIRED ·

NYT Cooking's New AI Recipe Modifier Gets a Positive Hands-On Review

The New York Times has introduced a beta feature in its Cooking app that uses AI to help readers substitute ingredients or adjust recipes to fit their needs. A WIRED reviewer tested the tool and found that it generally performs well. The article focuses on the reviewer's firsthand experience with the feature rather than on its technical details. The feature remains in beta, so its capabilities and availability may still change.

0
IndiaTimes of India ·

Patrick Mahomes' property ventures started with a 2017 penthouse purchase

Shortly after being drafted into the NFL in 2017, Patrick Mahomes bought a modest penthouse that launched his real estate activity. Four years later, he sold a renovated ranch-style home at roughly a $700,000 profit. He also purchased a large mansion in Texas to serve as a retreat for his family. Mahomes further built a custom estate in Missouri, reflecting his growing wealth and standing in the league.

0
ProgrammingDEV Community ·

Why background jobs hitting rate-limited APIs fail: six common myths

Background job queues can generate work faster than a third-party API's rate limit allows, and the mismatch causes trouble. Adding more workers beyond the limit only produces extra 429 rejections and wasted retries, so concurrency should be sized against the downstream limit. Rate limits are usually enforced per API key or IP rather than per process, so limits must be coordinated across all workers, for example with a shared token bucket in Redis. Immediate retries after a 429 are almost certain to fail, so the article recommends honoring Retry-After headers or using exponential backoff with jitter, re-enqueuing delayed jobs instead of sleeping in workers. Rate-limit responses should also be treated differently from genuine errors, since a 429 means "not now" rather than a permanent failure.

0
ProgrammingDEV Community ·

TianDun turns a single portrait and script into AI talking avatars and live hosts

TianDun is a tool built to help creators and sellers produce content from one clear portrait and a short script. It generates talking avatar videos and product clips, and can run a live AI host that handles voice, a virtual shelf, product pitches, and danmaku replies. The output can be pushed to several platforms, including Douyin, Kuaishou, WeChat Channels, Bilibili, Xiaohongshu, and RTMP streams. Users can browse the service for free, and failed jobs are refunded in credits. The product is offered by Quanzhou TianDun Intelligent Things Tech Co., Ltd., which invites user feedback.

0
ProgrammingDEV Community ·

Verifying signed company records in the browser with Ed25519 signatures

Company data sent as CSV or PDF files offers no way to confirm who issued it or whether it was changed afterward. The author built a small API that returns company records as Ed25519-signed JSON, letting recipients check the issuer and integrity mathematically. Each claim in a record carries its own source dataset and as-of date, since a signature proves origin and integrity but not truth. A browser-based demo uses WebCrypto to verify a sample record locally, and a tamper button shows a failed check when a single character is altered. The sandbox draws on public Japanese datasets, including the National Tax Agency corporate number publication and EDINET, and its canonicalisation rules are published so others can build independent verifiers.

0
ProgrammingDEV Community ·

Fedora 43 Hibernation Setup: LUKS, NVIDIA and Secure Boot Trade-offs

A developer shares a working hibernation configuration for a Lenovo ThinkPad P1 Gen 7 running Fedora 43 with a Windows dual boot, LUKS encryption, and hybrid Intel/NVIDIA graphics. Hibernation depends on several interacting layers, including firmware, kernel, encrypted swap, initramfs, and the GPU driver, and a misconfiguration can cause failed hibernation or a broken desktop on resume. The author chose Linux 6.12 LTS and NVIDIA 580 for stability rather than because either is required. On this system, enabling Secure Boot disabled hibernation via kernel lockdown, so the tested setup keeps it off, a trade-off the author does not recommend blindly. Because changing firmware settings can trigger BitLocker recovery on the Windows partition, the guide advises suspending BitLocker and keeping the recovery key available first.

0
IndiaTimes of India ·

Pakistan U-19 fielding mix-up against India in Asia Cup draws attention

Pakistan's Under-19 fielders made a series of errors during their Asia Cup match against India. Three players ran toward a high catch but veered away at the last moment, letting the ball drop. The mix-up led to a heated exchange between teammates on the field. Earlier in the innings, Arjun Rajput scored 107 to help India recover from a slow start and reach 208 runs.

0
IndiaNDTV ·

Israel Says Iran Mission Unfinished, Accuses Tehran of Seeking Nuclear Arms

Israeli Defence Minister Israel Katz has renewed accusations that Iran is pursuing nuclear weapons. He noted that Iran has been struck twice since last year in major bombing campaigns carried out by Israel and the United States. Tehran rejects the claim that it is building a nuclear weapons program. The remarks indicate Israel views its military objectives against Iran as not yet complete. The article is based on a brief report and does not include further details on timing or specific evidence.

0
IndiaTimes of India ·

Nearly 100 fall ill after eating street-vended pani puri and tikki in UP village

About 100 residents in Siddharthnagar, Uttar Pradesh, became sick after eating pani puri and tikki bought from a street vendor. Those affected developed vomiting and diarrhoea soon after consuming the food. Medical teams from local health departments were sent to treat and keep watch over the patients. Officials are still investigating what contaminated the food, with leftover ingredients suspected as a possible source.

0
IndiaNDTV ·

Man Who Said He Held a Grudge Against Society Stabs Bookshop Worker in Japan

Police in Japan arrested a man after he stabbed a bookshop employee, according to reports. The suspect reportedly told investigators he held a grudge against society, which is cited as a possible motive. Authorities have not released detailed information about the victim's injuries. Police said there was no fear for the victim's life. The source article provides limited further detail on the timing and specifics of the attack.

0
IndiaTimes of India ·

Judge Orders Probe After 400 Trees Cut at Trump's Washington Golf Course

A judge has directed an investigation following the removal of roughly 400 trees at a golf course owned by Donald Trump in the Washington area. The tree cutting has drawn scrutiny over whether the work complied with applicable rules and permits. The court's order requires authorities to examine the circumstances surrounding the removal. The probe is expected to determine who authorized the work and whether any violations occurred. Further details on the timeline and findings are pending.

0
IndiaTimes of India ·

Kanpur hit-and-run: Thar drags scooter rider 20 metres, man killed on Diwali eve

A 55-year-old man, Santosh Singh Chauhan, died in Kanpur after an out-of-control Thar SUV struck his scooter. The collision took place in the Awas Vikas 3 area of Kalyanpur, and the vehicle dragged him and his two-wheeler roughly 20 metres. Witnesses said the occupants of the Thar shouted after the crash and then left the scene in another vehicle. Police have impounded the Thar and are examining CCTV footage as part of their investigation.

0
IndiaTimes of India ·

Deeper male voices do not boost attractiveness, Durham University study finds

Researchers at Durham University have found that lowering a man's vocal pitch does not make him more appealing to women. The study showed that deeper voices may signal strength and dominance, but they did not raise attractiveness ratings. The team worked with 17 men, deliberately modifying their voices to measure listeners' reactions. The findings suggest that women's judgments of attraction depend more on visual cues than on the sound of a speaker's voice.

← NewerPage 449 of 7348Older →