« first day (1059 days earlier)      last day (3887 days later) » 

12:08 AM
How is this?
Would this be out of the box ish?
 
@Pawnguy7 All the DLLs it's listing as dependents are included in a normal Windows installation.
 
Ah, good.
I wonder how hard it is to represent a hexagonal grid.
I am tempted to make a very basic fluid simulator thing.
 
@Pawnguy7 Do you mean "represent internally", or "draw a representation of"?
 
A bit of both. I realize that the representation is often different. I picture it sort of like this. If I could, say, get the face that is DOWN_LEFT, for example. In that way, it is easy to use to generate stuff. I just don't know how to provide that.
 
Why doesn't auto myEntry = myVector->at(i) return a reference?
 
12:16 AM
I am really doing poorly at this has_duplicates thing
which is weird because the logic doesn't seem off to me
:(
 
Is that a concept or an algorithm?
 
meta function
I managed to make a union for templates though
 
12:38 AM
After reading what appears to be very useful, I am more confused than before.
 
@Pawnguy7 what are you having trouble with?
 
Um.
Not trouble persay. How to represent a hexagonal grid, but it is theoretical at this point (just had a project idea, basically).
I would show you, but GIMP is being slow.
 
0
Q: A moderator should not be allowed to suspend the same user twice

DokkatI propose a moderator should not be allowed to suspend the same user twice. When a moderator suspends an user, there are some odds he does have, or will obtain, a negative bias towards that user. As much as we trust the professionalism of the staff, humans are naturally emotive and it is diffic...

 
Sort of like this.
@Mysticial did you downvote?
 
12:54 AM
@Pawnguy7 nope
 
Thoughts?
 
@Pawnguy7 I did this once in my youth by using cube coordinates, but I am not sure it is the optimal solution
 
@Mikhail I wouldn't know, but I believe that was mentioned in the article.
 
@Pawnguy7 the axial coordinates don't look bad
 
Probably you should just use a linked list with 6 pointers. Optimize later...
 
12:59 AM
That might work.
 
I suppose it depends what you need them for, but just having each tile know it's neighbour leaves you with no coordinate system whatsoever :p
 
@melak47 This occurred to me. Still, if I can get it able to be drawn, it might work for my purposes, which are much less than for, say, war games (of which many things are covered in the article, such as pathfinding).
 
what are your purposes?
 
Very simple water simulation as in the picture above.
 
1:29 AM
aaaargh.
holy shit, the stomach pains
 
Hello. I am facing one strange issue.
In C++: On my mac terminal program works perfect and when I connect to my college server and try to run there it throws error: Segmentation fault (core dumped)
if it runs on machine terminal it must work on college server also. Is it possible due to old compiler at university causing issue?
 
I call undefined behavior
it just "happens to work" at home
 
Extremely vague.
 
If we write a C++ program, it works, if you write one, it gets segfault. I think you are the issue.
 
1:47 AM
Ok. Thanks
 
Yes. Yes it is.
 
Fuck me! I don't even have the time to go to the bathroom these days (don't worry, another 2-3 weeks and I'll be back for good). Just stopping by to say hi. So...
HI
Bye.
 
2:04 AM
@Pawnguy7 Finally found it -- rough drawing code: ideone.com/znlbqB
Could be sped up quite a bit, and made more accurate as well. Not sure how much you care at the moment.
 
@JerryCoffin -1 not enough Cinder
 
I highly doubt what I have in mind would have performance issues.
 
@Borgleader Once you figure the coords, you can draw the lines with whatever you feel like.
 
@JerryCoffin Looks like math :D
 
@Pawnguy7 Not real math -- just trigonometry. :-) Nearly all that could be eliminated too, if you wanted to badly enough.
 
2:11 AM
Trigonometry (from Greek ' "triangle" + ' "measure") is a branch of mathematics that studies triangles and the relationships between the lengths of their sides and the angles between those sides. Trigonometry defines the trigonometric functions, which describe those relationships and have applicability to cyclical phenomena, such as waves. The field evolved during the third century BC as a branch of geometry used extensively for astronomical studies. It is also the foundation of the practical art of surveying. Trigonometry basics are often taught in school either as a separate course ...
Speaking of which the subset symbol doesn't have an unicode character?
 
@JerryCoffin It is fine, I just don't feel like thinking how it works at this time of the day.
 
2:45 AM
Need some advice on starting to work out.
 
Ha.
Working out is un-fun.
 
But being muscle-less is also un-fun
 
That's true.
 
Sigh.
Works in debug but not release :\
 
3:07 AM
@TheGuyWhoCouldn'tTalkToTheGirl Don't. God only gave you so many heart beats before you die. Don't waste them by working out.
 
@JerryCoffin Yeah, but I'd like to look a little better than some thin kid that everyone laughs at. Not to mention that I would be defenseless if someone tries to fight me.
 
@TheGuyWhoCouldn'tTalkToTheGirl How did you know I'm laughing at you? :P
 
@TheGuyWhoCouldn'tTalkToTheGirl In that case I wouldn't just do a generic "work out". I'd study some martial art.
 
I already did that.
 
@MarkGarcia People start to think lowly of you in terms of strength. There was this other guy in school who tried out for the basketball team and was reasonably tall but pretty thin and people laughed at him saying things like, "HE'S gonna try out?" while giggling.
So people do laugh
@JerryCoffin Gotta be strong. Martial Art will teach them moves, but you have to be strong for it to be effective.
 
3:13 AM
@TheGuyWhoCouldn'tTalkToTheGirl That'll happen as you practice. You don't need to look huge to be strong.
 
@TheGuyWhoCouldn'tTalkToTheGirl If your a developer, then it's perfectly fine if you're thin. It's either (borderline) thin or (borderline) fat.
 
@JerryCoffin Well, yeah. I don't want to be some 250 pound monster walking around, but I don't want to be an underweight kid either. In my school, nearly every guy "worked-out" and had a pretty solid build.
 
eh
what the other guys do is irrelevant.
 
@MarkGarcia Well, I develop for fun. I am not a developer by profession, so I do other things at the same time too, like sports and stuff.
 
You must be a child if you're thinking of improving your body image for the sake of others.
For the first time, I wish I knew web dev :(
 
3:16 AM
@DeadMG It sometimes gives you an idea of what seems to be a common standard. If everyone is solidly built and working out and you are among the few who is thin, then its about time you start doing something about it.
 
@TheGuyWhoCouldn'tTalkToTheGirl No, it really isn't.
what the other guys have done is completely irrelevant
 
@MarkGarcia so which one are you? :p
 
"follow the herd" mentality is powerful but not very useful in almost all modern scenarios
 
@Rapptz I am not really doing it for others. I didn't do much work out because I didn't feel like I needed to since I was already active in sports and pretty thin.
 
@Telkitty猫咪咪 Borderline thin, mostly. I've always linger on the low border. But I haven't cared for millenia years.
 
3:21 AM
> "Hard-gainers, skinny bastards, or (to use the technical term) ectomorphs tend to think their inability to gain muscle is because they're not training hard enough. They're actually training too hard and not eating enough. Hit it hard with three moves that work the whole body, and then get to the kitchen table to chow down."
 
I am borderline fat :'( ... But I have the hourglass figure so it's alright </shameless self promotion>
 
3:35 AM
ho fuckin shit, I'm so sick.
 
One friend had a problem with his laptop always going to start-up repair. I rebooted it, selected the second "open windows normally" or something option, and he thinks I'm a fucking genius. TIL "genius" now means knowing how to read.
Or maybe users find it hard to read command prompt text.
 
VTC please?
 
I wonder how many known trolls are here on SE?
Birdie coming calling for lunch, lol ... brb
 
3:51 AM
@Telkitty猫咪咪 Only two -- you and a bunch of my sock-puppets.
 
@JerryCoffin that chap ... what's his name? Even Carrot? He is one of your socket puppets too?
 
@Telkitty猫咪咪 Nearly all of SO is really my sock puppet accounts. Well over a million of them...
 
@Telkitty猫咪咪 Did you mean Evan Carroll ?
 
fuck, why does my stomach insist on attempting to murder me
@MarkGarcia Welcome to user interface design 101.
 
 
4:21 AM
> No onion & garlic
That's meat?
Damn.
 
If I have SomeTemplate<T>, and I want this to be T, which cast do I use?
 
@Borgleader static_cast?
 
Onion and garlic goes well with the zombie - remember that really hot chick you always wanted to date? She's now a hot zombie, a hot & spicy zombie, roasted with garlic, onion and chilli
 
I'm guessing you're going for compile-time polymorphism.
 
I'm trying to answer this:
1
Q: Possible to automatically generate operator+ for a class whose data members all implement operator+?

japreissGiven a plain-old-data C++ class or struct composed of types that implement operator+: struct VertexData { Vec4 vertex; Vec2 texCoord; }; Is it possible to use templates or some other trick to get the C++ compiler to automatically generate operator+ that adds each member, like this? V...

E:\Documents\Qt Creator_Sandbox_Sandbox\main.cpp:13: error: function template partial specialization 'memberWiseSum<T, Tuple, 0>' is not allowed
fuuuuuuu
 
4:41 AM
lol
 
im so close T_T
 
How are you storing your member pointers?
 
Right now it only works for the last parameter in the tuple. Once I can get it to recurse it'll work complete
 
If the class stores a tuple it's a lot easier.
btw operator+ is supposed to be T operator+(const T&, const T&)
Look up the indices trick
 
Oh damn thanks.
 
5:03 AM
> Indeed, there was a bug, and quite a nasty one. The number of requests doubled with every click of the 'Run' button. I'm sorry for running a DDOS from cppreference on your server :-)
Alright, that's fixed :P
 
lol
 
argh, stupid doctor, y u make me wait
 
answer posted, i can go finish my workout and go to bed
 
5:20 AM
I don't understand ... this new functionality does not work if I remove those 2 debug lines
I double checked it could not be UB
So why does it not work if I remove those two debug lines?
 
without code, hard to tell.
 
@Telkitty猫咪咪 Because those two debug lines provide the actual functionality! :)
 
@Telkitty猫咪咪 That's likely UB.
 
5:33 AM
anybody have a favorite naming convention for structures? Should be camal case or lowercase?
 
I use CamelCase for types, it helps me differentiate them from myVariables, and myMemberVariables_.
 
> unsigned integer overflow causes the number to be reduced modulo a power of two, meaning that unsigned integers "wrap around" on overflow. This "wrap around" is the cause of the famous "Split Screen" in Pac-Man
^ cool
 
This?
 
This is level 256 which is buggy.
Apparently we're reading the same document :)
Oh, wait, yes, you are right.
I initially thought the "portals" were implemented with unsigned overflow.
Apparently that's not what they meant with split screen.
 
Oh I just googled pac man split screen because i didnt know what it was. that's what i got
 
5:48 AM
@StackedCrooked Someone used an unsigned char for some variable which they should not have done.
 
Basically.
However, I'm not sure if they used a programming language or just machine instructions.
 
almost certainly asm, I guess
 
I read they used colored glass to emulate color rendering in the very old ones.
I guess times were different.
 
6:03 AM
@A.H. That surprised me.
 
> If you like that kind of programming may be it would be even better to go all the way in that direction and write applications directly in brainfuck using notepad instead of using C++. Source
if it wasn't for the informative part at the beginning I'd flag as rant
 
@sehe The relationship is mostly historical: Boost.Lambda precedes Phoenix (as a standalone library, and not a Proto offshoot) by quite a bit. To me the merit of Phoenix is that by being based on Proto, it reaps the benefit of refactoring the whole expression template business away by putting it in the capable hands of Eric, and it makes writing extensions really straightforward.
OTOH perhaps Lambda compiles faster without Proto :)
ISTR that Phoenix is more modular (another gain from Proto) too, but I'm not so sure. Maybe the docs for Lambda don't cover that at all.
 
Xeo
@LucDanton Wasn't it also that Boost.Bind was aimed to supersede Boost.Lambda?
 
> The Phoenix library enables FP techniques such as higher order functions, lambda (unnamed functions), currying (partial function application) and lazy evaluation in C++.
 
Other way around. Boost.Bind is the lo-fi proof-of-concept.
 
6:12 AM
partial function application was different from currying I thought?
 
History goes bind1st & others (no placeholders) -> Boost.Bind (quirky, but with placeholders) ->Lambda (no quirks, some operators) -> Phoenix (Proto-based, extensible)
std::bind has no quirks, no operators.
 
Xeo
@LucDanton Oh, really?
 
@Xeo IIRC you once mentioned that there was something about C++ (function overloading perhaps) that made currying impossible? Is that correct? I need to make note of what it is, for... reasons
 
currying isn't impossible
just some parts of it actually are annoying
 
@Xeo Tbh their respective first release aren't too far apart, unless the devs took a gap year or something: 1.25 and 1.27.
 
6:15 AM
like templated functions are something I found irritating
 
Xeo
@Borgleader Not impossible, but extremely awkward I think: Overloading, variadic templates
 
std::bind has the same issue
 
Xeo
Because now you don't have fixed numbers of arguments
 
Almost time for groceries. Recommend tasty stuffs?
 
Mangoes.
 
Xeo
6:17 AM
@Rapptz 'cept there's no actual reason why there's no std::bind(f, std::forward_all), just that it was overlooked, I guess
 
@Rapptz Last week they looked shrivelled and sad. Let's hope for today.
Although usually it's 'a mango', not 'mangoes' :p wouldn't know what to do with so much mango.
 
Make delicious fruit salad.
Now I want some.
 
user1804599
@Rapptz Spawn it.
 
6:49 AM
@Rapptz Only sad mangoes remaining :(
 
:(
 
@LucDanton thanks for the phoenix/lambda precisions, appreciated
 
I wanted to buy mango juice to make up for it but I forgot.
 
thanks for the warning "(daily mail)"
I mean, this is wrong on so many levels
> Distressing: The girls' bike are a poignant reminder of the young lives lost
No shit. What's with all those private family pictures in newspaper coverage in the first place?!
 
7:04 AM
A lot of people (including me) don't like DailyMail because they tend to.. be odd and sometimes not reputable.
 
they're a tabloid in the very worst sense of the word
they post the most sensationalist stories they can find and don't check their facts
 
0
Q: Does it have impact on performance

Ritesh kumarI have program in c, that uses lots of mathematical calculations, At some places during calculation the expression has many redundant parenthesis and braces eg: ((x*y)+(((z*c)))) Does It degrade the performance ? We should avoid it?

Funnily enough, I think this is a duplicate
 
of a thousand billion "Does random syntax X with no semantic meaning degrade performance?"
 
yeah give or take
 
@Rapptz I think I preferred when you posted dailymail links
 
7:11 AM
Bad questions make SO go around.
 
Around the block, yes
 
Xeo
7:24 AM
@Rapptz We obviously need bigger cluesticks
 
damn
I can't even play games online anymore
the periods between desperately rushing to the toilet are too short to fit in even a map of l4d2
 
Porn filter has gone too far.
 
Xeo
@DeadMG Laptops exist for a reason.
 
Real pros do gaming in the shitter.
2
 
pretty sure that any position in which my head is aimed at the laptop screen to watch the contents is also a position in which my vomit would probably destroy the laptop
also it would be quite unsanitary to rest the laptop on the toilet bowl
 
7:28 AM
@DeadMG place it on the cistern
 
@DeadMG on your lap
 
so, who is your daddy and what does he do?
 
what does that have to do with anything?
@thecoshman Pay for it and mail it to me (make sure it's gaming grade not a craptop) and I'll give that a shot.
 
user1804599
@Rapptz lol
 
Xeo
@DeadMG Chances are, that the toilet bowl is a more sanitary place than your desk :P
 
7:30 AM
@Xeo That's the kind of fact that I choose to ignore on a regular basis.
at least the toilet bowl didn't have Daisy lick it, I've gotta admit.
 
Your dog didn't lick the toilet bowl? Not bad
 
there's nothing in or on it she'd find tasty
unlike my desk, which had chocolate on it a couple hours before she arrived
 
Dogs aren't supposed eat chocolate
 
Daisy doesn't mind
 
:s...
 
7:33 AM
lol
 
I suspect you're kidding.
 
it was just a bit of chocolate residue anyway, not like a piece of chocolate.
 
@DeadMG o_0
 
@Rapptz What, about Daisy finding chocolate tasty?
because I'm totally not and my previous dog also enjoyed a small piece of chocolate now and then
 
@Rapptz and humans aren't supposed to drink copious amounts of alcohol
 
7:35 AM
@thecoshman Alcohol doesn't really cause Theobromine poisoning and kill you easily.
 
@Rapptz no, it causes alcohol poisoning and kills you easily
 
welp, just like humans and alcohol, it's just a matter of not consuming too much.
the dog ain't gonna die by licking a place where I put a chocolate bar
 
@thecoshman I'm willing to bet you can oxidise your alcohol faster than a dog can metabolise theobromine.
@DeadMG Yes, I know. I'm just saying that even a small amount of chocolate is bad for dogs.
 
well, I no longer have any chocolate brands that its safe for me to consume, and no money to buy them even if I did
so there's no choccy in Daisy's future
 
@Rapptz and I'm willing to bet you are forgetting that everything is poisonous given sufficient quantities, and harmless in small enough doses
 
7:39 AM
@DeadMG You should Google that. IIRC chocolate is bad for dogs.
 
I doubt he is forgetting that at all, given how both you and me pointed it out previously.
 
I might be wrong though.
 
@StackedCrooked Then you should Google it too. :)
 
@StackedCrooked No, you're not.
 
@MarkGarcia I don't care enough :)
 
7:41 AM
@StackedCrooked Maybe you have a cat. Cats can also be affected.
 
¬_¬ ITT people fail to remember the little phrase "everything in moderation"
 
Nah, I'm allergic to cats unfortunately.
 
@thecoshman Especially in Stack Overflow.
Only it sometimes becomes bad.
 
@thecoshman Not applicable to everything. Would you take stuff with high cytotoxicity in moderation?
 
right now, I'm having food in moderation
and by "moderation" I mean "intake suspended indefinitely"
 
7:43 AM
Certain things can be toxic to other species, who knew?
Would you give a peanut allergic person peanuts in moderation?
 
Heck, cats eat cellophane and shit cellophane. Sure thing eating cellophane is toxic.
 
@Rapptz at a does low enough to not cause any problems, yes
 
lol
 
@thecoshman Some things don't have such a dose.
 
@Rapptz Also clean air.
Breathe it while you still can.
 
8:05 AM
@DeadMG pish posh
 
8:22 AM
@Rapptz Wouldn't moderation in that case mean "never"?
 
@R.MartinhoFernandes That's what I'm advocating (in response to "Everything is okay in moderation")
 
fuck, I think I like blues grass
@FredOverflow ¬_¬ that's the best pun in that message
 
Xeo
8:45 AM
Hmm... reading further in the original arrow paper, that Kleisli stuff is pretty nifty to adopt all those nice monads to arrows.
 
@Xeo hat den Haskell-Virus :D
 
JBL
@FredOverflow Easy one, but still funny.
 
so... Maven... two modules both depending on each other... is this a problem? is there a solution?
 
you're ugly.
 
o_0
 
8:52 AM
uhoh
0
A: Too many sections, assembler error, using boost::spirit

seheTry splitting it up in different translation units disabling debug information (frequently, this is what trips up with large file sizes, because debug information gets emitted just like other object data) disabling rtty (last resort)

 
33k isn't much.
fit in a 16bit index
0-1-inf you know
 
2
A: What is the best way to use two keys with a std::map?

user2548100First and foremost, ditch the string and use 2 ints, which you may well have done by now. Kudos for figuring out that a tree is the best way to implement a sparse matrix. Usually a magnet for bad implementations it seems. FYI, a triple compound key works too, and I assume a pair of pairs as we...

^ What's with the beer and the Sheldon Cooper quote? lol
 
lol, too many sections.
 
@R.MartinhoFernandes ohai robot.
 
> During compilation of the lexer/parser phase, the compiler consumes 1.6GB of RAM (g++ (GCC) 4.8.1), this is not an issue however, as there's plenty of memory on this machine.
1.6 GB RAM for a Java compiler? lol
 
8:56 AM
@R.MartinhoFernandes Are you up for some more discussions of types and stuff? I came up with an interesting idea that might work.
 
@R.MartinhoFernandes What is rtty?
 
@Skeen: You need RTTI when you're actually running something. ;) — thokra 34 secs ago
 
@FredOverflow what beer?
 
@FredOverflow The code is ... 'special'
 
@thecoshman Why did you edit the pic out?
 
8:57 AM
> using namespace std; // save some typing
> std::make_pair
 
@DeadMG Shoot it.
 
@R.MartinhoFernandes Well, the primary issue with what I was thinking about for polymorphic types was how crippled inference is.
 
@FredOverflow It does not help at all, just makes the answer unreasonably long. A link would have sufficed.
 
but I decided that, like everything else, I could simply allow the user to define how inference could deduce the type.
 
^ anyone else thinks that's FUD, rubbish and nonsense (re. rtti)?
 
8:58 AM
 
@FredOverflow ಠ_ಠ
 
for example, None := polymorphic type { operator=(x) { return Optional(x); } }();
so here, if you have x := None; x = 5; then decltype(5) is passed to operator= for None's type, and then the type of x is deduced to that return type- which in this case is Optional.
 
Xeo
Polymorphic variables don't play well with mutability, eh
 

« first day (1059 days earlier)      last day (3887 days later) »