« first day (250 days earlier)      last day (4704 days later) » 

9:00 PM
I just noticed someone downvoted Bjarne's answer.
105
A: Bjarne's new book - anyone done the exercises?

Bjarne Stroustrup(1) There are now a few solutions posted on www.stroustrup.com/Programming and more will be coming over the summer (2) Try solving exercise with only the language and library facilities presented so far in the book - real novice users can't do anything else - and then return later to see how a s...

 
sbi
@Xaade It seems this one did it. Or he was just being flippant.
 
-2
A: Truly compile-time string hashing in C++

DeadMGThat's not possible, it might be in C++0x but definitely not in C++03.

my answer had three downvotes
the other answer with basically the same answer has five upvotes
very not happy
 
Xeo
Well, maybe because you don't explain anything, you just state "no".
 
the question doesn't ask for a dissertation
 
The other answer is not basically the same. It says it isn't possible, and then it gets way beyond yours: explains why it isn't possible, and offers a workaround solution.
That still doesn't justify two downboats.
Wait, three.
 
9:07 PM
yeah
lacking upvotes is definitely one thing
but fundamentally, my answer answers the question without anything being wrong with it
 
@sbi Hence the comment.
"or Downvote..."
 
0
A: How/What to return in this case?

DeadMGThrow an exception. That's what they're for. After all, there definitely should be a list of processes that are running.

is it just me, or why does everyone hate exceptions?
 
sbi
@Xaade ??
 
they're all busy fucking around altering the return value, and I'm just like, guise, exceptions?
 
9:11 PM
Have an upboat. If EnumProcesses fails, fuck it, bail out.
 
well, under what possible condition could there not be a list of processes? that's just not in the list of circumstances an application should be expected to handle
 
Hence the "fuck it".
 
agreed
man
I love the name "swaptimization"
 
@sbi or a downvote :D – trinithis Feb 26 at 21:23
 
sbi
@Xaade Yeah, that comment is why I pointed out the guy. But what did you want to tell me when you pointed out to me the comment??
 
Xeo
9:16 PM
@DeadMG Guess what, @Kiril also was like "guise, exceptions?".
And that 12 hours ago.
 
there's no evidence of any answer suggesting exceptions
and I can see deleted answers as a 10krep user
 
Xeo
@DeadMG Eh?
How is
 
4
A: How/What to return in this case?

Kiril KirovWell, your function returns vector, not DWORD. Can't you return just an empty vector: return std::vector< DWORD >(); or return std::vector< DWORD >( 1, 0 ); If you really need the 0? EDIT: There's another option, if empty vector is not a solution (in case, that it's some kin...

 
Xeo
not suggesting it?
 
oh I see the edit now
didn't read it thoroughly :P
 
Xeo
9:18 PM
@MartinhoFernandes Good timing with the message! :P
Well, atleast those 3 upvotes can compensate for the unfair downvotes on your other answer now.
 
yeah
right
tomorrow I will get down and write some code
 
@DeadMG If you want, I can write you a script that posts this message at the end of every day.
 
no thanks
 
I think I will resume my efforts on my interpreted language
I'd like a break from graphics programming for a while
 
9:30 PM
@sbi Nvm. I meant to say that's the comment that exposes the guy, I figured maybe you had a way to look at the votes directly.
 
sbi
@Xaade LOL! No, I'm not a mod (and never will be)!
 
:'( GCC 4.7 still doesn't have user-defined literals :'(
*cry*
 
Argh, why people assume I know shit about hardware and networks, just because I happen to be a programmer.
 
maybe you just subtly give off that impression
 
Because you told them you work with computers.
 
9:34 PM
By telling them repeatedly that I don't know? :P
 
Therefore you know everything about computers, cellphones, and probably dishwashers.
 
I know how to turn a dishwasher on.
 
Don't tell them!
 
it's like telling people you're a doctor
as soon as you say that you're a professional in the very vague field of "computers" they'll start asking you about their problems
 
And assume you have magical powers that can remove every single piece of malware they can manage to get their computer infected with, by applying a couple of clicks in the right place.
 
Xeo
9:36 PM
@MartinhoFernandes VC11 is still nowhere to be seen :'( *cry*
 
wait- you guys can't do that?
 
Xeo
@MartinhoFernandes `format C:\`
 
Oh, if they told me anything about malware I would just laugh, you can take just so much.
 
@Xeo: You kidding: I can't fucking wait to play with AMP
 
It'll be VC11 or VC12?
 
9:37 PM
@Xeo They expect all their family pictures and downloaded porn to still be in their hard drives.
 
Xeo
@CatPlusPlus VC11
because it's after VC10
but it will be VS2012
 
And format c:\ does not work. It's format c:.
 
@Xeo Oh, that kind of 11.
 
Xeo
@MartinhoFernandes Tell them you are sorry and did everything in your power to save it, but it wouldn't work.
 
Fuck Markdown. I give up.
 
9:38 PM
@Xeo HAMMERTIME.
 
I won!
No wait, I didn't.
Now I did.
 
Xeo
Damn markdown
escaping the reality
I just noticed a comment-less downvote on this question :(
 
10:16 PM
39 mins ago, by Martinho Fernandes
And assume you have magical powers that can remove every single piece of malware they can manage to get their computer infected with, by applying a couple of clicks in the right place.
Life is all about clicking in the right place.
 
Oh, so we're back to talking about sex?
 
penis
am I doing it right?
 
@MartinhoFernandes Not really. To be "back to" talking about sex, we would have had to actually stop...
 
sbi
@JerryCoffin Well, you haven't been here most of the day (do you have a watchdog waiting for "sex" to appear here, too, so you can pop right in?), but we actually did talk about other things than sex.
@DeadMG No. You're too fixated on that thing. Sex is more than that. :)
 
10:32 PM
lol
well I just don't have much experience with the rest so I figured I'd go with what's safer :P
 
Xeo
@sbi Oh, I thought Miss had a script for that, but it seems it didn't
 
sbi
@Xeo She said goodbye a few weeks(?) ago and wasn't here since, so the script might be turned off.
@MartinhoFernandes That's a long story.
 
there
I downvoted it
 
Xeo
10:37 PM
lol
 
sbi
@Martinho: If you're interested in that old story, search for when Miss appeared here first, and the discussions started then.
 
1 down, 1218 to go.
2
 
sbi
@DeadMG You penis-fixated party-pooper!
 
@sbi I don't care. I just find it insulting.
 
lol
 
sbi
10:39 PM
@MartinhoFernandes There's a history to that and a joke coming with it. (OTOH, that history makes me always using the female form for her.)
@MartinhoFernandes 1221 to go.
 
Xeo
@sbi Can't win against The Internet.
fuck.
 
@sbi Nah, I think it deserves 3 upboats.
 
Xeo
@sbi Can we somehow stop upvotes at 1337 ?
 
Honestly, I think it deserves more than three. But 1k+ is a bit too much.
 
well, I pretty much had to downvote it, because, well, I just had to be that one guy who has to do everything differently
 
sbi
10:41 PM
@Xeo I doubt the few of us could stem against that flood of upvotes.
 
@DeadMG There, you're no longer that one guy.
 
Xeo
@sbi Yeah. Not if I upvote it myself.
 
sbi
@MartinhoFernandes But he still is the first guy.
 
@Xeo If you can't join them, beat them.
Or was it the other way around?
 
dude
 
Xeo
10:42 PM
4 hours ago, by Cat Plus Plus
We always star everything with 'fuck' in it.
 
but but but
 
Xeo
I found this to be false.
 
I'm that one guy
 
sbi
@DeadMG You don't do everything differently. Well, except that you rant about everything so much, that might differentiate you from everyone else. :)
 
has anyone here used boost.proto?
 
sbi
10:44 PM
@Xeo Wow, the @Cat was wrong! So? <shrug/> Shit happens, even to cats.
 
Xeo
 
sbi
@franticfantom ildjam seems to have, but I have never seen him here.
 
hmm, alright
 
@Xeo I really like the tooltip text on this one.
 
i love xkcd
 
sbi
10:48 PM
@Xeo So hands up, who of you is a "snobby connoisseur" of "Canadian Surrealist Porn"? (Whatever that is.)
 
@Tomalak that questioner asking the local-variables question got 3 gold badges for it!
 
maybe they just don't like to advertise themselves that way
and they prefer to be called "north-american existentialist porn"
or something
 
@JohannesSchaublitb ffs
@JohannesSchaublitb I've realised today that this is something very broken about SO
 
10:55 PM
@JohannesSchaublitb I'm almost loathed to suggest this, but perhaps question/answer score should be ceil((upvotes-downvotes)/f(num_question_views))
 
@TomalakGeretkal That would lower the rep of some very much.
 
i would be ok with that
 
12
A: parseInt(null, 24) === 23... wait, what?

Tomalak Geret'kalMozilla tells us: function parseInt converts its first argument to a string, parses it, and returns an integer or NaN. If not NaN, the returned value will be the decimal integer representation of the first argument taken as a number in the specified radix (base). For example, a ...

This question seems to be generating a fair amount of interest just on its own, which is nice.
@MartinhoFernandes and rightly so, no?
I appreciate that it's a bit of a hacky "fix" for the issue, but there's a clear and present bias in the scoring system, weighted towards questions contributed-to by more people -- however that popularity arose.
 
now I see you are also familiar with the JS spec
 
Xeo
10:58 PM
Oh hi @Johannes. New ideas about the static initialization thingy?
 
@Xeo no new ideas. I thought the thing is solved
 
@TomalakGeretkal Fortunately, this crazy upboat floods are not that common.
 
Xeo
@JohannesSchaublitb Well, kinda with that "hack" of using the dummy in the derived class. However, I'd really like your version to work, but that seems like a compiler limitation?
 
Xeo
buggers.
 
11:00 PM
@JohannesSchaublitb not really, but my experience with the various C++ specs meant I know how to find what I need in the JS one :)
@JohannesSchaublitb I'd actually never seen it before today. A welcome addition to F:\dev\docs\*.pdf for sure
 
@TomalakGeretkal Did I mention I hate JavaScript?
 
2
A: Will the pointer to a template member function inside a constructor force instantiation?

Johannes Schaub - litbYes, your solution is portable. Here is a different way template <typename T, T> struct user { }; template <typename T> struct Bar { typedef user< void (Foo::*)(T&), &Foo::read<T> > user_type; }; Now whenever Bar<T> is implicitly instantiated, it will ...

 
@MartinhoFernandes goes without saying, I think?
@MartinhoFernandes though, to be honest, used properly it's not so bad, as a language.
@MartinhoFernandes As implemented on the web, Javascript is of course a dirty prostitute
 
When I used it some time ago, I realized I could grow to like it.
But I would continue hating it at the same time.
@TomalakGeretkal That's a nice way to put it.
Well, not really "nice", but I hope get my drift...
 
i've used it many times
 
Xeo
11:05 PM
Thanks for that! Seems I'll need to put up with MSVC's behaviour..
 
> im not a terminal person. im using codeblocks. sorry – calccrypto 9 mins ago
That a programmer can say this with impunity makes me sad.
But then I'm probably just old-fashioned.
 
in that one, I didn't use a typedef. i didn't find out about that it works with a typedef too at that time yet :)
 
Xeo
@JohannesSchaublitb Well, that seems exactly like what I want to do. :)
 
SO has it all, it's just difficult to find stuff. i'm having a hard time finding my own answers using google on SO
 
started this cos I cannot sleep, anyone knows any more interesting puzzle sites?
 
11:11 PM
@JohannesSchaublitb Ever tried StackQL?
 
@sbi No watch dog timer needed. All discussion of sex gets my attention without any further help needed.
 
@MartinhoFernandes oh i heard from it, but I'm too lazy to crawl through all those SQL things
 
Nevermind seems like it's using a very old datadump (October 2009).
 
sbi
I'm tired of this guy. Anyone else willing?
 
0
Q: Mitigating publicity-driven vote inflation

Tomalak Geret'kalFollowing the Reddit debacle™ back in January, we've had another instance today of a question becoming overwhelmingly popular due to external "advertising". As soon as Joel tweeted about Eric Lippert's fantastic answer, the viewcount shot up. The OP received three gold badges for the question, w...

 
11:28 PM
Your proposed fix has a problem: it's time-dependent.
Sure that could be fixed, but I'm starting to think it will get too complex.
 
@sbi: precedent
@MartinhoFernandes you're right. please do mention that :)
 
sbi
@TomalakGeretkal Thanks.
 
@sbi np :)
hahahaha
freehand drop shadows, epic
4
Q: Views indicator inaccurate, shows one views on question with two close vote

Billy ONealTwo close votes and only one person has viewed the question? How did this happen?

 
Xeo
Now recruiting: Close voters for this question
 
sbi
@Xeo Oh. I applied and got the job, but it onyl was a temp job, and a very short one at that. :(
Anyway, being up after 1am isn't great if you have to shepherd a bunch of kids out the door in the morning, so I should have been in bed long ago.
 
Xeo
11:40 PM
@sbi Did you receive your paycheck at least?
 
sbi
@Xeo Nuffin.
 
Xeo
@sbi You know, you always say that. It's kinda like @DeadMG always ranting.
 
@Xeo done :)
@Xeo lol
 
sbi
@Xeo Of course. The difference is I do go to bed, while @Dead will have learned nothing about PROLOG the very next day. :)
Every teenager is a time bomb waiting to go off. #rah
 
How are you doing @Xeo?
 
sbi
11:41 PM
Anyway, good night everybody!
 
@sbi lol :P
 
Xeo
g'night
 
G'night.
 
Xeo
@TonyTheTiger I'm doing well, considering my sleep-derpivedness
 
@Xeo That's not a duplicate, and this is not how SO is supposed to work.
 
11:42 PM
g'night
@Xeo what's been keeping you up?
 
Xeo
@TonyTheTiger insomnia
And actually hating to go to bed before 2am + having lectures at 9am
 
oh, very explanatory that is
haha
 
Xeo
and a way back and forth between school and home of ~45min
 
I'm afraid of sleep.
 
Xeo
@MartinhoFernandes I'm sometimes too, but that's only when I'm thinking of death right before that, as I'm terribly afraid of death.
 
11:44 PM
in which header is iota defined?
 
@MartinhoFernandes hmmm I love sleep so much I'd do it all the damn time if I didn't get so addicted to SO :P
 
Xeo
@Nils stdlib.h? // guess
 
@Nils <limits>?
 
@Xeo cstdlib, you mean
 
no iota not itoa
 
11:46 PM
@Nils itoa, you mean?
@Nils ok.
 
says algorithm but doesn't work here
 
std::iota is non-standard
 
Xeo
> This function is an SGI extension; it is not part of the C++ standard.
 
"Defined in the standard header numeric, and in the nonstandard backward-compatibility header algo.h. This function is an SGI extension; it is not part of the C++ standard. "
 
11:47 PM
@Xeo Any kind of discontinuity in my consciousness stream is terribly fearsome.
 
I wish they'd stop using the term "standard" for shit like this
 
ah seems to be in numeric
@xeo check our C++0x standard pdf
26.7.6
 
@TomalakGeretkal n3290.pdf 26.7.6
 
ah, you're talking about a future standard
be clear plz!
 
Xeo
11:52 PM
> check our C++0x standard pdf
can't get much clearer :P
 
heh
C++0x is now final, right?
 
8 mins ago, by Nils
in which header is iota defined?
not clear at all. keep up.
@Nils it's at FDIS. it's not a standard.
 
Xeo
@Tomalak, you really love to be pedantic. C++ is perfect for you. :D
 
(and it's certainly not "the" C++!)
 
What is FDIS?
 
11:53 PM
@Xeo that's why I'm so good at it ;)
 
Xeo
@Nils Final Draft International Standard
 
@Nils Final Draft International Standard. Typo changes only, and needs to be accepted by the actual ISO bigwigs before it becomes C++2011.
 
and that happens after when?
 
@Nils in a few months' time, we hope
 
humm standardizing something must be an awful bureaucratic process
 
11:57 PM
-21
A: How much does it cost to develop an iPhone application?

Rob DrimmieThis is a bad answer. See what schwa and chockenberry say below for much better data. Original, terrible, misguided (though not high, just stupid) answer follows: Twitterrific probably took an experienced Objective-C developer at least a month or so of development time (say 160 hours), plus a w...

 
WTF happened here?
 
ugh, C++
@MartinhoFernandes hah!
 
I was talking about an accepted answer with -21 score.
And a leading disclaimer saying "This is a bad answer".
 

« first day (250 days earlier)      last day (4704 days later) »