« first day (1008 days earlier)      last day (4166 days later) » 

00:00
@CatPlusPlus Is it fun?
Not bad. Bit buggy.
@BartekBanachewicz ~done~
error: no matching function for call to 'std::vector<int>::erase(__gnu_cxx::__normal_iterator<const int*, std::vector<int> >, std::vector<int>::const_iterator)'
:(
What is a proper way of distributing a visual studio solution and letting the user define the boost include path?
I suppose this answer is... overkill again:
0
A: C/C++ pthread signals and pointers

seheI'd really suggest to use c++11 style <thread> and <condition_variable> to achieve this. I have two demonstations: Notifying any worker, one at a time: This is the simplest to do, because there's little coordination going on: #include <vector> #include <thread> #include <mutex> #include <alg...

00:02
@kbok property pages? idk :S
Should I assume he defined an env variable? Should I ask him to edit the project include paths?
MSBuild properties, environment variables, generate it.
@CatPlusPlus Don't let the puppy hear you!
@melak47 I don't know much about those, I'll have a look
Jul 6 at 23:40, by DeadMG
environment variables are bad.
00:04
I don't like env variables, it's a mess when it doesn't work
They are ~~naughty~~
@CatPlusPlus When your machine is provided and set up by a third party tech team, your env variables are a big pile of crap. Touch anything and stuff starts to break in all places
@kbok I don't know if they are the way to do this, but it worked well enough t let everyone have his own boost paths, without messing up the other's project file
Lounge always bad at build systems.
@kbok Creating new environment variables doesn't break anything.
00:07
@CatPlusPlus Create a new env variable and the next day some other guy made it mandatory for his app to function
because 3rd party software uses env variable for configuration purpose
People are stupid okay? I'll use property sheets
I have no idea what the fuck is the problem.
But yeah ok.
Env variables are the singleton of configuration is the problem
00:08
What
@Magtheridon96 of course you don't /cc @BartekBanachewicz
1 hour ago, by Mooing Duck
I can't charge my phone again
Turns out the cable has to be plugged into the wall
how about that
This is annoying
What is?
@MooingDuck magic!
00:11
@sehe Cats
Oh, that. I like cats.
@sehe Guess i should probably remove my answer then :|
0
Q: would a book on c work as a temporary replacer for a c++ book?

user2601264I am rather new to coding and want to learn a few different languages including c++, i can't quite get my hands on a C++ book so would a C book do as a temporary replacement till i can get my hands on one? would it help me learn some of what I want to know?

loool
-2
A: would a book on c work as a temporary replacer for a c++ book?

Ran EldanIn my opinion it is essential to learn C before learning C++.

@Magtheridon96 Nah. It's informative. Just let them both stand
00:16
@sehe ~Undeleted~
@kbok I like the git flow thing it comes with :D
and it has shiny butans
@Rapptz There's no reason why std::not1 should fail with a lambda predicate instead of any other predicate.
hell, there's no way to tell lambdas apart from regular function objects in the language.
wish std::string had a char* get_writable(size_t buffer_size) method :/ Would make interop easier
@MooingDuck It's called str.resize(buffer_size); str.data();
@DeadMG that's const char*
00:24
@MooingDuck I thought that std::string had a non-const overload now?
In any case, replace with &str[0], which is certainly non-const.
@Magtheridon96 I've added idiomatic make_command style construction too my answer. stackoverflow.com/a/17757260/85371
@DeadMG yeah, but I feel hackish writing &str[0]
@DeadMG nm, objdump will disagree :) But arguably that's implementation
@DeadMG I heard tell of it, but it didn't make it into C++11
@sehe Certainly not in the language itself.
@MooingDuck It's quite well-defined behaviour.
00:27
@MooingDuck you prefer const_cast<char*>? o.O
@DeadMG It told me it fails to work because lambda object doesn't have typename T::argument_type
@Rapptz ffs. that's true, c++89 required silly protocols on functors (perhaps c++03 even)
@Rapptz That has nothing to do with lambdas, and everything to do with std::not1 requiring the old TR1 protocols instead of being updated for C++11.
@sehe no, I prefer str.get_buffer(MAX_PATH)
@DeadMG I'm aware, but it looks hackish
you're right in that it won't work for a lambda, but there's lots of other function objects it also won't work for, and you're also right in that this needlessly sucks.
00:28
:)
I don't think I know what ITR is either.
oooh, two more helpfull flags and I get that silver badge :D
ITR = I'm taming rhinos
If I had polymorphic lambdas I'd do auto negated = [](auto x) { return !mypred(x); };
it shouldn't be too hard to whip something up
template<typename T> struct really_not1 { T pred; really_not1(T val) : pred(std::move(val)); template<typename... Args> auto operator()(Args&&... args) -> decltype(!pred(std::forward<Args>(args)...)) { return !pred(std::forward<Args>(args)...); } };.
00:35
Ah right, or make a helper.
well, I'd add a helper on top, really.
-4
Q: How do you make an array that has 1-3 int, instead of the default 0-3 int?

user2601033How do you make an array that has 1-3 int, instead of the default 0-3 int? like int[] anArray; anArray = new int[3]; has numbers 0-3 I want 1-3 :P

ffs ¬_¬
to deduce T
Someone should make a proposal that updates those function helpers.
@MichaelBurr this cannot occur due to the way wait locks/unlocks the mutex across the wait. See std::condition_variable::wait under 1)sehe 3 mins ago
^ anyone want to check my response there?
00:36
because they still have those unary_ and binary_ things :/ (hence, not1 and not2)
urinary_
reading about TB gives merit to yelling at people for not covering their mouths.
: when they sneeze
@Rapptz A lot of them were updated, and there's the new diamond operators in C++14.
@thecoshman Closing because questions require a minimal understanding of the problem being solved ^^
@Magtheridon96 no 'op has no idea' option? :P
@thecoshman This is my substitute for that option
00:40
is shaman still a valid career choice?
In Warcraft maybe - then again, I've met some very charismatic and successful Shamans in my day
@Crowz Africa for sure.
@Chemistpp does it come with benefits and a 401k plan?
@thecoshman How does one find out such things
@Crowz I don't know. All I know is that a post doc in my lab from Africa believes in voodoo
I'll ask her what voodoo shaman get for being shaman
00:42
DON'T MESS WIT' DA VOODOO
my guess is hospitality and that's about that.
@DeadMG lacking a const on operator() :)
@DeadMG diamond operator?
@sehe Ah, close enough.l
@A.H. std::less<>.
True
@A.H. a.k.a. transparant relative operators
00:44
@sehe what things? how many helpful flags you have raised is on your profile, 5,727 in your case
no idea what that means
@thecoshman innneresting. I don't see them. Let alone I track them. Seems like an awful lot
wait, derped up
that was profile views
Hah. The pirate is blind
That's a beatiful number, by the way. Not a prime, but close enough :<
@sehe no, it seems it doesn't show for other people, take a peek at my profile
00:46
what is it with you and people's stats being primes
Primes being better numbers
More beautiful and less random
@DeadMG it's just the OCD people
My age is prime /o/
You're in your primes!
I didn't want to turn 17 a couple of weeks ago though
16 is 2^2^2
And 2^2^2^2 is 65536 :<
00:47
Oh, well, wait till you get past 64. There's no turning back
I mean, as a tetration, evaluated from right to left
... of course
lol, I was sat here thinking, "is that guy really saying 2*2*2 is 16, and that 16*2 is 655536" maths, it's mad shit :P
I could use a little backup here:
2
A: C/C++ pthread signals and pointers

seheI'd really suggest to use c++11 style <thread> and <condition_variable> to achieve this. I have two (and a half) demonstations. They each assume you have 1 master that drives 10 workers. Each worker awaits a signal before it does it's work. We'll use std::condition_variable (which works in conj...

I have a feeling that (a) either US is on holiday (b) the comment sitting there puts doubt in people's minds. I hate when that happens.
: O we are getting network and filesystem libraries in c++14 !!
00:51
O :
c++ might become a real general purpose programming language platform
Networking?
I guess sockets
@A.H. Er, no we're not.
I think that the filesystem guys might be thinking about being ready sometime in the next couple of years, but networking IIRC has barely begun.
they are certainly not in C++14
@DeadMG http://isocpp.org/blog/2013/04/trip-report-iso-c-spring-2013-meeting
maybe I misread
they say filesystem will be mostly like boost's
00:53
uh, yeah
> In addition to completing the C++14 CD document...
that does not at all mean they will be in C++14.
their TSes might be ready about the same time that C++14 is.
CD = Committee Draft specs, the rest is just... progress
ah
Is this like C++11 specs being done in 11 and still being worked on in 13?
00:55
any hoops, now that I am no longer so hot I am sweating just say here, I'm going to try sleeping
C++11 was done and shipped in 11.
> Thanks for defending Me, followers. BTW, I may ask you to kill for Me next week. You're down with that, right? Place in heaven, yada yada. God
night chaps
also, no.
@sehe 404
took some time for compilers to implement them though
00:56
@A.H. Which is a completely different thing to whether or not the Committee is done with the spec.
@A.H. compilers are still trying to implement C++11 fully
@DeadMG Apparently, god has a conscience. Or a PR advisor!
hehe
@sehe Still 404
Duh ^
00:56
@DeadMG yeah but I think thats what @Pawnguy7 meant
I hope not
Hope not what?
that that's what you meant.
I like the fact that MSVC are looking to finally get their compiler up to the original C++99 spec :P I know it's edge case stuff, still find it amusing slgithly
We have robot
00:58
And <regex> is pretty much broken from what I've seen. Boost.Regex is still the better alternative~
I got a really weird SMS from the ape. I feel like I forgot something important.
I think that is what I meant.
@R.MartinhoFernandes mmm. We would not likely know
What's up?
@sehe I know. Just chatting out loud.
@R.MartinhoFernandes Text him back?
00:59
@thecoshman I don't think MSVC will ever be feature complete
@Borgleader Geez. Bit late for that now. And a bit obvious
@Borgleader Too late now.
It should be fall right now
@A.H. maybe not, but they did announce recently as part of their road map, they will be finally conforming to the c++99 spec, and thus the 03 spec too IIRC
its some trivial detail that just seems to be handy to do at long last, ready for 14 features... I think that was the deal any way
0
Q: Inherit or include? C++

ChemistppI had a really long post on this and decided it can be summed up much shorter. Canonically speaking, is it better to include a data member inside of a class as opposed to inheriting it? I found I can implement identical functions either way, but don't really know what caveats I should be aware ...

01:02
lol
don't make fun of me
I'm for aggregation.
aggregation?
@Chemistpp I linked it because I knew you're here :p
01:02
@R.MartinhoFernandes You remembered?
A birthday, perhaps
Certainly not to return a Stross book unscathed
Bowling night for people that work or worked at my current company.
I... totally forgot about it, and no one at work mentioned it :S
@Chemistpp If you can't find a really good reason to inherit, aggregate :p (Aggregation is when you use your KClass as a member)
01:04
Ooops. And why did the ape mention it?
Ooh. Rep cap reset.
I have rep rollovers. No resets. Lucily...
@sehe Because I told him I was going (like a month ago or something).
ITT Ape has good memory for social dates
I find it odd that no one would remind you
(Coincidentally, why didn't you put it in a calendar of some sort?)
01:07
> earned 18 reputation from suggested edits
lol - just noticed this^ the first time that showed up on my stackoverflow.com/reputation report. It's a rare side-effect of merging my not-sehe account, then
Because I suck.
And perhaps a tiny li'll bit because of... the anxiety
Now I feel like an ass.
@R.MartinhoFernandes Out of curiosity: how did you forget? Does it work like this: you just go home, your head fills with things you want to/have to do and you forget about time?
@BartekBanachewicz Still there?
01:09
We should report this bug immediately. Robots don't "feel"
That's what I do. I end up "postponing" things because I just don't think about it. Having a drink. Calling a friend. It's usually when I go home/go to bed that I realize what I've been forgetting
Like, I should be booking a hotel reservation for Meeting C++ 2013
@sehe We talked about it like a month ago...
@R.MartinhoFernandes What does the ape have to do with you forgetting?
Or did you forget right away - a month ago :/
I never thought about it again.
mmmkay, yeah, pretty solid forgetting strategy :)
01:14
And I sort of made other plans...
I'm terrible.
I doubt you're as sloppy as I'm with social dates. I don't make them, never commit and am prone to forget anyway. When I don't, I might be mentally absent.
I always use reminders for that kind of stuff
@kbok unless you forget
@sehe Forget to create a reminder? Just do it the moment you say yes. It's an habit to have.
I know. Don't tell me you never forgot :/
01:17
I ask my geek friends to send me google calendar invites because they get added automatically to my w8 calendar :p
having a big blue "YOU HAVE SOMETHING PLANNED TONIGHT" on your smartphone home screen helps
@Magtheridon96 Ok. That is good to know. Sorry, I was editing and reading the answers just now
The only person that has this kind of relationship with me is my wife.
@thecoshman you will win some rep ;) Cuz you said the same thing as everyone else, just much simpler ;) Though I should go read this guys philosophy
I'm so lousy with calendars, I just found out that MeetinCPP is on thu/fri, as opposed to tue/wen - big difference. I'll have to reschedule some stuff
I usually just remember this stuff :( I guess this means I wasn't really looking forward to it, which makes me feel even worse.
01:22
I just realized I was very shallow for hating on justin bieber without ever listening to him.
And the darn hotel is fully booked.
You can dislike someone for their character.
@Rapptz Thanks for the permission
No problem.
@Rapptz Well, he seem like a very normal teenager.
01:24
Eh. I don't think so.
Why?
In the pictures I've seen of him (despite not wanting to view anything from him) have shown him to be quite the douchey character.
do you support aggregation because of the statements made here?
Well crap, I cannot find the link anywhere now. It said: Extraneous memory allocation in variables due to inheriting useless data members for its particular behavior and performance issues to a mile high stack of virtual functions
@BartekBanachewicz Man, that took longer than expected. I sent a PR
@sehe Last time I checked there was only one room left, and it was for 2
@kbok :)
01:29
@Rapptz Most famous people are douchy characters. It might as well be a defense tactic against all the haters (half of the world?).
I have to take care of this before prices rise unexpectedly
@Jeffrey If you think the way to "defend against the haters" is to act like a douche then that's just sad.
@Jeffrey But that just makes me hate them more...
@sehe Do you plan on leaving straight after the end of the event (sunday 6pm) or to hang around in dusseldorf afterwards?
@Rapptz How would you go about that in his shoes?
01:31
Not act like a douche?
@kbok how does that work.
> 8th and 9th November 2013
Sunday?!
@kbok mutatis mutandis I'd be inclined to leave right after
@Rapptz I see your point, but I can't explain mine. Anyway I've seen some interviews and he doesn't really sound like a douche at all. He seems pretty nervous instead. Which means that he cares about what people think and how they judge him.
@Chemistpp I don't really care for the speed involved in such a case :p
@sehe Oh my, it's fri/sat, not sat/sun
@Jeffrey So why does he act like a douche? that makes me judge him pretty bad
01:34
@kbok phew. I was seriously worried
12 mins ago, by sehe
I'm so lousy with calendars, I just found out that MeetinCPP is on thu/fri, as opposed to tue/wen - big difference. I'll have to reschedule some stuff
@CCInc Can you show me where and when he act like a douche?
Good thing I didn't take my reservation yet
@Chemistpp I think the Is-A and Has-A statements are nice to follow
@Jeffrey Oh, btw, who are we talking about
@ThePhD yoes
01:34
Meow?
@sehe I made the mistake because for some reason my calendar displays sunday as the first day of the week (jewish?)
@kbok Reservations for a single night turn out unreasonably cheaper than for two nights. Hrrr. Perhaps I should stay in two different hotels :)
5 mins ago, by Jeffrey
@Rapptz Most famous people are douchy characters. It might as well be a defense tactic against all the haters (half of the world?).
@kbok I like SourceTree ^_^
@CCInc Justin Bieber.
01:35
> douche
@CCInc I am now fully aware of why I had mr. blue scratch plonked
@sehe Maybe two nights include additional services during the day?
@sehe lol :D
@kbok Strange, because breakfast doesn't seem to be included.
@sehe Maybe they expect you to think there is :)
01:37
hmmm? too difficult for my brain. Not sure if joking
Wow this is smart for something so simple.
Maybe they expect you to think there is additional services during the day, even though there is not, so that they can bill higher rates for several nights compared to the single night rate multiplied by the number of days stayed
@kbok it's 63 for one night, 291 for two
batshit pricing
@sehe WHAT. It was 70 for two nights last time I checked
@kbok Which hotel? Lindner is fully booked
01:40
book two differnet rooms?
@sehe Room for two at the Lindner but yes, it's taken now
@CCInc I as contemplating that, but the hotel booking site is not cooperating. Germany is under maintenance :/
@sehe That hurts.
@kbok You're bringing someone?
@sehe No, that was the last room available
01:42
Why are there so many people who are so smug about their computer abilities when they're so bad with them?
@Crowz That's not specific to computer abilities
Yeah, but at least in other subjects people have SOME understanding of the spectrum
@Magtheridon96 Thanks. Yeah, I'll try and consider that each time and really push to implement it with that in mind.
It's really easy to make someone think they know about computers. It's our job after all
Well, it has been my job anyway
Yeah, just frustrates me when people ask for things and don't realize that it would be an immense task in programming
01:47
"do it yourself if it's so easy"?
@Crowz eg "i want to make an anti virus how do i get started" ?
The Dunning–Kruger effect is a cognitive bias in which unskilled individuals suffer from illusory superiority, mistakenly rating their ability much higher than average. This bias is attributed to a metacognitive inability of the unskilled to recognize their mistakes. Actual competence may weaken self-confidence, as competent individuals may falsely assume that others have an equivalent understanding. David Dunning and Justin Kruger of Cornell University conclude, "the miscalibration of the incompetent stems from an error about the self, whereas the miscalibration of the highly competent...
yeah someone asked me to make them a website with a WebGL effect they saw on some other website and they said "that would probably take like, a day or two, right?"
@Crowz Just multiply the estimate by 10 or 20. That's about how long it'll actually take in reality.
I blame apple and all other companies which dumb down users for that @Crowz
01:50
> Dunning and Kruger were awarded the 2000 satirical Ig Nobel Prize in Psychology for their paper, "Unskilled and Unaware of It: How Difficulties in Recognizing One's Own Incompetence Lead to Inflated Self-Assessments"
@Insilico I said it would probably take at least two weeks to make something like that and they immediately said "WELL look at all these things other people made! Obviously it can't be hard!"
Damn. I should keep track of where my credit card is...
Ok, that hurt me so much that I need to get a break. Bye.
That term is synonymous with ignoring here, correct?
Plonking?
01:52
Yes.
I wonder how many people have me ignored, probably half this room
@Crowz I'd be more interested in why than who.
@Crowz You can literally apply that statement to everything the human race has produced thus far.
"WELL look at all these cars other people made! Obviously it can't be hard!"
"WELL look at all these skyscrapers other people made! Obviously it can't be hard!"
@Pawnguy7 because he was annoying as fuck and then went on to say math was stupid; ignored us when we tried to help; and that for loops don't need math and we don't know what we're talking about and a bunch of other things. so it was a nice gtfo. it used to be starred on the right i forgot who but it was "then go do it and stop wasting our fucking time" i think
"WELL look at all these bridges other people made! Obviously it can't be hard!"
01:53
@EiyrioüvonKauyf in what way?
I feel like the average non-computer person has never seen programming before, therefore assumes since so much stuff made by programming exists, it must be easy
@ThePhD you ready for some DirectWrite? :p
@EiyrioüvonKauyf that is funny, somebody told me that before.
WELL look at all the efficient healthcare systems other people... wait
@EiyrioüvonKauyf Ah, I see
01:55
darn had to go wake up my wife. 4am. grumble. I hate orginazing and administrative tasks
@sehe Can't this wait tomorrow? Also why are you up this late?
What happens when you ignore someone on SO chat? Do you literally not get any of their messages or is it like the "ignored tags" on SO proper?
None of their messages show up.
@Insilico Their messages don't appear in the chat.
@kbok nope. it can't wait, because then I'll just postpone it a few more weeks. At a certain time, i'll have to force the issue. That time is.. now
01:56
Oh. Math is stupid? @Insilico helped me with some math recently, hardly stupid from my perspective, you need it for many things.
@Pawnguy7 TBH I kind of failed at helping you out with that.
@sehe Oh, I see. I often do that too, so I end up doing important stuff at inappropriate times
teehee
Mainly because I was trying to give you a frame-rate independent solution but it turns out it's way easier to just make sure the physics part gets a constant time step.
how do matrices transform/skew squares? What is the relationship there?
01:57
@Pawnguy7, bug solved? code refactored?
Delta?
But I dunno it's 4am so I don't think my intellectual performance is at its best and there's money involved so I think I'll book the hotels tomorrow
@Pawnguy7 You can get dt in SFML easily.
Proof: it took me 10s to find the word "performance"
sf::Clock clock; clock.restart(); <-- dt
01:58
@Pawnguy7 Yeah I did some more research on how physics is typically implemented in things like games and animation and basically they make it so that the change in time between two frames is constant
@kbok I know the feel. Remember the full-on panic when you mentioned "sunday" ?
(implying a constant framerate)
@Jeffrey I assume the bug is still there, but I don't know because it doesn't run. I was trying to clean up the engine - and the generation a bit as well - but I haven't really redesigned the Drawer, just split it up a bit, and... well, things don't run anymore, so neither, yet.
@sehe Gosh at least I did not take my reservation before
Good luck.
Night everyone.
01:59
@Crowz You're asking how geometric transformations can be represented as matrix multiplication?

« first day (1008 days earlier)      last day (4166 days later) »