« first day (613 days earlier)      last day (4350 days later) » 

3:00 PM
That said, throwing a d3 is so rare we always reiterate the convention when we need that.
 
I've been thinking about playing dnd with some friends, or some other rpg, but can't seem to get a group who are able to play regularly enough for it to work
@RMartinhoFernandes those have fives and fours :S
 
@thecoshman But only three sides! (I have no idea what game is that one)
 
@RMartinhoFernandes oooh, is it a case of, you rolled the number you don't see
the coolest die I've seen is a d6 ball
I assume it had a cube void with a tiny weight
 
@thecoshman How does that work?
 
1 min ago, by thecoshman
I assume it had a cube void with a tiny weight
 
3:04 PM
Giroscopic-ish.
 
@RMartinhoFernandes not really
 
@thecoshman That doesn't explain it. If it were a ball, it wouldn't land on any apparent side
 
@thecoshman Oh, just a sphere?
 
@Neil ¬_¬ draw circle, then draw a square inside it, draw a further dot inside that square. well done, you've just drawn a 2d version of it (some intelligence is assume)
as it rolls, it jolts a little as the weight inside must be bouncing around
 
3:06 PM
^ That's from 2007, at Waldemar's café in Oslo. I was still smoking then, as evidenced by the lighter and steel ashtray in the background. Farther back, that's a pint of beer. :-)
 
@thecoshman So the weight forces it to land on a side, interesting
 
@CheersandhthAlf Wait - you post photographs of your meals when eating out, and the photos can be 5 years old. Why?
 
@CheersandhthAlf What kind of beer?
 
@thecoshman Oh, I got it! It's the difference between the two visible sides.
 
@sehe Douchebags often do that on Facebook.
 
3:07 PM
@EtiennedeMartel It's a Ringnes, from barrel.
 
One of my friends instantly deletes any Facebook friend who posts a photo of his or her food.
 
the weight will settle into a corner of the cube void, thus having a negative cube standing on one point. the sphere has markings drawn over where the opposite point would be
 
@EtiennedeMartel That's a fate worse than death! Why?
 
@RMartinhoFernandes oh god! that's just madness. why not, if you see 1 and 3, you get a 2? simples
 
Don't ask me.
 
3:09 PM
@Neil Because it's the worst kind of attention whoring.
 
We're not very keen on d3s.
 
@thecoshman Neat, but maybe not very practical. Wouldn't settle as fast as a die would.
 
@thecoshman well that works with a small number of sides, but if you have the mentioned ball, figuring out which number you dont see could be slightly more challenging :)
 
@Neil actually settles fairly quick
 
@EtiennedeMartel *glares at @CheersandhthAlf angrily*
 
3:10 PM
@melak47 for a d3, it works easy enough
 
@EtiennedeMartel There's worse. Let's not go there.
 
20 mins ago, by Radek Slupik
user image
 
But the thing I dislike the most is vaguebooking.
 
@EtiennedeMartel I wouldn't know that. I stay away from FB :) I guess it doesn't fully explain Alf's habits
 
@CheersandhthAlf Ah! Attention whoring! My eyelids do nothing!
 
3:12 PM
@EtiennedeMartel What's that?
 
"Look at my food, my food is amazing"
2
 
i ain't no horse!
 
@EtiennedeMartel Actually I have to agree on that. That's annoying.
 
@RMartinhoFernandes It's when you post vague status updates in order to attract attention.
 
Come to think of it, most status updates on facebook are like that.
 
3:13 PM
Vaguebooking succeeds when you get people who ask "Oh, what's wrong?"
And then you get to explain.
Wonder why the fuuuck can't you just explain it right away, but hey, I don't make the rules.
 
@EtiennedeMartel "It's complicated".
It's a long story?
 
Actually it was a part of 3-photo series.
 
Yeah, but vaguebookers still end up telling it anyway.
 
3:14 PM
And if you don't want to talk about it, why are you putting it on Facebook in the first place?
 
I ate here the other day. Yum.
 
"I tried that! Didn't help"
"Thanks for your suggestion, but that won't work because <contrived story>"
 
@EtiennedeMartel To let the world know you don't want to talk about it.
@CheersandhthAlf "You must log in to see this page."
 
@EtiennedeMartel So... it's a bit like IRL then
 
3:15 PM
@RMartinhoFernandes Despite the fact that you obviously want to talk about it.
@sehe Yes.
 
oh, it said it was public [add contrived story]
Try that again?
 
> This content is currently unavailable
 
I'm seeing that. And now I'm hungry.
 
@sehe huh. huh.
 
> The page you requested cannot be displayed right now. It may be temporarily unavailable, the link you clicked on may have expired, or you may not have permission to view this page.
 
3:18 PM
room topic changed to Lounge<C++>: We don't want to talk about it. [c++] [c++11] [c++-faq]
 
aya! there's BACON!
 
404. This message is currently unavailable.
 
@RMartinhoFernandes brace your self, the 'what' questions are comming
 
@thecoshman Talk about what?
 
@CheersandhthAlf Why ruin perfectly good meat with lettuce or whatever the heck is that green thing?
 
3:19 PM
dick count - 1
 
@RMartinhoFernandes yeah. should have been more bacon!
 
@RMartinhoFernandes How's your cholesterol doing?
 
@EtiennedeMartel You're saying that if I eat vegetables I can eat even more meat?
 
@CheersandhthAlf The colours.... ouch. And the beer is discoloured too. And flat. And there is a cigarette butt in the freaking picture. Now on to the food. Is that a crab with sunglasses? Ew
 
Bring the vegetables.
 
3:21 PM
Yeah lettuce sucks when you're out to eat mexican or something heavy. What's the point? You're there to eat solid blocks of melted cheese over a bed of bacon and tortilla chips, not rabbit food.
 
@RMartinhoFernandes Love it
 
@RMartinhoFernandes that's how I understand it
 
@Neil Exactly. I like food made of rabbits, not food made for rabits.
 
@RMartinhoFernandes Precisely. Need more rabbit.
 
@RMartinhoFernandes Yes.
 
3:22 PM
Why didn't anyone tell me that?
Also, if I get a stroke, I'm blaming it on you.
 
@RMartinhoFernandes It's a trap! Don't fall for it! That's what my mom said too!
 
I'm starting to believe I could become a vegetarian. You know, that half-baked kind of vegetarian that still eats fish, eggs and cheese.
 
home time
 
3:26 PM
@EtiennedeMartel But why? That's like being agnostic. You either believe in god or you don't.
 
@Neil Environmental reasons.
 
@EtiennedeMartel Whilst I think that eggs might be questionable as a vegetarian, there's nothing wrong with cheese.
 
@DeadMG It's made from milk, which comes from an animal. That's how vegans see it.
 
@EtiennedeMartel Very true. But they're quite insane, because it doesn't exactly cause the animals suffering, or even kill or harm them, for us to gain it.
 
And eggs cause suffering?
 
3:28 PM
in fact, arguably, humanity is the best thing to ever happen to the species we like to eat, their numbers have rocketed
 
@EtiennedeMartel Know that today, 358k people were born. Many of which will grow up to eat meat, not just fish, eggs, and cheese
 
Plus, it's not like rabbits don't die of harvesters.
 
If you want to help the environment, you need to start a political movement, not stop eating meat.
 
@DeadMG Yeah, veganism borders on religious extremism sometimes.
 
Animals are delicious.
 
3:30 PM
@CatPlusPlus Says the cat.
 
Cats eat animals, too.
 
@Neil So? It's not like tofu is getting any less tasty.
@CatPlusPlus No, they hunt them for fun, then leave them, half-dead, on your porch. Cats eat processed food.
 
@EtiennedeMartel Tofu cannot possibly be less tasty
 
@EtiennedeMartel ... which is made from animals.
 
@Neil True dat.
@RMartinhoFernandes Really? Damn.
 
3:32 PM
I'm pretty sure wild cats don't eat processed food.
 
@EtiennedeMartel yeah, my GF was appalled when I pointed out that her fish food was made from animals :D
 
@CatPlusPlus Sure they do. They chase down cans of cat food and eat them
 
I'm back
 
A wild can of food appeared.
 
@CatPlusPlus You used canopener. It's super-effective!
 
3:36 PM
Cats with canopeners (aka meatbags aka humans) are not wild.
 
Real cats use their titanium teeth and claws to open them.
 
Domestic cats have since evolved those away, eh?
 
@RMartinhoFernandes they still have them when they're little
 
Now they rely on homo canopeneris.
2
 
It's not that cats couldn't open cans, they just don't feel like it.
 
3:41 PM
"Lazy Cat" is one of the most redundant terms ever conceived.
 
Dammit, so many stories about DayZ.
 
Requirements:
ArmA II: CO
DayZ Mod Files (Available on the downloads page)
Balls
lol
 
I heard it's great.
 
3:59 PM
Can someone approve this? Its bugging me...
5
A: Store Object or Pointer in a Vector

AndrewIf you need copies of objects - use objects. If you need to share objects or polymorphic behavior is desired - use containers of smart pointers. In case of using smart pointers you will both have automatic object destruction and polymorphic behavior. For example: std::vector<std::shared_ptr&...

 
Meh, it's fine. That is no longer officially true, and has not been true in practice for a while too.
 
@Drise we speak C++11 here, >> is fixed
 
Wait... really?
@RMartinhoFernandes I still get errors if I leave it >>
 
C++11, also formerly known as C++0x, is the name of the most recent iteration of the C++ programming language, approved by ISO as of 12 August 2011, replacing C++03. The name is derived from the tradition of naming language versions by the year of the specification's publication. C++11 includes several additions to the core language and extends the C++ standard library, incorporating most of the C++ Technical Report 1 (TR1) libraries — with the exception of the library of mathematical special functions. C++11 was published as ISO/IEC 14882:2011 in September 2011 and is available for a fee....
 
Als
@Drise What ancient compiler is that?
 
4:02 PM
dang, that was supposed to link to the section on how >> is fixed
 
@Als gcc (Ubuntu/Linaro 4.5.2-8ubuntu4) 4.5.2
 
ah well, just click the link
 
Damned ^C in terminal.
 
@WalderFrey: MyObject a(25); and MyObject a = MyObject(25) - are totally the same things. In both case only constructor will be called. The same applies to std::shared_ptr — Andrew 29 mins ago
Pacefalm.
 
Als
@CatPlusPlus Indeed :) lulz ....I like the simple conclusion "In both case only constructor will be called."
 
4:06 PM
Also, rejected the edit.
 
First, all creatures in this realm get a stackable bonus to their wisdom score, the longer they live. Second, I'm over six hundred winters old. And third, sense motive is a wisdom based skill. I knew you were lying about this path as soon as you moved those hidden, little teeth of yours. You look shaken.
 
Als
@CatPlusPlus please link litbs excellent answer on direct vs copy initialization
 
Marvelous. :)
 
I'd have to find it, so :effort:.
 
Als
@CatPlusPlus there u go lazy cat: stackoverflow.com/questions/1051379/…
 
4:08 PM
That entire question is full of derp. Along with the answers.
Post it for me, too.
I have a dilemma.
Food or sleep?
 
Both
 
@Als the heck is up with your link? "http:// stackoverflow.com/questions/1051379/is-there-a-difference-in-c-between-copy-initialization-and-direct-initializati"
where's the rest of the name?
I mean, it works fine, it just looks wierd :/
 
Als
@MooingDuck that is what chrome gives me and it works doesn't it.Most likely SO slits the names, as the URL just needs to be unique
 
Als
off for din din
 
4:13 PM
I need to go to the shop and purchase things
but it's so much effortses
 
Sucks to be you.
 
@Als actually, that is the link to the page O.o Check here: stackoverflow.com/…
 
@DeadMG Go. Otherwise you'll go when it's closed because it's some holiday you forgot or whatnot.
 
Tip: that part after ID, doesn't really matter.
 
1 min ago, by R. Martinho Fernandes
See: http://stackoverflow.com/questions/1051379/whatever-goes-here-does-not-matter-at-all
 
4:14 PM
@CatPlusPlus I'm aware, but it looks funny
 
Oh, right, robot already did that.
 
@CatPlusPlus Hehe, oneboxing screwed it.
 
Usually the whole title goes there, I was merely surprised that SO didn't do that this time. I'm fully aware that it's completely ignored, I simply found it odd.
 
But yes, the clipped one is the "real" one.
<link rel="canonical" href="http://stackoverflow.com/questions/1051379/is-there-a-difference-in-c-between-copy-initialization-and-direct-initializati">
 
Hello everybody. Anybody here work for Konami Gaming Inc?
@Drise The algorithm that detects serial upvotes did indeed revert your votes of my answers. :-(
 
4:26 PM
@JimNorton seems unlikely, Japanese company, and there's few Japanese here.
 
@Jim My bad. I'll attempt to fix them :(
 
@JimNorton The probability is exceedingly slim.
 
Konami Gaming Inc, is a casino slot machine and casino systems hardware/software company located in the US.
@Drise No worries....
@Drise Did yours get reverted?
 
that doesn't really make it any less exceedingly slim
 
4:28 PM
@JimNorton No, they did not.
 
@DeadMG Yeah, because few Americans use this chat room....
 
well, even in Europe, the probability of finding someone from a specific company is beyond slim
I mean, there are many companies and only a very few regulars
 
@JimNorton I'm afraid to do any more than those 3. I'll do some more later.
 
@JimNorton there's only 3-4 of us that I'm aware of
 
Are you rigging votes?
 
4:31 PM
@RMartinhoFernandes I'm not sure "rigging" applies here
 
UCharCharacterIterator iter(testText, u_strlen(testText));
UCharCharacterIterator* test2 = (UCharCharacterIterator*)iter.clone();
// oh gawd make it stop!
 
Uh, do people generally ask C++ questions in this room? Couldn't tell from the room description lol.
 
@Atlos this is more of a hangout for people who like C++. Sometimes C++ is discussed, but only sometimes. No C/Java/PHP though
 
@Atlos Be careful. But yes.
 
That's what I figured.
 
4:34 PM
Oh, LOL @ the room title.
 
There's a site for questions. If you really want to ask here, you should read this: loungecpp.wikidot.com/owners:asking-questions
 
lol
 
C++ is almost used as an alternate means of communication here. Its like we all speak a different language sometimes.
 
I guess I'll just open up a C++ question on SO
 
@Atlos You could link it into here, since you have some of our attentions.
 
4:36 PM
Ok, I'll write it up and then do that.
 
@Drise Ok no worries man...
@RMartinhoFernandes Yeah I don't think so.
@RMartinhoFernandes We had this discussion yesterday.
 
some languages just seem wierd to me. "kahdeskymmeneskuudes" is too long to be a word
(That's "twenty sixth" in Finnish)
 
@RMartinhoFernandes the googles, they do nothing!
 
How can this piece of crap be the best around. I'm sad :(
 
@RMartinhoFernandes The rest is closed source
 
4:44 PM
@RMartinhoFernandes what piece of crap?
 
@RMartinhoFernandes Shakin that ass
 
@RMartinhoFernandes ICU?
 
International Components for Unicode icu-project.org
 
you having fun with that? @RMartinhoFernandes
 
4:52 PM
0
Q: Creating a map of __stdcall

AtlosI'm trying to create a map of function names and function pointers using __stdcall. Here is how I currently get my function pointers: typedef int (CALLBACK* InitializeDLL)(int,int); InitializeDLL initializeDLL = (InitializeDLL)GetProcAddress(hInstanceLibrary, "InitializeDLL"); and now my Map:...

Was my question I talked about earlier.
 
Ok. So I need to output a '\n' if the file already exists. How would I do that?

if (ExportFile != "")
{
outfile.open(ExportFile.c_str(), ios_base::app);
outfile << (numintervalsx + 1) * (numintervalsy + 1);
}
 
> int *__stdcall
dafuq?
I don't think you store a calling convention in a std::map
 
"Hey, we have a C++ API! Guess what, it's mostly automatically translated from Java. And yeah, it's not usable without copious amounts of boilerplate or of wrappers."
 
@RMartinhoFernandes Sweet thank you.
 
it doesn't make sense to me either lol
 
4:53 PM
@TonyTheLion Yeah, !!FUN!!
 
oh gawd
@Atlos a calling convention specifies how the function behaves in relation to it's callers, with regards to push and pop of registers on the stack, and who does it
it's not something I would think you can store somewhere
you could only merely identify that a function uses a certain calling convention, like standard C uses __cdecl
and WinAPI is __stdcall
 
hmm
so is there no way to get a function pointer out of that then?
 
you store a function pointer in your map however
but in C++ you should use std::function or a functor to store
not a raw function pointer
 
ok I'll look into that
 
@Atlos __stdcall is no more a type than const is.
 
4:57 PM
ok that makes sense then
 
@Atlos I have another answer elsewhere that might be helpful though, hang on a sec
 
for why it complains
 
indeed
 
thanks
 
5:00 PM
hmm, I bet I can make that code better come to think of it
 
@RMartinhoFernandes I'm touching up my recursive_wrapper (which is useful for e.g. recursive variants), and I thought I should add perfect-forwarding construction. Except that since the whole point of such a wrapper is that the wrapped type is going to be incomplete, so I don't think it's possible to use e.g. std::is_constructible to constrain the constructor. What would your take on that be?
 
Yeah, I think the map of name->function can be simplified if you guarantee all the return types are the same.
 
@LucDanton Why do you need to constrain it?
 
I once did a function map like that...though I probably committed a horrible atrocity :)
 
@RMartinhoFernandes Best practices when it comes to perfect forwarding constructors/assignment ops. Think I should forgo it in that case?
 
5:05 PM
typedef void (*function)(string&); typedef std::map<std::string, function> stringToFuncMap;
 
@LucDanton I can't think of a way to make it work. The type being incomplete leaves you with very little options.
 
@melak47 that only takes one type of function though. The one in my answer takes either void(*)() or int(*)(std::string, const int&), and is extendable to many other types.
 
@RMartinhoFernandes Agreed. If I wanted the functionality I'd need to lift it into variant. Maybe later.
 
@MooingDuck And is evil!
 
@RMartinhoFernandes oh, definitely that. I've always been a little... morally ambiguous... with my code.
 
5:08 PM
Just found this on Youtube: Life of a C++ Standard
 
Should be get<void()>("fun1"); get<int(std::string, int const&>("fun2");.
 
@RMartinhoFernandes and boost::variant or boost::any should be in there somewhere too.
 
But, if the names are always going to be string literals....
Just use actual variables.
 
@RMartinhoFernandes I assumed parsing some sort of script was involved. So not literals.
 
@MooingDuck And how do you decide upon their signatures then?
You can't call fun1 with ("blah", 42).
And if you can't know that at compiletime...
 
5:11 PM
@RMartinhoFernandes why can't I?
 
Because it has signature void()?
 
lets see, in that case, my code... dereferences an end pointer. Time to fix.
it should throw an exception
 
Have I recently said I LOVE BACON?
 
Yeah. It's starting to turn into an interpreter now.
 
@RMartinhoFernandes it pretty much always was
 
5:21 PM
@JimNorton Bacon loves you :P
 
Nice
 
hahah
 
That heart is kinda lopsided though
kinda..
irking...
 
love is lopsided
 
5:24 PM
ocd .... must... fix...
 
oh god
 
Also note: Happy summer solstice.
The summer solstice occurs exactly when the axial tilt of a planet's semi-axis in a given hemisphere is most inclined towards the star that it orbits. Earth's maximum axial tilt to our star, the Sun, during a solstice is 23° 26'. This happens twice each year, at which times the Sun reaches its highest position in the sky as seen from the North or South Pole respectively. The summer solstice is the solstice that occurs in a hemisphere's summer. In the Northern Hemisphere this is the Northern solstice, in the Southern Hemisphere this is the Southern solstice. Depending on the shift of ...
 
With excel 2007, I hate when I do CTRL+F, "phrase", find a cell, edit the cell, CTRL+F,"otherphrase", and it says no matches for "phraseotherphrase". it should really clear the search box when I press CTRL+F again :/
no other program seems to have that problem, including the rest of MS Office
 
I suppose you could bind CTRL+F to do CTRL+F, CTRL+A? :/
 
@MooingDuck Lol, that sucks.
 
5:35 PM
@melak47 CTRL+A doesn't seem to work in that dialog
 
@MooingDuck of course it doesn't what was I thinking
I hate it when you can't ctrl+a in text fields
 
Shift+Home
 
@Drise Damn, no wonder it's so hot outside.
 
It's raining.
 
it was way too hot on monday here. there was also rain and hail, though
 
5:51 PM
Is DWORD == long?
 
Been a while since I've went overboard with an answer:
1
A: Why does loop fission make sense in this case?

MysticialFrom my tests, I get roughly 2x speed difference between the fused and split loops. This speed difference is very consistent no matter how I tweak the loop. Fused: 1.096258 seconds Split: 0.562272 seconds (Refer to bottom for the full test code.) Although I'm not 100% sure, I suspect that t...

 
@Mysticial Nice. +1
 
@Drise thx!
 
@Drise DWORD is 32bit integer, WORD is 16 bit, and QWORD is 64bit. Avoid using long in your code, even for modern PC's it's not consistent. Use int and long long
 
Questions that which make me write those kind of answers are quite rare...
Probably once a month for me...
 
5:56 PM
:4199220 DWORD->int
 
MS has defined int to be a 32-bit word I think - forever.
 
Current consensus is: char(8), short(16), int(32), long long(64)
 
@MooingDuck I know you said don't use long, but where does it fall in that?
 
@MooingDuck I belive some linux systems have int(64)
 
@Drise It depends. That's why you don't use it :P
 
5:57 PM
@Drise depends on which operating system you're on. Sometimes it's 32, sometimes 64.
 
That's dumb.
 
Just like wchar is sometimes 16 and sometimes 32.
 
@Drise All C primitive types are disastrous.
 
Which is why people avoid them
 
also, at least on windows/vc++, long double is the same as double AFAIK :)
 
5:58 PM
@melak47 same with Linux AFAIK
 
atb
hardware dependent i think
 
vc++ doesn't give errors like "long long long x : too long" though :(
 
@atb hardware and compiler both
 

« first day (613 days earlier)      last day (4350 days later) »