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

08:00
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
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.
08:01
@ThePhD Shush you! We are no longer in speaking terms.
@sbi I would have paid to see that.
sbi
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
08:02
@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
sbi
@MarkGarcia Fortunately, you can't. Phew.
@Rapptz it's too late for you. :D
@sbi I'm quite insistent. Hehehe.
sbi
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.
08:04
sbi
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 :)
08:05
: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
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
sbi
08:07
@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
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
sbi
@MarkGarcia Making rosy cheeks in ASCII? Now there's something I'd like to see.
man SO chat search sucks.
08:10
Took me forever to find this:
user image
8
There.
lmao
sbi
sbi
@MarkGarcia LOL!
@Rapptz That's my signature, BTW. :)
Thank you! I'm really(!!!) teary-eyed by now.
08:12
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
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
sbi
@Mysticial Oh. I thought an answer had to be -3 at least? Anyway, I cast a delete vote, too.
08:15
-1 is good enough :)
sbi
sbi
Hey, c'mon, guys, one more delete vote!
I've already downvoted. Why's it still -2?
sbi
sbi
Who here has enough rep for that? @sehe, @Tony, @Xeo?
Xeo
Xeo
@sbi Sorry, internet here is teh slowz today.
Nuked now
sbi
sbi
Yeah, just saw it. Thanks.
@MarkGarcia That's pretty @Mystic.
08:19
Why does the book question have a bounty?
sbi
sbi
DOES IT?
yeah for +50
sbi
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.
08:20
@Rapptz lol
Otherwise, there'd be no point.
Maybe he just wants the badge?
Good morning ladies and jellyspoons of
sbi
sbi
@Mysticial Oh, are they? Wow.
What's the top-voted answer? Johannes', IIRC. Well, he surely needs more rep.
08:23
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
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.
08:25
Oh nvm, one is closed.
I was browsing frequent tab.
sbi
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
sbi
08:28
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
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.
08:30
@jalf More reorganising. Not all those qs are C++
sbi
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
sbi
@DaveRandom presumably they are all about, um, self-destruction? What a coincidence.
08:33
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.
08:36
"asked 59 secs ago"
"closed as off topic by Oded♦ 48 secs ago"
Damn... too fast
Xeo
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
sbi
@Mysticial He must have been waiting for this question to appear for hours.
8:34:40Z - closed
8:34:49Z - asked
sbi
sbi
08:38
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?
08:51
@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
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
Xeo
Like "async"
08:52
so it's not Z
Xeo
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.?
08:57
@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
Xeo
There's not enough code to see what is going on.
@Dariusz make an SSCCE
Xeo
Xeo
08:59
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
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...
09:06
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...
09:07
@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
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
Xeo
Unless you used some character that looks like e
09:08
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
Xeo
@DaveRandom shared_ptr internal refcount block uses it, IIRC
09:09
@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
Xeo
no you don't
09:11
So, guys, how do I smash a thread?
Xeo
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
Xeo
1 min ago, by Xeo
no you don't
@ThePhD that would lead to UB
09:12
=[
Xeo
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
Xeo
@Abyx That is the same kind of badness, isn't it?
09:13
@MarkGarcia Perhaps there's a Coliru artifact going on here? It behaves as expected on my machine.
Xeo
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
Xeo
@Abyx Ah, so it's cooperative cancellation.
3 mins ago, by Xeo
Cooperative cancellation.
@ThePhD wait functions should support it
09:14
Guess I'm googling cooperative cancellation, then.
@Abyx ?
Xeo
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
Xeo
Where it checks for a cancellation token (a bool in the simplest form)
That kind of canceling.
@LucDanton o.0
Xeo
Xeo
09:15
@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
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
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
Xeo
09:18
click into coliru output, ctrl-A, ctrl-C
Fuck strings
Xeo
Xeo
And ctrl-V here
What it looks like.
Xeo
Xeo
oO
09:19
Null-termination: the nightmare of ages.
btw, "test\0test"s would do the thing
Xeo
Xeo
Tis crazy
So maybe not so much Coliru than the browser?
Xeo
Xeo
FF 20 here
Chrome shows the same
Ya looks fine under FF as well. Oh well.
Xeo
Xeo
09:21
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
09:26
@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
09:27
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.
Ugh.
I hate recompiling everything.
Such a chore. =/
09:32
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
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
Xeo
We expected you (to fix ALL the things), Mr. Crooked.
09:40
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
09:48
I was there was a better way than reinterpret_cast
@R.MartinhoFernandes Damn... a badge I'll never get. :) congrats
Xeo
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
Xeo
I was about to say :P
Someone upvoted it?
Xeo
Xeo
09:51
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
Xeo
Ahem
cough
Tee hee.

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