SShortSingh.
0
ProgrammingDEV Community ·

Node.js Avatar Uploads to S3-Compatible Storage: Metadata, Retention and Private Links

The article argues that avatars should be stored as private objects, with their generated keys and metadata recorded in a database, and accessed through short-lived signed URLs only when needed. Node.js handles authentication, file validation, key generation and the database transaction, while the storage service holds the image bytes. It recommends checking the decoded file type rather than trusting the Content-Type header, enforcing a byte limit before reading the request body, and treating the size limit and deletion schedule as separate controls. The piece includes sample TypeScript code for saving an avatar and notes that an idempotent replacement path and a cleanup strategy for failed inserts are needed. It concludes with a brief example of a REST-based upload request.

0
ProgrammingDEV Community ·

How to Generate an XSD Schema Automatically from an XML File

Hand-writing an XSD is tedious and error-prone, since every element, attribute, and data type must be defined manually from an XML sample. Schema inference offers an automated alternative by analyzing the sample's structure and content. Tools map tags to elements, nested tags to complex types, and guess data types such as integers or booleans, while repeated tags receive unbounded occurrence limits. The popular open-source Java tool Trang can produce a basic XSD from the command line, though empty elements default to strings and overly strict occurrence rules may break on real data. The article also cautions that uploading internal XML to online tools poses a security risk, and promotes a client-side generator that runs entirely in the browser.

0
ProgrammingDEV Community ·

Testing pgvector, Postgres full-text search, and hybrid RRF on 30 RAG chunks

The author, while building a FastAPI and PostgreSQL RAG pipeline, faced problems with chunking that split financial tables and produced heavily overlapping chunks, plus slow and costly LLM-based evaluation. To address this, they built a local benchmark on PostgreSQL 17 and pgvector 0.8.7 using 30 enterprise chunks and 15 test queries, scoring retrieval with Recall@K, MRR, and NDCG computed locally at no cost. Results showed pure vector search struggled to rank exact error codes and SKUs at the top, pure full-text search failed on semantic paraphrases, and hybrid Reciprocal Rank Fusion performed best overall. The author also reported SQL fixes for stable hybrid search, including a deterministic tiebreaker and a relaxed iterative scan setting for filtered HNSW queries. The benchmark script, dataset, and chunk health checker were released as a free download.

0
ProgrammingDEV Community ·

SelfHeal Uses LLM Patches to Repair Failing Python Apps With Rollback Safety

SelfHeal is a tool that responds when a Python function raises an error or fails a health check. It asks a large language model to generate a code patch for the problem. The patch is first checked for syntax and tested with pytest in a copied workspace. The running function is only updated after the user approves the change, and if activation fails, the system reverts to the previous version.

0
ProgrammingDEV Community ·

Professor Jarvis thanks readers and outlines its cybersecurity guides in Spanish and English

The team behind Professor Jarvis thanked readers from several countries for following the project. They describe their output as practical cybersecurity guides aimed at everyday users, offered step by step in Spanish and gradually translated into English. The project also plans short vertical videos for YouTube and shares tools and tricks its members use themselves. Readers are invited to suggest security topics in the comments, which the team says it reads and answers.

0
IndiaTimes of India ·

BJP MLA Claims Diwali Firecrackers Help Cure Diseases, Sparking Debate

Tollygunge BJP MLA Papia Adhikari made claims linking firecrackers to curing several diseases while speaking at a Kali Puja inauguration. Chief Minister Suvendu Adhikari stressed that bursting firecrackers remains an important part of festival celebrations. He also asked citizens to opt for eco-friendly or green crackers and to follow noise regulations. The remarks underline the role firecrackers are seen to play in the Kali Puja festivities. The article does not provide medical evidence supporting the MLA's health claims.

0
ProgrammingHacker News ·

Drugmaker CEOs Remain Skeptical of Silicon Valley's Claims That AI Will Cure Disease

Technology companies in Silicon Valley have been promoting the idea that artificial intelligence will soon lead to cures for a wide range of diseases. Executives at pharmaceutical companies, however, are reportedly unconvinced by these predictions. The Wall Street Journal's report highlights the gap between tech industry optimism and the more cautious view held by the drug industry's leadership. The article, shared on Hacker News, drew modest engagement from readers discussing the topic. The available source material provides only the headline and link, so the specific reasons behind the drugmakers' skepticism are not detailed here.

0
IndiaTimes of India ·

Court upholds dismissal of Omaha landlord's civil rights suit over 2018 building closure

A federal appeals court has affirmed the dismissal of civil rights claims brought by AB Realty against Omaha officials. The lawsuit stemmed from the city's 2018 decision to close a building over code violations. The company had argued that the closure violated the Fourth, Fifth, and Fourteenth Amendments. However, the court concluded there was not enough evidence to back those allegations. It also found that the city followed legal standards during its inspections.

0
TechnologyNYT Technology ·

Rubio Warned Officials About Nvidia CEO's Ties to Suspected Chinese Spy

Secretary of State Marco Rubio played a role in drafting a secret memo, according to reporting on the matter. The memo reflects concern among top officials last spring about Nvidia chief Jensen Huang's relationship with a woman linked to Chinese intelligence. The episode underscores how seriously senior American officials viewed the potential security risks tied to the connection. The article's details focus on the internal warnings rather than any public charges against Huang. Further specifics about the memo's contents and follow-up actions were not included in the provided text.

0
ProgrammingHacker News ·

Zork I Runs on a CP/M Emulator Under Linux, Per a 2021 Write-up

A 2021 article describes how to play the classic text adventure Zork I using a CP/M emulator on a Linux system. The piece, published on the author's personal site, walks through running the CP/M-era software in an emulated environment rather than on original hardware. It was shared on Hacker News, where it drew a small amount of attention with five points and three comments. The article is a hands-on retro computing project rather than a news event. The source material provided here contains only the title, link, and engagement figures, so the details of the setup itself are not described in this summary.

0
IndiaTimes of India ·

Jeff Bezos' rise from a $890 monthly rent to a $700m property empire over 32 years

Jeff Bezos's property holdings have grown into a reported $700 million portfolio over roughly three decades. The journey reportedly began with a modest rental costing about $890 per month. The article traces how his real estate investments expanded alongside his Amazon business. The source describes the progression as a 32-year path from humble beginnings to a major property empire. Because only the headline and a placeholder were provided, specific details beyond these points could not be verified.

0
IndiaTimes of India ·

Why birds flap their wings while landing, according to new research

A new study finds that birds flap their wings during landing to improve control and slow down before touching ground. The energy spent on flapping gives them a measurable advantage in achieving a safe touchdown. Mathematical models suggest that landing at zero speed without flapping is impractical for most species. Birds of prey may also swoop to regulate their touchdown speed and avoid stalling just before they land.

0
ProgrammingHacker News ·

Goldman Sachs Reportedly Pulling Claude Code From Its Bankers and Traders

Goldman Sachs is reportedly removing access to Anthropic's Claude Code tool for its bankers and traders. The move was reported by The State of AI, which the Hacker News post links to. The available material provides only the headline, link, and discussion metadata, so the specific reasons behind the decision are not confirmed here. Further details would need to come from the original report.

0
IndiaTimes of India ·

Kolkata engineer killed; live-in partner and mother detained

An engineer was reportedly hacked to death in Kolkata, and police have taken his live-in partner and his mother into custody in connection with the killing. The case has drawn attention because the victim was living with his partner at the time of the attack. Investigators are working to establish the sequence of events and the motive behind the crime. Further details about the suspects' roles are expected as the probe continues.

0
TechnologyTechCrunch ·

SNL Debuts New Elon Musk Impression Mocking Him as 'the Worst Thing South Africa Has Ever Done'

Saturday Night Live has introduced a new impression of Elon Musk in a sketch that pokes fun at the tech executive. The portrayal includes the line describing him as 'the worst thing South Africa has ever done.' The article notes that SNL appears to be targeting tech executives more broadly with its satirical humor. The source text provided is brief, so further details about the sketch's plot or broadcast date are not available.

0
ProgrammingDEV Community ·

Cloudflare retires 24 Workers AI models on November 20, 2026

Cloudflare will stop serving 24 Workers AI models on November 20, 2026, covering 16 text-generation models plus eight models for image generation, speech, transcription, vision and embeddings. Requests to the retired models will return HTTP 410 Gone with error code 5028, and Cloudflare has not said that traffic will be automatically redirected to a newer model. For most text models the company suggests general-purpose replacements rather than one-to-one mappings, while the other eight models each have a named successor. Embedding users face the most difficulty, since the replacement embedding model was not yet available when the notice was posted, and vectors from different embedding models are generally not directly comparable. A smaller change also takes effect: Durable Objects will now retry failed calls by default.

0
ProgrammingDEV Community ·

Ahmedabad student's restaurant software models orders as shared state transitions

A Computer Engineering student in Ahmedabad is building RestaurantOS, a restaurant operations product from his company Nirvaan Tech. The system links the owner, waiter, kitchen, and cashier around a single order that moves through a defined sequence from placement to payment. The author says the main challenge was defining which role may change an order and when, rather than the interface itself. Instead of separate dashboards, each order is treated as a state machine in which each role can only advance it according to its responsibilities. The author is asking other developers in logistics, healthcare, and similar fields for feedback on where this approach may fail.

← NewerPage 149 of 7055Older →