« first day (992 days earlier)      last day (3965 days later) » 

3:00 PM
@LightnessRacesinOrbit What did you point out?
 
huh you're not human you're a USAian
@R.MartinhoFernandes That they religiously name every day, other than their Independence Day, in a date format diametrically opposite to the British date format.
@ScottW too far
 
@LightnessRacesinOrbit Not true?
 
@R.MartinhoFernandes Name one other
 
@ScottW I can order you a pizza
 
First of May?
 
3:02 PM
just tell me what pizza place I should order and where they should drop it?
 
there is a correlation between English speaking countries and fatness, from now on I will stop speaking English in order to lose weight
 
@R.MartinhoFernandes Who says "First of May" in murrica?
@Telkitty猫咪咪 It's okay; you're not speaking English. You're abusing commas.
 
@ScottW Why should I joke about something like that?
 
@Borgleader:Sorry if the question offended your high tech brain.But most of the things are discovered because of that attitude only.Read a story about stephen hawking.You will understand.:). — user2511713 5 mins ago
 
I'm serious, I haven't ever been so serious
email me the details
 
3:04 PM
@R.MartinhoFernandes My comment was offensive?
 
@ScottW oh I didn't see that
haha
hehe
 
@LightnessRacesinOrbit cout << "1 comma detected" << endl;
 
@ScottW I was asking a question, not making an assertion.
 
http://stackoverflow.com/questions/17473579/keep-changing-pointer-internally-to-the-class
*cringe*
 
@ScottW okay
I maintain that it's ironic to do that on this day of all days, when -- to the best of my knowledge -- the common alternative is "June 4th"
@ScottW It's ironic
You picked a day on which to rid yourselves of all things British, then adopted the British date system to name it
 
3:10 PM
@Borgleader I guess he misinterpreted it and thought you were implying something about his ability to perform logic reasoning.
lol @R.MartinhoFernandes Thanks for clearing that.Borgleader: Sorry my bad — user2511713 2 mins ago
 
@LightnessRacesinOrbit So if the swap trick is out, what's left as a reliable way?
 
I cleared it up.
 
you should be fucking grateful that I'm allowing you to call it "the British date system" as opposed to "the real date system"
 
@R.MartinhoFernandes Thanks :)
 
@Borgleader shrink_to_fit; except that is also only a hint
so basically, nothing
 
3:12 PM
@LightnessRacesinOrbit What? The common alternative to "4th of July" is "June 4th"? This British date system seems completely fucked up.
 
@LightnessRacesinOrbit Is shrink_to_fit on par with swap trick or better? (even though not 100% not reliable)
 
@Borgleader no idea
@ScottW "September the 11th"
 
@LightnessRacesinOrbit No one says "September"
Everyone just says 911.
 
@R.MartinhoFernandes I hear it on TV programmes all the time. "Nine eleven" or "September the eleventh"
@ScottW It's a counterexample
Look, the only logical conclusion here, is that your country sucks monkey balls! Get over it! <3
 
Maybe August 11th?
 
3:14 PM
The question is: Who the fuck cares??
 
@LightnessRacesinOrbit And they have to import the monkeys.
 
Reading this conversation makes me want to use this
 
> America- 2 Britain-0 your country does what America allows/tells it to do and no more. Make all the snarky "i see i hit a nerve" "thats not true and heres why blah blah" comments you want because you and I both know thats true
 
shhhhh the sound of ~butthurt~
 
the comment doesn't annoy me - the fact that this person likely genuinely believes that annoys me.
 
3:16 PM
lol
 
@ScottW I already responded to that assertion
 
its the Internet
just let it go
 
@TonyTheLion The people partaking, probably.
 
@LightnessRacesinOrbit lol
 
@TonyTheLion that's my point. the internet part isn't important. the real life part is
 
3:16 PM
offs
 
@ScottW his upbringing worked
 
this is silly
 
@TonyTheLion not-
you know what? calling yourself "Tony the Lion" is silly.
@ScottW correct!
 
@LightnessRacesinOrbit that may be so, but that's irrelevant to this discussion
 
cough Lightness Races in Orbit cough
 
3:17 PM
@LightnessRacesinOrbit I call him puss the wuss nowadays :x
 
Hmm.. I want to take part in this UK/US thread even less than I want to answer that gruesome pointer question linked by @Borgleader.
 
hahaha
hahah
 
Right because Borgleader isn't a silly name >.>
 
@ScottW: Hey, guess what?
 
I'm laughing so hard at this
its hilarious
 
3:18 PM
@ScottW: I have pizza.
 
hahahhaa
He wins.
 
with pizza
 
don't make fun of pizza
 
@ScottW To be fair, your country has a tendency to turn itself into joke material.
 
cause you are huge and influential
@Telkitty猫咪咪 no need to make want to eat a pizza
 
@TonyTheLion Their citizens are huge
hue hue hue hue hue
 
Oh shit, the only thing worse than the pointer question is a thread about pizza. I'm fucking starving.
 
@ScottW You can't make good jokes out of things no one knows.
 
@MartinJames I think you mean a thread about C with classes. I mean seriously, char*[], memcpy, this aint no C++
 
3:22 PM
taking ages to transfer a photo off my phone
ffs
 
@Borgleader It was tagged C++, but the code, and the design, and the question... I seriously want to get it all out of my head ASAP.
 
You're making me hungry, dammit.
 
I guess I could post a pic of an empty plate.
 
3:23 PM
mmmmmmmmmmmmmmmm
 
Bastards!
 
Hey, @Lightness do you remember a question you once posted about delete vs delete[] where I gave you in a comment an ideone example of a crash from using the wrong one?
 
yes
one sec
i'll just get the pizza off my fingers, then grab it for you
 
3:24 PM
Oh sod it, do I order pepperoni or ham/pineapple?
 
nom so delicious
 
ITT Lightness rubbing pizza on Scott.
That sounds kinky.
 
@LightnessRacesinOrbit You fuckwit
 
2
Q: Is it "safe" on Linux to mix `new[]` and `delete`?

Lightness Races in OrbitSomeone on IRC claimed that, although allocating with new[] and deleting with delete (not delete[]) is UB, on Linux platforms (no further details about the OS) it would be safe. Is this true? Is it guaranteed? Is it to do with something in POSIX that specifies that dynamically-allocated blocks s...

 
now I will have to eat pizza when I get home
 
3:25 PM
@LightnessRacesinOrbit Thanks.
 
I'm not sure I get @sehe's tag line
 
'Pizza Lightning' is not answering :(
 
it's too busy racing in orbit
I am 'Pizza Lightning'
 
wanna kill the appetite?
 
1 message moved to bin
No.
 
puss, why? :'(
 
cause gross
 
make you lose weight
 
I don't need to lose weight
 
3:29 PM
pic or not true
 
I don't post pics of myself online
Google already knows too much about me
 
fat then
 
@ScottW can tell you I'm far from fat
he's seen me
he can
 
user142019
0
Q: Generating a code

ParvaHi friends I need to produce a specific code between 2 ranges like this ,row1: 2 2 2 2 0 1 0 1 1 5 1 0 3 - - ,row2: 1 2 3 4 5 6 7 8 9 10 11, ,row3: 11 10 9 8 7 6 5 4 3 2 1, first 4 digits are always 2 2 2 2 next 2 digits come from textbox3 and next 7 digits come from textbox1 and...

 
user142019
That tag set.
 
3:31 PM
@Telkitty猫咪咪 It's called "Skype video chat"
@rightfold OMG
kill it with fire
 
user142019
NARQed.
 
user142019
UWYAed.
 
@rightfold This... is C#?!?!?
 
user142019
> textBox1
 
3:33 PM
google hangout! then I can terrorize you all with my obese body and my ugly face!
 
user142019
I hate people who do this.
 
I love it when people come up with the "it's UB but in real life..." argument.
 
The text above his code is completely unreadable.
 
Hell, the code is quite unreadable too.
 
3:35 PM
@ScottW No you're not. :)
 
@R.MartinhoFernandes Huh? Like "I know its UB but really I tink i can get away with it?"
The swap trick is O(1). Swapping standard containers (except for std::array) is required to run in constant time. — R. Martinho Fernandes 14 mins ago
@R.MartinhoFernandes I think he meant the copying memory part of the swap trick? In this case were not removing all the vectors memory only a few elements
Apparently "memory was an issue"
 
@Borgleader Oh.
 
you need to organize it
 
I missed that.
He should just be using deque then.
Or a reversed vector.
 
user142019
Getting flashbacks of the Matrix movie looking at your description... could you try using some formatting tools? would really help — Sayse 1 min ago
 
user142019
3:38 PM
Hahaha.
 
@R.MartinhoFernandes Will deque relinquish memory using pop_front?
 
At some point, yes.
You don't want to release it immediately only to allocate it again.
Well, if you are using MSVC and non-minuscule types, that "at some point" will be every single time, but everyone knows MSVC's deque sucks.
And even if you won't allocate it later (i.e. the container will never grow again), you probably want to deallocate all the free space only once at the end.
 
I'm pretty sure he's micro-optimizing anyway
I mean... "I want to remove the first element, it makes my database bigger"
How big is one fucking element?
 
that pizza was amazing
 
Ell
okay damn. Sometimes segfault sometimes not >.<
 
3:41 PM
you guys should get one /cc @ScottW
 
@LightnessRacesinOrbit I have one at home, and you can be sure I'm having it tonight
 
STOP IT I CANNOT GET THROUGH TO LIGHTNING PIZZA :((((
 
room topic changed to Lounge<!!C++>: Fuck it, we're having Pizza! [c++] [c++11] [c++-faq] [no-helpdesk]
 
Ell
I'm doing pub quiz tonight
I'm gonna have the uber-ultra-zinger-dwarf-be-gone stacker burger with onion rings
 
user142019
The plural of pizza is pizzae.
 
3:43 PM
it was Pizza Lightning a minute ago
 
Ell
@rightfold Pizzas
 
are you swapping the digits in the phone number around too?
 
user142019
Oh fun Sesame Street is on TV!
 
i#e eate# the #otto# row of keys# go##a start o# the #u#eri# keypad
 
user142019
3:44 PM
Omg, a grammatical error in the Dutch Sesame Street. That's bad!
 
user142019
No wonder Dutch people don't speak Dutch.
 
i'# go##a dri#e to the pi##a pla#e
 
user142019
(# stop, writing#, like, you#, are, using, unboxed#, tuples #)
 
@MartinJames go back to twitter
 
@ScottW mmmmmmmmmmmm deliciousssssssssssss
 
user142019
3:50 PM
Oh cool.
 
user142019
You can select tweets on Twitter with J and K, just like statuses on Facebook. :)
 
@Ell Oh right! So that's what I had planned for tonight! I had been all day trying to remember what it was. Damn.
Hmm, I'm not late yet.
@Ell Thanks for accidentally triggering my recollection.
 
Ell
@R.MartinhoFernandes Heh, no problem
Surely it starts a bit later? It seems a bit early now
 
Ok, I'm going to update my CV
WTF do I put?
 
"I like Pizza"
 
3:54 PM
ahahahah
that's irrelevant
 
@Ell It's almost 18 here. It officially starts at 20, but doesn't, but the pub tends to get crowded around 19:30 (it's the €1300 jackpot thing or however much it is now) and I don't want to get stuck with a crappy table.
 
Ell
Oh €1300 is quite a handsome amount!
 
And it is about a 30 min train rid from work, but I was planning to pass by home first, which is in the opposite direction :|
 
€1300 for a pub quiz prize?!
 
@LightnessRacesinOrbit No one has won the jackpot since last year.
 
It's not usual.
 
what do you need to do to win? get 21 questions right out of 20?
 
@LightnessRacesinOrbit The highest scoring team gets to pick a prize from one of three closed boxes. One has the jackpot, and the other two have random "regular" prizes.
 
ic
sounds like a fix
 
Nah, they open all the boxes in the end.
 
Ell
3:59 PM
just make sure you switch if you get the opportunity! ;)
Ugh. I think I have UB in my code :(
I get segfault half of the time
 
@Ell haha :)
We haven't placed first yet.
 
Every time I refactor this, another segfault pops up.
 
What is 0xcccccccc?
 
MSVC? Uninitialised memory IIRC.
 
4:12 PM
ah
 
Ell
Yay my code stopped segfaulting, but I don't know why :S
 
Ell
Also, my sine waves sound different every run :S
there is something up xD
ahh and it just segfaulted after about 20 successful runs
this is going to be difficult >.<
 
Quick, ship a 19-run limited trial.
 
4:21 PM
0
Q: creating a class from some java code

MalinHey guys I have some code and I try to build a class but Iam a newbie in C++,Opencv...so i need some help please... Mat img_keypoints_1[20]; std::vector<KeyPoint> keypoints_1[20];//anzahl der keypoint vektoren for( int i = 1; i<argc; i++ ) { int minHessian = 50; strcpy(filename, argv[i]); ...

I love how half of this question is in english the other in what i assume to be german
 
Woot, I understand it.
 
0xFECE5
 
0xB16B00B5
 
Xeo
0xB00B1E5
@R.MartinhoFernandes Your translation is fine
 
@Xeo I was wondering because it doesn't seem to make sense. I see no overloads.
 
Xeo
4:28 PM
Yep, but that's what he wrote.
 
Refactoring C++ code is such a fucking pain in the ass.
 
Xeo
Don't refactor it, problem solved.
 
Need to if I want to make progress.
 
@R.MartinhoFernandes Is it, though?
 
Compared to other languages I have used? Yes.
Tooling is severely lacking.
 
Xeo
4:32 PM
But man, I just noticed that I haven't really written any C++ code at home (except toy snippets or for SO) for quite a long time. Damn work taking up all my day :|
 
Where can I find C++ STL source code? For example, how can I check how std::swap is implemented?
 
Normally it is right there in the header files somewhere.
 
Xeo
@thameera "Go to definition" on the function~
 
user142019
@thameera There are various implementations, for example libc++ and libstdc++.
 
@R.MartinhoFernandes Don't refactor. Just write it correctly the first time.
Oh, and Hi everybody.
 
4:37 PM
@JerryCoffin Not sure which is easier.
 
@JerryCoffin Damn you, I was writing a seekg/tellg example :P Also hi!
 
@R.MartinhoFernandes Depends on how good you are. For those with omniscience and prescience, doing it right the first time isn't all that hard.
@Borgleader Oh darn. Sorry 'bout that.
 
lol it's all good, I actually didn't know about the \r\n \n thing
so thanks for that :3
 
I'm not using an IDE, so no 'Go to definition's. I couldn't find the exact position in the links @rightfold mentioned :/
 
@thameera You mean the C++ Standard Library? Which implementation do you want?
@thameera You'll need to work at it for more than four minutes. Put in some effort.
 
4:40 PM
6 mins ago, by R. Martinho Fernandes
Normally it is right there in the header files somewhere.
 
@LightnessRacesinOrbit Yes. Perhaps the GNU implementation? Okay, I'd look a bit more, thanks
 
@thameera grep is your friend.
 
Damn. My team mate bailed on me :|
panics
 
@thameera Here you go
Just went to include/algorithm and followed the trail of includes
easy peasy
 
@R.MartinhoFernandes If my German included anything but swear words, I'd volunteer to help out via mumble or Skype or something....
 
Xeo
4:43 PM
@R.MartinhoFernandes Wut?
 
@JerryCoffin lol. It's all in English, though. (But obviously, no internets or calls or whatever).
@Xeo Pub quiz team.
 
Xeo
ah
 
@LightnessRacesinOrbit Thanks a lot!
@JerryCoffin I grepped, but in the src directory. Never thought of looking in the include
 
@R.MartinhoFernandes Oh, well that kind of ruins that.
@thameera Ah, yes -- since the "templatification" of (most of) the standard library quite a bit of the code is in the headers.
 
4:47 PM
I'll have to find some random teamless people.
 
@R.MartinhoFernandes The world is teeming with the teamless.
 
But they probably suck.
 
@R.MartinhoFernandes Probably -- but given that you've never won, how much difference is that likely to make? The real question is whether they're fun.
 
`function has no address, possibly due to compiler optimizations.
`
Sigh.
 
4:53 PM
I have no idea why that happened...
 
@JerryCoffin Making a difference in that is a goal :P They need to be fun and not suck.
 
Anybody here know SFML and want to help me? :D
 
@Pawnguy7 Compiler generated in-line code for the function would be my guess.
 
sbi
template<typename T>
bool f( const std::string& foo, T& bar, some_enum foobar, const another_enum baz = some_traits<T>::baz);
bool f( const std::string& foo, std::string& bar, std::string::size_type size, some_enum foobar);
The above are two out of a set of dozens of overloads of a member function. How do I prevent the following common error (forgot size) from compiling?
 
i wanted to use the pow function but since in school we use borand c++, we are used to using ^ — KevinKZ Nov 9 '12 at 1:23
 
sbi
4:55 PM
f("blah", some_string, some_foobar);
Oh, and this is TR1. No C++11.
 
Why does it compile?
 
@JerryCoffin That could be. Anyway, it isn't doing what it used to, and I don't know why.
 
sbi
@R.MartinhoFernandes It picks the function template.
 
Oh, I see. Constrain the first one to reject std::string?
 
sbi
@R.MartinhoFernandes Yep.
 
4:57 PM
So what are you waiting for?
 
Who here is familiar with tigsource?
 
sbi
@R.MartinhoFernandes And idea how to do it.
 
@sbi enable_if?
In C++11 you could simply make bool f( const std::string& foo, std::string& bar, some_enum foobar) = delete;.
 
sbi
2 mins ago, by sbi
Oh, and this is TR1. No C++11.
 
enable_if works fine there.
 
Ell
4:59 PM
boost::enable_if(!is_same<T, std::string>::value)::type
meh, idk
 

« first day (992 days earlier)      last day (3965 days later) »