Adam Rosenfield

United States

adamrosenfield.com

Age: 28

Software engineer from Cambridge, MA

1d
answered How to print wide character using JNI
1d
answered Getting weird result by using %I64u inside Mingw-w64
2d
answered What does <exp+6> mean in gdb?
2d
comment Java array of size 0
It depends what you mean by "full", but an empty array has the property that it is both empty (has size 0) and has every element unequal to null (vacuously true).
2d
answered What's the best way to deliberately crash my Windows application?
Oct
19
comment C: Modify global array inside threads
Hint: Using the same name for a structure (struct data) and a variable (data) is technically legal but bad practice. What do you think the value of sizeof(data) is? Is it the size of the structure or the size of the (pointer) variable?
Oct
19
comment Java Socket giving me ConnectException
Your server isn't listening on that port.
Oct
18
answered Win32 - A better way to intercept a window before it is created
Oct
16
awarded Populist
Oct
13
answered python socket bad request 400
Oct
12
comment GetOverlappedResults blocks with bWait = false
You need to zero out the memory of your OVERLAPPED instance before passing it around to any functions such as NotifyAddrChange(). You're passing it uninitialized garbage memory.
Oct
10
revised Replacement CompareTo () in C ++ (Visual Studio 2012)
edited tags
Oct
10
answered Pthreads, fread(), and printf(): Getting random D4's in my string
Oct
7
comment Why are the pixel bars in a ppm image diagonal instead of horizontal or vertical?
Hint: If your width is not a multiple of 3, how many pixels are you writing out per row? Are you writing out exactly width pixels in all cases?
Oct
1
awarded Nice Answer
Sep
30
awarded Explainer
Sep
24
answered Sparse reading of 50gb file
Sep
23
revised How can I detect the file is forbidden when using open() in linux
edited tags
Sep
20
awarded compiler-construction
Sep
19
comment Symbol not found: ___sincos_stret
In examining the declarations of the various *sincos* functions in /usr/include/math.h on my OS X 10.9 system, they are all marked as __OSX_AVAILABLE_STARTING(__MAC_10_9, __IPHONE_NA), meaning they wouldn't be available on your 10.8 system. So my guess would be that the version of root you're using is compiled against OS X 10.9.
1 2 3 4 5