Adam Rosenfield

United States

adamrosenfield.com

Age: 29

Software engineer from Cambridge, MA

2d
awarded Good Answer
Apr
22
awarded Guru
Apr
20
awarded c-preprocessor
Apr
18
awarded Great Answer
Apr
12
awarded Autobiographer
Mar
9
comment How to convert a string variable containing time to time_t type in c++?
@KyleStrand: It's part of POSIX.1-2001 (and also SUSv2). You're right that it's not standard C or C++, but it's more than just Linux.
Feb
29
awarded Nice Answer
Feb
18
awarded Notable Question
Feb
17
comment How to stop Mac to convert typing double dash to emdash?
In 10.11 El Capitan at least, it's possible to disable just smart dashes (while keeping smart quotes) by running defaults write 'Apple Global Domain' NSAutomaticDashSubstitutionEnabled 0 from the terminal. There are two separate settings under the hood, NSAutomaticDashSubstitutionEnabled and NSAutomaticQuoteSubstitutionEnabled, both of which get toggled by the UI checkbox "Use smart quotes and dashes". But there's no guarantee from Apple that this won't change in future versions of OS X.
Feb
14
answered Visual Studio C++: what's creating these threads?
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/…
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
1 2 3 4 5