Morning.dev
My Feed Popular
Login
I replaced Morgan with reqlog and never looked back
DEV Community • 2026-03-21 14:29

I replaced Morgan with reqlog and never looked back

Let me describe a debugging session I had six months ago. It is 11pm. A client is reporting that their order confirmation emails are not sending. I am staring at a NestJS backend with 12 services and I have no idea which request is failing or what payload it is carrying when it does. My terminal is a wall of Morgan output that looks like this: POST /api/orders 200 43ms GET /api/users/17 200 12...

0 0
4m read
Stop Showing the Wrong Currency: How I built a Next.js Hook to localize pricing based on IP
/r/ReactJS - The Front Page of React • 2026-03-21 14:28

Stop Showing the Wrong Currency: How I built a Next.js Hook to localize pricing based on IP

Hey everyone, I noticed a lot of SaaS apps struggling to show the correct currency to international users without slowing down the initial load. I put together a quick tutorial on how to build a `useUserLocation` hook in React/Next.js that pings a fast Rust-based API to grab the user's country and currency implicitly, keeping the frontend fast and localized. Would love any feedback on the ho...

0 0
1m read
𝚓𝚊𝚟𝚊𝚜𝚌𝚛𝚒𝚙𝚝 • 2026-03-21 14:27

[AskJS] Making an SVG interactable

So im a beginner in CSS and JS and im making my first portfolio. I have this idea that i dont know if its possible to make it work in the way im thinking. I have an SVG design, like a simple 2d drawing i made in AI and i made it into a bitmap. Would it be possible to put that SVG in my project and make the individual squares appear/dissapear on hover? I wanna put it on the main banner. I really ha...

0 0
1m read
One-Pedal Driving Isn't A Safety Issue: Feds
newest submissions : multi • 2026-03-21 14:24

One-Pedal Driving Isn't A Safety Issue: Feds

submitted by /u/TripleShotPls to r/technology [link] [comments]

0 0
1m read
newest submissions : multi • 2026-03-21 14:24

GT 730 + GTX 1070 on intel Z77 Motherboard.

I'm struggling to make these 2 cards t owork together: - Geforce GT 730 2GB fanless (4 HDMI ports) - GeForce GTX 1070 8GB I want to use the first for the 2 monitors I have, and the 1070 for Ollama. No games. Motherboard: ASUS P8Z77V-LX. Since the GTX 1070 does not work on hte PCIEX_x16 slot 1 I instaleld on the slot 2. For GT 730 I installed the driver 475.14 (as per Nvidia website) and it was wor...

0 0
2m read
Hacker News: Front Page • 2026-03-21 14:22

Major leap towards reanimation after death as mammal's brain preserved

Article URL: https://www.newscientist.com/article/2520204-major-leap-towards-reanimation-after-death-as-mammals-brain-preserved/ Comments URL: https://news.ycombinator.com/item?id=47467300 Points: 11 # Comments: 2

0 0
1m read
newest submissions : multi • 2026-03-21 14:21

Europe faces new wake-up call: Tehran's 4000km missile reach exposed in Diego Garcia strike

submitted by /u/MARTINELECA to r/worldnews [link] [comments]

0 0
1m read
Hacker News: Front Page • 2026-03-21 14:21

Albert's Swarm

Article URL: https://en.wikipedia.org/wiki/Albert%27s_swarm Comments URL: https://news.ycombinator.com/item?id=47467289 Points: 3 # Comments: 0

0 0
1m read
newest submissions : multi • 2026-03-21 14:21

Designing a “View Once” Secret Sharing System: Edge Cases, Race Conditions, and TTL Pitfalls

I worked on a small system with a simple requirement: Turns out, this is less about UI and more about consistency and race conditions. The Core Problem You need to guarantee: Exactly one successful read No access after consumption Expiry if never opened Correct behavior under refresh, retries, and concurrent requests Race Conditions If two requests hit at the same time (double-click, bot, prev...

0 0
1m read
DEV Community • 2026-03-21 14:20

Automatically Revert Temporary Value Changes in a with Block

The new rollback() API introduced in triggon v2.0.0 can automatically revert temporary changes to variables and attributes made in a with block. It also supports local variables, so it's only available on CPython 3.13+. Code Example Here's a simple example. In this example, the variable x is assigned 99 inside the block, but once the block exits, it's restored to its original value, ...

0 0
1m read
DEV Community • 2026-03-21 14:20

Stop Showing the Wrong Currency

Let's be honest: nothing kills an international conversion rate faster than showing a European customer a pricing page in US Dollars, or forcing a Japanese user to mentally convert from British Pounds. If you're building a global SaaS or e-commerce site, you need to show the local currency immediately. But doing IP geolocation on the frontend is notoriously tricky. Heavy local databases like Max...

0 0
3m read
newest submissions : multi • 2026-03-21 14:20

Violence over events abroad won’t be tolerated: Chief Defence of Forces Asim Munir

submitted by /u/neotheseventh to r/worldnews [link] [comments]

0 0
1m read
Small Language Models vs. Frontier: 3B Parameters Beat 70B
DEV Community • 2026-03-21 14:17

Small Language Models vs. Frontier: 3B Parameters Beat 70B

Originally published at adiyogiarts.com Small Language Models vs. Frontier: 3B Parameters Beat 70B The long-held belief that larger language models always perform better is now undergoing a critical re-evaluation. Surprisingly, new data reveals that some Small Language Models, with just 3 billion parameters, are significantly outperforming much larger 70-billion-parameter "frontier" ...

0 0
5m read
DEV Community • 2026-03-21 14:17

Go errors: sentinel errors, error structs or fmt.Errorf — how to choose

Code review on ClaudeGate. The HTTP handler that receives execution jobs was returning a 500 when the job queue was full. A colleague caught it in the logs: "this isn't an internal error, it's saturation — it should be a 503." He was right. The problem was a single innocent line: all errors from Enqueue treated the same way, without distinguishing their nature. That's the moment you have to ask t...

0 0
6m read
Suspected suicide bomb attacks kill at least 23 in Nigeria's Maiduguri
newest submissions : multi • 2026-03-21 14:15

Suspected suicide bomb attacks kill at least 23 in Nigeria's Maiduguri

submitted by /u/lewisfairchild to r/worldnews [link] [comments]

0 0
1m read
newest submissions : multi • 2026-03-21 14:15

Suspected suicide bomb attacks kill at least 23 in Nigeria's Maiduguri

submitted by /u/lewisfairchild to r/news [link] [comments]

0 0
1m read
Three weeks in, Iran war escalates beyond Trump's control
newest submissions : multi • 2026-03-21 14:15

Three weeks in, Iran war escalates beyond Trump's control

submitted by /u/Alert-Ad-3053 to r/worldnews [link] [comments]

0 0
1m read
MAGA and progressives unite to push back on big AI
newest submissions : multi • 2026-03-21 14:13

MAGA and progressives unite to push back on big AI

submitted by /u/FinnFarrow to r/technology [link] [comments]

0 0
1m read
DEV Community • 2026-03-21 14:13

The Singularity is Coming

It is not uncommon for popular culture to pick up on a concept from science and twist it until it is nearly unrecognizable. The concept of the "technological singularity" is no exception. Still, when the singularity is talked about as "the machines taking over" or the point at which we all "upload our consciousness to the cloud", we have strayed so far from the term's original meaning that it is w...

0 0
6m read
‘It’s stupid’: why western carmakers’ retreat from electric risks dooming them to irrelevance
newest submissions : multi • 2026-03-21 14:12

‘It’s stupid’: why western carmakers’ retreat from electric risks dooming them to irrelevance

submitted by /u/DonkeyFuel to r/technology [link] [comments]

0 0
1m read
Previous Next

Showing page 53 of 3229

Previous 53 Next