Adam Rosenfield

United States

adamrosenfield.com

Age: 28

Software engineer from Cambridge, MA

Feb
27
awarded Nice Answer
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).
Feb
19
awarded Enlightened
Feb
12
awarded Notable Question
Feb
10
awarded Good Answer
Feb
1
awarded Guru
Jan
28
answered Formatting Sandbox
Jan
23
awarded Great Answer
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
Jan
5
answered binascii.unhexlify working differently in Python 3.2 and Python3.4?
Jan
4
awarded Yearling
Jan
4
awarded Yearling
Dec
31
comment pthread Function from a Class
@Rohit: Your thread procedure threadOne() never tries to do anything with its argument args. If it did, it would get NULL, and it would be unable to access the Thread object instance. What's surprising there?
Dec
29
comment Stack around the variable was corrupted
gets() is impossible to use safely. Never use it.
Dec
25
comment Are ints always initialized to 0?
@n00bProgrammer: Yes. In the situations described above, all variables are "zero-initialized" in whatever manner that means for their respective data types. Arithmetic types (int, NSUInteger, CGFloat, float, bool, BOOL, char, etc.) are all initialized to 0 represented in those types.
1 2 3 4 5