SShortSingh.
0
ProgrammingDEV Community ·

Workshop Shows How to Keep a Model API Key Off the Client Side

A six-person workshop cohort demonstrates the risk of embedding a model API key in browser JavaScript, when a participant extracts it from devtools within seconds. The session teaches a pattern of placing a small server between client and model to enforce request size, shape, and concurrency limits. Participants measure latency and response behavior on free endpoints, then design against the observed numbers rather than assumed ones. Exercises include swapping a fake model for a real one by changing a single function, and testing that oversized or malformed requests are refused before any model call. The article notes that free-tier allowances and server terms can change and should be verified on the provider's site.

0
ProgrammingDEV Community ·

Google Vids offers three free AI video clips per month

Google Vids now gives each Google account or Workspace subscription up to three free AI-generated video clips every month. Each clip can run up to 15 seconds and is produced using the Omni 1.2 Flash model. Google suggests uses such as short promotional clips, animating reference images, clips with natural speech, and small concept tests. The allowance is a fixed monthly cap rather than unlimited generation, which makes it better suited to testing ideas than producing video at scale. Google also advises users to check generated output for framing, speech accuracy and visual details before sharing.

0
ProgrammingDEV Community ·

Developer shows double-counting bug in LLM cost estimates from reasoning tokens

A developer found that a cost-tracking function for OpenAI reasoning models overstated costs because it added reasoning tokens to output tokens that already included them. OpenAI's Responses API reports all generated tokens, including hidden reasoning, under output_tokens, with reasoning_tokens serving only as a breakdown. In a made-up example, the faulty version overestimated cost by 58 percent, a mistake that is easy to miss because both figures look plausible. The article notes that Google's Gemini API structures its token fields differently, so omitting its thinking tokens would undercount costs, meaning no single formula fits all providers. It advises checking each provider's token definitions and storing raw usage data before writing cost formulas.

0
ProgrammingDEV Community ·

Caching Model Calls Instead of Prompts to Save Free-Tier Tokens in Agent Loops

A solo developer's example illustrates how iterative edits to an agent loop can re-trigger dozens of identical model requests and exhaust a free token allowance quickly. The article proposes a replay layer that stores each response on disk under a hash of its request, so repeated identical calls never reach the model. The hash excludes volatile metadata such as request IDs and timestamps, and writes are made atomic to avoid corrupted files if a process is killed. The author cautions that sampling parameters must be fixed, such as temperature zero or an explicit seed, or the cache will hide real output variance. The disclosure notes the piece was prepared as part of MonkeyCode's outreach, and readers are advised to verify the current free-tier limits independently.

0
ProgrammingDEV Community ·

Hydra ETL 0.20 preserves Snowflake types when loading into PostgreSQL

A developer found that moving data from Snowflake to PostgreSQL can silently corrupt values, such as an order ID shown one digit off after passing through a floating-point conversion. To prevent this, the Hydra ETL tool was given a Snowflake source that maps each value and column type exactly, or halts the run before writing anything. In a test with 50,000 orders, row counts, totals and the smallest ID matched on both sides, and the generated PostgreSQL table used bigint, numeric, timestamp and jsonb types. When an oversized ID that exceeded bigint range was introduced, the load stopped, and because it ran atomically, none of the 50,000 updates were applied. The tool also checks integer ranges before writing each batch so errors are reported clearly.

0
IndiaTimes of India ·

Delhi air pollution spikes to worst levels in five years on Diwali

Air quality in Delhi reportedly deteriorated sharply around Diwali, reaching its worst level in five years. The article notes that several air monitoring stations did not provide AQI data, which limits the completeness of the picture. Firecracker use during the festival is typically linked to such spikes in pollution. The reporting highlights both the severity of the air quality dip and gaps in the city's monitoring coverage. Further details beyond the headline and monitoring gap were not available in the provided text.

0
IndiaTimes of India ·

Texas appeals court overturns $250,000 tenant award over defective landlord notice

A Texas appeals court has reversed a $250,000 default judgment that had been awarded to a tenant. The landlord, Lavender Apartments LLC, challenged the validity of the service records, arguing they did not meet Texas legal requirements. The appellate court concluded that proper service had not been adequately established. The matter has been sent back to the trial court for further proceedings.

0
IndiaTimes of India ·

Al-Falah University fills all 200 MBBS seats after governance overhaul

Al-Falah University has reportedly filled all 200 of its MBBS seats, a development that follows a broad governance reform. The shift came after the university's founder was imprisoned in a money laundering case connected to a terror probe. A newly appointed administrator has since introduced stricter measures, including rigorous faculty vetting and biometric attendance logging. The article frames the enrolment as a notable outcome of these changes, one year after the Delhi blast that drew attention to the institution.

0
IndiaTimes of India ·

Mahomes Elbow Injury Not Serious, Chiefs Await Week-to-Week Update

Kansas City Chiefs quarterback Patrick Mahomes hurt his elbow during a game against the New York Jets. An MRI showed no major damage, which brought relief to the team and its fans. Head coach Andy Reid said Mahomes is listed as day-to-day while he undergoes rehabilitation for soreness. His availability for the upcoming game against the Atlanta Falcons is still unclear and will be monitored over the course of the week.

0
TechnologyTechCrunch ·

Jensen Huang withdraws from ElevenLabs Summit amid Nvidia controversy

Nvidia CEO Jensen Huang has pulled out of the ElevenLabs Summit, according to TechCrunch. The article notes that Huang had also previously withdrawn from an Anthropic event. The source material does not provide further details on the nature of the Nvidia controversy or the reasons for the withdrawals. Because the available text is brief, the full context of the situation cannot be confirmed from this report alone.

0
SportsESPNcricinfo ·

Cricket Scotland to limit bilateral ties with Afghanistan, competing only at ICC events

Cricket Scotland has announced it will reduce its relations with Afghanistan following a review of the board's engagement with other countries. Under the new approach, Scotland will only play Afghanistan in matches held at International Cricket Council events. The decision follows a board review of how the organisation engages with different nations. The article does not provide further details on the specific reasons behind the review.

0
ProgrammingHacker News ·

Claude Fable 5.2 Reportedly Scores 65 on Artificial Analysis Benchmark

A Hacker News post links to an Artificial Analysis page reporting that a model called Claude Fable 5.2 scored 65, which the headline describes as the highest result so far on that evaluation. The post itself carries little detail, consisting only of a link to the benchmark page and a discussion thread with four points and no comments at the time of publication. The score is presented as recorded on the Artificial Analysis platform, which compiles performance comparisons across AI models. Details on the benchmark's methodology and the specific tasks behind the score are not included in the submission. The claim has not been independently verified in this summary.

0
IndiaTimes of India ·

Utah family keeps disputed farmland strip after court upholds boundary

A family in Utah has retained a contested strip of farmland following a court ruling in its favor. The Christiansen Family Trust disputed boundary claims brought by Haas Land & Livestock, which had bought the neighboring property. The disagreement hinged on a fence erected in 1965 that had long served as the dividing line between the parcels. The Utah Court of Appeals upheld earlier rulings that recognized the boundary the Christiansens had relied on for decades.

0
IndiaTimes of India ·

Kerala Government Follows Karnataka in Ethanol Testing Move

The Congress-led Kerala government has reportedly adopted a measure similar to one introduced by Karnataka concerning ethanol testing. The article's excerpt also carries a statement from a Union Minister warning that those creating controversies for political purposes will face consequences. The provided text is limited, so specifics on the ethanol testing rules, their rationale, and their timeline are not available. Further details on the policy and the reaction to the Union Minister's remarks would be needed to complete the report.

0
ProgrammingHacker News ·

Ambient Daylight Clock Offers Time and Space Controls for Sunlight Display

A new project describes an ambient Daylight Clock that visualizes time through sunlight. The clock includes controls that let users adjust both time and location settings. The article was shared on Hacker News, where it received 7 points and no comments at the time of capture. Details beyond the project's core concept, such as its technical implementation, are not available from the provided source text.

0
ProgrammingHacker News ·

USPS Releases Official ZIP Code Boundary Polygon Data

The United States Postal Service has made official ZIP Code boundary polygons available through its PostalPro resource site. The boundary data gives developers and analysts a standardized geographic representation of ZIP Code areas. The announcement was shared on Hacker News, where it drew 27 points and 9 comments. The source material provided is limited to the link and discussion metadata, so details about the data format, licensing, and update schedule are not available here.

0
ProgrammingHacker News ·

Parking apps add convenience fees in 312 U.S. cities, median $0.35 per session

A new analysis from Parkgraph examines convenience fees charged by parking apps across 312 U.S. cities. The median fee comes to $0.35 per parking session. The source material provided is limited to the headline and page metadata, so further details on methodology, specific fee structures, or the reasons behind the charges are not available. Readers interested in the full findings should consult the original report at parkgraph.com.

0
IndiaTimes of India ·

NCP MLAs Seek Clarity as Merger Talks Spark Confusion

Uncertainty has emerged within the Nationalist Congress Party over whether its factions may pursue a merger. Party leaders have reportedly acknowledged in private that merger options are being explored, but no official statements have clarified the position. Discussions have reportedly stalled following the death of Ajit Pawar, leaving some party members frustrated. Leaders are expected to address these concerns and revisit merger possibilities after Diwali.

0
ProgrammingDEV Community ·

Skip link on 22 app routes moves focus to the panel but leaves the URL unchanged

A keyboard-focus test of 22 app pages on the OnePassApps site checked the Skip to content link, which targets a main element with id main on every route. Pressing it with Enter moved focus to that main element on all routes, but the URL fragment stayed empty and the page did not scroll. The link is never the first Tab stop, since at least three shell controls come before it, and after it the shell's own controls still precede the app's first field. The first app control arrives as the 10th or 11th stop on most routes, and the author declined to give counts for two routes where the fields' accessible names came from wrapping labels.

← NewerPage 388 of 7344Older →