StackOverflow Collectives: Communities for your favorite technologies

Find centralized, trusted content and collaborate around the technologies you use most with Collectives™ on Stack Overflow. | Continue reading


@stackoverflow.com | 6 days ago

Node.js maxing out at 1000 concurrent connections

We're benchmarking node performance using a simple Hello World node server on AWS (EC2).No matter what size instance we use Node always appears to max out at 1000 concurrent connections (this is ... | Continue reading


@stackoverflow.com | 7 days ago

Is Lisp the only language with REPL?

There are languages other than Lisp (ruby, scala) that say they use REPL (Read, Eval, Print, Loop), but it is unclear whether what is meant by REPL is the same as in Lisp. How is Lisp REPL differen... | Continue reading


@stackoverflow.com | 14 days ago

Inlining of virtual functions (Clang vs. GCC)

Take this stupid example:class Base{ public: virtual void ant() { i++; }; virtual void dec() { i--; }; int i;};void function(Base * base) { base->ant(); base->dec(); ... | Continue reading


@stackoverflow.com | 14 days ago

Database Design Primay Key, ID vs. String

I am currently planning to develop a music streaming application. And i am wondering what would be better as a primary key in my tables on the server. An ID int or a Unique String. Methods 1:S... | Continue reading


@stackoverflow.com | 19 days ago

IPv6 – what does “dead beef” mean? – Stack Overflow

What does the word "dead beef" mean? I read it from a interview question. It has something to do with ipv6. I figured it could be a random hex number used for examples, like "The quick brown fox ju... | Continue reading


@stackoverflow.com | 20 days ago

What Is a Y Combinator?

A Y-combinator is a computer science concept from the “functional” side of things. Most programmers don't know much at all about combinators, if they've even heard about them.What is ... | Continue reading


@stackoverflow.com | 23 days ago

Changing a program while it is running (Lisp)

Not sure if this is an emacs-SLIME issue or a CL issue or SBCL issue.I've heard it said that the interactive nature of Lisp allows for changing a program while the program is running. Not knowing... | Continue reading


@stackoverflow.com | 28 days ago

Multiplications and 2 additions are faster than 2 additions

I am reading Agner Fog's optimization manuals, and I came across this example:double data[LEN];void compute(){ const double A = 1.1, B = 2.2, C = 3.3; int i; for(i=0; i<LEN; i++... | Continue reading


@stackoverflow.com | 1 month ago

So: What is the difference between null and undefined in JavaScript?

I want to know what the difference is between null and undefined in JavaScript. | Continue reading


@stackoverflow.com | 1 month ago

When – and why – should you store data in the Windows Registry?

As a developer, tools that store configuration/options in the registry are the bane of my life. I can't easily track changes to those options, can't easily port them from machine to machine, and it... | Continue reading


@stackoverflow.com | 1 month ago

Who are the site moderators, and what is their role here?

Stack Overflow | The World’s Largest Online Community for Developers | Continue reading


@stackoverflow.com | 1 month ago

How to use arguments from previous command?

I know that Esc + . gives you the last argument of the last command.But I'm interested in first argument of the last command.Is there a key binding to do so?On the same lines, is there a gener... | Continue reading


@stackoverflow.com | 1 month ago

Limit Django users to one single group

I'm rather surprised that this hasn't been asked before, but I need to limit my Users in Django to only belong to one single Group. How would I do this? | Continue reading


@stackoverflow.com | 2 months ago

SEO-optimization of oldest StackOverflow questions

Stack Overflow | The World’s Largest Online Community for Developers | Continue reading


@stackoverflow.com | 2 months ago

How to handle video autoplay on web just like YouTube

<html lang="en"><head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link href="https://cdn.jsdelivr.net/npm/bootstr... | Continue reading


@stackoverflow.com | 2 months ago

Is it ok to run Docker from inside Docker?

I'm running Jenkins inside a Docker container. I wonder if it's ok for the Jenkins container to also be a Docker host? What I'm thinking about is to start a new docker container for each integratio... | Continue reading


@stackoverflow.com | 2 months ago

Comparing Two Images with Imagemagick

How can I get the difference between two images? I have the original image. Someone has written on an exact duplicate of the original image. Now, I need to compare the original to the written on im... | Continue reading


@stackoverflow.com | 2 months ago

Ask HN: Is Stack Overflow jobs gone?

Continue reading


@stackoverflow.com | 2 months ago

How to give each list item a left swipe gesture in react-native?

I want to create a list (now it is a scroll view with map()ped items and works well). But I don't know how to add a slide menu to the items, which is displayed once I press screen from right and sw... | Continue reading


@stackoverflow.com | 2 months ago

Stack Overflow April Fools

I am new to golang and would like to make a small web app of to-do list to polish my go skills. I would like to know what is a good practice to organize the code.Right now, I define two packages ... | Continue reading


@stackoverflow.com | 2 months ago

Stackoverflow.com

Stack Overflow | The World’s Largest Online Community for Developers | Continue reading


@stackoverflow.com | 2 months ago

What length can a Linux network interface name have?

I need to adjust some database tables in order to accommodate 50+ character long network interface names.I wonder if there is a standard on how long an interface name can be, so I can map it corre... | Continue reading


@stackoverflow.com | 3 months ago

Searching for UUIDs in Text with Regex

I'm searching for UUIDs in blocks of text using a regex. Currently I'm relying on the assumption that all UUIDs will follow a patttern of 8-4-4-4-12 hexadecimal digits.Can anyone think of a use c... | Continue reading


@stackoverflow.com | 3 months ago

Why is std::is_copy_constructible_v\ true?

In my version of clang and libc++ (near HEAD), this static_assert passes:static_assert(std::is_copy_constructible_v<std::vector<std::unique_ptr<int>>>)Of course if you actually... | Continue reading


@stackoverflow.com | 3 months ago

Yes, this is embarrassingly slow .so I solved your problem

I am using Vaex and looking for performance tips. My use-case is as follows: I have a large dataframe - let's call it large_df(only a few columns but tens of million rows, and in production, the | Continue reading


@stackoverflow.com | 3 months ago

Any tools can randomly generate the source code according to a language grammar?

A C program source code can be parsed according to the C grammar(described in CFG) and eventually turned into many ASTs. I am considering if such tool exists: it can do the reverse thing by firstly | Continue reading


@stackoverflow.com | 3 months ago

That's one nice thing about Rust: It's not hard to spot expensive operations

I'm trying to compute the 10,001st prime in Rust (Project Euler 7), and as a part of this, my method to check whether or not an integer is prime references a vector:fn main() { let mut count:... | Continue reading


@stackoverflow.com | 3 months ago

C++ – Why doesn't std:swap work on vector elements under Clang/Win?

I have code like this:#include <vector>#include <utility>int main(){ std::vector<bool> vb{true, false}; std::swap(vb[0], vb[1]);}Arguments about the sanity of vecto... | Continue reading


@stackoverflow.com | 3 months ago

What does 'sdparta' stand for in a Firefox WebRTC session description?

When generating offer and answer objects during webRTC signaling in Firefox, Mozilla added a pun about Session Description Protocols by returning answers and offers that say "THIS_IS_SDPARTA.&... | Continue reading


@stackoverflow.com | 3 months ago

How do purely functional languages handle index-based algorithms?

I have been trying to learn about functional programming, but I still struggle with thinking like a functional programmer. One such hangup is how one would implement index-heavy operations which rely | Continue reading


@stackoverflow.com | 3 months ago

How does database indexing work?

Given that indexing is so important as your data set increases in size, can someone explain how indexing works at a database-agnostic level?For information on queries to index a field, check out ... | Continue reading


@stackoverflow.com | 3 months ago

Important languages to learn to understand different approaches and concepts

When all you have is a pair of bolt cutters and a bottle of vodka, everything looks like the lock on the door of Wolf Blitzer's boathouse. (Replace that with a hammer and a nail if you don't read x... | Continue reading


@stackoverflow.com | 4 months ago

Explain dependency injection to a 5-year-old

What is a good way to explain dependency injection?I found several tutorials on Google, but none of them that would assume the reader is just a Java beginner. How would you explain this to a novice? | Continue reading


@stackoverflow.com | 4 months ago

Many Endpoints per AWS Lambda

I have an AWS api that proxies lamba functions. I currently use different endpoints with separate lambda functions:api.com/getData --> getDataapi.com/addData --> addDataapi.com/signUp --&... | Continue reading


@stackoverflow.com | 4 months ago

What is the difference between raw_input() and input() in Python 3?

What is the difference between raw_input() and input() in Python 3? | Continue reading


@stackoverflow.com | 4 months ago

Failed request, trying to exchange authorization code for tokens with Google

I'm struggling with this specific step in the Google OAuth process: "Exchange authorization code for tokens" (As called in Google Developers' "OAuth 2.0 Playground", Step 2).fu... | Continue reading


@stackoverflow.com | 4 months ago

Why is 'this' a pointer and not a reference?

I was reading the answers to this question C++ pros and cons and got this doubt while reading the comments.programmers frequently find it confusing that "this" is a pointer but not a | Continue reading


@stackoverflow.com | 4 months ago

I have been making a Chrome app called Postman (2012)

I want to test some URLs in a web application I'm working on. For that I would like to manually create HTTP POST requests (meaning I can add whatever parameters I like).Is there any functionality in | Continue reading


@stackoverflow.com | 4 months ago

Vim Lisp mode is hard-coded to two space indent

I'm having problems with auto indentation in vim while programming in lisp.My .vimrc had the following settings for tabs:set noexpandtabset autoindentset softtabstop=0set shiftwidth=8set tabs... | Continue reading


@stackoverflow.com | 4 months ago

HPA on GKE Using Back End Latency from an Ingress LB via Stackdriver Externl Mtc

I'm trying to configure a Horizontal Pod Autoscaler (HPA) on Google Kubernetes Engine (GKE) using External Metrics from an Ingress LoadBalancer, basing the configuration on instructions such asht... | Continue reading


@stackoverflow.com | 4 months ago

StackOverflow Is Down

I am passing a props to a component: <template> {{messageId}} // other html code </template> <script> export default { props: ['mes... | Continue reading


@stackoverflow.com | 4 months ago

Is it possible to detect if an email was sent via Gmail's “Schedule Send”?

Just curious if the email headers are marked by Gmail to denote if the email was scheduled vs sent right away. | Continue reading


@stackoverflow.com | 4 months ago

How Does the Yin Yang Puzzle Work?

I'm trying to grasp the semantics of call/cc in Scheme, and the Wikipedia page on continuations shows the yin-yang puzzle as an example:(let* ((yin ((lambda (cc) (display #\@) cc) (call-... | Continue reading


@stackoverflow.com | 5 months ago

Why introduce `std:launder` rather than have the compiler take care of it?

I've just readWhat is the purpose of std::launder?and frankly, I am left scratching my head.Let's start with the second example in @NicolBolas' accepted answer:aligned_storage<sizeof(int), | Continue reading


@stackoverflow.com | 5 months ago

Number in Top Level Domain

Can top-level domains contain a number at the end? Idk nothing about DNS rules etc but when I try to use PHP's filter_var() function with FILTER_VALIDATE_EMAIL for test@null.com1 it returns true. | Continue reading


@stackoverflow.com | 6 months ago

Enforce good TypeScript compile-time validation error

Typescript language allows perform compile-time validations. Let's walk though following example (Playground also available)// Some complex compile-time type check, for instance, ariphmetic expres... | Continue reading


@stackoverflow.com | 6 months ago

Bulgaria's new eGov minister is a developer ranked #40 all time on StackOverflow

Stack Overflow | The World’s Largest Online Community for Developers | Continue reading


@stackoverflow.com | 6 months ago