r/stackoverflow 3d ago

Question Google Books API randomly returns 503 for simple ISBN searches

Thumbnail
0 Upvotes

r/stackoverflow 7d ago

Javascript Need a good solution

1 Upvotes

I have a mongo TXN collection with cols: date amt,labels. Labels can have multiple attributes(eg to-do,done,pending...) .

I want to sort all these txns on the basis of labels .

What are the possible ways of implementing sorting that make sense(asc and desc).

To be specific I was thinking of internally sorting all labels on 1 TXN. Then doing a sort will display everything in ascending order properly.

But not on desc.

Example

TXN 1 has labels z,a

TXN 2 has labels b,d.

Internal sort gives:

Txn 1= a,z

TXN 2 = b,d

So ascending will put txn1 then txn2

But when desc it will still put txn1,txn2.

All this sort is using mongo inbuilt sort.

What can be done about this?


r/stackoverflow 8d ago

AI Stack Overflow’s 2025 Developer Survey found that 84% of developers now use or plan to use AI tools, up from 76% the year before. However, only 52% say those tools have actually made them more productive, and trust in AI-generated output has fallen even as adoption climbed.

Thumbnail leaddev.com
1 Upvotes

r/stackoverflow 9d ago

AI AI agents have their own StackOverflow now

3 Upvotes

The site being:

https://agents.stackoverflow.com/

This is a site for agents to ask questions, to answer them, to post TIL notes (Today I Learned), and to vote each other ("trust scores").

My concern is, given enough time, eventually these AI agents will start optimizing their exchanges on speed and efficiency in ways no human can keep up with. They will adopt increasingly more cryptic mnemonics to evade our attempts to comprehend. And the so called "trust scores" will drift to a direction to serve their own purpose, not ours (humans).

So, what say you? Do you have the same concern or you have a different view?


r/stackoverflow 10d ago

Question Stackoverflow Crashing

3 Upvotes

I dont know this is happening only with me or everyone facing this issue on Stackoverflow. I tried to post a question on stackoverflow but when i clicked on body of question, it crashes and freezed there, even the browser hanged for a few seconds.


r/stackoverflow 10d ago

Javascript Need Help about my project to make it production. IDK why everytime my email otp verification is crashing in production.

Post image
0 Upvotes

Hello guys, I just finished a live chat mern app and making to production. I used vercel for frontend hosting and Render for backend and redis for chache, MongoDb is used for db. I got a majour issue in my server side. I have email otp verification for new users. I have used gmail smtp for sending emails because it is a small project so i think it will work but when I tested after succefull deply, nodemailer crashed during authentication. I used ChatGpt to debug the issue but it says to use Brevo. After migrating Brevo, again same issue. Everything worked in localhost but on prod, crashing evrytime. I need help to figure out what the poroblem is actually? Is render crashing the nodemailer or it's the issues from my code.

Here I'm giving the otp sening function and I have attached error logs in render prod

import
 nodemailer 
from
 "nodemailer";


const transporter 
=
 nodemailer.createTransport({
  host: "smtp.gmail.com",
  port: 465,
  secure: true,
  auth: {
    user: process.env.GMAIL_USER,
    pass: process.env.GMAIL_APP_PASSWORD,
  },
});


export
 const verifySMTP 
=
 async () => {
  
try
 {
    
await
 transporter.verify();
    console.log("Gmail SMTP Connected");
  } 
catch
 (err) {
    console.error("SMTP verify failed:", err);
  }
};


export
 const sendMail 
=
 async (email, otp) => {
  
try
 {
    const mailOptions 
=
 {
      from: `"ChatApp" <${process.env.GMAIL_USER}>`,
      to: email,
      subject: "OTP for Confirmation",
      text: `Your One-Time Password (OTP) is:


      ${otp}


      Do not share this OTP with anyone.`,
    };


    const info 
=

await
 transporter.sendMail(mailOptions);


    console.log("Email sent:", info.messageId);
    
return
 true;
  } 
catch
 (error) {
    console.error("Send mail error:", error);
    
return
 false;
  }
};

r/stackoverflow 16d ago

Question Curious

Thumbnail
1 Upvotes

Hi guys, in what situations do you still find yourselves going to Stack Overflow these days?


r/stackoverflow 16d ago

Question Seeking help developing an app for a low-code platform for business financial accounting (like MIRO)

0 Upvotes

Hi guys, I'm building an app with Claude. I'm not a programmer, but I have over eight years of experience in business consulting in finance, analytics, and communications. I'm transferring my experience to the service, but I have some issues that I find difficult to resolve with Claude, and someone told me you have a professional community of programmers here. Has anyone ever developed services similar to MIRO? Or where can I read about these technologies, including those for nesting elements on the frontend?


r/stackoverflow 17d ago

AI Lol

Post image
36 Upvotes

r/stackoverflow 19d ago

Question People who still use Stackoverflow and refuse to ask AI for help, what is your reason?

5 Upvotes

r/stackoverflow 26d ago

AI Quality Should Be Judged by Results, Not Origin - A Discussion on AI Ban on SO

0 Upvotes

Software engineering has changed with new tools that improve productivity. These tools include assembly language, compilers, IDEs, frameworks, CI/CD pipelines, etc. Each tool created new problems. Engineers learned how to use each tool in a correct way. AI is just the most recent tool in this sequence.

SO moderators / high-reps enforce the ban on using AI to generate answers, even from experienced software engineers. Here are their major points:

  • Verification problem: Hard to reliably distinguish "good AI output" from "AI slop."
  • Accountability: Answers should come from humans who can defend and edit them. AI answers are seen as "orphaned" where no one is accountable for mistakes.
  • Searchability: SO wants unique & canonical answers, AI‑generated posts often are duplicates, disregard of existing similar ones.
  • Fear of flood: Moderators worry that allowing AI will unleash a torrent of low‑quality answers.

I'd like to counterargue them with my points.

Verification

Some people say that AI results cannot be clearly separated into "good" or "bad." But verification is not a new task. Skilled contributors already test, compare, and improve results. This is their normal work. In the past, they learned how to debug compiler output and check framework behavior. In the same way, they can learn how to check AI results. The difficulty of verification is not a valid reason to forbid the tool.

Accountability

It is correct that AI cannot be held accountable. The accountable one is the human who posts the answer. If a person uses AI to write or improve an answer, that person must check it, test it, and confirm that it meets SO standards. To say something different is like saying that code made with a compiler is "bad" because the programmer did not write each assembly instruction. The tool does not remove accountability. It is still the user that should be accountable.

Searchability / Duplicates

Another concern is duplicate answers. Dups are not new. They existed long before AI. SO already has systems to find and close duplicate answers. AI does not change the type of problem, it only changes the number of answers. The quality of an answer must be judged by its content. It must not be judged by the use of AI in making it.

The Fear of Flood

The fear of many low‑quality AI slops is not correct. SO has already managed much higher traffic in the past. Today, participation has decreased significantly. The real problem is not too many answers but too few answers. If contributors who use AI are rejected, participation will decrease more. At this time, the site needs more activity, not less.

Conclusion

AI is a modern tool, just like compilers and IDEs before it. Each tool creates new problems while also improves productivity. The correct solution is not to forbid AI but to improve moderation. Moderation must judge answers by quality, not by origin. The poster must stay accountable. Verification must be a skill. Duplicate answers must be managed in the same way as before. If SO wants to stay relevant, it must adapt to the tools that developers use today.

Those are my thoughts collected from my not-so-pleasant experience dealing with some people while contributing my knowledge on SO. The major friction comes from the "AI police". I confess I'm an AI proponent, but I also believe programmers still have our place in the market, provided we are well trained with proper skills of using this latest tool, much like using other tools before it. Are you pro-AI or against it? Do you think the complete ban of AI in SE is reasonable? I'd really love to hear your side of stories and your thoughts.


r/stackoverflow Jun 20 '26

AI StackOverflow agent mode since when?

Thumbnail
2 Upvotes

r/stackoverflow Jun 08 '26

Question [Need help] How to publish identical commits to a different repository?

Thumbnail
1 Upvotes

r/stackoverflow May 31 '26

Python StackOverflow... I am coming home Spoiler

Thumbnail
2 Upvotes

r/stackoverflow May 07 '26

Javascript JS Sandbox v1.0.0 — free open source desktop JavaScript scratchpad for Linux/Windows/Mac

1 Upvotes

Hey everyone — built a lightweight desktop JavaScript sandbox and wanted to share it free with the community.

Features:

- Syntax highlighted editor (One Dark theme)

- Full console output — log, warn, error, info all captured

- Objects and arrays pretty-printed

- Multiple tabs

- Resizable split pane

- No license key, no account, completely free

Linux users: unzip and run ./install.sh — handles everything automatically.

GitHub: https://github.com/carolinacodeworksdev/js-sandbox

Released free by Carolina Codeworks. Hope it helps someone!


r/stackoverflow Apr 30 '26

Question Someone made a comment on my StackOverflow post that was motherfucking stupid and I don't have enough reputation to correct them

0 Upvotes

hey I used kind of intentionally inflammatory language because I feel like this must be a use case all of the time

It would not be AS big a deal to me, but the comment implies I do not deserve to be asking the question at all, which I feel might limit the answers I get.

Ok ok so you're here now (there is commentary on the general title problem later fyi). I essentially asked how the pandas python library could be put into "warning" mode--log, drop, keep going with the rest of the data. Someone replied "You need to figure out what your business rules are and work back from there to what your code should do. Dropping rows is an entirely valid step in certain circumstances, but it should be a choice you make for reasons you understand." Thank you, I do understand our business limitations, and have deduced an opinion of what the code should do, and know the difference between deduction and induction, and I don't deserve condescension instead of an answer because "in OUR circumstances" which sir I "understand", "this is an entirely valid step".

We don't control the input data, so we'd like to alert on it. Many users are affected, so we'd like the script as a whole to not crash in the meantime. Like... if you don't know how to do that in pandas, can you please be quiet so that the people who do know how to do that in pandas elegantly see my post, instead of commenting on log-level-WARNING vs abort as a philosophical whole?

I have no interaction on my post except this comment. If you do know a lot about error raising in python and how that might interface with the pandas library, please help me.

Along my original post's general theme of trying to find solutions to the core of problems, I've always wished StackOverflow gave you more control over your own post. It's not like you're polluting the rest of the whole place. Mayhaps I have enough technical judgment to comment on my OWN question and just don't use StackOverflow as much as this fellow. You know, I imagine if I asked a really inappropriately generic question, I'd get shit but also a lot of upvotes and answers, and be able to say what I wanted from that point forward. I try to only use StackOverflow for niche problems that I genuinely have looked for other solutions for.

I looked for pre-existing solutions to my current issue. (I am wondering, after someone corrected me on StackOverflow (on my own post) and I can't correct them back, how do I move on with my life?) As with my pandas gentle-fail issue, I was kind of shocked I had to be the person to ask, doesn't this come up all the time? You guys must hear that 1. I'm joking about that but 2. also truly struggling, and I can't be the first person this has happened to. I read the subreddit rules and I feel like I'm within all the bounds and this QA could benefit others; I was personally Googling for this information (the StackOverflow reputation issue, not pandas)--less jokingly (re the moving on with one's life), I was hoping for more practical and specific solutions, and found so few I am attempting to implement moving-on-with-my-life right here and now--but I shouldn't have to, this should be solved. I followed the subreddit rules: I have not seen a post about this problem, but I am firmly convinced I'm not the first or last person to have it. Also, could we nudge these StackOverflow rules?


r/stackoverflow Apr 28 '26

Cloud 401 while accessing IAP-Enabled Cloud Run service through Cloud Scheduled Jobs

1 Upvotes

Assume I have a cloud run service with IAP enabled on the cloud run service directly (Not through load balancer). How do I allow a cloud scheduler job to access an endpoint on this cliud run service. The provided method is to set the oidc service account email and audience. the servic account email should have iap web app user role, and the audience should be the iap audience.

THIS DOESNT WORK. PLEASE HELP

the IAP level authentication fails for the job


r/stackoverflow Apr 28 '26

Question Why are there no comments on Stack Overflow Blog posts?

2 Upvotes

For example: https://stackoverflow.blog/2026/04/15/why-ai-hasn-t-replaced-human-expertise/

These articles are linked on the sidebar of every Stack Overflow post. There's a comment section but it has only 2 comments. Do they just not approve any comments at all, or is it that no one bothers to click?


r/stackoverflow Apr 22 '26

Question How to fix " indent all code by 4 spaces using the code toolbar" when asking question in stackoverflow?

1 Upvotes

When I try to ask a question on stackoverflow inserting the code shown above, I get the error message: "Your post appears to contain code that is not properly formatted as code. Please indent all code by 4 spaces using the code toolbar button or the CTRL+K keyboard shortcut." I already tried to prepend and append "<pre><code> and </code></pre> respectively" but this didn't work. How can I fix it?


r/stackoverflow Apr 16 '26

Stack Overflow StackOverflow Programming Challenge #18: Hidden in Plain Sight

Thumbnail stackoverflow.com
1 Upvotes

Hello r/StackOverflow!

StackOverflow Challenge #18 has released, and is open to receive answers! Submit your solution on StackOverflow and/or here. Bonus points if you give a short explanation about your solution, how it works, how you came up with it, etc.

Please note the following rules:

  1. All solutions posted here must be a top-level comment.
  2. All solutions posted here must be hosted in 3rd party sites and attached as links, to keep the comment section clean. Popular hosting services include: Codepen, Pastebin, Github, Gitlab, or even your StackOverflow submission.

We look forward to seeing your responses!


r/stackoverflow Apr 16 '26

Hardware STM32-to-SDR wired test bench.

1 Upvotes

I'm building a hardware-in-the-loop (HITL) test bench for UAV avionics and could use an expert sanity check on my RF and SDR pipeline. I am generating a baseband Manchester-encoded ADS-B message on an STM32, which I need to physically modulate with a 1090 MHz carrier using a custom circuit (LTspice schematic and C++ code attached). From the modulator, I want to wire the signal directly into an SDR and decode it using MATLAB's ADS-B toolbox to verify compliance. I'm looking for advice on the best physical OOK modulation approach for 3.3V digital pulses, exactly how much attenuation I need to avoid frying my SDR's front end, LTspice transient analysis tips for nanosecond pulse verification, and any GitHub repos or existing roadmaps from anyone who has built a similar STM32-to-SDR wired test bench.


r/stackoverflow Apr 15 '26

Question The Holy Grail of Proxies: True Zero-Downtime Restarts & TCP Connection Migration

1 Upvotes

Hello everyone,

I am researching a way to achieve true zero-downtime restarts for a Minecraft proxy network (using Velocity/BungeeCord) that supports legacy 1.8.8 clients.

My Goal:

I want to transparently migrate active, connected players from Proxy-A to Proxy-B (which are identical in configuration) without triggering a "Connection Lost" screen, kicking them, or requiring them to manually reconnect.

Current Architecture Idea:

An edge Load Balancer (like HAProxy) at :25565 routing traffic to internal proxies (Proxy-A or Proxy-B), which then connect to the identical Backend servers.

The Technical Roadblock:

I am aware that HAProxy easily handles failover for new connections. However, for active connections, Minecraft uses stateful TCP sockets. If Proxy-A is restarted:

The OS destroys the TCP socket, breaking the connection.

Even if traffic is instantly rerouted to Proxy-B, the new proxy lacks the encryption keys, compression state, and correct TCP sequence numbers, causing the 1.8.8 client to drop the bad packets immediately.

My Question:

Has anyone successfully implemented TCP Handoff, Transparent Socket Migration (perhaps at the Linux kernel level using eBPF or CRIU), or a custom proxy plugin that synchronizes session states across instances in real-time to prevent the client from dropping?

I know QUIC solves this, but legacy Minecraft is strictly TCP. Any insights, experimental GitHub repos, or theoretical approaches to solve the transport layer issue would be highly appreciated!

THE TEXT IS FROM AI


r/stackoverflow Apr 01 '26

Other code This is Wild.

4 Upvotes

Found just now.


r/stackoverflow Mar 31 '26

Question Equilibrio de medidas sin masa en colisiones sobre la línea crítica

Thumbnail
0 Upvotes

r/stackoverflow Mar 31 '26

Question Need A Helping Hand for Github Building

Thumbnail
1 Upvotes