I'm an elected moderator on Science Fiction and Fantasy and moderator pro tempore on The Great Outdoors and Puzzling, and I'm also active on several other SE sites.

profile for Kevin on Stack Exchange, a network of free, community-driven Q&A sites

I am an iOS Software Engineer at Fitbit, Inc.

Feb
6
comment Calculate stargate position
Try [math.se], but ask it from a more purely mathematical point of view. And perhaps with a small example, it's not clear to me what exactly you're looking for.
Feb
4
comment Let's disallow nominations from people who've been suspended in the past year
@Jefromi it's not grudges we hold so much as a long (and computer-aided) memory. While a user is behaving themselves we don't discriminate against them for past transgressions, but neither do we forget those past transgressions in the case that we need to take corrective action against a user.
Feb
4
comment Let's disallow nominations from people who've been suspended in the past year
'add an explicit "slow down" suspension reason, distinct from "cool down",' — there already is a "self-destruction of own content" reason, to be used essentially in the way you describe, which was likely the one used for BalusC. Presumably, users who are suspended for that reason would be at least subject to manual review under this system, possibly automatically exempted if the suspension is removed early.
Feb
4
comment Let's disallow nominations from people who've been suspended in the past year
Just to be clear, the ban is for one year after the suspension ends?
Feb
3
awarded Nice Answer
Feb
2
awarded Enlightened
Feb
2
comment Swift running sum
The inside could be a bit cleaner as if let last = result.last { return result + [last + item] } else { return [item] }
Feb
2
comment Swift running sum
You can't use map to do it without an external variable, but you could probably use reduce with an array as the collector
Feb
2
comment Swift running sum
map
Feb
1
awarded Caucus
Feb
1
awarded Good Answer
Jan
29
awarded Constituent
Jan
29
comment Will Yoda's species ever be revealed?
@Wrzlprmft read the parenthetical in the first paragraph, I was commenting on that.
Jan
29
comment Will Yoda's species ever be revealed?
Besides being short and long-lived humanoids, I don't see much similarity between them. I'd be quite surprised if they were, in fact, the same species.
Jan
28
accepted Can the Trace detect apparition?
Jan
28
awarded Nice Question
Jan
28
reviewed Leave Open Understanding C++ syntax for an experienced C programmer
Jan
27
comment How do I validate an URL?
"Escolas" is indeed a valid URL. You may be looking for something like if let url = NSURL(...) { return url.scheme == "http" || url.scheme == "https" }.
Jan
27
comment How can I add a comma at the end of every line except the last line?
Sed: "every line except the last, find the end and add a comma." Simple. Awk: "every line print the separator and then the line, (wait, why the separator first?) then set the separator (why include the newline? Oh, must be a record separator...), then at the very end, print an empty line (what? Oh, the backwards RS/record printing doesn't leave a trailing newline)." You have an odd definition of "simple."
Jan
27
comment How can I add a comma at the end of every line except the last line?
Keep it simple? The sed answer seems significantly simpler to me.
1 2 3 4 5