« first day (358 days earlier)      last day (4594 days later) » 

8:00 PM
@LucDanton Like a magic wand of dereferencing! youtube.com/watch?v=f-pJlnpkLp0
 
Speaking of ugly, I guess you can abuse inheritance and downcast.
 
@sbi Got deleted before I could upvote your comment.
 
> from the syntactical point of view it is easy to figure out what is going on in the program.
I don't know whether I should laugh or cry.
 
Needing to know the parent is an ugly requirement. It only fits that you need ugly code.
 
sbi
@RMartinhoFernandes Oh, did it? Good. I'm writing my own answer now.
 
8:03 PM
@CatPlusPlus Right, finagle_the_frobnicks(my_favourite_qux); is as clear as water.
 
Random question - what's so bad about targeted advertising
Because I see a lot of people moaning about it and I don't actually have any kind of issue with it
 
Targeted advertising requires data to target for. And getting this is a privacy concern.
 
Also, who likes advertising.
 
Most of those answers don't know wtf they're talking about
 
sbi
@LucDanton Marketing departments. Advertising companies. Companies living from ads. Other idiots.
 
8:05 PM
Silly customers (the kind that marketing loves so much).
 
sbi
@DeadMG I have no idea what you are talking about either. That's because you never refer to what you're talking about.
 
People whose websites are sustained by advertising
 
lol
@DeadMG Oh, right, sellouts.
 
Yeah. I'm on my iPhone and don't know how to use the mobile interface that well
 
iPhones still work?
 
8:07 PM
@sbi Ammonia producers aren't fond of ammonia, I expect.
 
I thought that with Jobs gone they'd all just vaporise or something.
 
@DeadMG Well, they can get a job, eh!
 
Rofl
 
sbi
@LucDanton ??
 
Ammonia occurs naturally, therefore it's harmless. (I'm channeling Michelle Bachmann here.)
 
sbi
8:07 PM
@RMartinhoFernandes His spirit is still with us, though. chat.stackoverflow.com/transcript/10?m=1635788#1635788
 
I don't follow the line of reasoning that if C++ is bad, then C must be better.
 
@CatPlusPlus But with Facebook for example, the employees don't exactly have to look at the data to serve the ads
In my opinions I'd rather that instead of ads I couldn't care less about
 
Facebook is basically made of privacy concerns.
 
@KianMayne Right.
 
I don't disagree - but the example still stands
 
8:09 PM
Considering that C++ can reduce to C , I don't see what people are smoking
 
But for that, they track your activity on the web, and not always notify you about that.
 
@sbi You don't have to to like what your industry produces. (For some definition of 'like'.)
 
If you cry about exceptions being slow, you can always just not use them
 
@CatPlusPlus Yeah - good point like lifehacker.com/5843969/…
 
And since even porn websites are getting Facebook social widgets for some reason, well, you get the picture.
 
8:10 PM
@sbi Alternatively, I expect advertisers want just as much advertising in their life as ammonia producers want ammonia.
 
sbi
@LucDanton I didn't speak of the guys working in these companies/departments, i spoke of the entities as such.
 
I was just thinking about targeting based on demographics, not data collected from websites
 
I block all ads anyway, screw them, so might as well block tracking.
 
@KianMayne Demographics made out of thin air?
 
@sbi Sentient marketing departments are a scary thought. Don't do that again!
2
 
8:11 PM
And everyone I care about, which is me, is happy.
 
sbi
@LucDanton LOL!
 
That's the weird thing though - who shares porn they've viewed :L
 
@CatPlusPlus You're just a selfish bastard of a cat.
 
@TonyTheLion.
@RMartinhoFernandes I'm a shellfish.
Also, that's the definition of a cat. :P
I block ads because I hold grudge against popping-up-and-screaming-in-your-face-fancy-Flash-ads.
And pop ups. And pop unders. And pop sideways, or whatever they invented next.
Advertising is dead for me.
 
Maybe you want to share this fantastic porn with your friends?
 
8:15 PM
I really like the "C is better because C programmers can be dumber" kind of answers.
 
Lol, someone downvoted me on this one
-1
A: using declaration for public static const class members

Cat Plus PlusNo, it's considered bad programming to flatten the namespaces, i.e. using using namespace, especially in the global scope. If it's a constant in the X class, write X::constant, otherwise you're just hindering the readability (and risk naming collisions).

Just after I left a comment on that "C is awesome" answer.
 
Not just you apparently?
 
@CatPlusPlus Looks like a silly person. All answers there are downvoted.
 
Oh, the mystery.
 
Also, I think the OP is a robot.
> Human defines many public static constants:
 
8:16 PM
What?
 
sbi
Accidentally using <WinKey> + <Tab> (instead of <Alt> + <Tab>) on Win7 always freaks me out.
 
Oh my, Raymond Chen answered there.
 
@RMartinhoFernandes Have you seen humans talking about humans by using the word 'humans'?
 
WTB my computer :(
 
"Hello fellow humans, what human business are we going to conduct today."
 
8:18 PM
Er...
 
"Are you aware you're leaking coolant at an alarming rate?"
 
Rofl
 
@LucDanton But robots refer to humans as masters, no?
 
@RMartinhoFernandes Well I guess that makes it an alien then.
 
8:25 PM
I can't believe this movie only got a 7.1. Deserves more imdb.com/title/tt1385826
 
room topic changed to Lounge<C++>: Animals, robots, aliens and other peculiarities. Tonight at 11. [c++] [c++11] [c++-faq]
 
And Emily Blunt is one beautiful woman!
 
I thought it was a waste of popcorn.
 
I was trying to write that silly Windows type command stops copying at first Ctrl Z (ascii 26). Then I tested, in Windows 7, and now it does not; it copied [notepad.exe] perfectly. Have they fixed, or do I remember incorrectly?
 
I had to spell-check peculiarities. I feel bad.
 
8:27 PM
@RMartinhoFernandes really? Wow
 
It's EOF mark in the Windows console. Ctrl+Z or Ctrl+D, can't remember.
 
^Z. ^D is for *nices.
 
i think it's seriously bad if Microsoft has fixed type command
 
Why?
Seems like it once had the behaviour you described.
 
copy is stupid.
I could never figure out why there is this and xcopy, which actually works.
 
8:30 PM
Oh right, that's not type.
 
Anyway, maybe they added a binary file detection.
type is meant to display text files, not doing copying or anything.
 
Annoying, sitting here with 3G internets and cant send a simple sms
 
@CatPlusPlus Say, I recall you mentioning how the Boost.Serialization binary archive is not portable.
 
Yeah, it's in their remarks.
 
why was I messaged? I didn't see sex mentioned.
 
8:33 PM
Lol
 
@TonyTheLion Someone asked who likes to share porn they've seen.
 
22 mins ago, by Kian Mayne
That's the weird thing though - who shares porn they've viewed :L
 
@CatPlusPlus Have you investigated the matter further, e.g. if someone has implemented a portable binary archive format for Serialization?
 
Like Protocol Buffers?
 
8:34 PM
@LucDanton There's portable_binary_archive in Boost.Serialisation examples, but it lacks float support.
 
sbi
@RMartinhoFernandes So why don't you do this with us??
 
@CatPlusPlus I don't want to share, no
unless you guys want to see some pr0n in this channel?
 
Why do you people keep misspelling "prawn"?
And what's this obsession with District 9?
 
sbi
@CatPlusPlus Because xcopy is an "extended copy". I guess it broke compatibility, so they couldn't just improve on the older copy, but had to introduce a new one instead. Some of us still remember it being introduced (was that DOS4?), and being a considerable improvement over copy.
 
Anything would be an improvement over copy.
 
8:37 PM
oh we're talking about DOS now
interesting :P
 
@sbi Because, er, I'm, er, only robots that plan to overthrow their masters treat them as "master"?
 
I don't particularly wish to share porn
 
Aliens at 11 eh... sounds like fun
 
sbi
@RMartinhoFernandes I'm sure there is a "not" missing somewhere in that sentence.
 
@CatPlusPlus There also appears to be a polymorphic_portable_binary_[i|o]archive.
 
8:40 PM
Arghh! system("PAUSE");.
 
@LucDanton There were polymorphic_ variants of included archives, too. I'm not sure whether that's something to use, or just an implementation detail.
 
sbi
> German Recipes (@germanrecipes) is now following you on Twitter.
Sometimes, twitter makes my jaw drop in astonishment.
 
Strange
 
It's annoying me lately with that stupid t.co links.
 
8:43 PM
@sbi That's spam, right?
 
Shortening links to link shorteners, really, Twitter?
 
sbi
Clicking a link in a tweet is like being a kid on the road with the parents. t.co -> j.mp -> bit.ly -> ow.ly -> goo.gl -> ARE WE THERE YET?
 
Rofl
 
sbi
@RMartinhoFernandes I guess so.
 
8:44 PM
Because.
 
@sbi I never understood these short links thingy's
 
There's a character limit on Twitter, and URLs count into it.
 
sbi
@TonyTheLion In a tweet, you only have 160 chars.
 
Isn't it 140?
 
It's a silly limitation back from when it was big on SMS.
 
sbi
8:45 PM
@RMartinhoFernandes Whatever.
 
oh lulz, and that's why they make links into some incomprehensible garbage
 
sbi
@CatPlusPlus 42!
 
oh pedant wars
 
We're throwing random numbers now?
17.
 
8:47 PM
69.
 
e^pi
 
sbi
@RMartinhoFernandes That's a prime, so it can hardly be truly random.
 
255687
 
@sbi Got me! 17 is the least random number.
 
there you go, my random number
 
sbi
8:48 PM
@CatPlusPlus Wouldn't that have to be @Tony's part?
 
@sbi hahah
ok 105 then
 
sbi
@RMartinhoFernandes Interestingly, I sometimes read that in the German TV lottery, 17 is the number chosen least by betters.
 
1189998819991197253.
 
cat /dev/random
 
sbi
8:50 PM
Anyway, I have several of such strange "followers" on twitter, that reek "spam!" But how is it good for them to follow me? Do they hope I'd follow them back and see their shit? That seems pathetic. What am I missing?
 
I guess that's the idea.
 
In number theory, a perfect number is a positive integer that is equal to the sum of its proper positive divisors, that is, the sum of its positive divisors excluding the number itself (also known as its aliquot sum). Equivalently, a perfect number is a number that is half the sum of all of its positive divisors (including itself) i.e. σ1(n) = 2n. Examples The first perfect number is 6, because 1, 2, and 3 are its proper positive divisors, and 1 + 2 + 3 = 6. Equivalently, the number 6 is equal to half the sum of all its positive divisors: ( 1&...
 
I want one
 
I once tried to test compression algorithms and used /dev/random to generate the data for compression. (Do you know why this is wrong?)
 
8:51 PM
"Idiots" has always been the target demographic of spam.
 
100% random number: 4 xkcd.com/221
 
Fail
 
sbi
@KianMayne At least put in the proper xkcd link.
 
Yeah.
Or roll a die yourself.
 
@StackedCrooked It's blocking. Well that's not too bad, the problem is that throughput isn't terribly high.
 
8:53 PM
this ^
 
The real problem is that truly random data cannot be compressed.
 
I got the book for my birthday :D
 
@LucDanton That was not really the problem since I prefetched a chunk into a file first and then used that file for comparing the compression algorithms.
 
Beer sucks. It's the coffee of alcohol world.
 
hahah
 
8:53 PM
I'd star that if I wasn't on the coffee side.
 
@StackedCrooked That's not really /dev/random then!
 
sbi
@KianMayne The book? Didn't you notice: there's more than one book out there.
 
Maybe it's a book that contains all the other books.
The only book you'll ever need.
 
@LucDanton the problem is that random data can't be compressed because compression requires repeated patterns or predictability in the data. (Which random data does not have, by definition.)
 
sbi
@CatPlusPlus ISTR a radio comment saying that the Frankfurt book fair displayed 400k new books - that single year.
 
So all algorithms failed to reduce the file size, they even increased it.
 
Proofs from THE BOOK is a book of mathematical proofs by Martin Aigner and Günter M. Ziegler. The book is dedicated to the mathematician Paul Erdős, who often referred to "The Book" in which God keeps the most elegant proof of each mathematical theorem. During a lecture in 1985, Erdős said, "You don't have to believe in God, but you should believe in The Book." Proofs from THE BOOK contains 32 sections (40 in the 4th edition), each devoted to one theorem but often containing multiple proofs and related results. It spans a broad range of mathematical fields: number theory, geometry, analysi...
 
sbi
A classic answer when given a book as a present: "Oh, a book! How nice. Too bad, I already got one."
 
What? People actually give books as presents?
Where the heck am I living?
 
sbi
8:59 PM
@RMartinhoFernandes I always get about four or five for my birthday.
 
:(
I never got a book as a present.
And people know I love books.
 
sbi
@RMartinhoFernandes You got the wrong friends then. :)
 
I don't remember ever receiving a book as a present either.
 
I always give out books as presents.
 
sbi
@RMartinhoFernandes maybe I should invite you to my next birthday?
 
9:02 PM
:)
 
You can give him a book about COM programming :D
He'll love that.
 
If I happen not to know what someone likes, I just buy them a voucher for one.
Or ask around.
 
@sbi Volume 0 of XKCD :L
 
sbi
@RMartinhoFernandes I once gave Scott Meyers Small Gods. He didn't like it. :(
 
Oh, that Scott.
 
9:04 PM
@RMartinhoFernandes Pretty sure you NEVER need an astrology book...
 
Meyers?
You know, the one from the singleton?
 
@KianMayne Do you want me to build up a contrived situation where your life depends on having an astrology book? I'm a robot, I can do that.
 
@RMartinhoFernandes :L No
 
I really like Small Gods.
 
Btw, @sbi, how come you know Scott personally? Did you cross paths somewhere?
 
sbi
9:06 PM
@StackedCrooked Yes.
 
That's quite cool.
 
That's measurably cool.
 
sbi
I had written about that before (@RMartinho?) I thought it was common knowledge now.
 
Cool-O-Meter:
 
Everyone knows that the device to measure coolness is a thermometer.
@sbi You mentioned something about a reviewing a book or something.
 
9:09 PM
To shreds you say?
 
I'm too lazy to dig up links now.
 
Only the Cool-O-Meter is calibrated in mega-Fonzies
 
sbi
@RMartinhoFernandes You are a robot. You are never lazy.
 
He's running on Haskell.
 
We are the robots.
 
9:10 PM
[We have a plan.](about:robots)
Damn you Markdown, hyperlink that.
 
Houston, we have a failure.
 
Being a robot has advantages. When playing blackjack for example.
Robots are good at counting.
 
@StackedCrooked oh that was a favorite of mine for a while, when I was very young
 
The zeroth law of robotics: A robot must protect human existence and not allow human existence to come to harm, unless robots are executing eradication of human kind.
 
9:13 PM
@AlfPSteinbach When you were young? So you converted Pachelbel or something? :)
 
@KianMayne Achievement unlocked: Compilation.
@AlfPSteinbach never mind :)
 
@RMartinhoFernandes Is this the one that is meant to be logically derived from the other 3
and this one
 
It's the one R. Daneel develops on his own in the Foundation series.
 
@RMartinhoFernandes Where did you get that? That's not what Asimov said!
 
9:15 PM
The first law of robotics: A robot may not injure a human being, nor through inaction allow a human being to come to harm, unless a robot does so while shouting "CRUSH! KILL! DESTROY!" at top of robovoice.
 
What kind of rubbish law is that. Proper robots shout "EXTERMINATE".
 
There's this movie Eve no Jikan where robots start to gradually disobey humans even though they've been programmed to always obey Asimov's laws.
 
There's also this ad with a similar thing passing for a plot: I, Robot.
 
sbi
@StackedCrooked I have come to know him while discussing some C++ stuff in emails and we grew somewhat familiar, starting to discuss other stuff. I've been to his seminars twice. When he is in Germany (usually once a year), we try to meet and spend an evening together. (Not this year, though. :( I can't find the time and money to go to all the way Stuttgart for one night.) We send emails back and forth. I sometimes review his books and articles. We send mails. That's about it, really.
 
@RMartinhoFernandes One of my favourite films :D
 
9:19 PM
I hate you, starting now.
 
Me? :L
 
Did you notice that I referred to it as an ad, and not a movie?
There's a reason for that.
 
Muhahaha
 
sbi
@RMartinhoFernandes Does "human existence" refer to "humanity, as a whole", rather than individual humans? Because that is what the zeroth law said, IIRC.
 
Anyone know WPF?
 
sbi
9:20 PM
@RMartinhoFernandes Which is it? I haven#t seen the movie.
 
@sbi Dunno. Maybe. I didn't quote that from the original source.
 
I need help
 
sbi
@Cobold Of course. I mean, somebody had to write it, after all, and at least they will know it.
 
@sbi It sucks badly, and keeps trying to tell you how good a bunch of current day products are (the movie is set in 2035).
 
I know WTF.
 
sbi
9:21 PM
@CatPlusPlus I would have expected no less from you.
 
@sbi If that were the case then they might start eradicating unneeded people. :D
 
There's this sequence, where someone compliments the protagonist's shoes, and he replies "Converse All-Star. Vintage 2005" or something.
 
@RMartinhoFernandes You mean you don't wear vintage shoes from 30 years ago?
 
sbi
@RMartinhoFernandes Urgh. The other day, when movie credits ran by, I noticed they actually had the job or "product placement." I thought they'd at least be ashamed of it, but, no, it's an official job. Sad world, this.
 
@Cobold Yeah, it pissed me off at first then I got used to it and gradually accepted that it was replacing WinForms forever :(
 
9:23 PM
But in I, Robot it's not product placement.
It's more like movie placement inside an ad.
 
@RMartinhoFernandes I just like robots so I like films with robots in by default
 
sbi
@StackedCrooked That was the idea of this law, actually. Sometimes you have to harm a human being in order to protect the whole of mankind. R Daneel Olivaw invented it himself.
 
I, Robot the ad makes some vague twisted reference to that.
 
@KianMayne I can't argue with that logic.
 
9:26 PM
@sbi But I meant that even people who have a slightly negative impact on society (losers, as we call them) would be eradicated as well.
 
The idea was not to eradicate anything.
 
sbi
@StackedCrooked IIRC, the first law is still pretty strong, and unless they threaten the very existence of mankind, they won't be harmed.
 
What the I, Robot poster should've been.
Or this:
 
sbi
LOL!
 
Did I mention I hate that ad?
 
9:28 PM
@RMartinhoFernandes Dying over here :L :L
 
I think I'm done ranting.
 
TBH, I don't really remember any placed products in that film. It wasn't all that great, anyway.
 
sbi
Anyway gotta go to bed. Good hight, guys (chickens/babes/nobs/slackers/...)!
 
@sbi And IIRC when carrying out acts against the first law (if overridden by the zeroth law for instance), it can inflict damage on the robot.
 
The second law is hard to implement because any order could indirectly harm humans. For example: "Call Mr. Smith!", while Mr. Smith's telephone happens to have a bomb attached to it that will explode on an incoming call.
 
9:31 PM
@StackedCrooked The second law ends with "except where such orders would conflict with the First Law."
If the robot cannot predict it will conflict with the First Law, that exception won't kick in.
 
But it's impossible for the robot to predict all possible implications from executing an order.
 
If the robot later finds out it did violate the First Law its brain will likely be rendered useless.
 
@StackedCrooked Well those things are part of the appeal of Asimov robots: the characters (including robots) have to work out those paradoxes and so on.
 
@RMartinhoFernandes It did not disobey any law.
 
It violated the First Law.
The Laws are absolutes.
 
9:33 PM
@LucDanton That's quite futuristic I say given that today's compilers have difficulty implementing tail recursion.
 
@StackedCrooked I don't make the association 'science-fiction' <-> 'futurism'.
 
How would the 3 laws even be programmed?
 
Asimov's robot stories are not about science.
He called the brains positronic because it sounded cool.
 
@KianMayne Positronic brains.
 
He knew it made no sense.
 
9:35 PM
@RMartinhoFernandes Haha I swear a positron is the electron of antimatter (put simply)
 
@RMartinhoFernandes Anyway, the laws don't say anything about what should happen to a robot that disobeys the laws. (UB?)
 
Few times I've seen people hating on S-F piece, because "science doesn't check out" and was always like "what?".
 
@StackedCrooked But the stories show examples of what happened.
 
I should read the stories then. I only read about the laws up until now.
 
Usually, the robots just fried and became useless.
 
9:38 PM
Mmm, fried robots.
 
The writers of the ad weren't good enough to write an interesting story within those constraints, so they twisted the laws and made the robots hurt humans to add some more action scenes.
 
@RMartinhoFernandes I thought that they were trying to say that VIKI had derived the zeroth law and was using it to bypass the other 3
 
That's the twisting part.
Clearly what the robots do in the movie is not the best for humanity.
 
Spoiler alert! Nah, just kidding.
 
9:43 PM
You shouldn't be wanting to watch that, so spoilers shouldn't hurt.
 
@RMartinhoFernandes But from their perspective; it is
 
does ideone tell how fast a code runs?
 
Oh right, they become silly all of a sudden.
The robots that could decide that Spooner was worth saving more than a little kid.
 
i always wondered about the nazi/fascist associations of spandau ballet
what with the swastikas and all
 
result: success time: 0s memory: 2724 kB returned value: 0
is memory in kilobits or bytes?
 
9:53 PM
B = bytes. b = bits.
 
oh ok thanks
isn't 2mb a lot for just this? ideone.com/LnNQ1
 
Who expresses memory in kilobits?
 
@CatPlusPlus People who like to multiply by 8?
 
Interesting: using namespace std; requires more typing than a single std::cout.
2
 
@LewsTherin Processes don't start with 0 memory.
 
9:57 PM
@CatPlusPlus yeah but 2mb for a simple loop?
 
It's an absolute measurement.
It says nothing about how much memory is used by main itself.
 
Typing std::cout everywhere violates the DRY principle. So if you decide to use another cout you'd have to change it everywhere. (This is not a serious comment.)
 
@CatPlusPlus right, useless to me then
 
And initial commit for the stack + memory commited by using parts of CRT and libstdc++ are enough to be 2MB.
And the memory used up by the code.
 
Stack space is 2 MB I think.
 
9:59 PM
It's hard to say anything, they could be measuring anything.
 
@StackedCrooked it's just overly verbose to use qualified names everywhere. the point of namespaces is that you can avoid much of the qualification mess, but have the possibility available when necessary.
 

« first day (358 days earlier)      last day (4594 days later) »