« first day (692 days earlier)      last day (4249 days later) » 

12:00 AM
You guys care for a little selfpromotion: this one took me about 70 minutes... http://stackoverflow.com/a/12309997/85371
Hard one to trace.
I'm starting to think a template (compile-time) debugger wouldn't be so bad an idea.
 
no it wouldn't
 
@MooingDuck I still have my reasons against cin>> so i learned stringstream which seemed better. Incase the user enters a whitespace or letter when he should enter numbers
 
Uhoh. That was nice. Thanks, I guess. I bet you all read it, and appreciated the answer :)
 
@sehe +1'ed even though I didn't fully understand the question and answer. :)
 
I'm off to bed now. Cya guys tomorrow
 
12:03 AM
I don't get what you have against std::cin
 
It probably didn't get an answer because it wasn't tagged with . So I added that.
 
@Rapptz He just explained. It is a good argument. You can't (easily) backtrack when parsing input directly on a stream.
 
What is it?
I'm missing it entirely
 
@Mysticial Damn. I never pay any attention to the tags. You just made a lightbulb go on: tags can effectively 'market' a question to a broader audience.
Hmmm. I think I will be forever naive in the hunt for rep :)
 
12:05 AM
@sehe There was no syntax highlighting - that kinda gave it away.
4 close votes on the matrix question... clearly they didn't read the comments or the answer.
 
@sehe Who were you talking to :) ?
 
Can't you do reopen votes?
 
@Rapptz You can only vote each way once per question.
I already voted reopen the first time. So I can't do it again.
 
2 more votes and I get Enlightened Badge... yay
 
I can't cast any votes, sorry
 
12:07 AM
@Mysticial Brilliant. I tend to focus on the heart of the matter. But, granted, I'd never have seen the question had it not been tagged ... it is in my favs
 
@Rapptz his origional argument was that it doesn't read spaces and freaks when you use getline.
 
@MohamedAhmedNabil Some people. I believe Mysticial and 1/2 other ...
 
@Sehe you're supposed to go to bed!
 
@Rapptz Indeed I am
 
@sehe .5 of a person :O
 
12:08 AM
lulz
 
@MooingDuck What did you think of it ?
 
Pro-Tip: Don't put your Linux install into hibernate if it's running under Virtual Box, it doesn't work.
 
When it gets closed I'll probably come here begging for reopen votes. I've noticed that a quite a few of the 10ks love to delete things either out of jealousy or they feel the need to exercise their power...
2
 
once it's reopened can it be closed again?
 
@Rapptz Yes it can. But the ones who closed it can't close it again.
 
12:10 AM
@MohamedAhmedNabil on the first line, input something with a space. Then, input a valid number. Result: program complains that the second is also not a number. But close.
 
It's to prevent close-open wars.
 
But we love wars!!!!!
 
@MohamedAhmedNabil by the way, if you just wanted to read whitespace as well with std::cin, you should just use noskipws:
Aug 17 at 15:10, by sehe
@MohamedAhmedNabil Don't forget about skipws (std::cin.unsetf(std::ios::skipws)) if you want to see whitespace
@Chimera It should just work, really
 
Hm.. I need to rep whore to 10k somehow
 
I don't particularly mind it closed. But it lets people cast (non-decaying) delete votes.
 
12:11 AM
@Rapptz You're well underway :)
 
@MooingDuck I need to flush the input buffer for this to work?
 
@Rapptz Me too!
 
@Mysticial which matrix question? I don't see anything.
 
1.5K just ain't gonna do it
 
471
A: Why is my program slow when looping over exactly 8192 elements?

MysticialThe difference is indeed caused by super-alignment issue in the following related questions: Matrix multiplication: Small difference in matrix size, large difference in timings Why is transposing a matrix of 512x512 much slower than transposing a matrix of 513x513? But that's only because the...

 
12:13 AM
@Rapptz Me too! :D
 
@sehe that doesn't apply when reading in int I don't think.
 
@StackedCrooked I thought you were being sarcastic but now I realise you don't have 10k too. haha
 
I want my badge!
 
I just assumed most of the regulars here have 10k+
 
@MooingDuck of course
@Rapptz many
 
12:14 AM
@Chimera dammit, I already upvoted that a while ago...
 
I'm a room owner and I can't even do proper moderation without 10k.
So I need to fix my rep.
 
Post your answer to reddit
lol
 
Everybody, upvote all my answers!
 
@Mysticial - does it help if I 'protect' the question? I just did, I'm just not aware of the ramifications yet :)
@StackedCrooked Pronto
 
@MohamedAhmedNabil ideone.com/1YgSd seems simpler.
 
12:15 AM
@sehe That won't do anything. Since it only affects users with <10 rep.
 
@Mysticial I see. I will unprotect now then
 
I need to get up at 7 and so I'm going to sleep now. Night!
 
@MooingDuck When does this become false getline(cin, str)
 
You protect questions when it gets a lot of spam or crappy answers.
 
It was the first time I saw the 'protect' thingie. I didn't know I had this 'power'
 
12:16 AM
There's no notification at 15k.
 
@MooingDuck Dude that is magic , how did that work?
 
Clearly. I thought 10k had unlocked everything anyway. Boy.
 
deleting answers is 20k
 
brb gonna watch Bill Clinton's speech. Heard it was good
 
@Mysticial I know and I appreciate it!
@Rapptz I'm going to throw up.
 
12:18 AM
@Chimera Why
 
I heard it was short
And it was... bent or something. How did Monica put that again?
 
@sehe 48 minutes
 
Clinton Regrets Reading Short Version of Speech http://www.newyorker.com/online/blogs/borowitzreport/2012/09/clinton-regrets-reading-short-version-of-speech.html
 
@Rapptz I'm not a fan of Bill Clinton.
 
@Chimera Why? Just curious, opinions are in fact just that, opinions.
 
12:19 AM
Gasp
 
@Rapptz He was a decent president, but I didn't like his womanizing.
 
the lesser of two evils.... politricks
 
@MohamedAhmedNabil if it reaches the end of the input
 
RT @kjhealy If Fermat had said "I wrote a marvelous proof in the comment box but then my browser crashed", everyone would've believed him.
 
@MooingDuck I just understood it now. I thought eof was file only thing
 
12:20 AM
@Chimera Understandable. His speech was completely fact checked to be correct. Hence why I'm watching it.
 
@MohamedAhmedNabil basically, if (ss >> i && ss.eof()) says "if you could read an integer out of the stream, and theres nothing left of the stream..."
 
@Rapptz I may watch it.
 
@MohamedAhmedNabil no, you can type a key combination in the console to tell it you're done typing too. ctrl+z in windows I think.
no, ctrl+c.
 
@MooingDuck What can eof be used with?
 
you're all ugly
 
12:23 AM
 
damn one more vote!
Have a mentioned I love you all? :-)
 
@DeadMG I may be ugly but i am awesome according too amiawesome.com
 
first 10 upvotes?
I'm 2 votes away
 
@Rapptz Let's see...
 
@Rapptz already upvoted you yesterday... :(
 
12:24 AM
@Mysticial Yeah :D ty again
 
@Rapptz That was a good answer, so I upvoted, it deserved it,
 
@Rapptz You said it had 6 votes. I immediately upvoted and called you a liar.
 
How i cleverbot.com made?
 
I thought it was a bad answer
It's so simple
 
@Rapptz Sometimes those are the best... if they help the OP
And the OP should have accepted your answer as well.
 
12:28 AM
@Chimera I gave you your 10th upvote
 
@Rapptz Woot! Thank you!
I guess the badge isn't awarded right away?
 
There is always a delay
Don't know how long though
 
@Rapptz Yeah, makes sense.
 
Nice Answer badges come in a few minutes. I've had it as quick as a few seconds.
The longest badges are the tag badges, they run once per day.
The Enlightened badge is also very long. Once every few hours. And it's a fairly common badge.
 
If you guys have lots of links thrown at you but dont have time to check them all, or just wanna check them later?

Get the extention, "Read it later fast" for chrome. Go to a page, right click anywhere and press Read It later.

The link of the page will be saved in a list which you can check later
 
12:32 AM
@MohamedAhmedNabil This is your 2nd time advertising for it
 
@MohamedAhmedNabil yeah i use that as well 1+
 
@Rapptz Well.
 
@pyCthon Im not making ads. The last time i did it there were only like 3 people and pretty much my sentences made no sence. Im sharing this to help people out
 
@EtiennedeMartel ?
 
@Rapptz Well :)
 
12:36 AM
I am confused.
 
Well, my employer is looking for two sysadmins.
You guys have no idea how hard it is to find competent people.
 
yeah my place is having trouble finding a data scientist with 10-15 years experience...
@EtiennedeMartel most comp sci programs don't even teach that kind of stuff
i'm lucky enough to have been in a super computing competition other wise as a math/physics major i wouldn't know anything and i feel i knew as much/more on that subject then the comp sci guys we had on our team..
 
12:53 AM
@MohamedAhmedNabil all streams
 
1:04 AM
The fact that Romney has a chance to win is pretty depressing.
 
there both bad candidates really....
 
@pyCthon they're* and I don't think Obama is a bad candidate and I haven't heard a good argument against him yet, but then again what you said could be true. I just don't know see it.
 
9 to 16 trillion dollars in debt...
adding "hidden" taxes in things like health care or selling a home or sending a check...
 
@pyCthon Need a citation. As for the debt statement, the economy was already bad before Obama took office however his cabinet has been amending it and making it better slowly.
 
news article good or do you really want me to digg for you?
 
1:15 AM
Depends on the news source. I'll google around.
 
that whole sending over a billion dollars of tax money to a solar company that went bankrupt then outsouced to china scandal
 
God damn it I can't find a reputable source for the hidden taxes
 
Invalid. Opinion article. And.. Fox News.
 
thats the health care one.. if you consider fox new reputable lol
 
1:19 AM
I'll just take your word for it
20 seems a bit overkill though
Okay I found a source saying it's false
Well kind of, based on the statements that it's by January 2013
 
yeah thats when it's going into effect
 
But I did find a lot of minimal taxes
It went into effect March 23, 2010
It's just slowly implemented
I think it's supposed to be mostly done by 2014 and finished by 2020
 
i thought 2010 was the affordable healthcare act
nvm same thing
 
Why did they go bankrupt?
 
"chinese competition"
 
1:34 AM
Couldn't compete?
Ah.
 
basically the chinese government actually supports their companies and flooded our market with cheaper products
 
@nil - Can I get access to NSChat please?
 
It looks like it finally got closed.
Clearly, the people who closed this question did not read the comments or the answer. This is not a duplicate and was reopened once before. — Mysticial 49 secs ago
 
@Mysticial hater's
 
It actually happens quite often. A question can get mistakenly closed by people who have no knowledge in the subject area.
It seems that my first comment on the question got deleted too... I have no idea how that happened.
 
1:51 AM
wanna see my attempt to get rep ? lol i got -1 rep out of it...
-1
Q: Haskell Interview Questions

pyCthonSince this hasn't been asked any where I could find on SO,and since I may be hiring a haskell dev soon I thought I would bring this up.. What would be some detailed verbal questions to ask that would demonstrate a strong working knowledge of haskell. I can think of a few good questions and codin...

 
@Mysticial Wish I could help :(
 
@Rapptz meh, wrong time of the day... nobody is here
 
can he still accept an answer
even if closed?
 
@Rapptz yes he can
I hope he eventually does though... that's one accept that I really want badly. lol
 
a lot of the questions I answered never get accepted
 
2:00 AM
i added my two cents on your question lol
 
oh yay, two reopen votes already. If they're coming from this room, thx!
 
@Mysticial Yeah, I voted.
 
@EtiennedeMartel thanks!
 
when the only error is undefined reference to an external library , that compiles and links fine else where? what's usually the problem?
 
deleted my comment since it's a bit inflammatory...
 
2:06 AM
ah rm *.o fixed it!
doh!@
 
I didn't think it was inflammatory
 
the community wiki post below Mysticial's was very good as well
 
lol 10 edits
 
@pyCthon It definitely deserved more upvotes than it does right now. I think the reason why it got as few as it did was because it didn't really answer the question at hand.
He made too many edits. So it got auto-wikied.
Dumbass fucking kids. — Steven Mildo 11 secs ago
rollback war...
 
lmao
this is amazing
I wanna rollback :(
 
2:16 AM
That's the second inflammatory comment he made and immediately deleted by flags.
 
ooh I can somewhat do it
neat deleted
 
It usually takes multiple flags to remove a comment. But certain words (like "fuck") will mean that a single flag will delete it.
 
Why?
If it offends the site so much why don't they censor it?
 
to make it easier to delete it
Censoring is never a good idea.
So I figure they won't delete it unless someone actually does find it offensive.
 
>http://stackoverflow.com/questions/12310459/most-concise-equivalent-of-replace-all-in-standard-c
No comments or anything?
 
2:20 AM
@Rapptz that's pretty common
 
I usually find people commenting
"What have you tried?" "Is this homework?" "Possible duplicate of X"
 
The "possible duplicate" comment is automatically removed after it gets closed as such
 
The question was tagged with
Maybe he wanted a new way of doing it
 
If he did, he'd probably have left a comment. In that case, I'd vote to reopen if one of us has a better solution using C++11.
 
hm.
 
2:31 AM
all i've used so far from c++11 are chronos and random libraries
i tried some TMP stuff but failed
 
Is C programming obsolete?
 
I haven't used any C++11 yet. But I probably will soon.
 
@MohamedAhmedNabil nope
 
You could replace a string using regex technically with C++11 but it isn't exactly pretty
 
@MohamedAhmedNabil no, but it sucks compared to c++, so it might as well be :)
 
2:32 AM
@Mysticial You're missing out :P
 
i actually program more of a c style with elements of c++
 
@cHao What you said is, Its not obsolete but yes it is obsolete :P
 
@Rapptz I'd still be limited to what VS2010 supports. I haven't upgraded to VS2012 yet.
 
i said it's not obsolete, but it might as well be :)
 
you need c style exceptions when you do mpi stuff
 
2:33 AM
c style exceptions?
what, longjmp and crap? :P
 
let me find a blog post that can better explain it then i can
 
or return value checking
 
@Mysticial Ah.. even VS2012 support isn't that great. It's missing some of my favourite things like initializer lists, UDLs, raw strings, noexcept etc
but it does support for range loops and the entire standard library
 
so, c style exceptions == no exceptions. :)
 
2:38 AM
The only one nice thing about calling a C function is that you can guarantee that it won't throw an exception. (barring longjmp - which you probably shouldn't be using anyway)
 
@cHao well defined exceptions, having c++ undefined behavior/exceptions in a library ment for distributed computing can't be good
 
@pyCthon Oh, right, that guy absolutely has no idea how exceptions work or how they should be used.
 
Everytime that blog is linked, a couple of people shed a tear.
 
It's ridiculous.
 
Yesterday I read the C++FQA for the first time in years
 
2:45 AM
Yeah, the FQA can be summarized as "C++ sucks because it doesn't have GC. Let me reiterate that in a bunch of different ways".
 
He posts a lot about C being superior too.
 
C is not better than C++. It's (for all practical purposes) a subset of C++.
 
That always baffled me. How can you say that C is superior to C++? You can limit yourself to a C-like subset of C++ if you want.
 
@EtiennedeMartel Exactly. C can't be better than C++, because you can do everything in C in C++.
the only exception being VLAs
 
2:48 AM
I really disliked his overall tone in the blog post too. It just seemed so arrogant, condescending, and garbage.
 
> My problem with C++ bashing is that I’m overqualified.
2
That sounds quite arrogant.
What a tool.
 
lol, yeah it does
 
Ah, yeah, right, he's all riled up because he used an incredibly crappy compiler, and he's blaming the whole language for it
 
but 1.5 GB!
I've actually never heard of that compiler before.
 
I got 8 at work.
Big deal.
 
2:51 AM
yeah many linus trovdals paid him or something
 
Torvalds is also a tool.
 
i thought it made sense thou you guys could be right...
 
1.5GB is kinda shitty...
 
maybe*
 
Linus is a jerk about everything.
 
2:52 AM
I get 8 at work. 12 on the machine that I'm on now.
 
> That each function has a unique non-mangled name (as opposed to A::func, B::func, etc.)
 
i like the intel compler
 
I've never used Clang.
Maybe I should but I don't know how to set it up for windows
 
gcc actually gives a little better performance then intel (gcc 4.7.1 vs intel 12) for alot of MPI stuff i do
 
2:55 AM
Different compilers suck at different things.
ICC has its own set of weaknesses.
 
@MohamedAhmedNabil Everytime I see a page like that I subconsciously think that it's from the 90s
 
> If your compiler doesn't support std::numeric_limits<streamsize>::max()
Then it's time to get a new compiler, dawg.
 
lol
 
This was last updated in 2012 too lol
 
@MohamedAhmedNabil It's not too bad, but it got two main issues: one, it talks about std::string way to late, and second, it doesn't even talk about C++11.
 
2:59 AM
80% of the books I've seen on C++ or online tutorials always teach std::string near the end
 
i need to learn more C++11 ugh
 

« first day (692 days earlier)      last day (4249 days later) »