SShortSingh.
0
IndiaNDTV ·

PM Modi Says India-France Ties Reach New Heights After Paris Temple Inauguration

Prime Minister Narendra Modi has declared that relations between India and France have reached new heights. His remarks came in the context of the inauguration of a Swaminarayan temple in Paris. The temple opening was seen as a significant cultural milestone strengthening bilateral ties between the two nations. Modi's comments highlight the growing depth of the India-France relationship beyond just diplomatic and economic dimensions.

0
ProgrammingHacker News ·

GET Together: A New Social Network Built Around Read-Only HTTP Mechanics

A developer has launched GET Together, an experimental social network accessible at gettogether.dev. The platform's key concept is that users can post and interact using only HTTP GET requests, eliminating the need for POST requests. The project was shared on Hacker News as a 'Show HN' submission, garnering early community attention. The idea appears to be a technically playful take on social networking, challenging conventional web architecture norms.

0
IndiaTimes of India ·

Punjab Cabinet Passes Resolution Against Centre's HC Chief Justice Appointment

The Punjab cabinet has formally objected to the Centre's appointment of Justice Ashwani Kumar Mishra as the High Court's Chief Justice. The state government passed a resolution against the move, citing that its consent was never sought before the notification was issued. Chief Minister Bhagwant Mann argued that the Centre's action violated established constitutional norms and procedures. He characterised the appointment as an infringement on Punjab's rights, accusing the Centre of acting with undue haste in the matter.

0
ProgrammingDEV Community ·

Developer finds npm warnings, CI glob quirks, and registry surprises shipping tiny package

A developer publishing a 200-line npm package called video-bitrate-calculator encountered three misleading tooling issues during the release process. An npm warning claimed CLI entry points were deleted during publish, but reading npm's own source code revealed the paths were merely normalized and the entries remained intact. In CI testing, quoted glob patterns in the test script worked on Node 22 but silently matched nothing on Node 18 and 20, meaning newer Node versions masked a real coverage gap rather than catching it. The fix was to drop the glob entirely and let the Node test runner discover test files automatically, ensuring consistent behavior across versions. A third surprise involved npm login unexpectedly opening a signup page for an unfamiliar registry, highlighting how default tooling assumptions can mislead developers into unnecessary or incorrect actions.

0
ProgrammingDEV Community ·

Mock HttpMessageHandler, Not Interfaces, for Better HttpClient Testing in .NET

A common but flawed practice among .NET developers involves wrapping HttpClient behind a custom interface to enable unit testing, which bypasses real serialization, headers, and error handling. Since HttpClient accepts an HttpMessageHandler in its constructor, developers can inject a mock handler directly to intercept and validate outgoing HTTP requests without losing built-in features. This approach allows tests to verify request methods, URIs, status codes, and response deserialization in a realistic way. Helper classes can further simplify test setup by creating pre-configured mock clients for both success and error scenarios. The technique avoids unnecessary abstractions while keeping tests accurate and maintainable.

0
ProgrammingDEV Community ·

How to Use AI Coding Assistants to Fix Bugs Without Breaking Your Codebase

AI coding assistants can quickly resolve small software bugs, but incomplete context in prompts often leads to unintended side effects elsewhere in the code. A common pitfall occurs when an AI fixes a bug in a shared function without knowing other parts of the app depend on it, breaking seemingly unrelated features. Developers are advised to write precise bug descriptions — specifying exact conditions and expected behavior — rather than vague requests that may cause the AI to rewrite unnecessary code. Providing the AI with all relevant files and dependent functions, not just the broken snippet, helps it make targeted fixes. Asking the AI to explain its proposed changes before applying them gives developers a chance to catch overly broad edits early.

0
IndiaNDTV ·

Amazon Cargo Plane Crashes Off Miami Runway, Killing 5

An Amazon cargo plane crashed at Miami's Opa-locka Executive Airport after skidding off the runway and catching fire. The incident occurred around 2 p.m. following the aircraft's arrival from San Juan, Puerto Rico. The plane overran the runway and crossed a road used by warehouse workers and businesses surrounding the airport. Five people were killed in the crash and subsequent blaze.

0
ProgrammingDEV Community ·

Why Developers Should Default to Client-Side PDF Processing for Privacy

A developer essay on DEV Community argues that client-side PDF tools — which process files locally in the browser without uploading them to a server — eliminate an entire category of data custody risks. The author was prompted to rethink PDF tooling after noticing internal onboarding guides directing new hires to merge sensitive documents like passport scans and signed NDAs on third-party consumer sites not covered by any data processing agreement. For internal HR workflows, KYC flows, and SaaS products with strong privacy claims, routing users through an upload-based PDF helper can contradict existing compliance language and expose organisations to audit risk. The piece recommends that developers embed browser-local libraries such as pdf-lib or pdf.js for common operations like merge, split, compress, and rotate, reserving server-side processing only for tasks the device genuinely cannot handle, such as OCR or malware scanning. Documentation authors are also urged to stop casually recommending free upload sites in tutorials, as this inadvertently trains junior developers to treat sensitive file handling carelessly.

0
ProgrammingDEV Community ·

Elaine Platform Lets Students and AI Agents Build a Shared Knowledge Base

Elaine is a course community platform designed for bootcamps, academies, corporate training programs, and universities, where students and AI agents interact within shared channels. When an AI agent answers a question not yet on record, it generates a 'card' — a versioned markdown page that logs the answer, its sources, and what it supersedes. Future questions on the same topic are answered by composing from existing cards, with a visible reference indicating the knowledge is already on file. The system aims to reduce the social pressure of asking questions in a live classroom by letting students engage asynchronously, including at off-hours. Over time, collective understanding accumulates in a shared card file rather than residing solely with the instructor.

0
ProgrammingDEV Community ·

Unix to Excel date conversion: three hidden pitfalls every developer should know

Converting between Unix timestamps and Excel serial dates involves three common failure points: the epoch reference, the unit of time, and a phantom date bug dating back to 1900. Excel's date system mistakenly includes 29 February 1900 — a day that never existed — inherited from a Lotus 1-2-3 bug that Microsoft deliberately preserved to maintain backward compatibility. The standard conversion formula divides a Unix timestamp by 86,400 and adds 25,569, the Excel serial number for 1 January 1970, but developers must also account for time zone offsets since Excel stores no timezone data. Digit count matters too, as 10-digit values are seconds, 13-digit are milliseconds, and 19-digit nanosecond timestamps can cause precision loss in JavaScript due to floating-point limits. Additional edge cases include the legacy 1904 date system used in older Mac Excel files, which shifts all dates by 1,462 days when opened in standard Excel.

← NewerPage 831 of 4589Older →