« first day (922 days earlier)      last day (4026 days later) » 

8:00 AM
Ya'll are so mean to me. q_q
 
For the record, I think it might actually work. I'm not sure whether that's because of the design, or in spite of it :)
@Rapptz LOL. Feels weird to reply to your own message, maybe? Also "feel weird" must be the strangest appeal to emotion I've seen today
 
I'm not appealing to emotion!
 
Aww, Rapptz doesn't want to be lonely. <3
 
Also replying to my message is better than reposting.
 
sbi
Anyway, after we left the hall where they meet, many of the representatives came out to congratulate us — for picking such a good speaker. Until we finally sat in the pub and I had my first beer, I was in a state of constant blushing.
 
8:01 AM
@ThePhD Shush you! We are no longer in speaking terms.
 
@sbi I would have paid to see that.
 
sbi
@ThePhD Me having a beer?
 
@sbi Your blush!
 
@Rapptz More emotion :) I get it. No problem. Just "Feel weird being the only vtc" is an appeal to emotion because you used it to support your request for close votes.
@Rapptz Now more lonely
 
You're usually called the grumpy ape. The Blushing Ape sounds like, I dunno. An exotic bar or something.
2
 
8:02 AM
@sbi Should I edit your gorilla pic with a blush on its cheeks? :)
 
@sehe Ah I didn't mean for it to come across like that.
 
sbi
@MarkGarcia Fortunately, you can't. Phew.
 
@Rapptz it's too late for you. :D
 
@sbi I'm quite insistent. Hehehe.
 
sbi
I knew someone would star those the moment I read them. This room never lets you down when you expect humiliating posts to get starred.
 
8:04 AM
 
sbi
Is that a rose? I fucking hate roses.
 
mawning fellas
 
The ape is getting back to his grumpy self. Good
 
^ Shows up after the mention of exotic bar.
 
lol
@ThePhD fuck you :)
 
8:05 AM
:D
 
Fuck. It's like the duck's going to be eaten by these beasts.
 
@ThePhD Also after mentioning nothrow move construction
 
@sehe Of course! Exceptions would ruin all the fun~
 
sbi
@sehe No, really, I do not like roses. I do like other flowers, though.
 
It was the closest thing I could find related to blushing gorillas
 
sbi
8:07 AM
@sehe And I am surprised you found one that close.
Gorillas don't blush easily.
(Has to do with all the facial hair.)
 
PS seems to take forever to load...
 
sbi
PostScript? I didn't know anyone even still uses that.
user image
2
 
@sbi Nah. I'm not making an ASCII blushing gorilla.
 
sbi
@MarkGarcia Making rosy cheeks in ASCII? Now there's something I'd like to see.
 
man SO chat search sucks.
 
8:10 AM
 
Took me forever to find this:
 
user image
8
There.
 
lmao
 
sbi
@MarkGarcia LOL!
@Rapptz That's my signature, BTW. :)
 
Thank you! I'm really(!!!) teary-eyed by now.
 
8:12 AM
I'm not sure if that signature says "sexy" or what ahaha
 
For laughing, by part.
 
0
A: Is there a performance difference between i++ and ++i in C++?

windydyssimply put ++i increments your variable before you use it and i++ increments after.

 
sbi
@Rapptz It's worse.
@Mysticial Two more downvotes and it can be removed by us.
 
@sbi We can already delete it.
I already cast a delete vote.
 
sbi
@Mysticial Oh. I thought an answer had to be -3 at least? Anyway, I cast a delete vote, too.
 
8:15 AM
-1 is good enough :)
 
sbi
Hey, c'mon, guys, one more delete vote!
 
I've already downvoted. Why's it still -2?
 
sbi
Who here has enough rep for that? @sehe, @Tony, @Xeo?
 
Xeo
@sbi Sorry, internet here is teh slowz today.
Nuked now
 
sbi
Yeah, just saw it. Thanks.
@MarkGarcia That's pretty @Mystic.
 
8:19 AM
Why does the book question have a bounty?
 
sbi
DOES IT?
 
yeah
 
yeah for +50
 
sbi
That's stupid. That's a wiki question. Nobody will benefit.
 
Well, there's a bug in the Hot-tab lately.
So the book question's been getting more attention than usual.
@sbi Bounties are immune to wiki.
 
8:20 AM
@Rapptz lol
 
Otherwise, there'd be no point.
 
Maybe he just wants the badge?
 
Good morning ladies and jellyspoons of
 
sbi
@Mysticial Oh, are they? Wow.
What's the top-voted answer? Johannes', IIRC. Well, he surely needs more rep.
 
8:23 AM
Since it's almost exclusively full of questions about your language, and specifically something that my gut tells me is horribly bad practice (although I don't know enough to be certain), can you guys please tell me if you think the tag is worth keeping?
 
@Rapptz Ahahaha!!!
 
@DaveRandom Nothing wrong with it I guess.
 
sbi
@Rapptz How stupid.
 
It's not a meta-tag, none of the questions have a low score, none are closed.
 
Most of those Q's are duplicates I suppose.
 
8:25 AM
Oh nvm, one is closed.
I was browsing frequent tab.
 
sbi
@DaveRandom There's nothing wrong with the tag, although having 26 questions on the subject (and no doubt dozens more that aren't tagged) seems stupid. There should be one FAQ question answering this and the rest be closed as dupes.
 
FWIW, bounties render the question immune to closings. (except by mods)
 
In general I would say that language agnostic tags with 26 questions since the dawn of time should be burninated, could we create a more C++ specific tag about delete this? The problem is newbies may come along and tag a question with just and no-one will ever see it.
 
How would that solve anything?
 
@sbi Well that was the other thing I was going to say, there seem to be quite a few dupes there, you need a canonical
@Rapptz It won't necessarily. But it could give you C++y people something you can add to your watch list that won't be a crap-stream of q's about other languages
 
sbi
8:28 AM
Of course, once somebody comes up with a good idea, everybody rushes in and claims "that was the other thing I was going to say." :)
 
@DaveRandom that sounds like an awful idea. If people want to use this tag, then either let the tag exist, or remove it. Renaming it...? Not so much
 
@sbi Damn straight. Coat tails are there for the ridin' :-P
 
Seriously I think there are better tags that need removing :S
 
No arguments there, but that doesn't mean this one doesn't
 
sbi
@DaveRandom Let's not become political. That tag is fine semantically, and that's what should count. If it should ever attract bad questions, then those should be stomped on. But, frankly, with 26 questions in the tag, I have no idea why you're even bothering us.
 
8:30 AM
@jalf More reorganising. Not all those qs are C++
 
sbi
@Rapptz And worse ones, too!
@DaveRandom Then I hope they are tagged appropriately.
 
Honestly, there's really nothing inherently wrong with it like I said. It isn't a meta-tag, it doesn't seem to attract bad questions (only one is closed), etc.
 
@sbi For the most part they do seem to be.
Which makes the tag even more useless. The questions are not directly related to each other.
 
Might as well say every tag outside of languages should be burned.
 
sbi
@DaveRandom presumably they are all about, um, self-destruction? What a coincidence.
 
8:33 AM
Anyway it's late. Good night.
 
@Rapptz Good night.
 
night
 
@sbi OK OK I'll leave it be and go away :-P
 
G'night
 
Although if you fine gentlemen could see your way to closing the dupes (of which there must be some in there, they look largely the same to my untrained eye) that would be good.
 
8:36 AM
"asked 59 secs ago"
"closed as off topic by Oded♦ 48 secs ago"
Damn... too fast
 
Xeo
woah
 
@Mysticial link?
 
Couldn't get my own CV in... :(
-2
Q: javascripty click event not firing in chrome

nksI have a server side click event, which i am calling in my master page javascript document.getElementById('<%=LinkBtnSaveSession.ClientID%>').click(); This is my control <asp:LinkButton ID="LinkBtnSaveSession" Style="display: none" runat="server" OnClick="LinkBtnSaveSession_Click"></asp:Link...

 
sbi
@Mysticial He must have been waiting for this question to appear for hours.
 
8:34:40Z - closed
8:34:49Z - asked
 
sbi
8:38 AM
What?
 
@sbi That's what the tooltip on the asked and closed times says.
 
1 message moved to bin
HA! I beat @Luc this time!
 
@user1583647, press F1, read help, ask on SO
 
catch (CLuceneError& e) {
ERR("exception [%s]", e.what());
return -666;
}

gives me

error: ‘e’ was not declared in this scope

WTH?
 
@Dariusz broken compiler?
 
8:51 AM
@DaveRandom I have no idea why that would matter. You're saying that because not all of the questions about about C++, the tag should be replaced by something C++ specific?
 
uhm, do you spell boost.asio as aZio or aCio?
 
Xeo
former
well.. actually, it's more of a mix between the two, I guess.
Both work :P
 
@Abyx g++ (GCC) 4.1.2 20080704 (Red Hat 4.1.2-52)
 
@Abyx I always spelled it "boost.asio"
 
Xeo
Like "async"
 
8:52 AM
so it's not Z
 
Xeo
Well, I sometimes pronounce it "azio" atleast
 
@Abyx "Async. I/O".
 
@Dariusz you know, it's 2013 already
 
@Abyx that's irrelevant
 
@Dariusz how old gcc 4.1 is? 7-8 y.o.?
 
8:57 AM
@Abyx 20080704... g++ 4.4.6 20110731 gives the same error
 
@Dariusz maybe you have #define catch(...) somewhere
 
@jalf I'm saying the questions should be grouped in such a way that people knowledgable on a certain subject can find related questions. As it is, there are a bunch of largely unrelated subject matters grouped together - delete this has nothing to do with binaries or bash scripts that delete themselves or programs that delete their internal user data
 
@Abyx that would explain a lot, but no, I don't.
 
Xeo
There's not enough code to see what is going on.
 
@Dariusz make an SSCCE
 
Xeo
8:59 AM
And hint: This isn't a helpdesk. Get on Stack Overflow with a proper SSCCE.
 
@Xeo @Abyx this problem seems too stupid to go to SO. And there's nothing more to add to SSCCE. This is literally the only code in a function. And this compiles on mingw no problem.
 
gtfo
 
Xeo
@Dariusz If there's nothing more to add, there's nothing more we can (and want to) do.
 
@DaveRandom But delete this is no more a distinct language feature in C++ than "functions with names starting with p" are. A tag for that makes no sense whatsoever. But apparently, 26 people saw the self-destruction tag as useful or relevant. Shouldn't that count for something? I can understand deleting the tag entirely (although it seems deeply unnecessary and possibly counterproductive), but trying to retag the C++-centric subset of the questions is just weird.
 
seriously...
 
9:06 AM
But but but
Neat groups!
 
@Mysticial I was in the shower!
 
@Xeo thanks anyway. At least you looked at the code and didn't notice any typo (of which I was afraid), so I guess I'll have to dig deeper.
 
@MarkGarcia lol
 
@LucDanton lol, so you have to be in the showed for me to beat you...
 
9:07 AM
@MarkGarcia null-termination appending is probably just ignored.
 
string s1("test\0test"); is no more than string s1("test");
use string s1("test\0test", 4+1+4);
 
@jalf I'm not too fixated on that element of it, I just want to burninate the tag. I only suggested that as a way to keep questions on that relatively narrow subject together, if you thought it was worthwhile keeping them together because it was a complex subject (I don't know enough about it to make that judgement).
 
Xeo
@Dariusz I have to say, I find it pretty hard to typo an e.
 
@Abyx strlen or char_traits<>::length or whatever will always stop on the null terminator.
 
Xeo
Unless you used some character that looks like e
 
9:08 AM
I have to say though, it sounds like horribly bad practice - having objects free up their own memory internally? Sounds like a recipe for dangling external pointers and probably a route to memory leaks.
 
@Xeo SMALL LETTER E WITH NO ACCENTS
 
It's certainly clear as mud
 
^ Could see Unicode doing that.
 
Xeo
@DaveRandom shared_ptr internal refcount block uses it, IIRC
 
9:09 AM
@ThePhD so what?
 
@Abyx Just mentioning. :D
 
ok
 
@Xeo I couldn't possibly comment, I don't (yet) know enough about C++. But language-agnostic, x does it != it's a good idea :-P
 
std::thread doesn't offer an abort method.
But, I'd like to write one.
 
Xeo
no you don't
 
9:11 AM
So, guys, how do I smash a thread?
 
Xeo
Cooperative cancellation.
 
@ThePhD you should ask it to terminate
 
I'd like to be able to smash the thread in the middle of its processing.
E.g. even if it's in the middle of a function.
 
Xeo
1 min ago, by Xeo
no you don't
 
@ThePhD that would lead to UB
 
9:12 AM
=[
 
Xeo
There's a fucking reason std::thread doesn't have such a function
 
memory/resources leaks and so on
 
Alright, fine.
No abort, then.
 
@Xeo it could have interrupt like in boost.thread
 
Xeo
@Abyx That is the same kind of badness, isn't it?
 
9:13 AM
@MarkGarcia Perhaps there's a Coliru artifact going on here? It behaves as expected on my machine.
 
Xeo
@LucDanton I think you have the wrong expectations?
 
@Xeo no, it throws an exception in thread, stack unwinds, so no UB involved
 
What are the expectiations?
@Abyx That's what I wanted to do.
But I have no idea how to "inject" an exception in a thread.
 
Xeo
@Abyx Ah, so it's cooperative cancellation.
3 mins ago, by Xeo
Cooperative cancellation.
 
@ThePhD wait functions should support it
 
9:14 AM
Guess I'm googling cooperative cancellation, then.
@Abyx ?
 
Xeo
Basically, your worker provides points where it can cancel
Like, if it's a loop, at the end of every loop.
 
@Xeo Ideone displays something different from Coliru.
 
Oh.
 
Xeo
Where it checks for a cancellation token (a bool in the simplest form)
 
That kind of canceling.
@LucDanton o.0
 
Xeo
9:15 AM
@LucDanton You sure?
 
They display exactly the same for me.
... I think you've been eating too much Template, Luc.
Perhaps a little rest would be a good thing...
 
Xeo
Woah wtf. When I copy the output from Coliru, I end up with only 3 "test", each in its own line /cc @StackedCrooked
 
o.0
You're all on crack or something.
Line 3 has 2 tests
the others have 1 test
It's the same in both ideone and coliru
 
Xeo
Yes, I see that too
But my clipboard only gives me 3 test
g++-4.8 -std=c++11 -O2 -pthread main.cpp && ./a.out
test
test
test
 
... o______O
 
Xeo
9:18 AM
click into coliru output, ctrl-A, ctrl-C
 
Fuck strings
 
Xeo
And ctrl-V here
 
What it looks like.
 
Xeo
oO
 
9:19 AM
Null-termination: the nightmare of ages.
 
btw, "test\0test"s would do the thing
 
Xeo
Tis crazy
 
So maybe not so much Coliru than the browser?
 
Xeo
FF 20 here
Chrome shows the same
 
Ya looks fine under FF as well. Oh well.
 
Xeo
9:21 AM
IE doesn't
Are you using IE?
I find it interesting that embedded nul kills clipboard btw
 
oh fuck, FF is already 20.x
 
0
A: C# ref is it like a pointer in C/C++ or a reference in C++?

FredOverflowA ref in C# is equivalent to a C++ reference: Their intent is call-by-reference There are no null references There are no uninitialized references You cannot rebind references When you spell the reference, you are actually denoting the referred variable Some C++ code: void foo(int& x) { ...

I'm a C# whore :D
 
C++ reference is like a C++ pointer
 
@FredOverflow -1 you must first initalize answer in the C# code snippet.
 
@ThePhD feel free to fix that
 
9:26 AM
@Xeo lol
 
@FredOverflow I'm too lazy. <3
 
@ThePhD Okay, I'll fix it :) Are you 100% sure?
 
@FredOverflow Nope. :D
 
$ apt-cache show internet-explorer
N: Unable to locate package internet-explorer
E: No packages found
 
@FredOverflow it would be ok for out, but not ref
 
9:27 AM
tl;dr Opera
 
My C# instinct says you can't pass an unitialized variable as a reference.
It has to be initialized to something, even null.
 
@ThePhD int?
 
@Abyx I was talking in general, so in this case it'd have to be 0 or something.
Or 0xBEEF.
 
@Abyx ideone agrees, fixed.
 
Ugh.
I hate recompiling everything.
Such a chore. =/
 
9:32 AM
Do you compile by hand or what? :)
 
No, but I can take a small nap while I wait for the recompile to finish.
I have to do some research to figure out if I can chop down some headers and where I can do it feasibly but for the moment it's a nightmare.
And when I switch computers, a full recompile has to happen.
 
@Xeo Can't reproduce it on Linux Chrome. On Linux Firefox it only copies the first two lines (command line and one 'test').
 
Xeo
Woah
 
However, you are messing with '\0'. Don't expect me to fix this :P
Perhaps I could escape non-printable characters. Or something..
 
Xeo
We expected you (to fix ALL the things), Mr. Crooked.
 
9:40 AM
0
A: How do you import classes in JSP?

piyush<%@ page import="java.util.List"%>

^^ Do people seriously copy-paste answers like that?
 
What the hell is this unsigned __int8 foo = '\x3'? What kind of value is this?
@Mysticial apparently
 
Voted delete
I seriously wonder how much of this late garbage there is every day. Obviously I only see a small fraction of them.
 
@LucDanton Oh, thanks
I'm thinking about loosing the pair and using a struct instead actually
 
9:48 AM
I was there was a better way than reinterpret_cast
 
@R.MartinhoFernandes Damn... a badge I'll never get. :) congrats
 
Xeo
@R.MartinhoFernandes Can we say you're a whore for everything now?
 
this answer is based on jjnguy question.It is not copy paste. — piyush 27 secs ago
^^ give me a break... lol
<%@ page import="java.util.List" %>
<%@ page import="java.util.List"%>
Okay fair, it's missing a space. haha
 
Xeo
I was about to say :P
 
Someone upvoted it?
 
Xeo
9:51 AM
Not me, the answer is still bad
 
Oh wait, the question was asked by a mod. haha
 
I can tell from the starboard that the ape was around.
 
@R.MartinhoFernandes The Blushing Ape is now a thing. :D
 
Xeo
Ahem
cough
 
Tee hee.
 

« first day (922 days earlier)      last day (4026 days later) »