« first day (711 days earlier)      last day (4239 days later) » 

11:00 AM
but I'm not telling you anything you haven't heard before, anything I haven't told you before, anytihng others on this chat haven't told you before, and anything you haven't refused to accept before. So let's end the discussion here
 
I heard that once the competition from DVCS kicked in, the regular VCSs upped their branching/merging game
 
@LuchianGrigore ClearCase FTW!
 
sbi
@jalf And you are still basing your statements on wrong premises. (For starters, I have used other VCS's than svn, including DVCS's.)
 
like how every other browser now uses a Chrome-style UI
 
@jalf .. and then the toilets at O'Hare. Can we have the horse back?
 
11:00 AM
besides, you're always the one shutting me down with a "I don't want to talk to you about this", so it's time I turned the tables. :)
 
@daknøk (╯°□°)╯︵ ┻━┻
 
I'm going to leave it at that
 
@DeadMG except IE. :P
 
@daknøk Even IE.
 
@thecoshman SARCASM! :D
 
11:01 AM
@daknøk Even they are much more Chrome-style now.
 
What?
I must have missed that.
 
user784668
IE is more Chrome-style than Chrome.
 
@daknøk I wonder why.
 
@Fanael IE is more crappy than Chrome.
 
it sucks when someone else takes on the role of "I'm the adult here and I'm not going to discuss this with a child", doesn't it?
 
11:03 AM
@jalf (╯°□°)╯︵ ┻━┻
table turned! :P
 
user784668
@daknøk all (isWorseThan Chrome) browsers == True where browsers = filter (/= Chrome) allBrowsers
 
@Fanael curl ftw :<
 
user784668
@daknøk Only if you use vim to view.
 
so that toilet discussion went down the toilet quite fast?!
it was just getting interesting
 
You have something more to contribute?
 
11:04 AM
Something to bring on the shelf?
 
Xeo
@R.MartinhoFernandes Well, he did discover /r/ShittingAdvice
 
A toilet is a sanitation fixture used primarily for the disposal of human excrement and urine, often found in a small room referred to as a toilet/bathroom/lavatory. Flush toilets, which are common in many parts of the world, may be connected to a nearby septic tank or more commonly in urban areas via "large" () sewer pipe connected to a sewerage pipe system. The water and waste from many different sources is piped in large pipes to a more distant sewage treatment plant. Chemical toilets are used in mobile and many temporary situations where there is no access to sewerage, dry toilets, ...
 
Haven't used Chrome. What's it's annoying-update-per-month rate?
 
I bring to you Wikipedia on toilets
 
user784668
@MartinJames A gazillion.
 
11:05 AM
@MartinJames I don't think the updates are annoying at all.
 
@MartinJames It updates silently.
 
:5516060 Dude :)
 
You don't even notice them unless there's some drastic UI change (which doesn't happen very often now)
 
ok shitty subject
 
11:06 AM
@TonyTheLion it was crap
 
@TonyTheLion What?
 
Xeo
So, I found a way to circumvent this place's filter on websites.
 
@R.MartinhoFernandes doesn't matter
 
Xeo
I just need to change http:// to https://
 
@Xeo It has a filter?
 
11:07 AM
lol
 
user784668
0
Q: pop_back() return value?

Parvinder SinghWhat would pop_back() doesn't have the return value ? I have googled regarding this and found out that it makes it more efficient. Is this the only reason for making it the standard ?

 
Xeo
@StackedCrooked Against flash game sites etc
 
user784668
> What would pop_back() doesn't have the return value ?
 
user784668
What.
 
11:11 AM
It is counterintuitive.
 
you're counterintuitive
bugs are so annoying
 
@Fanael I had to look it up. First reference I found says it removes and destroys the last element, so, nothing to return except maybe an exception. I can't see the problem with it either.
 
user784668
@MartinJames Pardon?
 
Xeo
Yay, lunch.
 
oh my... I answered a question on SO, now I'm getting rep, but what should I do with it? downvote all the other answers?
 
11:16 AM
@TonyTheLion Hey, you're stealing mah line here.
 
great ted talk
 
sbi
0
A: pop_back() return value?

sbiEfficiency has little (or nothing, really) to do with it. This design is the outcome of an important paper by Tom Cargill, published in the 90s, that raised quite a few eyebrows back then. IIRC, in it Cargill showed that it is impossible to design an exception save stack pop function.

 
@DeadMG I've never seen you say that line. So you have no ownership of it
 
@sbi Dammit, I was searching for that paper.
 
@Abyx: use it to pump up your ego and as a mean to justify in interviews why you are so wonderful and why they HAVE to hire you
 
11:17 AM
@DeadMG so when you going to Austria for your interview?
 
user784668
10 mins ago, by Fanael
> What would pop_back() doesn't have the return value ?
 
@R.MartinhoFernandes you failed to do it fast enough
 
@TonyTheLion Much, much later. Like, start of November.
 
sbi
@R.MartinhoFernandes For once, a human was faster than a robot.
 
I was busy working elsewhere.
 
11:18 AM
@DeadMG so that's why you're not coming to visit me next week? Wait wut? :P
 
sbi
@Fanael A simple typo. When I went to fix it, someone else had already done so.
 
@TonyTheLion Good point, I can now.
 
@LuchianGrigore you should vote to close that undefined reference question as a dupe of the FAQ you posted the other day.
 
@DeadMG oh cool.
 
sbi
@TonyTheLion Because he is too shy to met people.
 
11:21 AM
@sbi you mean socially awkward?
 
@R.MartinhoFernandes I'm expanding the answer that applies
 
@LuchianGrigore Oh well... the OP has now completely changed the question...
 
sbi
@TonyTheLion How would I know? When I was in London, he avoided meeting me. Since I haven't met him, I don't know whether he is awkward.
 
@sbi lol
 
sbi
11:23 AM
Thanks @jalf, for fixing my answer!
 
@sbi Np. It's a minor little thing, but it confused me when I read it
 
The fact that there is no reason for it to exist is an excellent reason for it to not exist, and that does answer the question. — DeadMG 6 mins ago
puppy logic :D
 
Can someone with more gcc exp review this - stackoverflow.com/a/12574400/673730 ?
 
"How do you save exceptions, and why would you want to do that?" :)
 
sbi
@jalf One of those I always confuse.
Anyway, lunch time. afp
 
11:24 AM
F*ck. "You've already authorized the software on two other computers. Please deauthorize one of them"
 
@LuchianGrigore is that supposed to be a C++-faq entry?
 
@jalf std::exception_ptr saved = some_exception; :P
 
user784668
@LuchianGrigore Sure, fixed.
 
@TonyTheLion y
 
11:25 AM
@Fanael thx, I knew that, just forgot the -
Yay! Just got my copy of FIFA
 
You don't get one for free?
 
user784668
@LuchianGrigore It'd be worth noting that GNU ld (the linker GCC usually uses) is very picky about the order of object files.
 
@R.MartinhoFernandes Yeah... that's the one
@Fanael is it? That kinda sucks....
 
@Fanael My strategy boils down to randomly trying different orders until it works.
 
user784668
@LuchianGrigore If you call gcc a.o b.o, where b.o references a symbol in a.o, you'll likely get an undefined symbol error. Or was it about libraries only? Anyway, it's picky.
 
user784668
11:28 AM
@R.MartinhoFernandes You're lucky you haven't got stuck in an infinite loop :P
 
@Fanael I think it's just libraries (otherwise some cases would be unlinkable)
 
MSVS ftw!
 
user784668
@R.MartinhoFernandes I'm too lazy to check it.
 
user784668
@LuchianGrigore MSVS wtf!
 
Maybe is better not to ask here, everyone seems so stressed. — thecoder 7 mins ago
 
11:30 AM
@Fanael Me too, that's why I just shuffle them randomly until it works ;)
 
poor guy...
 
user784668
@R.MartinhoFernandes I use shared libraries and therefore avoid the problem altogether.
 
good thing I think before posting things, innit
 
@DeadMG But you only thought after you posted it.
Oh, sarcasm.
Damn.
 
good thing you think before posting things, innit
 
11:31 AM
:|
 
hehe
 
user784668
I'll be back later. See ya.
 
> Example: When the judge asked the defendant why he hadn't paid his parking fines, he said that he shouldn't have to pay them because the sign said 'Fine for parking here' and so he naturally presumed that it would be fine to park there.
love it
 
@Fanael creating an awful lot more problems
 
Xeo
11:39 AM
@R.MartinhoFernandes make_exception_ptr(ex), I believe.
 
Xeo
@sbi: Shouldn't you be able to perfectly fine make an exception-safe value returning pop function by guarding the top decrement and restoring it if an exception is thrown?
 
lol
There's 96 days left in 2012
 
@Xeo No.
because the copy of the return value, T, may throw.
 
Xeo
11:45 AM
@DeadMG Shouldn't that be the concern of the user? T const& v = s.pop(); T v2(v); /* may throw */
 
@TonyTheLion do you think 2013 will be any better?
 
@Xeo There's a copy into the return value first.
 
@BartekBanachewicz donno
 
@BartekBanachewicz No, it will have only 365.
 
Xeo
But yeah, the two-phasity of return values is kinda meh
 
11:45 AM
return values are meh
 
@TonyTheLion values are meh
 
@Xeo You're still missing the point.
The value in the container must be destroyed.
 
Xeo
@R.MartinhoFernandes Okay, I see the problem. You have no way to signal success to the guard after copying into the return value and before the guard is destroyed. :(
 
@BartekBanachewicz meh is meh
meh-ception
 
xception is meh.
 
11:47 AM
that too
Haskell is not meh
int x += 1L
the L signifies a long here right?
 
no, it signifies a Lewinski, that woman who gave Bill Clinton a blowjob
 
lol
question is what use is that adding that after something you're going to put into an int anyways?
 
nada
 
If you specify the type with a suffix then you can use auto for the variable declaration.
 
0
Q: openmp program that creates two threads, one thread writes to a file and other thread reads data from the file and displays it

Deepesh.ShettyI want do file operation using threading concept in C . So if somebody has any idea about this . Please help me out.

close votes
 
11:57 AM
2
Q: How to aggregate values in C++ using keys?

NobilisIn C++ how can I aggregate values for a struct based on three keys? In Perl I would do this using a hash of hashes (e.g. something like $hash{$key1}{$key2}{$key3}{'call_duration'} += 25); As I'm a complete newbie to C++ could you please suggest a suitable approach? I've had a look at topics o...

dafuq is with the std::hash_map recommendations
 
ask @BartekBanachewicz
 
I downvoted BartekBanachewicz
and the other dude too
 
@DeadMG Now rly, what does he want if not hash_map?
 
@TonyTheLion "Not its two different files one for reading , one for writing ." Now it doesn't make sense at all anymore.
 
@StackedCrooked fail
I want to go to bed
 
11:59 AM
@BartekBanachewicz Probably a class that actually exists. Whereas there is no such thing as std::hash_map.
 
@DeadMG I've explicitly stated it's a non-standard. The guy said he is limited in terms of language/compilers
 
that's funny, because he doesn't actually name his compiler.
 
he's a douchebag
 
@DeadMG FFS, I said "if your compiler supports it". How can I know?
 
12:01 PM
nitpicking
 
@BartekBanachewicz Then why did you suggest it?
 
we're good at that
 
@BartekBanachewicz he is limited alright :p
 
probably to Borland compiler
 
@DeadMG because if his compiler supports it, it might save his day
 
12:02 PM
great
and for everyone else who comes looking on this question later whose compiler doesn't support it?
 
@KerrekSB It seems that the compiler does accept a TR1 library, looking at Wiki it states that TR1 supports hash tables, is this what you have in mind? :) — Nobilis 39 mins ago
 
his compiler isn't specified, so you can't give an answer based on implementation extensions.
 
@DeadMG If someone else stumbles on the same problem, the "proper solution", however, is this: did you ever read my answer?
he said his compiler supports it. I said it's non standard and gave the standard way below. And yet still you downvoted me.
 
oh, I thought you were here to discuss, not rage against the downvote
@BartekBanachewicz The Standard C++11 way. Not the C++98 way.
 
room topic changed to Lounge<C++>: And yet still you downvoted me... [.read-the-rules] [c++] [c++11] [c++-faq]
 
12:05 PM
@DeadMG You said everyone else who comes looking on this question later - I assume they will have C++11
 
@BartekBanachewicz Pity that they might, say, find it because it explicitly is limited to C++98, a limitation which they share.
 
@DeadMG hash_map, being nonstandard, is very popular. And I don't really understand why should I care for all the people with old compilers. I've already made an exception for the OP
 
if you can't be arsed to deal with the limitations stipulated in the question, don't post an answer.
if you think they're too extreme, then vote to close as too localized.
 
it's a map with hash in it
 
@DeadMG limitations in the question said he has the hash_map available
 
12:08 PM
really? Cause I'm reading the question's text and there is nothing about that.
 
@DeadMG did you read the comments? It's not my fault he didn't edit the question
maybe I should do it, after all
 
if the OP wants to change his question, then that's what he needs to do- not leave a random comment somewhere.
 
@DeadMG OP has 28 rep. He is a newbie here, and being such, he should be treated differently
 
yeah- he should be told how to use the site.
doesn't change how you need to use the site.
 
I've added a remark about boost::unordered_map
 
12:14 PM
right
now that is a valid answer to the question "How do I use a hash map in an unspecified implementation in C++98?"
 
ok. thanks for your input and sorry for that rage.
 
@KonradRudolph Cheers. You're completely right. I will see what I can do while time permits :) — sehe 2 mins ago
Oh yeah, the OP is ... shall we say, well aware of me. I exposed his sockpuppeteering act and called bullshit on his edit of my original answer :) I forgave him - for now. I'll do this, though I have the strongest feeling he has no clue what he's doing here :)
 
sockpuppeteering is so low
 
@sehe what did he really do?
 
Xeo
12:22 PM
Hmmm, Funatics still didn't get back at me. :(
They said they wanted to do that today when I called on Monday
 
@Xeo their job offers page is so fugly
 
Xeo
@BartekBanachewicz Kinda
 
@Xeo A watched pot doesn't boil :)
 
didn't mythbusters check that one? ;)
 
Xeo
@StackedCrooked Meh, I have a bit of pressure on me, since I have an open job offer from those Exozet guys that would pay 1.5k. I can't really push back accepting or rejecting it much longer
 
12:27 PM
@Xeo did you tell it to Funatics?
 
Xeo
@BartekBanachewicz Not yet
 
that might help them decide a bit
 
1.5k gross is abnormally low.
Oh, I see it's a traineeship.
I guess that's different from a job.
 
Xeo
It's still full-time
 
@BartekBanachewicz Later - you can see most of it in the edit history of this question (originally by sockpuppet account, which I flagged for a moderator and got merged) and the transcript since yesterday
 
12:34 PM
@Xeo how will you manage to fit it with your studies?
 
@sehe I didn't see the full thing, but usually when someone radically changes their question after I answer it, I just rollback. :D
 
Xeo
@BartekBanachewicz Which studies? :P
 
@Xeo aren't you still studying?
 
Xeo
Nope
 
12:37 PM
@LuchianGrigore nothing to do with that
 
Xeo
@BartekBanachewicz Because I finished?
 
@Xeo ah, how long does your course take?
 
Xeo
did take 2 years
 
12:39 PM
Why a traineeship then?
 
Xeo
Because I have "no prior work experience"
 
@Xeo and? You've like 40k on stackoverflow. -.-
 
Xeo
Since working on real project is that much different from working on a project at the GA
Money and hard time constraints etc...
 
@BartekBanachewicz: I doubt SO rep counts in a job interview.
 
12:41 PM
@Xeo I don't know if you've missed my first post today, but I got an email from agency, scheduling me for senior developer interview.
 
@Borgleader but knowing your stuff does count. :) And @Xeo knows his stuff, as evidenced partly by his SO rep
 
Xeo
@BartekBanachewicz Doesn't tell them if I can guesstimate how much time I need for a certain feature etc :s
@BartekBanachewicz I jelly. :(
 
@jalf: I'm not saying he doesn't, I just meant it's not the type of thing you can put on a CV as proof that you're awesome.
 
@Xeo it's bullshit. You're a lot better than me and you've already finished studying (It will take me some time to finish mine)
Being graduate, I wouldn't ever think about junior/trainee position. Normal developer doesn't really do much project planning.
 
12:44 PM
lol
that's probably why I put in my dislikes list
 
@Xeo Whoa
@BartekBanachewicz That'd be strange, since, perl sux0rs but that is awesome
 
@Xeo: What is this I don't even....
 
Google 'FizzBuzz test'
 
I know what the FizzBuzz is
 
Xeo
@BartekBanachewicz To be fair, there is a more... normal version. :)
 
12:46 PM
@Borgleader write it. Here. I dare you!
 
@Xeo okey, i just followed sehe's advice
 
Xeo
0
Q: Delete dynamicly created objects

Minion91In my application I am creating and returning an array filled with dynamically allocated objects from a derived class like this: void someGetter(std:vector<DerivedClass>& returnV) { BaseClass* base = object->clone(); (object is a unique_ptr<BaseClass>) DerivedClass* d...

what the fork...
 
@LuchianGrigore: http://liveworkspace.org/code/969b638c67405eda53175583a987f790
Like this?
 
12:51 PM
@Borgleader shorter!
 
Xeo
@Borgleader That looks sooo copied from the C++ FizzBuzz example. :P
 
@Borgleader You failed: it has trailing output
 
warning 187: pointless comparison of unsigned integer with zero
dafuq
 
Xeo
Btw, there is a restricted version of FizzBuzz - do it with only two conditional operations. Short-circuiting through (x%3 == 0) && print("fizz") not allowed
 
I did it at first with a flag. Bah, so lame -.-
if (!i%3) {flag = true; cout << "Fizz"; } if (!i%5) { flag = true; cout << "Buzz"; } if (!flag) cout << i; cout << endl;
 
12:55 PM
@LuchianGrigore If the comparison is operator<....
 
Don't use ! for that.
 
Xeo
@CatPlusPlus this
 
@CatPlusPlus what about ~? ;p
 
<sadface> okay.... Is the flag considered "OK solution to FizzBuzz", though?
 
If it works, it's fine. It's a stupid artificial problem, anyway.
 
@Xeo: If I needed to copy the example to solve FizzBuzz, I wouldn't be here.
 
@TonyTheLion ah, buggy
 
If someone would tell you it's not an elegant solution, laugh at them.
 
Xeo
@TonyTheLion 15 only prints "fizz"
 
12:57 PM
And then bill them for wasting your time with inane bullshit.
 
Yeah, it fails to print FizzBuzz for multiples of 15
 
@sehe ah, true
 
@CatPlusPlus it's just a simple test
 
didn't open the file :d
 
Waah, I have to port iOS app from old failPhone to new one.
Does this require something beyond doing new graphics for the mighty two-resolution platform?
 
12:59 PM
depends on what you mean by failPhone
 

« first day (711 days earlier)      last day (4239 days later) »