« first day (361 days earlier)      last day (4593 days later) » 

9:02 PM
hi
what's new?
 
a char[256]?
 
@TonyTheLion A C++ keyword?
 
oh damn
I'm never gonna learn, am I
 
A misspelling of the name of a greek letter (ν)
 
lol
I'm bored
 
9:05 PM
@TonyTheLion Hi bored, I'm Jerry. Nice to meet you.
 
anyone read any interesting articles or something of late?
 
@The greek letter you are thinking of (v) is actually the speed
 
@JerryCoffin heheh you're funny :)
 
@TonyTheLion Thanks. I'll be here all week. Don't forget to tip your waitress.
 
There are waitresses?
Are they intellectually interesting?
 
9:06 PM
@JerryCoffin lol, we don't tip in Europe, remember? That's US thing
 
@TonyTheLion I liked this article for about 15 minutes.
 
@RMartinhoFernandes I hope so, I'm in need of some hot women :P
 
@TonyTheLion You don't tip hot waitresses?
 
@CaptainGiraffe Service charges are included in the bill in EU, so no, of course everyone is free to give something extra. But AFAIK it's not commonly done
 
@TonyTheLion I didn't say you had to do it, just that you had to remember. But if they hot enough, do it anyway -- they might mistake you for an American, and talk to you for a while thinking it'll get an even better tip.
 
9:08 PM
Still my query remains; You don't tip hot waitresses?
 
No.
Also, all you guys think of is looks. I'm disappointed.
 
@JerryCoffin hahah. I almost got myself in trouble a few times when I was in LA, because I forgot to tip or didn't tip enough
 
I could never remember something silly like this.
 
@CaptainGiraffe why would I tell you what I do with hot waitresses :P
 
And you're supposed to calculate it yourself, what am I, a robot?
 
9:09 PM
@RMartinhoFernandes no I don't just think of looks, I think of vaginas too :P
 
@CatPlusPlus normally, IIRC, you tip about double the tax
@RMartinhoFernandes that's a dot.
 
@RMartinhoFernandes "Also, all you guys think of is looks. I'm disappointed." My main attraction point is; Has she heard a 2400 baud modem connect =)
 
I know the tax amount exactly once a year.
 
9:10 PM
@CaptainGiraffe You mean "Is she old?"?
 
@CatPlusPlus silly, it says it on the bill, when you go to a restaurant, in the USA that is
 
Hey, I used two question marks.
 
@RMartinhoFernandes No, just the modem thing =)
 
pedants you are
 
@RMartinhoFernandes A witch!
@TonyTheLion Yeah, but why can't they put the tip there as well.
Silly Americans.
 
9:11 PM
@CaptainGiraffe If you're going to piddle with modem-based qualifications, why not: "can she whistle into the phone and get a 300 baud modem to think it's connected?"
 
Why can't I pay only for what I used?
 
@CatPlusPlus don't ask me, ask an American
 
@CatPlusPlus Sometimes they do -- but usually only if the party more than than, say, five people.
 
@JerryCoffin What is the phone doing there? We are modern
 
@CaptainGiraffe 2400 BPS is modern? Wow!
 
9:13 PM
My point exactly.
I'm going to post some uglies.
Beware.
0
Q: decltype acting inconsistent when used in conjunction with conditional operator

user992113While studying some of the new C++11 features, I observed some strangeness related to the new decltype keyword and its interaction with the conditional operator. I was very surprised to see the output of the following program: #include <iostream> #include <map> int main(void) { ...

 
My brain is sort-of not functioning.
 
@JerryCoffin Well, no. Modern would be my subscription for the last 3 years, 100/100 Mbps for 4 euros a month.
 
Where are you stealing that from?
 
@RMartinhoFernandes Sweden is kinda awsome
 
Who likes fat people?
0
Q: Throwing the fattest people off of an overloaded airplane. (C++, parial_sort)

IvyMikeLet's say you've got an airplane, and it is low on fuel. Unless the plane drops 3000 pounds of passenger weight, it will not be able to reach the next airport. To save the maximum number of lives, we would like to throw the heaviest people off of the plane first. And oh yeah, there are milli...

 
9:16 PM
that question deserves a +1 for the analogy!
 
experts-exchange being weird again.
Looks like the scroll down to view answers was a bug?
 
Toll logged in.
 
Is there anything in that page that isn't some sort of legalese?
 
@RMartinhoFernandes prob not, since it's a page about legal matters
 
9:20 PM
not reddit
 
TL;DR is that "The cease-and-desist or legal threat you requested is not yet available."
 
Ok, what does that mean?
 
The entire page is boilerplate explanation of what CE is about.
 
What's CE?
 
@RMartinhoFernandes Crap I just had to proffer an unnecessary solution.
 
9:21 PM
The page merely states that the actual notice isn't available, then continues to explain that there is a safety measure for websites (especially useful for web-crawlers) to protect against lawsuits in the case of accidental copy write infringement.
 
Chilling Effects.
Pay attention, dammit!
 
My head hurts.
 
@CatPlusPlus Relax, dammit!
2
 
I can't, dammit!
 
4 hours ago, by R. Martinho Fernandes
I'm having a terrible headache.
 
9:22 PM
Derping around is my job!
 
Basically, if an automated site accidentally makes available protected data from a website. The owner of the data MUST submit a cease and desist notice before attempting to sue. If the automated site owner implements a system to remove such data in a timely manner, they are protected from lawsuits.
Basically, Google's crawler somehow stumbled into and returned protected data, EE asked them to remove it.
 
inline Vec2 &
Vec2 :: operator += (const Vec2 &v)
{
this->x = this->x + v.x;
this->y = this->y + v.y;

return this;
}
Isn't it the instance itself you are supposed to return?
How do you return a reference to yourself
 
*this
 
Yet again, EE is viciously protective of hiding the true nature of their scam.
 
@ManofOneWay Normally return *this;
 
9:25 PM
Who cares about EE.
 
I thought this was a reference
 
this should have been T&.
 
They've been obsoleted a long time ago.
 
@ManofOneWay It's a pointer. That's why you use ->.
 
@ManofOneWay No -- this was added to C++ well before references were, so it's a pointer.
 
9:26 PM
@RMartinhoFernandes True..
 
Also, you don't need this-> here.
 
Thanks guys
that's also true
 
Or inline.
 
but isn't it good for being clear?
 
Not really, no.
 
9:26 PM
consistency
since sometimes you pass in x,y
maybe
 
@CatPlusPlus How do you know inline is not needed?
 
in some functions
 
@RMartinhoFernandes He mention implementation files earlier, and defines outside of the class.
 
Besides, even if it were inside, it wouldn't be needed.
 
9:27 PM
Reading more, the provision also protects ISPs from users that infringe Copy Write protection.
 
inline is mostly useful for trolling ODR.
 
Community Wiki protection?
 
@CatPlusPlus That's the point. It's so laughable. EE is ridiculous trash, and yet they protect that trash fiercely.
 
@Xaade You don't know DMCA?
 
@CatPlusPlus I'm learning it now.
 
9:29 PM
Every business protects their trash fiercely.
Doesn't mean we have to care about them.
 
CW = Copywrong?
 
Copywang.
 
@Xaade Their business plan consists (in its entirety, apparently) of exercising extreme care in hiding how badly they suck.
 
Vec2& Vec2::operator+=(const Vec2& other) {
    x += other.x;
    y += other.y;
    return *this;
}
In any case.
Also use Boost.Operators, you'll get operator+ for free.
 
Wrong.
Vec2& Vec2::operator+=(Vec2 const& other) {
    x += other.x;
    y += other.y;
    return *this;
}
Better.
 
9:31 PM
No way in hell.
 
So guys, time to tell me what's awful, ideone.com/W9hQw
 
@CatPlusPlus You mentioned I don't have to use inline?
 
On which functions? All of them?
Isn't inline a good thing?
 
9:33 PM
No need to make floats const.
 
And as I said, you don't have to write all those arithmetic operators when you already have assignment variants and use Boost.Operators.
 
inline isn't needed on any of those functions
 
explicit is pointless for the default constructor
 
@RMartinhoFernandes Okey, I'll remove it
 
inline has little use outside of enabling One Definition Rule violations.
 
9:34 PM
@Praetorian True
 
Compilers are doing heuristics for inlining anyway.
 
inline is used to tell the compiler that it may, at it's own discretion inline the function if it is befitting.
 
GCC disregards inline hints completely AFAIR.
 
But isn't it good then to have inline just in case?
 
no
no need
 
9:35 PM
No need.
Besides you'd have to define it where inline is used for it to matter.
 
@ManofOneWay Why are you returning const float from the dot product function?
 
@Praetorian I have const on every float
 
Dot product is a number. Cross product is a vector.
 
But I'll remove it
 
@ManofOneWay you should look up what const is used for. you don't just wack it on every variable you feel like
it has very specific uses
 
9:37 PM
@CatPlusPlus No, they're both operations.
I think I'm being way too pedant now.
 
@RMartinhoFernandes Product is a noun, too.
 
@RMartinhoFernandes oh, noes, a pedant in our midst
 
Wait, that didn't make any sense.
Nevermind, carry on.
 
lulz
woot, my video is downloading :)
 
@TonyTheLion Yes, slap const everywhere you can!
 
9:38 PM
If it's yours, why do you have to download it?
[philosoraptor]
 
It's pointless in floats though.
 
@CatPlusPlus Clooooooouuuuuuuuuuuuuuuuuuuuuuuuuuuuud!
 
@RMartinhoFernandes yea when it's appropriate
 
@CatPlusPlus Cloud storage?
 
it's NOT my video, but I'm still downloading it
I don't make video's
 
9:39 PM
You're copywronging it?
 
cause I suck
 
speaking of cloud storage, anyone want a google music invite? I've got a couple more to give out
 
const all the things!
 
lol it's from Channel 9
 
I still like copywang better. As a word.
 
9:40 PM
copyweed
 
Copyritual!
 
@CatPlusPlus Edit save.
 
copy ALL THE THINGS
 
@LucDanton There's no W there.
 
Copydown.
 
9:41 PM
I don't usually copy things, but when I do, I copy ALL THE THINGS.
 
Copynorth.
 
copysouth
copylulz
 
@RMartinhoFernandes Well 'copywritual' wouldn't make sense as a pun, would it?
 
hahah
 
9:42 PM
Wait, why does it have to have W in it?
 
cuz we love W
CopyWriting
 
@RMartinhoFernandes What is?
 
We're talking about copywriting?
Lol.
 
someone downvoted the fat people question!
4
Q: Throwing the fattest people off of an overloaded airplane. (C++, partial_sort)

IvyMikeLet's say you've got an airplane, and it is low on fuel. Unless the plane drops 3000 pounds of passenger weight, it will not be able to reach the next airport. To save the maximum number of lives, we would like to throw the heaviest people off of the plane first. And oh yeah, there are milli...

 
9:42 PM
@RMartinhoFernandes But be careful: if you try to slap it on the butt, it's boyfriend is going to come after you, and he's big!
 
Copywriting is the use of words and ideas to promote a person, business, opinion or idea. Although the word copy may be applied to any content intended for printing (as in the body of a newspaper article or book), the term copywriter is generally limited to promotional situations, regardless of the medium (as in advertisements for print, television, radio or other media). The word copywriting is regularly used as a noun or gerund. The purpose of marketing copy, or promotional text, is to persuade the reader, listener or viewer to act—for example, to buy a product or subscribe to a...
 
const? But I hardly know her.
I thought we were talking about copyright.
 
Why are you slapping her butt then?
 
I saw a mosquito there.
 
huh? what have mosquito's to do with any of this?
 
9:44 PM
@CatPlusPlus Keep practicing saying that until you get really convincing, just in case you ever get married.
 
Try to keep up, will you.
 
@TonyTheLion If you see a mosquito on a girl's butt, you slap it.
 
@TonyTheLion They're a constant annoyance.
 
My sentences are getting less and less comprehensible.
And I'm not even drunk.
 
oh I see
maybe I've got dumber of late
@CatPlusPlus high?
 
9:45 PM
Never.
 
Why did I use "in"?
 
just checking
@RMartinhoFernandes cause you're a perv
and you dream of getting in a girls butt
 
There are different fetishes, we won't judge.
 
lulz
I was gonna say something
but perhaps
I better keep it shut
 
@CatPlusPlus Don't bet on that. I used to go to a bar with a sign that said something like: "Sexual harassment will not be prosecuted -- but will be judged on a scale of 1 to 10."
 
9:48 PM
No, say it!
 
@TonyTheLion Or it might degrade the quality of this conversation? :P
 
@Praetorian Yeah, right!
 
I was gonna say I was reading a thread on reddit about anal sex earlier
 
Wait, what quality are guys you talking about now?
 
butt....
wait wut?
lemme find it
 
9:50 PM
Find what? The mosquito?
 
@TonyTheLion It's on /r/sex like, every other day.
 
this ^
@CatPlusPlus yea I know
but this one was on r/AskReddit, which I browse more then r/sex
 
About bars.
A horse walks into a bar. Several people see the potential danger of the situation, get up, and leave.
 
Someone there claims to regularly have anal sex with StackOverflow.
 
Cue ban.
 
9:53 PM
@RMartinhoFernandes LOL :P
 
:.
My will is weak.
 
@CatPlusPlus got worried you might get in trouble for saying that?
 
Saying what?
 
"(removed)"
 
Nah, I have to get back to coding before my brain shuts down completely.
 
9:56 PM
oh lol
 
Time to get some sleep
Good night guys
 
I've changed my vim colourscheme!
 
What do you use now?
I have no idea which one I'm using.
 
I've started from icansee and modified quite a bit.
" Vim color file tailored legibility on black background.
"
" Maintainer:   John Rhee  <jrhee75@gmail.com>
" Last Change:  2005/10/18      v0.1

hi clear
set background=dark
if exists("syntax_on")
        syntax reset
endif
let g:colors_name = "icansee"

hi Comment      guifg=DarkGray
hi Constant     guifg=Cyan                      gui=NONE
hi Cursor       guifg=Black      guibg=fg
hi CursorColumn                  guibg=#202020
hi CursorLine                    guibg=#202020
hi Directory    guifg=Cyan
 
Pastebin, man.
 
10:02 PM
Meh.
 
Hmm, too vibrant for me.
 
@ManofOneWay G'night.
 
Apparently I'm using a modified version of "zenburn".
 
10:25 PM
How do I test the scheme? Tried both :so % and putting it in a file in .vim/colors but to no avail.
 
@StackedCrooked interesting that Yuki chose to have Someone Else sing the song. that's not common, is it?
hum, "we dance for the idiots" -- "in the land of twilight"?
 
@LucDanton :colorscheme name
 
The trick was adding a .vim extension I think.
Is the background intended to be blacker than black?
 
No, it's black.
 
I think I get why the (original) scheme is called 'icansee'. Icansee indeed.
 
10:40 PM
1
Q: Object Managment - Container or Factory?

wtfsvenI'm nearing the end of a introductory game programming class, and would like to combine the skills I learned in class with my previous OOP experience to create a small library for making 2D games. My current concern, though, it the best way to manage collections of instances of my classes. The ...

I think I'll give up on this whole "don't use pointers unless necessary, and don't use char* ever" thing, lately I've been repeating that for every bloody question.
3
 
@CatPlusPlus I've said it before, but I stick to these days.
 
@CatPlusPlus I detest those game programming classes, they never teach programming.
3
It is way too common that one idiot teacher found a neat example in sdl GL, dx what have you.
and they want to make a course out of it.
 
11:14 PM
2
Q: how to prohibit other developers to #include a third party header in C++

MakakoSo there is third-party library that has a header file you need to include in order to use it. Since the implementation of the library is not object oriented I wrote a Class to encapsulate all usage of the library, so in case it needs to be replaced I can just modify the implementation of that ...

Sigh.
 
grep 'some_header.h' include/ src/ -R so hard?
 
You forgot the "HEY YOU STUPID FREAKS! I TOLD YOU THIS WAS NOT TO BE USED DIRECTLY! YOU DO THAT AGAIN AND YOU'RE FIRED." part.
 
@RMartinhoFernandes that's the FAQ's recommendation. it's almost always a good idea to check the FAQ before asking a question.
 
@AlfPSteinbach You mean the C++ FAQ?
 
@AlfPSteinbach huh, the guitar solo was all wrong notes
@RMartinhoFernandes yes
 
11:58 PM
"Hey I want to support Windows and Linux, but I don't want to use a cross-platform library"
0
Q: How to create custom skin like WinAmp

user992446I guess this question has been ask before, but I have not found sufficient answer to even start poking around. Most answer refers to catching WM_PAINT method directly and do custom rendering, or use a onwer draw object. However, I did not see a centralized place that has the info. to start resear...

 

« first day (361 days earlier)      last day (4593 days later) »