Adam Rosenfield

United States

adamrosenfield.com

Age: 29

Software engineer from Cambridge, MA

4h
awarded Great Answer
Jan
28
awarded Nice Answer
Jan
15
awarded Good Answer
Jan
10
awarded Favorite Question
Jan
9
awarded Announcer
Jan
4
comment What is the difference between AF_INET and PF_INET constants?
See also this duplicate question: stackoverflow.com/questions/6729366/…
Jan
4
awarded Guru
Dec
29
awarded Good Question
Dec
23
awarded Enlightened
Dec
14
comment using php to create a joomla user password?
DO NOT DO THIS! This is not "encryption" in any sense, this is simple obfuscation that will not defeat even the most basic of attackers.
Nov
17
awarded Great Question
Nov
11
comment How to use NSOutputStream's write message?
@Zammbi: Because the -write:maxLength message takes a pointer to the data you're trying to write, which can be any length, as opposed to taking the data by value, which would require the data be a fixed size.
Oct
17
comment Was PreferenceFragment intentionally excluded from the compatibility package?
This should now be the new correct answer!
Oct
15
awarded Nice Question
Oct
13
revised Forwarding the in and output of a serial link to the stdin and stdout of an other process
added 39 characters in body
Oct
13
comment Forwarding the in and output of a serial link to the stdin and stdout of an other process
@the_architect: You should not use a buffer size of 1 if you can avoid, that will lead to poor performance. I'd recommend instead a larger buffer size like 4096, so that if a bunch of data becomes available at once, it's read in a single system call and written back in a single system call; and if less data is available, it's still read immediately.
Oct
13
answered Forwarding the in and output of a serial link to the stdin and stdout of an other process
Oct
12
comment Are there benefits of passing by pointer over passing by reference in C++?
@JonWheelock: No, C does not have pass-by-reference at all. func(int& a) is not valid C in any version of the standard. You're probably compiling your files as C++ by accident.
Oct
11
answered How to correctly pass an argument to a pthread
Oct
5
awarded Necromancer
1 2 3 4 5