« first day (604 days earlier)      last day (4347 days later) » 

11:00 AM
Must be real interesting to be in your mind.
For a day
 
lunch time
 
hmm, shouldn’t this work?
1
Q: Free memory used by a std::string

Thomas DaugaardI have a struct that looks like this: struct queue_item_t { int id; int size; std::string content; }; I have a std::vector< queue_item_t > which is populated with many of these from a database query. When each item is processed, a file is read from disk and its contents put ...

 
I am back from lunch
 
clear might not give this guarantee though
 
what you had for lunch?
 
11:05 AM
I think clear only sets the size to 0
It does not actually resize the buffer
I may be wrong though but it would seem logical
 
I have a problem with templates, i have a definition of a function with templates in a h file, but when i run my main again, there are no updates detected. Only when i change the way teh function is called (calling it with different params) it compiles itself correctly. What am i doing wrong?
 
You're a) not saying hello and b) asking the question in the wrong place
Also your makefile is probably not having the .h in the dependencies
 
who is working in google?
 
right, sorry about that, Hello everyone, and i just wanted a quick answer
 
@ratzip Google employees?
 
11:14 AM
no, I am not
 
lol
 
you?
 
@Cicada coolbartek is more frequently here :)
they would be hiding
(just kidding)
 
@sehe And who are you
 
@Cicada Let's not get philosophical just yet.
 
11:22 AM
@sehe hiding for what?
 
Well, for shame, obviously. (Do parentheses work on your end? It seems markdown might filter them out)
 
@sehe AFAIK the commented out line can't work in C++03, but I think it could in C++11, if the swap method accepts rvalue reference.
 
But honestly, I can see reasons why people wouldn't mention their employer relationships in a public chat like this.
@StackedCrooked I don't think you're right. The result of the constructor can be modified. It it the bane of 'chaining' or 'fluent' invocation style. I'm not overly sure which standard section describes it, ATM, but IdeOne confirms it compiling in GCC c++03 mode (that's a start)
@StackedCrooked also, I was paraphrasing, from memory, the trick I think was first propagated by Scott Meyer for vectors (?)
Yup, see:
40
A: How to downsize std::vector?

Sébastien RoccaSerraEffective STL, by Scott Meyers, Item 17: Use the swap trick to trim excess capacity. vector<Person>(persons).swap(persons); After that, persons is "shrunk to fit". This relies on the fact that vector's copy constructor allocates only as much as memory as needed for the elements being co...

 
Is this about the commented out line?
 
@sehe It isn’t guaranteed to clean the string either. It just does in practice. And it’s convoluted.
 
@KonradRudolph Are you saying strings behave differently than vectors, or the swap trick doesn't work for vectors, etiher?
 
@sehe The latter. It works, it’s just not guaranteed to work.
 
My above comment now links to the article.
 
@StackedCrooked Thx and @KonradRudolph thx
Dammit. I oneboxed the user account instead of the comment. Fixing
1 message moved to bin
 
> Is this usage elegant, tricky, or both?
^ I think the primary question should be: Is it correct? Even if it seems tricky or convoluted at first it will appear normal once you are familiar with it. Just like how copy/swap appears tricky/convoluted at first sight.
 
11:31 AM
Grumble. Some people don't know when to stay away from irony:
I mean, I understand that he's joking. I just feel he shouldn't. It's on a page about elections. Get some political sense going :)
 
@sehe Comments like that are always trolling.
I'll leave for a while now because I need to study for my Japanese exam later today.
 
@StackedCrooked Yeah, I should probably not honour him with a comment. But he should seriously consider taking his 'funny business' elsewhere
 
I belched
you will be examined on the exact nanosecond of this event later
 
@StackedCrooked Well, I retracted my comment and flagged his one instead. I think it is not constructive, offensive (condescending) and chatty all at the same time.
 
Can I nominate myself as a candidate even if I don't have all the requirements to be a mod?
I want to troll a bit just before nominations close
3
 
11:39 AM
With enough money, you can do anything.
 
@StackedCrooked It is perfectly fine to call non-const methods on non-const temporaries. Also, what do rvalue reference arguments have to do with it? my_queue_item.content is an lvalue.
 
Apparently you can get banned for trolling in the elections?
 
in C, May 31 at 19:34, by Mooing Duck
@bamboon if you already know C++, you don't really need a C book, you just have to remember the small number of syntax differences between them
I don't agree.
 
You can't be a mod, Cicada, only a moth.
 
I don't wan't to be a mod
 
11:48 AM
Being a mod sucks. Moderating is boring and you don't even get money for it.
 
I just want to nominate for fun. And my motto shall be less e-peen, more e-tits
 
@FredOverflow Of course not, it’s wrong
 
yeah, you also have to be surprised at all the useful features you thought C had but it doesn't
 
It's a few syntactical differences, a few semantical differences, a few idiomatical differences, a few library differences, and the definition of few just got a whole different meaning.
 
Well placed emphasis right there.
 
11:52 AM
@RadekSlupik +1
 
@RadekSlupik You used three stars to emphasize semantical, right? Like ***? How well-fitting for a discussion about C :)
 
this ____works____ too
 
@FredOverflow isn't that the first wiki?
 
@RadekSlupik yes
 
Cool.
Fuck. I missed the best moment of the day, 13:37.
 
11:57 AM
Can bits be trolled?
 
> Counting other peoples sins doesn't make you a saint!!! - DebbieMoans
 
@RadekSlupik Depends on what timezone you're in. It'll be 13:37 soon here.
 
And counting exclamation marks makes you a what?
 
@sehe 1 << 3 << 3 >> 7 << 1 << 0 >> 1 << 2
@DeadMG let me fly over to the UK.
 
well, you'd better get into our timezone in the next 37 minutes
also, fucking fuckballs, my head hurts
 
11:59 AM
Pedant
 
@thecoshman y u use hyphen not mdash for indicating source of quote!
 
@thecoshman weak one today
 
Or is that a minus sign? Oh whatever.
 
@RadekSlupik that's just 0. no bits got trolled
 
@RadekSlupik give me an mdash
 
12:01 PM
@thecoshman —
 
@RadekSlupik oh, well that's not on my keyboard
 
@thecoshman shift+option+-
 
@RadekSlupik I don't use a mac
 
@sehe >Democracy is the worst form of government except for all those others that have been tried. -- Churchhill
 
@RadekSlupik on the iPod, obviously
 
12:02 PM
@thecoshman I know. I'm trolling.
@sehe on an iPod it's just holding - and then sliding to the left.
 
Churchill must have been an interesting guy to have at the dinner table.
 
I prefer roasted sheep.
 
Who the fuck is Churchill?
 
How do you even eat that?
 
@Cicada you put it in your mouth and you swallow.
 
12:04 PM
I had the displerure last weak of using some freaked up sun keyboard, some one need to teach them some conventions
 
@RadekSlupik Is that a trick question?
 
I'm serious.
 
@RadekSlupik moth*
 
@RadekSlupik English PM, total bad ass
 
@Neil I dunno. Surprised chat Churchhil [sic] is on twitter
@RadekSlupik Woot. Making progress. He now knows he's trolling
@RadekSlupik sliding down the slippery slope
 
12:06 PM
@Cicada putting moth in that sentence instead of mouth is semantically incorrect.
 
Dammit my internet connection is trolling me
 
@RadekSlupik instead of moth*
Double post.
 
You already said that, fool.
 
She was talking about moth stuffing, and possibly something sexual.
 
Moths suck.
 
12:07 PM
@Cicada Like I said. My internet connection is trolling me. That the posts end up here twice is just a bug in the SO Chat implementation
 
Just like mouths.
 
Double post.
 
@Cicada How meta.
 
Har har
 
META? WHERE!!? *hides*
 
12:08 PM
@Cicada Har(2)
@RadekSlupik Focus on 'how'
Woot. My internet connection is stable again. For at least 30 seconds
 
@RadekSlupik There's META here.
 
I know a funny game we should once play when we meet IRL.
It's called Saw. I'll be the game master.
 
@RadekSlupik Is that anything like the movie Saw? If so, I don't think that's so funny.
 
@Neil some of the acting is though :D
 
I find it quite funny, as long as I can be the master.
 
12:11 PM
@thecoshman That's true.
@RadekSlupik That's true too.
 
@thecoshman we won't be acting. It's a serious game.
 
@RadekSlupik I have no problems with it, so long as I can be the master.
 
My mom is now vacuuming my room and she thinks I'm still sleeping.
 
@RadekSlupik How is that possible? Are you even in your room?
 
I'm lying in my bed in my room.
 
12:15 PM
@RadekSlupik Then you're under the covers.
 
Jup
I always do that when somebody comes in unexpectedly.
 
time to scare the shit out of her
 
I want them to think I'm still sleeping so I don't have to get out.
 
Now I feel strangely envious of you.
 
Why?
 
12:17 PM
@RadekSlupik A) You're not at work. B) You don't pay rent. C) You're mom lets you sleep this late.
The question should be, why wouldn't I be envious?
 
wow, vmware's website is horribly broken
 
you know how you can drive in other EU countries with a full licence, is there a minimum amount of time you have to have had the licence for?
 
A) I don't work. B) This is my home. I was born here. C) My mom doesn't give a fuck.
 
as far as I can see, there is no such limit
 
unable to log in with either firefox or chrome, and even on IE where it works, it's painfully hard to use
 
12:18 PM
@RadekSlupik A) get a job B) you cost your parents, you should help them out C) then more fool her
 
VMware is awesome.
 
@jalf virtualbox then
 
VirtualBox < VMware
 
lies
 
Yeah grow up so you can be a responsible adult and be envious of people like you.
3
 
12:20 PM
It's time to get up; I'm hungry.
 
> in reply to sida1049
 
@Cicada context?
or not, what ever
 
@thecoshman You ask for context?! In Lounge<C++>?! Hah!
 
> you mean the French actually drive with a licence omg next you will tell me the Italians actually sit a test - some guy here
@Neil if I had any authoritay, I would demand that you respect it!
 
12:39 PM
@thecoshman The thing is, how can you miss the context in the first place
We're not your personal amusement slaves, you should actually do some reading in order to appreciate a chat.
Respect the authoritay of Lounge<C++>
 
Morning
 
Afternoon
 
Time of day
 
Infinite tiiiiiiiiiiiime
 
Pleonaaaaasm
 
12:48 PM
@sehe Actually, don't think that qualifies as a pleonasm
 
It's not a pleonasm
 
To me it is. Meh
 
Woah, it's hot outside.
 
Physics = Where Opinion Matters
 
@DomagojPandža Trying to redirect attention, again?
@AgainstASicilian Well, good thing no one was discussing physics, then
We don't no opinionated bitches :)
 
12:49 PM
;P
 
@sehe I try :$
@AgainstASicilian What?
 
@DomagojPandža What?
 
Psh.. Physics is just applied math
 
Physics = Where Opinion Matters? What does that mean?
 
An anechoic chamber (an-echoic meaning non-echoing or echo-free) is a room designed to stop reflections of either sound or electromagnetic waves. They are also insulated from exterior sources of noise. The combination of both aspects means they simulate a quiet open-space of infinite dimension, which is useful when exterior influences would otherwise give false results. Anechoic chambers, a term coined by American acoustics expert Leo Beranek, were originally used in the context of acoustics (sound waves) to minimize the reflections of a room. More recently, rooms designed to reduce re...
 
12:52 PM
@DomagojPandža I thought sehe was calling "infinite time" a pleonasm, which it technically is not when you get into the realm of physics
 
@DomagojPandža It means he is trolling
@AgainstASicilian True dat. Or, possibly, at least
 
Ignore. Life easier.
 
OMIGAD - I just received a request to help out at another client. They still use CA:Gen and COBOL. Now they want me to _hack_ an 'external program' of theirs, so that it no longer appears to depend on the Oracle OCI dlls (part of the Oracle Client), but instead by hiding the actual DLLs inside the program image and loading from there.
Are they fucking kidding me?!
 
"where opinion matters" is a throwback to those cases down in the South where schools tried to "vote" on whether or not to teach Creationism in the science class, as if you can "vote" for your ideal reality
 
I mean, there are about a dozen valid solutions to this non-problem. I'm told it's due to politics. Yeah right, because it is certainly not rational
 
12:55 PM
Hiding DLLs?
 
Plonk
 
@sehe Is that even legal?
 
What, proprietary algorithms or something they don't want people accessing?
 
@sehe I would get them to sign something saying that the intellectual property as well as responsibility is entirely theirs.
 
I don't understand what the big deal is? I feel like that is a common thing
 
12:57 PM
@sehe oh that's easy pie, you know computers don't you
 
people hack apart their infrastructures all the time
 
@Neil Legality is not an issue here. Clients have Ora Client installed. They just chose to do 'proprietary scripted installs' instead of regular Oracle installs. So it is hard to find the DLLs to load. And then they bitch about the program including oracle DLLs in the installation ("that's against the policy"). Right.
 
@sehe That makes perfect sense ^^
 
People who try to hide DLLs usually want to cover up their tracks.
 
For what, though?
 
12:59 PM
@ScarletAmaranth Well, this case isn't usual :)
 
@DomagojPandža Dude, you seem to know about DirecXmath library! Is it common to be converting XMFLOAT3 to XMVECTOR and then back and then back again because some API functions work with one and some with the other ?
 
What's wrong with propritary installs?
 
People troll about them?
 
Why is this so important that they'd be willing to hire someone to hack the system?
 
> the god Atum was believed to have created the universe by masturbating to ejaculation, and the ebb and flow of the Nile was attributed to the frequency of his ejaculations.
dafuq?
did I just read?
 
1:00 PM
@TonyTheLion Do you google for such stuffs on regular bases ^^ ?
 
no, found it on reddit
 
@thecoshman I told them I'm inclined to say: "You're fixing a non-problem creating more problems. You shouldn't want to do this".
The sad thing is, I should probably not refuse this 'side-gig' - since it might give me creds to market for more C++ expertise and generally raise my profile a bit.
@Neil Good question. My guess is, should they allow me to talk with the sysadmins of the client environments, I'd be coming up with a solution in no time (along the lines of: provide the path to ORAHOME upon installation).
@ScarletAmaranth basis ? :)
 
@sehe I think that's the question to answer. I've found that the first question the clients ask is almost always wrong or misleading.
 
@ScarletAmaranth It is very common. XMVECTOR is basically a typedef for _m128, a special SIMD type (SSE vectorization, parallel processing). It's basically a 4D vector which is 16-byte aligned, it can be used for 2D/3D/4D vectors, you just ignore the rest (zero it out). Since it requires to be 16-byte aligned, other data types are used for actually storing data inside your application, like XMFLOAT2/3/4
 
@sehe This room is full of human parsers :)
 
1:03 PM
"How can I make Microsoft SQL Server 2008 work in Unix?"
To which you say, "Why the hell do you want to do that?"
 
Those are basically structs containing freeform, classic floats which need to be converted to XMVECTOR when you're actually doing calculations.
 
To which they reply, "We wanted a database, but we only have a Unix PC"
To which you say, "Idiots! The lot of you!"
 
@AgainstASicilian Oh, that's child's play:
May 31 at 10:18, by sbi
> North Carolina legislators have decided that the way to make exponential increases in sea level rise – caused by those inconvenient feedback loops we keep hearing about from scientists – go away is to make it against the law to extrapolate exponential — NC Considers Making Sea Level Rise Illegal
 
@DomagojPandža So, basically, I'm NOT doing it wrong when I want to add two XMFLOAT "vectors" with 2 conversions to XMVECTOR and then converting the result back to XMFLOAT :) ?
 
To which they say, "So, can you install SQL Server 2008 or not?"
 
1:04 PM
@ScarletAmaranth Oh you're flattering me. Human? Really? Today is a Good Day(TM)
 
@thecoshman To which you reply, "How much?" :)
 
@DomagojPandža Thanks ;)
@sehe I mean, polar bear, naturally.
 
They themselves cannot take the SIMD advantages. A rule of thumb is to use XMVECTOR for local/global variables and XMFLOAT# for class data members and transform to XMVECTOR when you want to do calculations. So, yeah, you're on the right path.
 
@Neil To which they say "oh, we thought you could just use this to improve your portfolio"
 
XMLoadFloat#() and stuff
 
1:05 PM
@Neil I hope you're not doing your own acquisistion
 
If I recall correctly, I actually dumped XNAMath in favor of my own math library.
 
@thecoshman To which you say, "Do I at least get paid in advance?"
 
So, I cannot recall all the functions, MSDN should have them.
 
@DomagojPandža So you had to optimize for SIMD (SSE and the new one, AVX or whatever it's called) yourself ...
 
@thecoshman Oooh. You are showing the first signs of experience there. That one was well anticipated
 
1:07 PM
@Neil To which they say, "We need to see you can do this first"
 
@sehe Well, you know you wouldn't actually say that, but you think it.
 
@Neil "Do I at least get laid in advance?" -- FTFY
 
@thecoshman To which you say, "Sigh.. when do I start?"
 
@sehe there is a very good web comic that will fit in here some where
 
@thecoshman I reckon, there'll be a few of them
 
1:07 PM
@ScarletAmaranth Yup, I like doing the lowlevel stuff... I have optimized everything I could for SSE#, AVX (iX/Sandy Bridge class of processors) and even AltiVec... And provided a fallback for machines that don't support any of it (but SSE is already available to many systems, it's several years old.
 
@Neil To which they say "We need it done by CoB today"
 
@thecoshman CoB?
 
2 days ago, by Cat Plus Plus
In grammar, an ejaculation is an utterance that expresses a feeling outside of the normal language structure. Often, but not always, it is an exclamation, most often consisting of a single word, either an interjection or a profanity or both. Examples: * In English: ** The shout Hey!. ** The huh in "War! Huh! Good God, y'all!" ** "Glory to God!", "Glory be!", or "Praise the Lord!" In this context, this is known as a religious ejaculation, not to be confused with a religious profanity. Ejaculatory prayers -- one-liners that can be spoken at any time -- are quite common in the Roman Catho...
 
I love to ejaculate.
 
@DomagojPandža I used to enjoy doing that, but then I took an arrow in the knee but then I kinda got really annoyed with everything consuming huge portions of time :P
 
1:09 PM
@thecoshman Yeah, Dat too. It applies in this case. They need it to work real quick, since they are due to release. :)
@Neil Whoa. Spam. Why
 
@sehe Thought we were posting ambiguously sexual words
 
@ScarletAmaranth To the knee. To the knee. Really. Get your memes right.
@Neil We were doing no such thing
 
@sehe Oh.
 
:)
FWIW My message was a reploy
 
1:12 PM
@Neil Close of Business
 
@sehe It's in the knee, afterall :)
 
@DomagojPandža Ow. I stand corrected. Is this the authoritative source for the meme, though?
 
It is a Skyrim meme, so, yes. :Đ
 
@sehe It's THE SOURCE of the meme :) Skyrim :)
 
user784668
@sehe You're kidding, right?
 
1:13 PM
@sehe oh everything needs to be done ASAP, we didn't tell you two months ago because we thought it would get in your way
 
Nah, sehe doesn't play games. He spends his time hiding DLLs for business applications. :Đ
 
GoOd MoRnInG
 
@Fanael No I'm not. Frequently, a line will be from a movie/game, but the mem will be a modified version of that. Anways:
 
A professional DLL hider, sehe™
 
 
user784668
1:15 PM
@sehe Paint'd.
 
Memes mutate, just like genes.
 
@Fanael With a fucking link
 
I always thought it was 'arrow to the knee'
 
that site is bad ass :D
 
1:16 PM
@thecoshman Thank you. Your support is heart warming
 
Arrow to the knee sounds more appropriate.
 
@sehe woah! I almost hurt my self I cared so little
 
But, Nords of Skyrim are not really literate.
So, it's in the knee. :Đ
 
How many hours have you put into Skyrim yet, @DomagojPandža ^^ ?
 
160+ hours, maybe more.
 
1:17 PM
some times I feel I over react, other times, meh
 
I'm at like 200 :) But I will start a new game as the datadisc comes out.
 
Well, it's the 7th month anniversary today.
 
@DomagojPandža You totally lost me. I think 'in the knee' would be the more grammatically sensible variant. So you say "they are illiterate, so they must speak in proper grammar"?
@ScarletAmaranth What, you 'meter' game time?
 
It is logged in the save file, sehe.
 
@sehe It's not like I'm clocking it, it does that for you :)
 
1:19 PM
@thecoshman Sometimes you just feel numb
 
Later kids, I've got code to attend to! :)
 
@sehe That's the pun. They sound really literate, which is exactly the opposite of what someone would expect from ancient blood-thirsty Nords who drink mead. But there are some characters true to their historic image.
I must've put it wrong, sorry. :D
 
? Oh well. I'm not Skyrim literate
 
@sehe <emo mode> I some times think that this chat is just a figment of my imagination, to give me some where to contemplate my self, any references to it from out side of chat are just me making things up to fool my self into believing it more. How would I know other wise, I have no way of proving that any one here really is another human. All I can do is accept it, and fall deeper into this reality. Perhaps my entire existence is just an alternate reality covering the fact I'm unconscious
 
You'd enjoy it. I don't know why you're so resistant to games. :Đ
 
1:24 PM
> to give me some where to contemplate my self
Bwahahahahahahahahahahahaha
 
@DomagojPandža Illiterate people can still have good grammer
 
Also, emo mode != false philosopher
@thecoshman The goggles!
 
@thecoshman grammar
 
user784668
@Neil garmmre
 
@sehe there's no need to mock
 
1:30 PM
@sehe Hmm, that's a good idea.
 
user784668
@RMartinhoFernandes You have a blog?
 
@Fanael grammar
 
@Fanael Yeah. Fairly new thing.
 
user784668
@Neil វេយ្យាករណ៍
 
Now I need to figure out how to CSS this so the title won't look blue.
 
1:32 PM
@Fanael grammar
 
user784668
@Neil There's no grammar.
 
@Fanael You misspelled spoon.
 
user784668
@Neil You too. It's spoon, not spoon.
 
@Fanael You misspelled grammar.
 
Where the heck does Jenkins publish junit test results?
 
user784668
1:35 PM
@Neil And so did you.
 
I made it parse the xml output of my uni tests.
and the build fails because the unit tests fails
But I cannot find where it published the results.
 
@Nils On the page for each build there's a "Test Result" link on the sidebar.
 
@Fanael You misspelled I.
 
@Nils ergh... jenkins
 
user784668
@Neil Yes, and I'm proud of it!
 
1:36 PM
This really is potentially endless. I realize that now.
 
@thecoshman what are u using?
@RMartinhoFernandes I don't see it
 
@Nils lol, build automation, it's just a pipe dream in this wank stain of an organisation
 
user784668
@Neil You misspelt realise. :P
 
to be fair, jenkins looks really nice, but then, I am sure IE looks awesome to some one who has never user the internet
 
 
1:40 PM
:4074210 that was much better. In fact it was so good, you seem to really underestimate the amount of damage you can do with silly jokes like that
 
@thecoshman Bullshit
Everybody does it. Big G, MSFT, id Soft, etc
 
I don't have that
 
Well. No idea, then.
 
maybe I need a plugin or something
but thx @RMartinhoFernandes
 
1:43 PM
have I said something and not realised it? @Nils and @sehe, your response seem so random to me
 
@thecoshman Well I binned a message of you. I think it was way out of line.
 
@sehe oh?
oh, how is that out of line?
 
@thecoshman yeah well the gui is kind of ugly but it gets the job done (if it somehow will display the test results..)
 
What message?
 
The one that is exploding as we speak.
 
1:47 PM
lol
 
:4074405 Point taken
 
@thecoshman Cheers
 
Was that joke directed towards me?
 
I danced the line, and sehe pulled me back
 
1:49 PM
Should have pushed you into the abyss, IMO.
 
I'm not easily offended for the record
 
@Neil what if I told you, you're not the only person
@RMartinhoFernandes I wish I could find your off switch
 
@thecoshman Only person what? That the joke referred to?
 
@Neil not everything is about you :P
 
1:50 PM
@thecoshman OMG I'm so offended!
 
@Neil then get back in the kitchen and make me milk shake
oh god, could really go for a milk shake right now
 
@thecoshman *small voice* Yes, sir.
 
@RMartinhoFernandes ah you also have to check summarize test results otherwise it does not show up
 
why isn't the bin call /dev/null ?
seems like a much more fitting name
 
ouh guys
you obviously need a mustache to be cool nowadays
:D
 
1:57 PM
@Nils well fuck, that's me out of the picture :(
 
@Nils There's always Movember!
 
@thecoshman Because the bin is not webscale.
 
I've got a fine neck beard going on, but that's about it. My upper lip barely get's bum fluff
 
Fuck it. Now the title is blue :(
 
@RMartinhoFernandes sexy blue, or colour blue?
 
1:59 PM
lol
 
@thecoshman Not-white blue.
 

« first day (604 days earlier)      last day (4347 days later) »