Adam Rosenfield

United States

adamrosenfield.com

Age: 28

Software engineer from Cambridge, MA

1d
revised So why is i = ++i + 1 well-defined in C++11?
typo
May
25
awarded Good Answer
May
23
awarded Guru
May
23
awarded Good Answer
May
16
awarded Notable Question
May
14
awarded Great Answer
May
10
awarded Nice Answer
Apr
22
comment Does the order of headers in an HTTP response ever matter?
@AviD: Yes, that's where the "if and only if the entire field-value for that header field is defined as a comma-separated list" condition kicks in. Headers like Content-Length are NOT a comma-separate list, so multiple Content-Length headers are not allowed. But the Accept header is a comma-separated list, so having multiple headers like "Accept: text/plain" and "Accept: text/html" is equivalent to "Accept: text/plain, text/html", but NOT equivalent to "Accept: text/html, text/plain" (the order matters).
Apr
3
awarded Enlightened
Mar
31
awarded Yearling
Mar
9
revised 403 Forbidden vs 401 Unauthorized HTTP responses
fixed link which is, ironically, 403'ing
Mar
9
comment Does the change in lower bounds for the char type in C++14 break compatibility with ones' complement systems?
C++14 §3.9.1/7 clearly says "[Example: this International Standard permits 2’s complement, 1’s complement and signed magnitude representations for integral types. —end example ]"
Feb
25
comment Why are stack overflows still a problem?
@Pavel: I don't know, I can't think of a good reason why the OS would want to do that; but it certainly has the capability to do so if it wanted.
Feb
24
comment Why are stack overflows still a problem?
@Pavel: There are multiple layers of indirection involved. My point was that the high-level virtual addresses seen by userspace programs can't be rebased. But those virtual addresses are mapped to physical addresses by the OS's page tables, and those page tables could be altered to remap the memory to different physical addresses (though I don't see what the benefit of that would be). The memory controller could then also remap the physical addresses to different physical calls on the memory chip if it wanted to (e.g. if it detected bad cells).
Jan
28
answered Formatting Sandbox
Jan
11
comment How to connect to a server using only its IP?
Are you being a router which performs NAT? If so, you'll need to enable port forwarding from your router to your server in order to allow external clients not located on your LAN to connect.
Jan
10
comment Java runtime check
The keyword you're looking for is a **profiler**.
Jan
9
awarded Supporter
Jan
9
awarded Teacher
Jan
9
awarded Autobiographer
1 2 3 4 5