« first day (620 days earlier)      last day (4346 days later) » 

9:00 AM
@Dolanor Did they really?
 
Oh, right, there was something about that.
 
My internship master is mad at me cause I use int const& instead of const int&. Should I burn him?
 
I don't get these guys with huge reputations, it's such a brute force. Rep/answers ratio is brutally low. Write two good answers, but write them with love.
 
What's wrong with const int&?
 
@jalf So in order to prove that basic *should* be extended to do anything and everything, you extend my metaphor in a nonsensical way
 
9:02 AM
Can we just go back to hating Java?
It's so much easier.
 
@Cicada No. At least wait until you can get away with it.
 
@Neil No, in order to point out that doing so is not equivalent to "making a gourmet meal from peanut butter and jelly sandwiches"
 
Microsoft Digital Social Feed 2012 Personal Edition SP2®?
 
I'm merely commenting on what you said. I'm sorry if that's unexpected
 
9:04 AM
@Maxpm It's not int const&.
 
There's no functional difference, is there? It sounds like the internship master has a style that he wants to enforce, and that's fine.
 
@Maxpm Well, a reference is bound and cannot/shouldn't change by definition (kisses to Microsoft), it is an alias. int const& does the same, the proper way.
 
Fine, you're in disagreement with that metaphor, good for you
 
@Maxpm const int& is not scalable.
 
@RMartinhoFernandes How so?
 
9:07 AM
@DomagojPandža the answers written with love often get less upvotes than the one that just happened to say the right thing at the right time
 
quick question, if you have an array of chars, what's a simple way to print them out to std::cout as a sequence of hex values?
 
Usually, the right thing in the right time doesn't require you writing +20k answers for a meager 450k reputation (when ratio is considered).
 
@Maxpm Given T = int&, const T is not const int&.
 
@DomagojPandža Mr Skeet has 450k now then? :)
 
@jalf std::hex + cast to int?
 
9:09 AM
@RMartinhoFernandes In a template?
 
guess I have to do that for each individual byte then. I was hoping there was a nicer way
 
@DomagojPandža Please detail "proper way"
 
I don't like where this is going.
 
@Cicada Defer to robot, template wankery.
 
9:11 AM
Apr 11 at 17:54, by R. Martinho Fernandes
std::do_what_i_want(std::guess_the_arguments_while_you_are_at_it());
 
@thecoshman FTFY
 
@Maxpm Happens for typedefs too.
 
@Flexo Yup, a whooping average of ~20 rep per answer. Would've been impressive had it been a quarter of the total amount of answers. This way, it just feels like way too much time on SO.
 
5 minutes is way too much time on SO.
 
9:14 AM
Meh.
 
It's a terrible, terrible place.
 
Hello all
 
o/
 
ShitOverflow™ (courtesy of Cat++ Inc.) is full of shitty code, shitty attitudes, shattered egos and lousy coding practices.
6
 
@Maxpm Thanks for the wave
 
9:16 AM
And the best C++ lounge on the planet, but that's a tale for another day.
 
@CatPlusPlus are you also in a "meh" mood
 
I'm always in a "meh" mood.
 
@DomagojPandža Tell me now daddy!
 
@DomagojPandža people complain he gets extra upvotes just because of his name. Don't forget though he gets rep capped pretty much every day so rep/answers is probably quite unfair
 
9:17 AM
I think I'm in love with Arch Linux.
 
(I also almost typed "meth mood".)
 
@Flexo Oh, Mr Skeet is quite nice, no doubt about it. It's just a general example.
 
Jon Skeet should make a new account and see if he still gains rep like that.
Maybe he already has.
Maybe he's among us.
Watching.
Waiting.
 
He is a nice guy you know
 
Answering shitty questions.
Answering with two accounts on SO would be like running a mining operations with 11 accounts in EVE. Weird, insane and a huge waste of time and effort.
 
9:20 AM
@Flexo It is quite unfair.
 
@sbi I have been quoted
 
Check his upvote/answer ratio.
 
You should talk to the guy. He's cool
 
But but
He believes in god
 
Butt.
 
9:21 AM
BEANS!
 
I am so confused.
 
To his defense, I haven't seen a good question in a month. Last guy with a DirectX question created objects in the render function and lost addresses around ~666 times a second to 900KB image files (lack of vsync) and asked what's wrong.
 
You should learn Haskell.
 
sbi
@JamesDyson Um. I was referring to @JamesMcNellis, who quoted @RMartinho. Sorry for the confusion.
 
@sbi No problem....:'( I though i was wanted... bahah
 
9:22 AM
And then he said thanks and forgot to tick it as an answer. Story of my life.
 
I should learn Haskell.
 
I'll start reading Learn You a Haskell again tomorrow.
 
No, NOW.
 
@DomagojPandža they'll probably go back and tick it 6 months to a year later
 
9:23 AM
Hows my kitty?
 
N...now? But it's 5:22 AM and I'm just beginning to feel tired.
 
@Flexo They're more likely to never come back.
 
Learn language in n units of time - an expert guide to marketing books to idiots.
 
@Maxpm NAAAAAAAAAAO.
 
@CatPlusPlus MEEEEEEWWWWOOO
 
9:24 AM
@CatPlusPlus I have a list of cool languages to learn. Why does Haskell get special 5:22 AM treatment?
 
@CatPlusPlus I've had loads that got accepted ages after it was asked/answered
 
@Maxpm Because it's that awesome.
Do I have to post my chart again.
 
@CatPlusPlus What is it?
 
@Maxpm Do it for the lols.
 
I want to see this chart.
 
9:25 AM
@DomagojPandža Lol I learnt a language. lol
 
@JamesDyson Well, it is the summer. Now is when I do stuff like this for fun.
@CatPlusPlus If I run Tesseract on that, do you think I'll be able to summon Cthulhu?
 
@Maxpm Summer! You must be of the other side. It bloody winter where I am
 
Only a badly drawn one.
 
in a permanent "meh" state of mind
 
9:27 AM
@JamesDyson I like winter. Cold is nice. But summer is when I'm off from school for the longest. :\
 
@CatPlusPlus NO JAVA DOES'NT EVEN DESERVE TO BE ON THE LIST!!
 
@sbi Now I have.
 
Off! Off!! Bad kitty
 
@JamesDyson Come on, DongML is on the list.
 
@CatPlusPlus JavaScript is better than C++? o_O
 
9:28 AM
@Maxpm I like the cold the most
 
Everything deserves to be there.
 
@Maxpm Yes.
 
@RMartinhoFernandes True, but its java.......Need I say more?
 
sbi
LIST ALL THE LANGUAGES!
 
C# inst a bad language
 
sbi
9:28 AM
Allegedly, the girl survived this. Amazing.
 
ECMAScript needs to go away. :(
 
@CatPlusPlus What's the one in the top-right, next to Erlang and above Haskell?
 
Factor.
 
@CatPlusPlus what about lua?
 
9:30 AM
@sbi What was this?
 
Added to my List.
 
sbi
@RMartinhoFernandes A tortoise?
 
I don't always NULL < -1 and NULL == 0, but when I do - it's PHP™ (Poop Hoarding Processor).
 
@RMartinhoFernandes Shark, nom nom nom\
 
9:31 AM
PHP Hoards Poop.
6
 
"I'll take down the stars for you, my love." - said SO chat and removed the true recursive acronym for PHP from the magic list.
 
@TonyTheLion <high pitched girlie voice>awe!
 
sbi
@DomagojPandža Oh, that you mean. Sorry, I was confusing this.
 
PHP Hoards Poop
|
PHP Hoards Poop.
|
PHP Hoards Poop.
|
PHP Hoards Poop. .... lol
 
@thecoshman Templates support whitespaces? :Đ
 
9:35 AM
It's Whitespace++.
 
@JamesDyson ಠ_ಠ
 
sbi
@RMartinhoFernandes He is feeding on our fringes.
 
heh
 
@thecoshman :p
Wouldn't it be great if terrorists were on facebook?
Mohammed has become a fan of Abu Hamza
 
They aren't?
 
9:40 AM
@JamesDyson they almost certainly already are
 
Facebook: Mohammed Abiim is now about to high jack an aeroplane
Al'Queda likes this
The Taliban posted on your wall: THIS REALLY WORKS! Put a bomb in 6 local schools and attach a strip of paper with the name of your true love on it to each. Make them go off at 9am and your true love will kiss you before midnight!
 
Also, not all terrorists are arab.
 
@RMartinhoFernandes more importantly, not all Arabs are terrorists
 
@jalf And everybody overlooks the damn reflectors that were put onto the damn rock in space with which we calculated the distance - and are still there.
 
@thecoshman Actually, no, that was not important here. He was misrepresenting the terrorist population.
 
9:42 AM
And the rest of the Apollo missions and LRO in 2009 from ESA which took pictures of the landing site.
 
@DomagojPandža Could have been done with bots.
 
@DomagojPandža in the face of undeniable evidence, you can only be stupid
 
Like Europe and Russia wouldn't like to publicly disgrace the US for lying.
 
@DomagojPandža ESA is in on the faking.
 
I'd like to offer people a ride to see whether it's really there.
If it is, I get to break their helmet.
Or shove them through an airlock.
 
9:44 AM
@DomagojPandža They'd say it was placed there by drones.
 
@RMartinhoFernandes I am more concerned about the implication that terrorists are always Arabian. Why don't we start saying the people who are sensible with money must be Jewish, or that people who don't like to waste electricity must be Amish?
 
@thecoshman So why did you express concern about arabs being always terrorists?
 
@RMartinhoFernandes such a rational conspiracy theory is a rare thing
 
@thecoshman Yes, I can rationalize insane crap. I'm that awesome.
 
@RMartinhoFernandes well, implying that terrorists are always Arabian is not that far off saying that all Arabians are terrorists.
 
9:47 AM
Deploying an antimatter warhead in the Middleeast would probably cripple the count of terrorists on the planet. So, yeah, it's not really just stereotypes.
 
@thecoshman In my mind, it is.
 
Ell
hi guys
 
@DomagojPandža whilst not really that active any more, the IRA where terrorists and there off shot organisations are active, though not that big. I'm fairly sure you could have called the KKK terrorists, though they where more in beatings then bombs. Neo Nazis are on a similar vein, again not so much with the bombing as just general terrorising of other people they did not like
@RMartinhoFernandes both are still unfounded racist views.
 
And, hate all you want, but the way the middle east treats women, religion and almost everything related to life - I find it retarded and worth forcefully rectifying.
It's not cultural, it's the lack there of.
 
8
Q: What's the motivation between having copy and direct initialization behave differently?

Luchian GrigoreSomewhat related to Why is copy constructor called instead of conversion constructor? There are two syntaxes for initialization, direct- and copy-initialization: A a(b); A a = b; I want to know the motivation for them having different defined behavior. For copy initialization, an extra copy ...

Looking for logic in C++. :v
 
9:51 AM
@DomagojPandža that is a separate issue to terrorism. And again, not ever Arab state consider women as badly as the tabloid would like you to believe. Yes there are some terrible things going on, but there are equal things going on in other countries.
 
Not all Arabs are Muslims either.
 
@CatPlusPlus A guy with ~50k rep just found about this? Well, nothing is sacred on this site, it seems.
 
@RMartinhoFernandes indeed, but do we really need to go and list all the stereotypes that are wrong and misguided?
 
@thecoshman I'm only mentioning them as they are showing up!
 
Ell
but a lot of arabs are muslims... right?
 
9:56 AM
Most, actually.
 
-1
A: What's the motivation between having copy and direct initialization behave differently?

madhairsilencemay be two ways of achieving something object.toString() and object+"" do the same work. Converting the object in to a String. ofcourse both are not safe , as they are prone to null pointer exception.

 
@RMartinhoFernandes are they? \waves
 
AHAHAHAHAHAHAHAHAH
 
Burn it, burn it with downpoos.
 
Gave the guy a +1, felt sorry for him. :D
 
Ell
9:58 AM
"+1; A beautiful answer, kind sir" :L
 
@DomagojPandža that's not how it works, stupid answer get downvoted
 
Just vote to delete.
 
Ell
are there any really obvious reasons to go for async network io over synchronous?
 
@RMartinhoFernandes I'm never sure on voting to delete stuff that is an answer but is wrong also
 
@Ell non blocking
@CatPlusPlus not sure if mistake ¬_¬ or being witty
 
10:02 AM
@Flexo That one answer is clearly talking about Java.
 
Ell
@thecoshman why does that bring significant advantage? also isn't that what distinguishes async from sync? (as in, definition wise?)
 
@Ell Because you pay for transistors.
And you don't pay for them to do nothing.
You pay for the privilege of whipping those transistors like slaves that do all your bidding.
 
@Ell sync means you wait for a packet to be received, and do nothing until you get it. with async, you set up something to sit there waiting for the packet, whilst you do other things. Think of a chat client, you need to be able to listen to messages from the server whilst also dealing with user input and also wanting to send messages to the server
 
Ell
yeah I suppose
 
AFAIK when dealing with low level sockets directly, you can only do it blocking, so need to wrap it up so that a separate thread can have a listener that sit there waiting for incoming data and notifies the main thread that there is data to be used.
 
Ell
10:07 AM
well if you are working low level, you can use select()
I'm using boost::asio though, where the async_stuff accept a callback function
 
@thecoshman Nah, use select.
 
ok, picture it this way, imagine being told to read a book, but you are being handed the words one at a time. reading it sync means you can't don anything else whilst waiting for the next word
@RMartinhoFernandes oh right, well I've done very little network programming, and what I have done is thumbing through with java. IIRC I found out I was doing things the hard way due to not knowing other wise :P
 
@thecoshman Were you the one not using nio and complaining about blocking?
I remember someone here did that.
 
@thecoshman and how about reading it asynchronously?
 
@RMartinhoFernandes :( yes'um
 
Ell
10:12 AM
@Peacelyk you read a word at a time with each eye while juggling several other books
 
@Peacelyk you effectively have someone else sit there and wait for the words. When there are words to read, he puts his hand in the air. You can what ever you want whilst and just check every so often for his hand in the air
 
That's a bad analogy man.
 
@Ell not really, that's more about having more than one connection. But yes, in order to read from more then one at a time, you need to do it async
 
Reading a book like that must be the worst way ever imaginable.
 
bob
If a delete[] a pointer p, can I use p again to allocate a new memory space with new[] ?
 
10:13 AM
@RMartinhoFernandes opposed to having to sit there and wait for each word to come at a time?
 
@thecoshman They're both terrible.
@bob Yes, but why would you?
 
@bob yes, and you don't even need to delete it first, but of course that will leak, just saying you don't have to
 
bob
@R.Martinho because I want to have a larger space for my pointer. What else could I have done ?
 
Ell
are floating point operations deterministic in c++ across platforms?
 
@bob Use std::vector, probably.
 
10:15 AM
@Ell IIRC, no. floating point is platform specific, so the same operation can return different results depends on the paltform
@bob that's not your root problem, that is the solution you are trying. It sounds like you want an array that can grow as you put more into it, so like @RMartinhoFernandes said, std::vector is probably your best bet
 
@sbi Oh, I thought it was related to the bus in the background. :S
 
bob
ok thanks
 
@RMartinhoFernandes care to provide a better one? maybe I am not understanding something my self
 
@thecoshman No, I think you understand correctly. But the analogy is poor because it's an incredibly contrived scenario.
 
@RMartinhoFernandes well, what does this 'select()' do?
 
Ell
10:21 AM
how about this, synchronous is filling up your beer at the tap and waiting until its full, asyncronous is turning the tap on, going and doing something else, and coming back to get your beer when its full
 
@thecoshman What mistake.
 
@CatPlusPlus I think my own :P 'downpoos'
 
@Ell well, sort of
Though, unless I have missed something, even with async you still need to have something to sit there and wait for data to come in, it's just that you are not stuck waiting for it, thus 'non blocking'
 
@thecoshman Tells you which of a series of sockets are ready for reading or writing.
 
Ell
10:24 AM
@thecoshman I think you are mixing up async/sync and multi/single threaded io
you can have async io even on a single thread, so there doesn't have to be something there to sit and wait for data
 
@RMartinhoFernandes but a socket it self will not automatically buffer the data for you will it? if data comes into a scoket, and you have not got a program bound and currently has something attempting to read from it, the data will just get dropped
 
Ell
I don't think so?
 
If you don't have a program, you don't have a socket.
 
If you have a socket, then you already have a connection and OS-level buffering.
 
10:27 AM
oh, so the 'select()' function tells you that the OS has read in packet for you that you can read and thus process
 
Something like that yeah. It's a pain to use though.
 
@CatPlusPlus you cat's do like to play with poo don't you ¬_¬7
 
select API is weird.
 
@RMartinhoFernandes so, just set up a new thread with a object that is in a blocking read and handles the buffering for you...
 
Multithreading is more pain than select.
 
Ell
10:28 AM
@thecoshman but then you would end up with the one thread per client thing, which is unscalable (I've heard)
 
@thecoshman That's still blocking, but multithreaded.
 
It's not webscale.
 
ah indeed
see, this is what happens when people learn theory through Java
 
It's scientifically proven that Java can give you boneitis.
 
Boost.Asio is better. And it will be even better when I stuff it with futures. Which I probably never will because I keep delaying that idea.
Ways to piss off the robot, part 3251: write "-ve" and "+ve" instead of "negative" and "positive".
 
Ell
10:34 AM
whats wrong with -ve and +ve?
 
@RMartinhoFernandes I'm +ve this will piss you off
 
Ell
+1
 
@RMartinhoFernandes What.
Who the hell does that.
 
@thecoshman hehe, nice one. It didn't get pissed off because it's funny and I have a module sense of humour.
@Ell Where should I start? Everything?
 
bob
I've declared a 'public static const bool test' in 'TestClass' but I can't access it from the outside with TestClass::test, what would be the way to achieve that ?
 
10:38 AM
@RMartinhoFernandes -ve
 
Ell
we used it throughout the entire of physics/chemistry GCSE :p
 
@bob you need to stop with X Y problems. You keep having problems with your attempted solution, and trying to solve that. What is the actual problem you are trying to solve in the first place
 
Ell
@bob are you talking in Java? you need public: \n static const bool test. Also have you included the header?
 
g++ increments g, and c++ increments c. — Domagoj Pandža 2 hours ago
sweet
 
2
A: C++ 'typedef' vs. 'using ... = ...'

R. Martinho FernandesNone. Really the answer is just that, Stack Overflow. Stop forcing me to write more.

 
10:40 AM
SO is like Viagra spam.
ENLARGE YOUR ANSWER NOW.
 
@RMartinhoFernandes I bet the punnyness was intended: you keep delaying the future :)
@CatPlusPlus What? Only males with erectile dysfunction use Stack Overflow?
 
bob
sorry. I'm just trying on my own first before giving up and asking you guys, and I like to show you I've tried. Anyway, my problem is simple, I just want a c++ way of having a #define test 1, so a static of some sort, that doesn't require the class to have an instance. But the class can't be static, it's used for something else and creating instances should be possible. Thanks
 
There's no such thing as static class.
 
@bob you mean something like MyClass::NumInstances() a static function that will (presumably) return the number of instances of this class?
 
Meh
 
Ell
10:43 AM
@sehe 'tis true :'(
 
I can't stop thinking of how much work a game engine like Unreal must be.
 
That much.
 
Just think of surround sound.
 
@RMartinhoFernandes don't you mean this much?
 
10:44 AM
| |
That much.
 
Ell
<-|->
that much (around the universe)
 
@CatPlusPlus that's a lot!
 
0
Q: Whats different in this code?

PepelacWhat different in this code at the typedef? I mean what different bewteen typedef A<B<T>::c> C; and typedef A<c> C; See line of code where placed commen. template <const char *N> struct A { static const char *p; }; template <class T> struct B { static c...

Find three differences!
Also my downpoo script has 549 installs.
 
@CatPlusPlus One line is commented. Yay! What did I win!?
 
10:51 AM
@Neil One third of a cookie.
 
@CatPlusPlus Cool, I can reuse the answer from the other one. For great efficiency.
 
Ell
my message passing thingy is feeling rather convoluted :s
 
awww shoot
 
just was told that I can’t release code I create in my free time under BSD license, it must be GPL3
2
IP law
 
Ell
10:54 AM
I have two types of messages, one, the control message - does things to do with the server's connections etc. and two, the game message - does things to do with the game (can be used either client or server side). Ugh it's all messed up :/
 
@KonradRudolph Can't be IP law. Freedom of speech. Unless you make it 'appear' that you publish it on behalf of some other entity (in which case 'in my free time' is irrelevant and misleading)
 
@KonradRudolph By free time, does that mean while you're working, or something else?
 
@sehe IP law coupled with my contract
@RMartinhoFernandes ^^ I meant spare time
 
@KonradRudolph Same difference. A contract cannot limit your constitutional rights, remember
 
@sehe It’s not freedom of speech though. And this is actually pretty default for contracts
 
10:55 AM
@KonradRudolph ouhhh
 
I just thought my contract didn’t contain such a clause, apparently I didn’t read it carefully enough
 
GPL V3?!
 
@KonradRudolph Insanity. It is not the default. If you go and hack on a php bulletin board project, there is no reason for it to change the license.
 
or rather, I misinterpreted the clause there
@Nils yes :/
 
maybe I would talk to a lawyer
 
10:56 AM
Wut. I'd never sign something like that.
 
@sehe It is the default – as long as the code you are working on relates to your employee’s field of work
 
Ell
what is so bad about gpl v3? I've heard that its "anti-microsoft" as opposed to "pro-open source" but I don't really know
 
I wonder where you are employed? FSF? :D
 
@KonradRudolph Wow. That is definitely not standard. But I can see it being standard in a research environment.
 
@Ell It’s a copyleft license. I.e. it dictates that everyone who modifies my code must use the same license
 
Ell
10:57 AM
which is bad...?
 
it's just restrictive
 
so assume you solve a few probs on projecteuler
 
Ell
right kk
 
it's math so related to you research :P
 
@sehe Dude, we had a discussion about this a while back on programmers. Every competent software & creativity company has a similar clause, otherwise they open themselves up for a whole lot of butthurt if a former employee goes on to make millions off a product that is surprisingly similar to theirs
 
10:58 AM
@Nils "related to the employee (? employer?) field of work"
 
@Nils You don't have to release code for that.
 
yeah but let's say you want
 
@KonradRudolph Wouldn't that be corporate espionage, or something like it?
@Nils Then the fact that it's for Project Euler is irrelevant.
 
@RMartinhoFernandes Yes, well, try to prove that as a company
 
@Ell it doesn't really give you full freedom. It's like me giving you a cookie, and saying all you can do with it is look at it and give it to some else, with the same clause. Something like boost is much more open, I give you a cookie, and say it's yours now, do WHAT EVER you want with it
 
10:59 AM
@RMartinhoFernandes $$$
 

« first day (620 days earlier)      last day (4346 days later) »