« first day (640 days earlier)      last day (4298 days later) » 

2:00 PM
oh yeah, there is often needless quoting, but it is nice that when people say "standard says you can't do X" that they provide a link to where in the standard it says so
 
@Ell At first I read that as "the rapist store".
 
Ell
trolololol
 
well, when i quote the standard it's largely because i remember some relevant stuff. i guess that's so also with litb here, and others. and with most folks over in clc++m. the idea is that "stumble upon" is a one-way function. it's easy to remember what one has stumbled upon, but difficult to find it (for others) if one is starting from scratch.
@CatPlusPlus jeez, these trolling rants against rants and trolls, well, it's too much!
 
Whoever stole my copy of Microsoft Office, I will hunt you down. You have my Word.
 
2:08 PM
Wut.
 
@PezCuckow take your shit stolen jokes and GTFO ಠ_ಠ
 
someone has a serious lack of humour...
 
@thecoshman Hey, what did they do wrong to GTFO?
 
@thecoshman See this pocket? It's full of the fucks that I don't give.
 
2:12 PM
Also, I'd like to apologize if I upset any of the regulars yesterday. I should have backed off a lot sooner.
 
@R.MartinhoFernandes about what?
 
Well, I guess I didn't upset you then.
 
Ell
@R.MartinhoFernandes I HATE YOU! :'( :'( :'(
 
I came here to give fucks. But I'm all out of fucks.
 
Grab the gum.
 
Ell
2:13 PM
haha I like that one
 
@EtiennedeMartel best go get some more :-)
 
@R.MartinhoFernandes well... yesterday you got a bit angry at some chap... but I honestly can't recall any reason to be upset by you...
 
@PezCuckow @Cicada usually has quite a few to spare, ask her.
 
@Drise Says the creepy dude.
 
2:15 PM
@R.MartinhoFernandes She's always throwing around "fuck" in a number of her sentences.
 
I do the same. When your first language is French, you tend to see the F word as only mildly offensive.
 
Ell
anyone know how to make an ngon in blender?
 
And since I already swear a lot, I say "fuck" like you would use a comma.
 
@EtiennedeMartel It's offensive?
 
@Ell you should stick to triangles and quads if you can
 
2:17 PM
@Drise Oh you.
 
Ell
@thecoshman ahh okay. why is that?
 
@EtiennedeMartel In Portugal, we northerners are known for using "caralho", which is pretty much as usable as "fuck" in English, as punctuaction.
 
@Ell triangles an unambiguous in 3D, quads tend to work well when you are doing stuff with smoothed lines. If you are doing raw geometry, ie no splines and what not, stick to triangles if you can
 
@R.MartinhoFernandes Seems like our own "crisse" or "ostie".
 
'tis been too long since I listened to CofF
 
2:19 PM
Word of the day is "douchewagon".
 
@R.MartinhoFernandes Dupiyash is always used by my cousins when we play card or board games.
 
What does "dupiyash" mean?
Ah.
 
@R.MartinhoFernandes Apparently, dumbass, in polish.
I repeated it once when we were playing games and before I knew it, my grandmother has smacked me so hard and was yelling at the top of her lungs.
 
Ell
is it illegal to post a picture of someone on the internet without their permission? or just to not take it down when they ask? lets say, in the usa or uk. Whichever you know.
 
I don't think there's a problem if said picture was taken in a public place.
 
2:22 PM
@Ell One word: Facebook.
 
Ell
Thats what I was thinking
 
@Ell nope
stupid Java! default values for parameters is not a crazy concept! why do I have to arse around with overloading ):<
 
Well, there could still be a problem if said person doesn't want that. Not of the legal kind, I mean. Of the personal kind.
 
¬_¬ god damn, there is no nice way around for that
@R.MartinhoFernandes like a crotch punch?
 
For instance.
 
2:24 PM
@R.MartinhoFernandes I know that in Quebec, if your face is recognizable, then it has to be blurred, otherwise you can order the picture to be taken down. That's why Google Street View pictures in Quebec are full of blurry faces.
 
How can journalists work?
 
Ell
Somebody has posted a picture of me playing guitar hero in a sombrero and I wondered what rights I had :L
 
To punch 'em in the crotch.
 
@R.MartinhoFernandes They have to make you sign a paper or something.
 
@Ell If you don't have a good right punch, then give him a left one.
 
2:27 PM
Oh god, sounds terribly annoying.
 
Ell
@StackedCrooked It's a her so no punching allowed :L
 
@Ell You're so romantic.
 
@EtiennedeMartel AFAIK that is standard practice for street view globally
 
You mean that females feel no pain in the crotch?
 
@Ell sadly, very little. you can always ask them
 
2:27 PM
@thecoshman Saves on the hassle of checking up every jurisdiction.
 
@R.MartinhoFernandes the lazy feckers :P
 
@R.MartinhoFernandes I heard they feel a lot of pain. It's a huge mess of nerve endings down there, after all.
 
Ell
I was going to say.
 
You were going to say something.
 
Ell
I was going to say it must still hurt for a girl :L
 
2:31 PM
Well, they're still living beings. They feel pain. I think.
 
@EtiennedeMartel bit of an assumption that just because they are human they feel pain. A very small assumption sure, but still! Could lead you into big problems
 
@Ell Hurting is the point of punching people in the crotch.
Thought I should explain that.
 
@thecoshman I LIKE WOMEN.
Sorry, lost my train of thought for a second.
 
user image
5
Punctuation is important.
 
@EtiennedeMartel so do it... doesn't hide from the fact that not every humans feels pain
 
2:34 PM
@thecoshman Indeed, but those who don't generally die very young.
@R.MartinhoFernandes What's that? Japanese?
 
Dead humans don't feel pain.
We robots are here to take the pain away.
@EtiennedeMartel Dunno.
Looks like Chinese to me.
 
@EtiennedeMartel is that so... ¬_¬
 
@thecoshman Yeah, it's hard to avoid getting injured if you don't feel pain.
 
@R.MartinhoFernandes and the pleasure
 
@R.MartinhoFernandes DELETE
 
2:36 PM
@EtiennedeMartel babies seem to hurt them selves even when they do feel pain though
 
@thecoshman We'll take the pain away with pleasure. Does that help?
@thecoshman Only once.
 
@R.MartinhoFernandes I don't know... babies are pretty stupid some times
@R.MartinhoFernandes it pleases me -_-
 
Well, the only babies I've interacted much with were my cousins, and they were pretty smart. Maybe they've got the same genes as me :P
 
Smooth.
 
@R.MartinhoFernandes ¬_¬ but your a robot... the only Genes you have Jeans you are washing for the humans
 
2:42 PM
I won't share my manufacturing secrets. Don't even try it. I already let that "genes" bit out, but I won't do another mistake like that.
 
@R.MartinhoFernandes so your semi organic... you know, I don't think they ever did find Hitler's body ¬_¬
 
oh shit!
 
living tissue around a metal endoskeleton?
 
I admit nothing, deny everything, and make counter-accusations.
 
2:45 PM
wait... this wasn't an argument, so there is nothing to lose. If there is nothing to loose, I may as well kill everyone
 
Also, here's an example of a bunch of people running for the "free rep" that turned out to be wrong because they didn't ask the OP what they really wanted:
0
Q: Easy way to make an unsigned char larger than 256? So it can be converted to an Integer

RPTIs there any way to increase the size of an unsigned char so that it can be casted into an integer of a size greater than that? UPDATE: Basically i'm editing an exsisting system in which a port number was defined as an unsigned char as they only needed number up to 255. Now it needs to be incre...

@thecoshman Save me the work? Go ahead.
 
@R.MartinhoFernandes you just admitted that you admit nothing...
 
@thecoshman I thought meatbags didn't falter in the face of paradox.
 
@R.MartinhoFernandes ... we don't... ¬_¬
 
@melak47 So, @R.MartinhoFernandes is a Cyberman?
 
2:47 PM
@EtiennedeMartel that would be metal exoskeleton around living tissue, I believe
I was more thinking terminator
 
but all bets are off
who knows, maybe he's a dalek
 
You'll only know it too late. I mean so late that you won't be alive anymore. Hmm, maybe I should just say you'll never know, then.
 
I'm putting my money on some sort of head in a jar, like in Futurama
 
Won't that make the bills wet?
 
2:49 PM
@melak47 If so, then he's not ruggedly handsome like I'd previously assumed.
 
there are not worthwhile people called bill to put in Jars, silly robot
 
@AgainstASicilian the best food is bacon. period. breakfast, lunch, dinner, doesn't matter. :)
 
@thecoshman Well, if you put your money in Jar Jar Binks, it's bound to get wet.
 
@EtiennedeMartel only a fool would back Binks
 
So, I have this vertex cache thing for an importer, which is basically C code..using memcmp on structs etc, should I, dunno, overload operator== for these structs to make it more c++ish?
 
2:56 PM
I would.
 
I would too. Esp if you want to use it with standard algorithms.
 
does it currently work? do you need to make any changes to it? if not, leave it alone
if you are going to change it, make sure you have a way to validating that your changes have not broken anything
 
why is direct x so impossibly difficult to learn? :(
 
and make sure that you validation test actually match what is currently implimented
@IntermediateHacker ... it's not that hard. It's the general 3D graphics theory that is hard to learn
 
@IntermediateHacker Depends on the person :p
 
3:01 PM
@IntermediateHacker Ask @DeadMG.
 
Easy to say for me, I never learned it.
 
ah, well. guess complaining about it won't lower the learning curve.
 
I once created a rotating cube though, and then I gave up.
But that was a long time ago.
 
@StackedCrooked I haven't even done that yet. :'(
 
@thecoshman yeah it works right now. It's relatively easy to check if I break it or not, if it comes up with a different number of unique vertices for the same files then something went wrong :)
 
3:03 PM
@IntermediateHacker It was mostly copy-paste from the tutorial :p
 
@StackedCrooked lol
 
I think directx is even mildly enjoyable...if you can live with the whole THIS_IS_AN_ENUM_SORTOF_THING::ENUM_SORTOF_THING_XYZ_THAT_YOU_NEED
2
 
@IntermediateHacker oh yeah, there is a lot of boiler plate shit to get through
 
thanks to intellisense I don't have to memorize those names though. :)
 
So let's say I have a class that needs to have a generic data type, implemented in C as a void *ptr and cast to the correct type. How is this sort of thing done in C++?
 
3:11 PM
hmm, other question...I can't decide if I should keep the vertex data in memory so I can remove it from GPU memory at will, and put it back when needed, or not
 
And each invocation of this class could receive a different structure... hence the need to handle that data in some sort of generic manner...
 
@JimNorton idk, templates?
 
@JimNorton Templates!
 
@melak47 I'm so new to C++ that I'm not sure how that would be implemented. :-( Probably would need to read up on templates then...
 
You might find it too much to chew right now.
 
3:13 PM
If the type is known at compile-time then use a template. If the type is only known at runtime (e.g. a user data field), then I would use an abstract polymorphic base class or maybe boost::any.
 
(Not trying to imply you're too dumb for it or anything like that, it's just that it's something that gets complex fast)
 
Btw, I'm going to attempt t not take things so personally in this room... I feel like a fool for letting people get under my skin yesterday..
@R.MartinhoFernandes Yeah I would probably agree....
 
but the C code should work too :p
 
@melak47 Yeah, for the first go around I may just implement that part as a void *
until I know more to use templates
 
-1
A: Can I rely on malloc returning NULL?

ShaoquanLong before OOM, many programs had already run into trouble. So you should try your best to avoid OOM. How can you avoid OOM and un-expected results? OOM-Killer is the best answer, it kills those obvious trouble-makers. Overcommit is also a good idea, which solves a lot of problems. "OOM-killer a...

lol
 
3:15 PM
Sounds like you're smashing a C idiom into C++ though
 
my importer even uses malloc gasp I feel kind of dirty, and want to make
it more C++ish
 
@Collin Yeah, but I'm new to C++, and perhaps I don't want to get bogged down with templates right away. I'm converting a C app to C++ as a learning excersize.
 
@JimNorton probably for the best :P
 
@JimNorton Yeah, I'd probably recommend that too. Get more comfortable with C++ before diving into templates.
It's a good thing that you can convert the C code incrementally.
 
@JimNorton Did you have a discussion with DeadMG? ;)
 
3:16 PM
@thecoshman For much so... I can be way too sensitive... that won't work in this roo,m. :-)
 
@R.MartinhoFernandes templates can get complex fast, but simple things are simple to understand, like templated add function
 
@FredOverflow Him and others yesterday...
 
@thecoshman Oh sure, but I have no idea what the conversion of Jim's code will entail.
 
oh, hello twenty past four, how nice of you to show up. What's that? Would I like to head home? Why, I sure would. You're the best twenty past four!
 
wha?
 
3:20 PM
The pirate's been drinking too much grog lately.
 
@R.MartinhoFernandes indeed, converting old code is a very painful
@R.MartinhoFernandes or not enough... too much salt water me thinks! I need more RUMMMM!!!
 
Real pirates drink grog.
 
@R.MartinhoFernandes cheap pirates drink grog, real pirates drink it straight when they can afford it!
and those who don't want to die from the drinking too much rum or rotten water on boats...
 
@thecoshman You don't know what real pirates are, then.
 
still! 'tis time for me to set sail!
 
3:25 PM
to the Grand Line!
 
@StackedCrooked Just watch out for the navy.
 
We'll just kick their asses.
 
How can I supress: warning: format '%f' expects type 'float*', but argument 3 has type 'double*'
 
You don't suppress that.
You fix it.
 
@R.MartinhoFernandes I dun wanna
 
3:32 PM
@EtiennedeMartel ahaha DB class. Sounds fascinating... Didn't realize you'd get 'DB class' in IT education :)
 
Ours was mostly SQL.
 
@Drise huh. new compiler diagnostic required: "Developer is broken"
 
Boring as heck.
@EtiennedeMartel I learned that in math class. In 4th grade.
 
@R.MartinhoFernandes Well, your own fault for attending :)
 
@sehe I stopped doing so after three weeks.
 
3:34 PM
@R.MartinhoFernandes Ah few, explains you still have a mind
 
I had an SQL class in high school, so I was really disappointed when on third year in college I was "learning" it again.
 
What highschool was that?
Well, anyways, I was programming parsers and business applications in Turbo Pascal. Knew SQL due to DB-III in highschool so I guess I didn't miss much
 
@sehe Lucky, all my high school taught was BASIC on TRS-80's -- of course this was back in 1984 - 88. But I was managing to teach myself Pascal during that time.
 
@sehe The local highschool on my hometown...
 
@JimNorton Well, I don't get it. You all complain that IT education sucked. We had none! That was in 1990-1996 or thereabouts
 
3:38 PM
I was on an IT curriculum.
@sehe Oooh, time machines.
0
Q: what is variant member in c++?

WhoamiI am new to C++. I read very frequently from some sites that variant member?. class School { int x; -> data member. } I know data member. but what is variant member ?

Can anyone make sense of this?
 
Maybe I suppressed it. I was doing conservatory and 2 'extra-curricular' subjects so it might be I skipped those classes and did other stuff instead.
 
@R.MartinhoFernandes Maybe he was reading VB and didn't know it
 
@sehe I guess my high school IT stuff didn't suck for it's time... it was after all the eary 80's
 
@Prætorian Yeah. Or some COM shit.
(Which VB also happens to be, but well.)
 
@R.MartinhoFernandes VT_DOUBLE, VT_CURRENCY and stuff. Oh joy. COleStr COleVariant IIRC
 
3:40 PM
COM has a type for currency??
 
@sehe Please refrain from reminding me.
 
@Prætorian "Decimal" nowadays
 
Is there a way to send private messages to people here on chat?
 
@JimNorton Nope
 
I think there is.
 
3:42 PM
I know you can invite a user into a chat room... and make the chat room private?
 
Pick two rooms, and assign Morse code unit values to each of them. Then invite the other to those rooms according to the message you're trying to send.
Not officially supported though.
@JimNorton No, everything here is public.
(Modulo the stupid idea I had above)
 
I have the sneaking suspicion someone has been trying to increase my rep. Too many residuals on 'badge'-ing answers really
Not that I mind, but it doesn't actually make much of a difference :) I'd rather get some more exposure to my most recent ~5 answers...
 
If I make a comment about trying to not take things personally here, will you folks star it so others can see it on the starboard throughout today?
 
I might perhaps pin it. Make it good :)
No promises
 
@sehe Ok
Everybody, I've realized that in this room one shouldn't take things personally. I've reacted poorly on multiple occasions because I hadn't yet learned that lesson. Please accept my apologies.
13
How does that look @sehe?
 
3:47 PM
Wise
 
Thank you.
 
@sehe I studied in CS, ya know.
@JimNorton Hell, it's about time.
 
@EtiennedeMartel Yeah, I didn't, which is why I keep forgetting that you can actually 'have class' in things like that.
Just say: thanks, no worries?
 
@R.MartinhoFernandes Well, that would have been nice to have a few months ago.
 
3:51 PM
13 mins ago, by R. Martinho Fernandes
@sehe Oooh, time machines.
 
@sehe I'M MAD.
 
@EtiennedeMartel Yes it is.....
I really do enjoy chatting with you folks, but I don't want to continue to be an annoyance and I just realized the main problem... and I'm going to correct it.
 
@EtiennedeMartel Ah well. Like my mom used to say: If you get worked up, you'll just have more work (you'll have to come down again as well).
 
@sehe Or I could get drunk.
 
You're too predictable.
 
3:54 PM
You say that because you stalk me.
 
Whatever boasts your float
4
 
We could use more like you for the revolution.
 
Wait, let me get my flamethrower.
 
@R.MartinhoFernandes twitter.com/CompSciFact I guess
 
4:12 PM
good afternoon
 
Hey how can i implement a linked list with multiple type classes
which derive from a single class ?
 
Not sure what that means.
Ah.
 
(o_O) ?
 
boost::ptr_list
 
thats it ?
erm i wanna learn it :-/
 
4:15 PM
ah
you know how a regular linked list works?
do you*
 
yes
 
@Abhishek Well then, it's just like a normal linked list with two differences: you store pointers to the base class in the nodes, and you need to handle the lifetime yourself.
Or store unique_ptrs.
Preferably the latter.
 
hmm unique_ptrs
you mean one pointer for each type of derived class ?
 
No, I mean unique_ptr<Base>.
 
oh now makes sense :-)
 
4:21 PM
They handle the lifetime issues for free.
 
Hi guy's I'm having difficulty understanding a snippet from one of the code examples in C++ T-TCG or Vandevoorde
`const_cast<Trule<T>&>(t).ptr`

From http://www.josuttis.com/tmplbook/pointers/trule.hpp.html
 
Just make sure Base has a virtual destructor, as usual.
 
Thanks :-)
 
Personally, I'd store value_ptrs, but those are not in the standard :P
@Olumide What about it?
 
propose them
 
4:23 PM
@bamboon There is a proposal already.
 
Since t is already a const why is it a const cast applied to it?
 
@Olumide it's casting away const from a const reference, giving a non-const reference
 
@R.MartinhoFernandes oh ok, is there one in boost?
 
@Olumide To get a non-const reference.
 
@Olumide const_cast can remove const as well as add it
also volatile
 
4:24 PM
@bamboon I didn't find one. I implemented it myself.
 
It can?
 
What is the const promise worth if you can remove it?
 
Talk about overloading
@nightcracker +10000
 
mutable I understand, but removing const seems wrong.
 
Yes, I'd use mutable instead.
 
4:25 PM
oh well, dinner time
 
const_cast can't cheat, btw. If something is const, all you manage to do is get UB if you try to cheat through const_cast.
 
@R.MartinhoFernandes yeah yeah, I know about yours, but I was just wondering
 
Well then I've got to read about const_cast
 
@nightcracker C++ gives you enough rope to blow your foot off.
 
@nightcracker Basically, just don't use Machiavelli code.
You can't const_cast accidentally, so it's not a big problem.
It's only a problem if you try to make it one.
const_cast is for using broken APIs that fail to advertise constness correctly.
 
Ell
4:32 PM
@R.MartinhoFernandes what is a value_ptr<> again?
 
Xeo
@Ell Deep-copying smart pointer
 
@Ell A smart pointer that acts as a value of the pointed-to type.
 
Xeo
basically a unique_ptr that is copyable and does a deep-copy while that
 
Copying a value_ptr makes a copy of the pointee. And preferably it supports virtual copying idioms to avoid slicing :)
 
Ell
Ahh yes
 
4:34 PM
Basically, it fixes what's wrong with Base b = Derived{};.
 
Ell
@R.MartinhoFernandes "preferably"? Surely it will be required :L else it is not nearly as useful
 
@Ell Yeah.
Otherwise it would be worthless because T would do the same job.
 
Xeo
except T lives on the stack
 
@Xeo Why would you want otherwise?
 
Xeo
huge objects
 
4:35 PM
I don't see the gain.
 
@R.MartinhoFernandes How do you do that ... avoiding slicing? How can value_ptr know it is holding a Base * to Derived?
 
Xeo
stack space is much more limited
 
Oh, to avoid stack overflow?
:S
@Prætorian std::is_polymorphic.
 
Xeo
and then SFINAEing for the used name for the copy operation.. copy clone
 
And a pre-established virtual copying protocol.
 
4:36 PM
@R.MartinhoFernandes Cool, didn't know that existed
 
Ell
wait the pointee of value_ptr<> is held on the stack? how is that?
 
Xeo
@Ell No, T is
 
Ell
so value_ptr<T> the T is on the stack, and all the extra stuff is in the heap?
 
Xeo
4:38 PM
no
T var; vs value_ptr<T> vp(new T());
 
Ell
ohhhhh sorry I thought you meant you still slice the object, but you keep all the sliced stuff on the heap. somehow.
 
@R.MartinhoFernandes so if T is polymorphic, you require a clone member function to be implemented, if not polymorphic call the copy constructor?
 
Yes.
If you want some other copying protocol, you can provide a custom cloner.
@Prætorian Oh, except there's no "polymorphic call to copy ctors".
If it's polymorphic and has no clone, I just fail compilation.
 
Xeo
@R.MartinhoFernandes I'd probably offer adaption by relying on ADL and calling unqualified value_ptr_clone(p) or something
 
@R.MartinhoFernandes Yeah I saw the static_assert
 
Xeo
4:47 PM
Hmm, of course not so great when you don't have access to the namespace T resides in...
 
@Xeo If you use a custom cloner it doesn't fail.
 
Xeo
Ah, policy works too of course
 
It only fails if it's polymorphic and the default cloner is the copy ctor.
 
Xeo
> vector<B> fmap(function<B(A)> f, vector<A> as)
 
What you need is virtual T( T const& )
 
Xeo
4:48 PM
that's not idiomatic C++, should take F f :/
@Prætorian no, really.
The target doesn't know what the other object really is
the only one that knows is the source
 
Yeah, but if the base could have a virtual copy constructor the call could be dispatched to the derived class
 
Xeo
Reminds me.. does explicit virtual operator Base*() const work?
 
@Xeo Ewwwww.
 
Xeo
What?
I just asked if that would work, not if it's pretty xD
 
good morning/afternoon/evening everyone :)
 
4:55 PM
-1
Q: jQuery-Validation-Engine installation

user1532444I am trying to find someone who I can pay to install and get the jQuery-Validation-Engine working. I am not very good with JS I am more of a backend programmer. I don't think it makes sense for me to struggle getting it installed if someone can do it for me. Let me know please. Thank you!

 
Damn was just about to leave a comment when this got deleted:
 
Is that a legitimate question. He is looking to hire someone to do an install...
 
I've just noticed that every profile I've viewed thus far has an age range from 25-50. You guys are all old cunts. :P
 
@JimNorton Already closed by a mod
 

« first day (640 days earlier)      last day (4298 days later) »