« first day (834 days earlier)      last day (4116 days later) » 

4:00 AM
@Non-StopTimeTravel Ok. I just wondered if I was missing something.
 
C# is dead so I'm comin' here for advice, cuz it's a conceptual question: If I salt passwords with randomly generated salts, the salt would obviously have to be stored for logins later. But wouldn't storing it on the db be sort of defeating the purpose?
 
@Non-StopTimeTravel Also, I have no idea what you're talking about, it takes const :P
 
> Last updated just now
filthy liar. :(
 
@R.MartinhoFernandes ;-)
 
4:02 AM
Why is ruben's clang in a mingw64 folder?
 
@RyanJMcGowan "C# is dead" so you thought you'd just pop along to some place that is not C# because you just can't wait, never mind the fact that we are here to talk about C++ and C++ only?
You're so selfish.
"Me me me"
 
Well, considering the same issue would apply to any developer, really...
 
Wait, C# is dead?
 
RIP C# 2000-2013
7
 
Last message 2 hours ago...
 
4:04 AM
@Rapptz Put that in the same line so I can star it.
 
:D
@RyanJMcGowan "I tried to buy a Renault in a Renault shop, but there were no salesmen available, so I came into this Ford shop. Why won't you sell me a Renault?!"
@R.MartinhoFernandes Put that in your pipe and star it.
 
My initial date was wrong.. Coulda sworn it was 2003.
 
What's up, guys?
First chat on this website for me.
 
@ATrubka Your face
 
Sure.
 
4:04 AM
haha welcome
your hazing begins.
 
@Non-StopTimeTravel Looks like, your avatar is not your face. :)
 
@ATrubka Why do you say that? Are you a racist? :(
 
No I'm just against guns. :)
 
You think Claudia Black is not a Stack Overflow user?
 
@ATrubka Okay - no further hazing required. You have passed with flying colours. Welcome to the lounge. :)
 
4:06 AM
I'm actually pro-guns, but for the sake of this discussion I can be anything. :)
 
This chat is full of socialists.
 
That was disappointing
 
@kfmfe04 exactly what I was looking for.
 
I didn't even know name of the person on your avatar.
 
On IRC sometimes you can keep them going for hours
 
4:07 AM
Well IRC is lame.
 
@Non-StopTimeTravel You may need to get out more.
 
So is your face
@R.MartinhoFernandes Possibly less
 
May have to whip out the VS debugging VS debugging VS pattern
 
@RyanJMcGowan No -- salt is useful even when it's known to the attacker. The idea is that by different passwords having different salts, it becomes impractical to do a dictionary attack, because the attacker would have to re-hash each word in the dictionary multiple times (once for each possible salt value).
 
makes sense
I like the idea of salt and pepper though. even a simple pepper.
maybe overkill, though?
 
4:09 AM
@RyanJMcGowan Depends on the level of security you want to provide -- but they were invented for a reason (a pretty good one, IMO).
 
Student records. Nothing financial. But it's not kid's birthday parties either.
 
security is a bottom-less pit
 
so's your face...
ok I'll stop with the faces
 
@Non-StopTimeTravel Not really.
Can't say I care either.
 
4:12 AM
While I'm in the lion's den; what are the key advantages of C++ over C#? I learned C# for ASP.Net. Make me a believer.
 
So is there any action in chats?
 
I like these inflammatory comments - helps me filter out/ignore the noise from the signal
 
@Rapptz yay
@RyanJMcGowan There aren't any.
@ATrubka We don't all get together for sex, if that's what you mean.
 
@Non-StopTimeTravel That's not what I mean. :)
 
@Non-StopTimeTravel Which is a sad, but because I would definitely do your avatar ;-)
 
4:15 AM
@Borgleader Weirdo.
Those are pixels man!
 
So I shouldn't even bother learning C++??
 
Getting up your rating on stackoverflow and logging in to a C++ chat room would be a very unusual way of finding sex. :)
 
@Rapptz You know what I meant
 
4:16 AM
@ATrubka Well, here in chat most of the time people chat.
 
@RyanJMcGowan You should.
@ATrubka WFM.
 
@RyanJMcGowan Who said that?
 
Non-Stop. Sorta.
"There aren't any." ...reasons to learn C++ for a C# programmer.
 
@RyanJMcGowan Doesn't mean you shouldn't.
 
Oh.
Well I like C++ more than C#. C# feels too easy.
 
4:18 AM
Is there some sort of competition for writing C++ that makes you cringe (and I don't mean the obfuscated code one)?
 
lol
@chris SO noob questions?
 
@Rapptz Pfft, C++ is too easy. I like to dip my heels into PHP once in a while, to really get a challenge.
@chris Writing answers on SO.
 
@Non-StopTimeTravel Poor thing.
 
@Rapptz I have to say. That's a dumb reason to prefer a language. Sorry.
 
@R.MartinhoFernandes No, they pay me for it.
 
4:19 AM
@BenjaminLindley I'm being facetious.
 
@BenjaminLindley .. really?
 
You guys take me way too seriously.
 
@Non-StopTimeTravel Yes. Really.
 
@Rapptz Why?
 
But there is some truth to it.
 
4:19 AM
Dammit, GCC, would you just compile that shit and shut the fuck up.
 
in WPF, Jan 19 at 23:30, by Rapptz
and C# is weird. I coded the entire application without compiling once to check and it worked fine.
 
@chris Most competitions make me cringe. Most place a high value on writing quickly, and little or none on anything that actually matters.
 
How about an abuse of operator,? Point isect = intersection(Line((1,2_pt), (5,8_pt)), Line((3,5_pt), (10,2_pt)));
 
@chris Why Line? Just abuse op, again.
Seriously, you suck at this.
 
lol, isn't one abuse enough?
Seriously, though, I hope I don't give anyone ideas with these.
 
4:21 AM
I like that about C#. You know it compiles as you are coding.
 
Yeah it is pretty nice, hence easy.
Easy isn't a bad thing though
 
but is there a performance loss? Why isn't everyone using C#?
 
@RyanJMcGowan Because it's shit.
 
@RyanJMcGowan Sorry, but chat doesn't support messages that long.
6
 
C# has such better IDE support than C++. It's so much more parser-friendly.
 
4:23 AM
@JerryCoffin lmao
 
C# simply has fewer things for which it's an appropriate tool.
 
like?
 
I refer to you Jerry's message.
 
I would only use C# for some Windows GUI programming (WPF)
 
I like C# for most winapi stuff unless it relies heavily on P/Invoke. Other than that, I still like C++.
 
4:23 AM
Really nothing else.
 
Give me $10,000 and I'll write a book about it. Otherwise, sit down.
 
@JerryCoffin (I acknowledge the joke, but we haven't found a length limit yet)
 
I don't think I'd do ASP.Net in C++
 
@R.MartinhoFernandes Don't tempt them
 
@R.MartinhoFernandes I pasted a 60,000 digit number in my other room and it went through fine
 
4:24 AM
But I'm getting pretty proficient at C# and wondering where I should go next. I'm still hungry to learn more.
 
And you have to agree that C#'s lambdas are a bit more to the point than C++'s.
Hopefully polymorphic lambdas will fix that a little bit.
 
I don't like C++ at all. Sorry to troll. :)
 
Let me ask this way: Where does C# fall short?
 
@R.MartinhoFernandes Hmm....presumably you mean a multi-line one. For a normal message it seems to hit the limit around 4 lines.
 
Neither C#. :)
 
4:26 AM
C# has garbage collection instead of RAII. That's always a loss.
 
that array_copy guy is probably gonna shoot himself in the foot with the accepted answer implementation
 
@JerryCoffin I assumed such message would involve paragraphs and chapters and so on, and thus would be multi-line.
 
@RyanJMcGowan speed, memory usage, portability, resource management, verbosity, generics, flexibility, expressiveness, ...
 
Is this guy removing the title?
Is that even possible?
 
@chris you can fake RAII with using blocks though
 
4:27 AM
@doug65536 Not quite.
 
Is Visual Studio the best IDE for C++?
 
You cannot put using blocks in data members.
 
@doug65536 That's more like fapping than faking though. It puts all the burden in the wrong place (the user instead of the class).
 
You have to write the boilerplate by hand.
 
If you use VS for C++ after using it for C# you will be disappointed.
 
4:28 AM
@RyanJMcGowan Not for *nix versions of C++.
 
@RyanJMcGowan Number of characters in its name.
 
@R.MartinhoFernandes yeah requires manual management.
 
@Rapptz yeah that's what I'm afriad of. haha
 
@ATrubka Come on, isn't that painstakingly obvious?
 
@RyanJMcGowan It's the least bad of those available for Windows.
 
4:29 AM
@Rapptz !
 
What Jerry said. It sucks, though.
 
@Rapptz I'm trying to understand what background people have here. Looks like windows only.
 
Huh?
 
Is there some good plugins? Specifically some kind of intellisense?
 
@ATrubka not even close. tons of different backgrounds
 
4:30 AM
I'm pretty sure almost everyone here has experience with unix-like environments.
 
@doug65536 If everybody assumes VS for C++ then I don't see how it's different.
 
@RyanJMcGowan there is but it costs a bunch
 
@RyanJMcGowan With Visual Assist X, yes, period.
 
In any case, I'm a Java guy.
 
@Rapptz Turns out some dickwad already raised this on meta
0
Q: Suggested edit removes title entirely

Lightness Races in OrbitI have a doubt that this is real:

 
4:31 AM
@ATrubka na, VC isnt well regarded around here: crappy standards compliance
 
@RyanJMcGowan Visual Assist X is about as good as it gets for C++.
 
@ATrubka you look white in your avatar
 
I am using a machine running Windows to program on a machine running Linux.
 
I'm here just because it's the most populated chat room.
 
@Non-StopTimeTravel You should reject it because it's currently at 2-2.
 
4:31 AM
@Non-StopTimeTravel Really? I never even though like that of myself. Are you racist? :)
 
Would it behoove me to run on unix? Is there a better IDE?
 
in fact you'll see people actively bashing C++ as a "sux" language
 
Sadly, I don't have much unix-like experience yet. When the parts I need for my SSD finally come, I'll put on Linux as well so I can mess around with it.
 
FFS, that piece of shit edit got approved.
:@
 
;_;
 
4:32 AM
Did I mention I hate the reviewers?
 
@ATrubka What if I said no?
 
@chris What? You don't need to build a machine. get virtualbox and make a linux vm
 
@ATrubka And what if I said that being able to see skin colour is not at all the same as being negatively prejudiced on it?
Would that blow your mind
 
@doug65536 that's what I was thinking of doing.
 
Hmmm, it didn't change the title at all...
WTF is going on. SO is very buggy today.
 
4:33 AM
yeah just saw, pretty weird shit going on today
 
@RyanJMcGowan do it, its quite trouble-free usually
 
@doug65536, I've been meaning to put an SSD in my laptop for a little while. I just need a couple extra bits that haven't come yet. When I do, I plan on pretty much moving over what data I need and installing everything fresh.
 
@Non-StopTimeTravel I would say that it concerns you more than it should making you racially curious at least.
 
@R.MartinhoFernandes Is the most recent question in C++ 2 hours ago for you too?
 
It's a good opportunity to put Linux on a separate partition.
 
4:35 AM
@BenjaminLindley Was for a moment, then back up to 3 minutes ago.
 
43 mins ago, by Non-Stop Time Travel
@doug65536 There has been a lot of SO functional instability lately.
39 mins ago, by R. Martinho Fernandes
@Non-StopTimeTravel What do you mean?
@R.MartinhoFernandes I trust that this issue is resolved.
 
cin >> x skips leading whitespace. Watch out if you mix that with getline, though. They have a difference in what they leave in the buffer. — chris 5 mins ago
Skips leading whitespace meaning that it would go down to next line without a problem correct? And for buffer since I've never heard that word in class I don't think I need to worry about that. So I think I should be good there Thank you — user2014925 2 mins ago
 
@BenjaminLindley I had that before, but it's ok now.
 
With that attitude, they'll be asking another (widely duped) question in 3...2...1...
 
@ATrubka You mean, because I referenced it in a conversation once, I am "racially curious"? Interesting.
 
4:37 AM
@chris Astounding logic.
 
@Non-StopTimeTravel You mentioned it more than once and you started this off-topic discussion. Enough for me.
 
damn it tomalak you're so racist
 
@ATrubka Btw, we are always off-topic here.
 
the text stream in this chat would be a great source of entropy for a cRNG
2
 
@chris Can you say "start of a new semester" boys and girls? I knew you could!
 
4:38 AM
@doug65536 yeah I have a VM for Window XP and a remote VM running windows Server 08.
 
Just remembered an odd conversation the other day. Muslim half-friend from takeaway shop is talking with me about a festival that was taking place at the time (don't remember which -- was drunk) and couldn't stop refering to "you" and "your" when comparing his customs with Christianity. I never said I was Christian - he just assumed, because I am local.
 
You will be banned if you say something on-topic.
3
 
(continued) Reminded me of how religious people often are religious only because they were regionally brought up that way, and sometimes go even further: being aware of it... and assuming that this is the case for everyone else, too!
 
Hmm, our next semester starts sometime soon.
 
@R.MartinhoFernandes Star-bait, but worthy.
 
4:38 AM
Poor me being the only non-semestered school ever.
 
My University had trimesters
 
@ATrubka Only cos you're a racist. You have retroactively failed your hazing.
 
@chris You are a school?
 
But that dumb Java course online is, so I start that soon.
 
@R.MartinhoFernandes mehehe
 
4:39 AM
Oops, I forgot an "in".
 
@chris so did your mom. ZING!
hmm.
 
@Non-StopTimeTravel Freedom of speech is abused by some.
 
@R.MartinhoFernandes Good to know. :)
 
@ATrubka I say the word "race" and I'm abusing free speech now? You disgust me.
@ATrubka Passing Lounge<C++> hazing is abused by you.
 
4:41 AM
^racist
 
@R.MartinhoFernandes No we're not. We just have a highly...creative interpretation of "topical".
 
> You are in a maze of nested screen sessions, all named 'default'.
I feel like I was just told this.
 
lol
 
@Non-StopTimeTravel wth is an hazing and why didn't I have one?
 
Three C++ programmers walk into a bar. The C# programmer ducked.
 
4:43 AM
@Borgleader It can be arranged.
 
@RyanJMcGowan lol
 
@Borgleader Unless you're in it now...........................................
 
Oh, you know what's fun? Logging off of Windows when you have 40+ desktops and seeing them all close one by one.
 
@chris Can't think of anything better.
 
That happened to me after a bug where they weren't being destroyed properly.
 
4:44 AM
@chris I love how that stupid list comes up and you have to cancel shutdown to go deal with some notepad save as box
 
@RyanJMcGowan That was old when I was a kid -- which made it pretty stupid since neither C# nor C++ had been invented at the time!
 
You were ahead of your time.
 
@doug65536, The only thing I ever see halting shutdown is explorer: Playing logoff sound.
 
@JerryCoffin Time to remind everyone of james-iry.blogspot.co.uk/2009/05/…
(1936 being the driving force here, naturally.)
 
4:45 AM
@RyanJMcGowan I was ahead of anybody's time.
 
For those too lazy to bother clicking on the link and reading:
> 1936 - Alonzo Church also invents every language that will ever be but does it better. His lambda calculus is ignored because it is insufficiently C-like. This criticism occurs in spite of the fact that C has not yet been invented.
And it's true!
I know this, because I am Alonzo Church.
 
Three Fortran programmers walk into a bar...
Is that better?
 
Probably not for everyone else in the bar.
 
OK. I guess I'm done with this chat thing. Have a wonderful weekend.
 
@ATrubka Have a racist time!
 
4:48 AM
@Non-StopTimeTravel Are you in a bar?
 
@R.MartinhoFernandes Not presently.
They all closed a few hours ago. Lightweights.
@R.MartinhoFernandes Are you?
0
A: How to create permutations with replacement in C++?

templatetypedefYou are trying to compute the Cartesian product of the set {1, 2, 3} with itself fifteen times. You can do this very elegantly with a simple recursive algorithm: To compute the Cartesian product of a set with itself just once, return a set containing singleton lists of each of the elements of ...

^ This is why it's too early to suggest C++11 code without telling anyone wtf you're doing.
 
Shame, isn't it? C++11 is C++.
Soon (sort of), we'll have C++14 and people will be two standards behind.
How does everyone plan on convincing the people they need to convince in order to use modules when they come?
 
@chris Torture. The vicious murder of family members.
BBC News - Star Wars VII: JJ Abrams to direct - And I spent the last two days taking the piss out of everyone making Jar Jar Abrams jokes, thinking they were confusing Star Wars with Star Trek, the numpties. D'oh.
 
MSVC != C++, I think that's holding it back so far
 
> The original Star Wars trilogy (...) was always envisioned by Lucas as the central chunk of a nine-movie cycle.
hahahaha
 
4:56 AM
In other news, I accidentallly read s/portrait // when I first read BBC News - Chinese Girl portrait goes to auction
 
Oh that reminds me. Apparently someone sued Subway for getting an 11-inch footlong sub.
 
@R.MartinhoFernandes =)
@chris Lawsuit for an off-by-one error
2
 
@doug65536 They do still have quite a bit of influence (but a lot less than they used to, it seems to me). Based on the November CTP, they seem to be fairly serious about getting a lot closer to conformance too.
 
@JerryCoffin If MS is getting serious about conformance, perhaps they could add the overloads for long double back in. Just because they don't happen to have a long double that differs from double doesn't mean they get to arbitrarily remove support for the type in their stdlib implementation.
 
@Non-StopTimeTravel Perhaps. Also note that I carefully did not say they were serious about full conformance, only about "... getting a lot closer to conformance".
 
5:07 AM
@JerryCoffin Hyperbole on my part. Would be nice.
And, with that, ciao.
 
> My attitude towards the subject after all my work in it can probably be best summarized thus: “Fuck you, bioinformatics. Eat shit and die.”
 
I just tried switching fonts.. I still like Consolas. :(
Ah well. Guess I'm just a boring person.
I tried Courier New, Ubuntu Mono, and DejaVu Sans Mono
 
@Rapptz yes, Consolas is a great font
 
Courier New is awful.
 
@R.MartinhoFernandes yeah it is
 
5:18 AM
ever read old-english font C++ lol
 
Y'all good at regex?
 
I prefer Courier New to Consolas
 
I like regex's
 
@CCInc Yes -- I can spot and expunge regexes at 100 meters.
 
@Inisheer how? ;_;
 
5:19 AM
Ewww. Serifs.
 
Courier New is one of the ugliest fonts I've seen
 
Totally agree.
 
@Rapptz I think it's easier to read and see spacing.
 
I've been "that guy that knows regex's"
 
Consolas and Courier, quick comparison I made.
 
5:22 AM
I think lowercase L looks bad in every font though
see how it would have been ambiguous to say l
 
@Rapptz s/Markdow/Markdown/
 
@Rapptz, The wide spacing of Courier New kind of screws over the rectangular look, I feel.
 
it's Markdow because it considered the n a different word for some reason
 
As in my eyes have to travel farther to read everything, and it's harder to fit more in at once.
 
either that or I remember wrong and I indeed suck.
 
5:24 AM
hey Markdow backwards is wodkraM
 
ffmpeg version N-49352-gc46943e Copyright (c) 2000-2013 the FFmpeg developers
  built on Jan 26 2013 12:06:49 with gcc 4.7.2 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
le-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libg
sm --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --e
nable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --e
Alright so I have a string like that (this is C# by the way but should apply)
 
nice string.. pretty uh.. long.
 
@doug65536, And stressed backwards is desserts.
 
So what I need to do is get just the "3g2 3GP2 (3GPP2 file format)" part
for each thing
 
@CCInc use pastebin to avoid upsetting the SO chat gods
 
5:25 AM
I don't think regex will be that useful in this case.
 
What would you recommend?
 
you can do that with regex
 
@doug65536, Cats are gods?
 
Don't strings have a find method?
regex is usually for patterns
 

C#

General discussions about the c# language, Squirrels | gist.gi...
 
5:27 AM
I'll leave if you don't want me talking here.
 
its a regex question. C# and C++ both have ecma regex right?
 
I'm not bothered
 
@doug65536 yeah
 
No, C# regexes are more powerful than the ECMA ones.
 
5:28 AM
@chris Rhetorical question.
 
I stand corrected
 
:p It might not be so obvious with the naming scheme.
 
@CCInc if that -- is consistent and there is always one uppercase letter before that code, you could hack together a regex for it pretty easily
 
sometimes though it is not D or E, but DE
 
So why can't you find it?
Do you have.. multiple strings in that format?
 
5:31 AM
@CCInc gimme a minute... I'll see if its as easy as I think
 
@Rapptz No, I can't use string tools to do this I don't think
 
Doesn't look to me like you regexes at all. Just copy out everything after the "--" line.
 
I really don't see the point of regex :|
 
@CCInc this works ok "\s+\s([DE]+)\s+(\S+)\s+([^\n]+)\n" as far as I can tell
then use Matches()
oops, didn't markup as code
 
me again
int && num = 3;
what does the two && mean?
 
5:45 AM
rvalue reference
 
huh, that's a pretty impressive jump from your last question
 
but your example out of context doesnt make a lot of sense
 
is it an address of an addreess?
 
@doug65536 I'll try
 
no
 
5:45 AM
110
Q: What does T&& mean in C++11?

paxdiabloI've been looking into some of the new features of C++11 and one I've noticed is the double ampersand in declaring variables, like T&& var. For a start, what is this beast called? I wish Google would allow us to search for punctuation like this. What exactly does it mean? At first glan...

 
thanks for the redirection
i will read it now
 
Yeah, this is a bitch to search.
 
sorry
 
No need. I am serious.
It is hard to search for stuff with symbols.
 
ya
 
5:47 AM
you could have just searched [c++-faq][rvalue-reference][c++11]
 
i don't know how to search it
 
@Rapptz That only works when you know the answer!
 
@Rapptz lmao. you already know its an rvalue reference right
 
:)
 
removing [rvalue-reference] brings it down to 12.
@doug65536 yes, yes I do.
 
5:50 AM
i think it is easier to move and copy things with rvalue
 
I call it the "why the hell didn't they put this thing in in 2003" operator
 
I don't get how he went from a weird question like if(c != NULL) with c being a char to asking about rvalue references.
It's.. a strange jump.
 
@RyanFung Copying doesn't really benefit from rvalue references. The real benefit is from avoiding copies by doing moves instead.
 
to be honest, i am really new to c++ and i think to me it is like an double address
or i just see it like that to makes it easier to understand
 
5:53 AM
reference of refernce
 
@RyanFung I think that'll lead to misunderstanding. It's nothing like a reference to a reference. Not even close.
 
it is like stuff you do in the right side
i = i+2
 
don't think of it like that. think of it as, reference to something and I can smash it because its a temporary or its owner doesnt care anymore
 
i+2 is rvalue
k
 
@JerryCoffin But I also need to remove the "D" "E" and "DE"
 
5:55 AM
@RyanFung That's true, but mostly irrelevant.
 
so if you're moving a container you can just rip the underlying pointers or whatever out and move them into the target, leaving the source container in a state where its destructor won't hurt the data you took out (assuming you're the container implementor)
 
@CCInc Okay -- using iostreams that'd be just ignoring the first "word" on each line, then copying out the rest.
 
229
Q: What are rvalues, lvalues, xvalues, glvalues, and prvalues?

James McNellisIn C++03, an expression is either an rvalue or an lvalue. In C++11, an expression can be an: rvalue lvalue xvalue glvalue prvalue Two categories have become five categories. What are these new categories of expressions? How do these new categories relate to the existing rvalue and lva...

 

« first day (834 days earlier)      last day (4116 days later) »