« first day (318 days earlier)      last day (4624 days later) » 

3:15 PM
Real men never sleep.
 
Real men sleep with women.
 
Burn.
 
Feel the bread.
 
@EtiennedeMartel I think this one could only be understood by french-speaking people.
Or am I missing something ?
 
3:18 PM
@kbok That's the whole point.
Pas de pain, pas de gain
 
Gosh.
That's a terrible cross-language pun.
 
It's not that bad.
 
I don't get it.
 
@EtiennedeMartel Uh, sure. I should get rid of my habit of explaining jokes :/
@LucDanton pain = bread
 
I get it. (I just woke up after all.)
 
3:23 PM
I bought a 1 TB external HD and thought it would suffice for my movies, music and tv-series. Alas...
Now what to do. Buy a second one?
 
Rule #1 of buying storage space: It won't be enough.
 
Apparently. I can't keep up.
 
I have yet to fill up my external HD (with my own collection of holiday pictures and movies of course).
 
I want to jump to 8 TB drive. But those are too big and too expensive atm.
 
@StackedCrooked "vector" strategy : buy a new one twice the size. Use the old one as backup for important stuff.
 
3:27 PM
O(1) amortized buying complexity!
 
Buying a 2 TB drive seems like such a temporary fix. Like the switch from 16-bit to 32-bit.
 
Why have I never thought to apply complexity theory to daily life?
 
You're not geeky enough?
 
I want to have a 1 PB drive.
 
In real life, O(0) is the best.
 
3:29 PM
All the best things in life are free.
 
Free rep:
-2
Q: Which of the following is false for switch statement in C++?

knowfreelyWhich of the following is false for switch statement in C++

Just kidding.
 
And except for puddi.
switch (b) {
    case true:  return true;
    case false: return false;
    default:    throw invalid_argument("Boolean must be true or false.");
}
^ Defensive code!
 
Throwing exceptions for that is so cute.
 
I even space-aligned the cases!
 
Make it a macro, and add a check at the beginning of each method/function expecting booleans as arguments.
 
3:33 PM
Or even better: return bool(b);
 
@RMartinhoFernandes This is hilarious.
 
Test.
 
We should have an edit-me tag. For people asking questions they know they can't phrase well, but hope someone understands and can phrase better. As a little preventative measure against early closure.
 
if(x < y + 2 &&
Okay, I'm having the weirdest bug ever.
 
@kbok error: Expected )
 
3:37 PM
@Xaade Some are truly unsalvageable.
 
I can't type that : pastebin.com/AVyjuJiP into the chat.
 
@kbok Use backticks!
These things: `
 
@RMartinhoFernandes Yeah, but it would alert people who prefer to edit over voting to close.
 
Okay, but why is it crashing ?
 
Damn you Markdown.
 
3:38 PM
Anyone can try it out please ? I think it's a bug.
 
if(x < y + 2 && x > y - 2)
 
@kbok I'm busy fighting it for the backticks now :(
How the heck do I escape backticks?
`
Yupee!
 
```
/`
`
AH!
 
Can you escape them inside backticks? i.e. with code formatting?
I can!
I'm still not completely happy with it, though.
 
3:41 PM
Ok, you can't type ampersand ampersand space x.
 
You can't? && x why?
You can.
 
Try it on it's own line maybe ?
 
This is madness.
 
2
A: Simple way to split a sequence of null-separated strings in C++

MankarseBoost solution: #include <boost/algorithm/string.hpp> std::vector<std::string> strs; //input_array must be a Range containing the input. boost::split( strs, input_array, boost::is_any_of(boost::as_array("\0")));

My comment: In cases where a pistol would be enough, a bazooka would likely get you both killed.
 
3:43 PM
&&
 
2 && x >
< y + 2 && x >
x < y + 2 && x > y
 
I'm going spare. I can't type "&&" + " x".
 
It works here.
 
You just did?
 
3:45 PM
I'm using FF6.0, time for bug reports maybe ?
Apparently, it's "ampersand ampersand space" which cause problems.
 
FF6 now converts "&& " to && while removing any next non-space character.... for your pleasure. Enjoy!
 
I will savor it.
 
What do you mean ?
Oh, screw it guys, I'm going home.
 
sbi
&& x
@kbok Works here, with FF6.
 
4:00 PM
Maybe it's a nasty extension.
 
Als
Celebrating Bit day, Are we?
 
In a bucket.
 
Als
I see a lot of Bit wise operators spread around the room
 
4:07 PM
My operators aren't very wise.
 
Als
@CatPlusPlus: You are eh
Silenced
 
Silence cretins!
 
4:33 PM
is there a better way to do function pointers in c++? Something like C# delegates?
 
Als
There's Functors
 
std::function?
@IntermediateHacker What features of delegates are you looking for?
 
std::function is in which header?
 
<functional>, requires C++11 support.
Overloading operator() also works.
 
@RMartinhoFernandes Well many things. Mostly type-safety , flexibility and.... lets not deny it... ease of use
 
4:36 PM
@IntermediateHacker Function pointers are type-safe aren't they?
 
Als
@IntermediateHacker: Was that a trick Q? You already know the answer.
 
@Als No it wasnt
 
evening gents!
 
how are things?
 
4:37 PM
@IntermediateHacker What's "flexibility"?
 
Als
ah the man is here @TonyTheTiger
 
@RMartinhoFernandes A more professional way of saying "easy to work with"?
 
Als
1 hour ago, by R. Martinho Fernandes
Real men sleep with women.
 
Function pointers are not easy to work with? Why?
 
Als
No Real men sleep with Real women.
 
4:38 PM
So, Real men are picky?
 
Als
yup, Real men are not easy
 
Real men don't sleep.
 
Als
@CatPlusPlus: <-------------- Talks about cats!
 
4:40 PM
Sleeping is for the weak.
 
@CatPlusPlus That's not contradictory with "Real men sleep with women."
It's a different kind of sleep.
 
@IntermediateHacker std::function and std::bind. boost:: if no 0x-compliant compiler.
I wouldn't know.
 
Als
@RMartinhoFernandes: S/He is trolling, bringing up irrelevant talk of sleep because S/He does not sleep a lot.
 
@Als If you mean the @Cat, he's a he.
 
Als
@RMartinhoFernandes: I haven't seen & I have heard rumors..
 
4:42 PM
he's a he
 
@Als huh? rumours?
 
Als
lol
 
Als
4:43 PM
Are we allowed to use the seemingly deragatory pussy word to address @CatPlusPlus? :P
 
Speaking of rumours, I haven't seen @Xeo in a while.
 
You haven't heard anything, you're trying to force-a-meme. And that one is reserved for @Xeo.
Hivemind.
 
Mine was longer.
 
Hey
 
Als
4:44 PM
@hexa: Hola, Hex, missing in action eh
 
Yeah :P
I started playing WoW again, must be it
wowcrack
 
Als
WOW
 
Als
@TonyTheTiger: When is the party?
I have already started making the list, W's seem to be dominating my list
 
List of what?
 
4:51 PM
Letters.
 
Als
List of things @TonyTheTiger, would get for the party
 
Whisky also ?
 
sbi
@Als No, @CatPlusPlus is not a pussy, it's a plussy!
 
Als
@sbi: Haha, As always, He Spoke!!
 
sbi
@Als Can we promote that to double, please? Real women^Wnumbers are so narrow.
 
4:53 PM
What? I can see the basis of a joke there, but it made no sense as it were.
 
sbi
@RMartinhoFernandes Better now?
@RMartinhoFernandes Never had a double pack of women? :)
 
@Als Why do you refer to him with a capital H?
 
1
Q: Why are the upvote points in the [C++0x] tag not merged into [C++11]?

Johannes Schaub - litbI just wanted to check the top-users list for c++0x and found that this tag was made synonymous with c++11, which indeed is a good thing. But unlike with template and templates some time ago, this time the upvotes of the former tags were not merged into the upvotes points of the latter tag. The...

 
You're just jealous that you are not winning.
 
@Als have to take the job before we can party
 
4:58 PM
Party twice!
 
@kbok I like whiskey :)
lol
Imagine a party IRL with us lot, I think that might turn out crazy
 
lol @RMartinhoFernandes
 
@TonyTheTiger Why crazy?
 
@RMartinhoFernandes cause we're a crazy bunch, but you're a robot, you don't know what crazy is :P
 
I think I'm going to throw a huge party also when I'll get the job.
 
5:02 PM
@kbok r u also looking for a job?
 
@TonyTheTiger Yes, I'll graduate next month so this will be my first "real" job.
 
ohhhh... exciting
any ideas what industry you'd like to work in?
 
Semester starts next month. :.
> The Polynomial is a 3D spaceflight music game with abstract, mathematically generated scenery and models which are set to the music of your choice. You fly around in a very strange universe, shoot the enemies, meet and protect the friends, collect bonuses, fly through wormholes, and so on, all while rocking out to the music.
There are games implementing strangest of ideas.
 
@TonyTheTiger I'm into finance right now. I have a second interview (out of 3 probably) with an editor in Paris on Thursday.
 
@CatPlusPlus Sounds like Beat Hazard.
 
5:05 PM
Beat Hazard is not a game, but an on-demand seizure generator.
 
The screenshots are very nice.
 
@kbok oh cool
 
@TonyTheTiger I hope it will do, they have everything I'm looking for : C++, good salary, interesting technical challenges, nice city. Also, lots of chicks and free cola :)
 
Als
@RMartinhoFernandes: I refer to @sbi, with captial H because I have immense respect for Him.
 
It sounds like he's God Morgan Freeman.
 
Als
5:10 PM
@CatPlusPlus: He is a respectable Bonobo
 
@kbok Which nice city is it?
 
@LucDanton It's in Paris.
 
Als
Paris, i think
@kbok: Where in Paris?
 
@Als Trocadero. Near the Eiffel Tower.
 
If you don't mind us asking.
 
5:12 PM
No problem :)
 
Als
@kbok: whoa! Nice view that, eh
Loads of girls as well :P
 
@Als Yes, it was one important criteria. :D
 
@kbok Sounds good, hope you get tit :)
oh, I said tit
 
Als
@kbok: Ah, remember the days, I stayed in a hotel with a nice site of the Eiffel, The Citadines, if i remember correctly.
 
@TonyTheTiger I thought it was intentional :)
 
Als
5:14 PM
@TonyTheTiger: If i was him, I would want more than just tit :P
haha
 
hehe
@Als so @sbi is a God now :P
 
Don't give him ideas.
 
Real, unless declared integer.
 
Als
@TonyTheTiger: Why god? I said it, He is a respectable Bonobo.
 
sbi
0
A: Why are the upvote points in the [C++0x] tag not unified with those of [C++11]?

sbiOld questions aren't automatically affected by the synonym, only new ones will be. For old reputation to be converted old c++0x questions need to get converted to c++11 questions. This should certainly not happen en masse and automatically, as not all old c++0x questions are real c++11 question...

 
Als
5:16 PM
:P
 
@Als oh I see
 
sbi
@TonyTheTiger What? Did I miss anything?
 
Als
He posted :P
lol
 
7 mins ago, by Als
@RMartinhoFernandes: I refer to @sbi, with captial H because I have immense respect for Him.
 
sbi
You're all a bunch of madmen.
 
5:18 PM
@sbi you can't make up your mind?
 
sbi
@TonyTheTiger I liked to play pingpong with you.
@RMartinhoFernandes Yes, please, don't. I have way too many ideas already.
 
well we're in the C++ lounge after all, sanity was never a requirement, just pendantism
 
Als
@sbi: Why are We Madmen?
 
@sbi hmm pingpong eh...
 
sbi
@Als How would I know why you are mad? I don't even know your name, let alone your past!
 
5:20 PM
@sbi he's mad, just take it from me :)
lol
 
sbi
room topic changed to Lounge<C++>: Sanity was never a requirement here, just pendantism. [c++] [c++11] [c++-faq]
 
Als
@sbi: How did you conclude, that I am in a bunch of people who are mad?
 
@sbi lol :P
 
sbi
@TonyTheTiger I will take nuffink from you.
 
@sbi you took my spelling mistake with... pendentism instead of pedantism
@sbi oh I see, be that way :P
 
sbi
5:21 PM
@Als I never did, but if there was any doubt, that question would have removed it.
@TonyTheTiger I thought that was part of the joke?
 
Als
@sbi: I asked because, of this:
3 mins ago, by sbi
You're all a bunch of madmen.
 
@sbi no it was a mistake in my spelling
didn't notice till just now
 
sbi
@TonyTheTiger Wrong answer, boy!
@Als So?
 
Als
Buoy!
 
I'm confused
 
Als
5:23 PM
@sbi: So? How did you conclude that?
 
@TonyTheTiger You keep making jokes inadvertently :)
 
Als
@TonyTheTiger: Not being confused, was never your strong point, Tiger, You are one beast who loves wine and women, that's your specialty
 
mooing duck?
 
sbi
@TonyTheTiger Tell us something new!
 
5:24 PM
@Als yea things confuse me easily!!?!!
 
sbi
@Als How do you conclude that "you're all" would refer to you, personally, singularly?
 
Als
@TonyTheTiger: Thats good, tells us you are Human.
Who is the Mooing Duck?
 
@Als donno, but I've never heard a duck mooo
 
I can get confused too.
 
5:26 PM
@TonyTheTiger That was my point :) That tit joke actually made me laugh, even thought it was a typo.
 
Als
@sbi: Since it was us who were having a conversation, at the time you made the comment.
@kbok: huh, You don't know the Tiger yet, That was not a joke
@RMartinhoFernandes: You are a robot, Your programming might be by someone like me for you to be confused.
 
sbi
@Als What makes you think it was just the two of us? You are stark, raving mad, Sir. :)
 
@Als I don't make jokes, I say exactly what I mean to, NO exceptions! (except when I make a spelling mistake)
 
Als
@sbi: Because that is a fact.
 
I know, to explain all this, RULE 34!
 
sbi
5:29 PM
@Als Of course it is a fact that you are mad. I said it, after all, so it must be true.
 
Als
@TonyTheTiger: Yeah, Actually i wanted to say That was not a Typo
I made a typo
 
lol
I'm just messing with y'all
 
sbi
@TonyTheTiger That number is plain wrong. This rule should have been Rule 69 or something like that. #34 is way to boring for such a rule.
 
@sbi you're right, from now
 
Als
@sbi: I smell a contradiction, First you said we are all mad, then you said, perhaps you didn't meant it for some, and then again you say It might be true because you said it.
 
sbi
5:31 PM
@TonyTheTiger That's what you think. In reality, it's us messing with you.
 
RULE 34 == RULE 69
 
Als
@TonyTheTiger: What is rule 34? coming from you I get the feeling it might be some Kamasutra position.
 
I don't think I've said anything sensible today
@Als There is pr0n of it, no exceptions!
 
Als
@TonyTheTiger: maybe I need a visual sample of it :P
 
5:33 PM
Does anyone know of a good xml parser library for c++
???
 
Als
@sbi: I see, thanks
@IntermediateHacker: Googled it did you?
 
1.EXISTS 2. PR0N 3. ????? 4.PROFIT
@IntermediateHacker xcerces
 
Good and XML are mutually exclusive.
4
 
 
Als
@kbok: Lol
Oh we can expect some trolling or trick Questions now.
:P
 
5:39 PM
@TonyTheTiger thanks xerces is good.
 
@TonyTheTiger Well I can't find stackoverflow porn.
 
@Als haha
 
Als
@IntermediateHacker: That is the first result that shows up in google search, and the link I posted too.
 
@Als I just wanted to know what other people were using.
 
sbi
@kbok I get a 403 Error for that.
@IntermediateHacker expat
@IntermediateHacker expat
 
5:43 PM
@sbi expat is in c... i want an oo xml parser
 
@IntermediateHacker TinyXML
 
Als
Okay calling it a day Mad Men, As He said so :P
Good day
 
sbi
@IntermediateHacker What's an OO XML parser?? XML isn't object-oriented.
@Als Good night!
 
@EtiennedeMartel Thanks TinyXML seems the best yet.
@Als Bye. And thanks for all the encouragement
@sbi Object Oriented XML parser
 
sbi
@IntermediateHacker I know. "XML isn't object-oriented."
 
5:46 PM
@sbi But the xml parser should be.
 
sbi
@IntermediateHacker <sigh/> Please explain what an object-oriented parser should be?
 
example:
 
sbi
Do you mean the parser has to be implemented in an OO fashion? If so, why would you care? It's a piece of 3rd-party code you're using. (And besides, expat is implemented in OO.)
 
Not OOP: Document_Load(Document* x, char* fname)
OOP: Document x; x.Load("fname");
 
expat is stream-oriented, TinyXML is DOM-oriented.
@IntermediateHacker OO does not mean "using methods".
 
sbi
5:48 PM
@IntermediateHacker Actually, that is OO, just not with a C++ syntax. That is how you do OO in C. As I said, expat is implemented in OO fashion.
 
Document_Load(Document *x, char *fname) looks like OOP
 
Except the this pointer is explicit.
 
just with a different syntax
 
I mean, there isn't much difference between Load(x, name) and x->Load(name).
 
Thank you all. "What the devil" and "whoops" are both perfect ejaculations. "Wank/wanker" not quite right for this book.
 
sbi
5:51 PM
Look, a general XML parser would be underlying your parser, that, presumably parses some special language implemented in XML. How you implement your parser can be totally different from how the underlying XML parser is implemented. For your parser's API it's irrelevant what the underlying XML parser's API looks like.
 
with SGML you can implement your own XMLy language
 
@sbi It's not really irrelevant. I always found DOM-based parsers easier to use than SAX-based parsers.
 
sbi
@RMartinhoFernandes Um, it's hard to understand that without knowing twitter.com/#!/neilhimself/status/108565311296507905.
 
XML is also implemented in SGML
DOM parsers cannot parse arbitrarily long XML documents
SAX parsers can
 
@sbi I know, but it has more shock value like this.
Or something.
 
sbi
5:53 PM
@EtiennedeMartel Of course, whether you use a DOM or SAX parser is probably the most important decision to make when you are looking for an XML parser. I was refering to programming paradigms, not parsing paradigms. Sorry.
 
@JohannesSchaublitb It all boils down to how large your documents are going to be. If you don't need to parse huge documents, then DOM is probably the way to go.
Pick the right tool for the job.
 
You can have OO DOM parsers and OO SAX parsers.
 
sbi
@JohannesSchaublitb Plus, inside every DOM parser is a SAX parser struggling to get out. Or something like this. :)
 
@RMartinhoFernandes Agreed. Object orientedness has nothing to do with that.
 
sbi
@RMartinhoFernandes What is an OO parser?
 
5:54 PM
parse code into object models
 
A parser with an object-oriented API.
 
but with OO DOM parsers, you have to fiddle
 
I thought we had that established.
 
output object models as compiled code.
 
like, remove old nodes from the DOM
or implement loading/saving your DOM to a file.
and read the used pieces out of the file etc.
 
5:55 PM
DOM gives a bit more flexibility. It would be hard to implement LINQ to XML on top of a SAX parser, for instance.
 
All those standards in C++11, convert to objects. A l-value is an object, and r-value is an object. An expression is an object that contains values.
 
oh I thought you mean "infinity DOM parsers" by "OO DOM parsers"
 
Ironically (or not ironically?), the language (wording) of the C++ standard is very OO-ness.
 
@EtiennedeMartel It wouldn't be as easy (because with a DOM it's basically just LINQ to objects) but I don't think it would be that hard.
 
@Xaade Everyone knows OO is the best paradigm.
@RMartinhoFernandes You know, I almost want to try to implement it.
 
5:57 PM
You don't even need expression trees!
 
sbi
@RMartinhoFernandes I don't know when and where.
 
9 mins ago, by sbi
@IntermediateHacker Actually, that is OO, just not with a C++ syntax. That is how you do OO in C. As I said, expat is implemented in OO fashion.
Maybe I read too much.
 
sbi
@RMartinhoFernandes We were indeed talking about expat's API there.
 
@EtiennedeMartel Is it?
Because a lot of math is mere functional programming.
The only time you get into objects is when you treat an expression as an object to perform on (like derivatives).
 

« first day (318 days earlier)      last day (4624 days later) »