Why does C++ rand() seem to generate only numbers of the same order of magnitude?
In a small application written in C/C++, I am facing a problem with the rand function and maybe the seed : I want to produce a sequence of random numbers that are of different orders, i.e. with ...
Why only port 80 for web services?
Why isn't it sensible to dedicate more than one TCP/IP port to http? Although admittedly naive, isn't it somehow intuitive to think that server performance could somehow be increased?
Alternatives to LaTeX
Are there any professional alternatives to TeX/LaTeX which produce equal or even better typesetting? Maybe expensive commercial ones. The software counts if it is comparable or superior to LaTeX ...
What's with the aversion to documentation in the industry?
There seems to be an aversion to writing even the most basic documentation. Our project READMEs are relatively bare. There aren't even updated lists of dependencies in the docs. Is there something …
Find closed form for 1, 2, 2, 3, 4, 4, 5, 6, 6, 7, 8, 8, 9, 10, 10, …
Is there any closed form for the following? $$1, 2, 2, 3, 4, 4, 5, 6, 6, 7, 8, 8, 9, 10, 10, \ldots$$ I tried to find one, but I failed. I saw solution on Wolfram Alpha, but I didn't understand it: …
How do I fit my character in to a universe I am unfamiliar with?
I have recently finished my second session of a game universe I am only vaguely familiar with (namely Rogue Traders in Warhammer 40k, but this is a generic question). This universe has a very heavily …
How can I create a file with a specific size from a command line?
How can I create a file (e.g. using the touch command or another similar way), but with a specific size (e.g. 14 MB)? The use case is to test FTP with various file sizes. If we can create a file with …
making low-quality PDF files clearer
Some research papers available on the web have low-quality outputs. For example, see this. It seems that it was converted from a PS file and typeset in (La)TeX. However, it has all the font ...
Should I ask a potential employer about their negative Glassdoor reviews?
I was recently approached by a company to interview for a software engineering position. The role sounds great and I'm very comfortable with the technology stack. Aside from an "acquaintance of an …
Limit involving power tower: $\lim\limits_{n\to\infty} \frac{n+1}n^{\frac n{n-1}^\cdots}$
What is the value of the following limit? $$\large \lim_{n \to \infty} \left(\frac{n+1}{n}\right)^{\frac{n}{n-1}^{\frac{n-1}{n-2}^{...}}}$$ In general what do limits of infinite decreasing numbers ...
“Ungrep” - which patterns aren't matched
I'm looking for a command or script to do the following - given: file1.txt: abcd efgh ijkl mnop file2.txt: 123abcd123 123efgh123 123mnop123 I want a command that does something like this: ...
Why do we need to use virtual ~A() = default; instead of virtual ~A() {} in C++11
in this post http://stackoverflow.com/a/17204598/260127, I have the comment: In C++11 you'll actually want to do virtual ~A() = default; Otherwise, you'll lose the implict move constructors. ...
Does the death penalty exist in comics?
This question is about comics in general, but is focused on Marvel and DC since I know only those two universes. Hence, "comics" in this question refers to those two universes. Everyone knows ...
Should a developer tell his team lead about depression?
If a developer is experiencing feelings of severe depression (affecting his or her work ability and work output), should the developer disclose this to his development lead? What are the pros of ...
How unsafe is it to leave an expensive laptop at a rented apartment or a cheap hotel room? Which precautions should I take?
I'm going to Odessa, Ukraine, and may have to take my laptop with me for work reasons. I'll be staying at an unexpensive place which I rented online. Is it a very bad idea to leave the laptop in the …
These are the hottest questions across all topics on the network.
Create a filter to pick just the topics you want to see...