@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3 4 5 6 7 8



Comments:

<0> yeah...
<1> If you've got 5 exit points from a function, you just need one smart pointer or other cleanup cl*** in whatever scope is appropriate.
<2> scoped_ptr is even niced, in that respect, than auto_ptr
<2> err, s/niced/nicer
<0> not going to make those changes to the code right now (it works just fine)
<0> but -- made note to self (with URL about smart pointers) for future.
<0> so next time around this code I'll probably do that.
<1> You'll go months without ever using "delete" -- if not longer.
<0> yeah. that'd be a plus.
<2> why on earth are you using std::list<T*> ??
<2> you want the things you're allocating to stick around after this function?
<0> yup.
<3> right, sleep time. night all
<2> why are you using list though, are you keeping them in some order?
<0> yup.



<2> ok, don't tell us
<0> hahaha
<0> it's a list of data points for a scatter plot.
<2> 3 lists
<0> the ordering is important in that list for one reason: with one particular type of plot, the points must be in order of what data timeslice they are part of, so that I can draw lines between them.
<2> oh, timestamped points
<0> the 3 lists are because there are 3 timeslices, and I am creating 3 sublists so that I can calculate percentiles of those data series.
<2> or time-series data
<0> so then I throw those extra bits into the list of points to render, add their symbols to the legend, and return.
<2> in some (many?) cases it's faster to order the lists(sort) only when you need them ordered and to just collect them in a more efficient container than list until you do
<0> ie, something like Vector?
<0> the thing is, they're always processed in linear order.
<2> std::vector<> only allocates space for what's in it
<2> and if you're only ever putting things "at the end" vector is a HUGE win
<0> and sorting a vector...?
<2> how often to you need it sorted?
<0> (I only have to do that once for each of these sublists)
<0> ordered yes. sorted no.
<0> so eg map wouldn't work.
<0> since I don't think it provides any kind of guarantees about ordering.
<2> it's not clear whether the order you "find" these things is important of if there is some < you have handy
<2> map? of course it does, it REQUIRES <
<2> or your own compare
<0> order I'm "finding" them in is important.
<0> so yeah. could use vector here.
<2> so then simply appending them to the end will suffice
<0> http://rafb.net/paste/results/kOr0tv75.html
<0> btw, there's the code in question.
<2> do you know about nth_element? it's nice for finding percentiles (and doesn't cost as much as sort
<2> I notice youre use ++i when it's an iterator, but fall back to i++ when it's an int
<0> yeah, that's more laziness and habit than anything else.
<0> I'm quite familiar with the diff between the two.
<2> you have to keep track?
<0> yeah, I have a habit of doing++
<0> there are only a few cases where it actually matters which you do.
<0> most of those cases are bad programming practice anyhow.
<0> hmm... RandomAccessIterator eh?
<2> everyonce in a while you gotta write a loop across a container
<2> afk for a few.
<2> back
<0> cool.
<0> ok, I think I just fell in love with my code. it's a nasty nasty piece of work in some respects, but I just made a small change that radically changed how everything is laid out in output. that's pretty sweet.
<4> kinky?
<0> yes.
<4> ring0 penetration?
<0> very kinky perl.
<4> haha
<0> I just wrote a 7 line comment about that block... hahaha
<5> hi
<5> help Linux Kernel Local Root Exploit - Linux excelsior 2.4.31
<5> :(41bander_83 1ScRiP4T
<0> eh?
<0> help ban you?
<1> bander_83: Help with what?
<5> jdatista with bander
<5> help Linux Kernel Local Root Exploit - Linux excelsior 2.4.31
<6> ?
<7> someone need help being banned?
<0> yeah. I think so.
<6> erm, forgot i had a screen'd irssi



<8> there we go
<1> Some people are stupid.
<9> hello, can someone help me with file lock prloblem? mfc/c++ http://www.noidea128.org/sourcefiles/16273.html
<10> Gi all!
<10> I need help with compiling "Duke Nukem 3D" Source Code
<1> I didn't know they'd released the source for that. That's a cl***ic.
<11> Been out a while.
<1> Bit buggy sometimes, though.
<11> gamedev.net I think it was on
<10> yes
<10> fileshack.com too
<10> anyways
<10> Anyone can help me? I've got Dev-C++ 5 (BETA)
<1> I remember doing a modification for that game when I was a kid. I figured out some of the interpreted script syntax, and I made it so that players would sustain bleeding wounds.
<1> So, if you your health went down below a certain level, your character would leave a trail of blood puddle decals and continue losing health.
<1> You could still run, but doing so revealed your position via your character's pained wailing.
<1> And I almost forgot the bloody footprints. I was a morbid little brat.
<10> so jbatista: Is that a yes to help me, or? :p
<1> Pjott: I don't remember any of the specifics. That game came out what, more than ten years ago?
<1> But you never know. Maybe if you asked a real question.
<10> Yes, but not the <source> ;p
<10> omFg :p
<1> Yes, I know, it's terribly tedious formulating questions when you can just beg.
<1> The trouble is, nobody here is getting payed enough to come over to your house and discover your questions for you. Life is hard that way.
<10> jbatista: I am a coder, in other languages than cpp. So I know how it feels
<1> "paid", rather.
<10> awww!
<10> brain carpet!
<10> In a mIRC Script. If I'm going to use a: on *:TEXT: -How can I make the text with spaces included?
<10> 3 lines...
<10> ... And still wrong channel
<10> I'm tierd..
<12> 065962
<12> Well, if you knew my user ID and PIN you could make some use out of that... for the next 10 seconds.
<1> Now I'm curious as to what he was talking about that "awww! brain carpet!" would make sense in context.
<7> some weird rhyming slang?
<12> Only if it's shag.
<12> Well, we played 4 holes in 2 hours.
<12> The 7-year-old actually hit a little better than the 11-year-old, though the elder daughter putted better.
<13> hello, i am getting an warning c4273 inconsistent dll linkage
<13> what does that mean?>
<11> Means your dll is being inconsistently linked
<13> yea but i dont understand how
<13> i included an new lib and then i get these warnings
<14> howdy
<15> lo
<15> Whats up rdragon? I heard you added neural network based guidance to your weapon projectiles based on jbatista's advice.
<14> IRR - yea.
<1> Whatever.
<1> Play AH2 some time.
<1> vawjr: You should try it too, btw.
<15> What does AH2 stand for?
<1> Aces High 2.
<8> they're marketing the family guy movie as a "90-minute season finale"
<8> wtf!
<8> lazy *** bastards
<1> Petaaah.
<16> 'evening
<8> wtf let rdragon out of his cage
<16> ;)
<16> hey
<16> I met the man yesterday
<16> I know you microsofties drool over that
<1> rdragon: The man?
<14> yea
<14> it's a silly bellevue thing, heh
<1> Bellevue?
<14> seattle
<14> bellevue is just east of seattle
<1> I still don't know who "the man" is.
<14> it's not a who
<1> Hippies seem to hate working for him, whoever he is.
<17> i think when hippies say "the man" they mean "anyone"
<17> meaning they just want to sit around and do nothing, except not bath


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #c++
or
Go to some related logs:

arbick movies
www.ibneyiz.biz
C++ in JavaScript
#squid
#chatzone
#london
wyldroze
#linuxhelp
#MissKitten
#asm



Home  |  disclaimer  |  contact  |  submit quotes