SShortSingh.

Programming

0
ProgrammingDEV Community ·

A transformer block is six tensors and a bus: read it like a pipeline

Originally published at cchinchilla.dev. Part 5 of From code to weights, a 12-part series on ML fundamentals for engineers. Part 4 ended on one stage. A decoder is a stack of blocks, twelve in GPT-2 small, and attention is one of two stages in each. This post reads a whole block the way you'd read a pipeline: what flows in, what each stage writes, and where the parameters and the cost end up.

0
ProgrammingDEV Community ·

How I Edit Text That Is Already Baked Into an Image

There's a specific image problem that most tools have no good answer for: the words are already part of the picture, and the original design file is gone. A cafe renames itself, but the sign photo is already printed on the menu. An event moves a week later, but the poster only exists as a JPG. A price goes up and the shelf label is a flat photo from two years ago. In each case, re-shooting costs more than the change is worth.

0
ProgrammingDEV Community ·

Fix: 'fatal: refusing to merge unrelated histories' in Git

The Error You run git pull or git merge and see: fatal: refusing to merge unrelated histories Git refuses to merge branches that do not share a common ancestor commit. This typically happens when you created a local repo with git init, created a remote repository on GitHub with a default README.md or .gitignore, and then tried to connect them. Force Git to merge the two independent project histories: git pull origin main --allow-unrelated-histories (Note: Replace main with master if your default branch is named master) If you are merging directly: git merge origin/main --allow-unrelated-histor

0
ProgrammingDEV Community ·

OutingFit Mumbai: Dress for the whole outing, not just the forecast.

This is a submission for the Hacktoberfest Weekend Challenge: Build for a Friend OutingFit Mumbai helps you decide what to wear and what to carry for an outing in Mumbai, based on the actual forecast for when you'll be out. It works by voice or text in English, Hindi or Marathi. OutingFit / OutingFit OutingFit Weather-grounded outfit and packing advice for outings in Mumbai, in English, Hindi and Marathi, by voice or text. speak / dictate / type ──► ElevenLabs (agent · Scribe STT) ──► outing form (visible, editable) │ confirm place + date/times ▼ Open-Meteo forecast for the outing window ──► d

0
ProgrammingDEV Community ·

I Built ReplyBuddy Because My Friend Never Knows What to Reply

This is a submission for the Hacktoberfest Weekend Challenge: Build for a Friend I built ReplyBuddy, a simple AI-powered tool that helps you write better replies to messages. The idea came from a small but very common problem. Sometimes you know what you want to say, but you are not sure how to say it. You might want to sound friendly without being too casual, professional without sounding robotic, or simply want a short and natural reply. I built ReplyBuddy for a friend who often spends a lot of time thinking about what to reply to different messages.

0
ProgrammingDEV Community ·

Published Go Events Never Seen: Debug Name Typos Against Supported Types

Short answer: for a marketplace workspace that must show who is online, start with ephemeral presence plus a bounded reconnect backfill, and validate every event constant against the provider's supported type list before serving traffic. A misspelled event name produces the most misleading symptom in this system: the publish appears to happen, no subscriber receives it, and no error explains the gap. The least complex fix is a startup assertion over one authoritative constants module. Do that before changing socket transports, retry intervals, or retention. Those changes cannot repair a name m

0
ProgrammingDEV Community ·

AI Coding Agents Are Leaking Credentials: Cursor, Claude Code, Copilot, and MCP

TL;DR The hidden trail: Cursor, Claude Code, and GitHub Copilot store credentials across config files, env variables, logs, shell history, and temp files that repository and CI scanners never inspect. The evidence: GitGuardian's State of Secrets Sprawl 2026 found 24,008 unique secrets in public MCP configuration files, 2,117 of them valid, plus a 3.2% leak rate in Claude Code-assisted commits. The fix: GitGuardian Developer Endpoint Protection discovers this trail fleet-wide with local agent inventory, machine scanning, AI hooks, and honeytokens, so security teams can remediate before compromi

0
ProgrammingDEV Community ·

Building PennyTap: Three Data Decisions Behind a Piggy Bank Tracker

The interface is deliberately small: choose a cash denomination or enter an amount, set a goal, and review a history of deposits. The interesting engineering work is in keeping those numbers honest. Here are three decisions from the PennyTap codebase that other developers building a small local tracker may find useful. PennyTap keeps an array of entries. Each entry has an amount, a creation time, an ID, and an optional note.

0
ProgrammingDEV Community ·

Decision Lab: Making tradeoffs visible with Sanity

This is a submission for the Sanity Challenge, Path Two: Vibe-Code Something Strange. Decision Lab is a small workspace for choices that have no obvious winner. Instead of asking one question and returning a confident answer, it lets people describe the options, name the criteria that matter, assign scores, and then move the importance sliders to see whether their conclusion survives a change in priorities. The demo compares two project ideas: AI Study Planner and Portfolio Website. The published Sanity content gives the former a higher learning score and the latter a much faster path to compl

0
ProgrammingDEV Community ·

😶 Du bruit à un monde jouable

Darkwaar20 commence par du bruit. Un plateau de 7×9 ne contient au départ ni terrain, ni chemin, ni objectif, ni structure visuelle significative. Chacune de ses 63 cases contient quatre canaux d’entiers générés à partir d’une graine. Cinq transformations plus tard, ces mêmes entiers décrivent un monde composé de sol, de vide, d’énergie, d’un noyau et d’une sortie. La transformation n’est pas automatique.

0
ProgrammingDEV Community ·

[Boost]

Thaththa's Memory Box - a personal AI agent that isn't allowed to make things up Hacktoberfest Weekend Challenge: Build for a Friend Submission 🤝 Jayana Gunaweera Oct 4 #devchallenge #hf26challenge #gemma #opensource 2 reactions comments 7 min read

0
ProgrammingDEV Community ·

OneInbox: a fine-tuned 4B model that reads my inbox so I don't have to

What I Built OneInbox is a daily email digest that sorts my inbox into four buckets: Action required: needs a reply, or has a deadline within 7 days Worth a look: useful, but nothing to do FYI: receipts, confirmations, security notices Noise: promos, newsletters, social The idea came from a complaint in a hackathon Discord about how tiring it is to keep checking inboxes. I have the same problem, so I built it for my own inbox. The core is a LoRA fine-tune of Qwen3.5-4B (Apache 2.0). Each morning it reads the last 24 hours of mail and produces a page I can read on my phone in under a minute. Ev

0
ProgrammingDEV Community ·

StudySprint

This is a submission for the Hacktoberfest Weekend Challenge: Build for a Friend I built StudySprint, a collaborative study planner web application designed specifically for a friend who is currently tackling a heavy load of university coursework. They often struggled with managing deadlines across different subjects and lacked a unified system to practice active recall while managing their time. StudySprint solves this by integrating: A dynamic Subjects & Tasks Manager to keep track of upcoming exams and assignments. A built-in Pomodoro Timer with "Focus", "Short Break", and "Long Break" mode

0
ProgrammingDEV Community ·

BreakMyQuery: find the row that breaks your SQL

BreakMyQuery: find the row that breaks your SQL This is a submission for the Hacktoberfest Weekend Challenge: Build for a Friend. I built BreakMyQuery for a colleague(also a friend🫠) who is a new graduate hire and is struggling with SQL joins or let's say he's scared of SQL joins. A query can pass the sample data while quietly dropping a customer who has no orders. For someone learning joins, seeing the missing customer gives them a concrete place to start investigating. BreakMyQuery offers eight SQLite exercises covering joins, NULLs, aggregation, ties, arithmetic, dates, and anti-joins.

← NewerPage 656 of 3151Older →