« first day (443 days earlier)      last day (4491 days later) » 

1:02 PM
@RMartinhoFernandes anyways, I am really qualified to write pointless code in C++03 already
 
hai
 
-1
A: c# xml serialization custom elementName

Anirudhay dnt u create d xml file urself..

 
1:18 PM
huh, can you override the conversion to a publicly inherited base class? The singleton guy says his singleton class defines a explicit operator T() in C++11 where T is the base class
 
not as far as I know
 
@jalf Doesn't help a thing though.
 
@RMartinhoFernandes what do you mean? It's legal, but has no effect?
 
It doesn't prevent a copy constructor base(base const&) from being picked.
GCC accepts it. I dunno if it should.
 
@RMartinhoFernandes but he made that nonpublic
 
1:25 PM
@jalf On the base class? No.
He made the derived class's copy constructor nonpublic.
 
ah, then I misunderstood him
 
The one from the base class, i.e., the one that slices, is still active.
 
oh right, he said earlier he didnt want the base class to be noncopyable
I can't decide if all that trickery is incredibly evil, or quite clever
ignoring the so-called singleton part, which is clearly evil
but also doesn't seem to actually be a singleton
 
It doesn't work, so I wouldn't say "clever" yet.
It needs to ripple through the code base and make everything take a Singleton<T>& and not a T& otherwise all the protection is lost.
And if you do that, it becomes untestable again.
It's a lose-lose proposition.
A vicious circle.
I'm going with "evil", because it takes away testability for protection against "accidental copies".
 
Regarding an Interface class. Is it ok to have some pointers declared, or should I just declare and define those pointers in the classes which implement the interface?
 
1:31 PM
what?
 
Abstract classes
 
More details.
 
it seems to me he's managed to define a class which retains the drawbacks of a singleton, loses the benefits singletons are usually claimed to have, requires C++11 and on top of it all, requires all users of the class to obfuscate their code, by taking a Singleton<T> any time you want a T
head asplode
 
See those pointers below? Or should I move them to the implementation?
 
1:32 PM
@Sidar www.pastebin.com
 
I know bro
But's short...So...Im lazy ...and then...
 
@Sidar You can't take member variables out of the class definition. But you might be interested in the pimpl idiom.
 
1 message moved to bin
 
what do you mean out of ?
 
pimpl is disgusting
 
1:33 PM
@DeadMG do you use TBB extensively?
 
I personally use PPL
but they're basically the same thing
 
@Sidar Oh, wait, I think I misunderstood.
 
My question is whether it's okai to have pointers declared in an abstract class. Or should I move them to the implementation ( so in other words all "shapes" will have their own declared pointers of type Color and Point )
 
@DeadMG ok, did you use openmp for some time?
 
no
TBB/PPL is definitely superior
 
1:35 PM
I think it's better to keep abstract classes without data members. That gives total flexibility to implementations.
 
@Sidar good, I'm lazy too. Anyone who makes other people's lives more difficult to save themselves a bit of effort go straight to my ignore list
If you want help from others, it's only fair that you do the work of presenting the question nicely
 
@DeadMG I think so, too but openmp is probably broader accepted and thus more portable
 
true, but it sucks and I don't need portability
so what do I care?
 
@jalf,
O no not the ignore list. I mean I didn't know it would be so troublesome to paste such a small piece of code. Please don't ignore me, I need your body!
 
If you both ask for help with something, and require your helpers to also wade through a ton of code posted somewhere where code shouldn't be, and where it is needlessly hard to read/get an overview of, then I have no interest in helping you
 
1:36 PM
"ton of code"
What
 
more than about four lines is too big for here
 
I didn't know that it would be so dramatic
Jesus
Anyway
 
We're pedants.
 
@DeadMG portability sucks in general.
 
By the way, it's a shame that "I need your body!" part wasn't on a separate line, so I could have starred that
 
1:37 PM
I know
 
Also, the chat added a scrollbar to it. That's clearly too long.
 
@bamboon But I have no need for it at all, so it's WinRAR for me
@RMartinhoFernandes Unless you post code that doesn't actually have to be read, like "look at how massive the decorated name for this type is!" :P
 
@Sidar anyway, either post a question on SO, or put the code on pastebin and link to it
 
I'm gonna go own my sister and mother at cards, bb
 
Mainly because I can't (or don't know how to) convince it to scroll with my keyboard.
 
1:38 PM
@RMartinhoFernandes
I understand what you are saying, but these datas are the basics for every shape. So it won't do any harm right? ( it's an assignment, Im not really building anything with this )
 
sbi
@Sidar: This might be a good moment to point out the newbie hints, linked to from the right.
 
Eugh
 
@Sidar The harm it can do is force some class to pack those members without using them if it needs a different representation. Not that troublesome.
 
Last time I slept was like 24 hours ago
 
sbi
1:40 PM
:)
 
But if you want, you can have the abstract class without data, and a "base implementation" that derives from it and has the members.
 
@RMartinhoFernandes
Thanks, then i'm safe then ( all my shapes need these members ).
 
That gives you the best of both worlds: no need to repeat the members everywhere (inherit from the base implementation), and the flexibility to use another representation (inherit directly from the interface).
 
So people should I:
a) Sleep for some time then sleep again before getting up tomorrow
or
b) Try and stay up and go to sleep at like 10pm (9 hours from now) and hope that's enough when I wake up at 7?
 
@KianMayne
Sleep in Coffee beans....trust me
Anyho,
Thanks again @RMartinhoFernandes.

Im outta here.
 
1:44 PM
Someone went to ask JavaScript questions on the PHP room. Awesome. It's not just us :)
And someone flagged "Jesus"?
Jesus, people are really stupid sometimes.
2
 
@Sidar stackoverflow.com is a nice place
 
And I'm hated, I love the internet
bye
 
Clearly, you need to hate the Internet. If you do, the Internet will love you back.
2
 
While I was gone I wrote a binary clock
and improved my chat program a bit
 
It's a clock with only two hands?
 
1:51 PM
@RMartinhoFernandes hehe what annoyed me more than anything else was that person X posts a wall of code to a chat (damn) and subsequently floods that very chat with a spree of expletives and complaining - all on separate lines LOL
 
Hmm, I didn't notice the expletives.
 
@RMartinhoFernandes No it's SUPER AWESOME
 
How does it work? Is it like the one in KDE?
 
It's graphically displayed 6 digit BCD
 
Right, like KDE's.
Real men use binary clocks showing UNIX time.
 
1:55 PM
Yeah, that's actually where I first heard of them
I don't think my code was that great though
 
@jalf I'm giving up on this singletonaholic.
> In a multi-threading system, its possible that these static variables will be accessed concurrently by separate threads. This would create a race condition with unpredictabe behavior.
 
@RMartinhoFernandes real men wear a real Swiss watch and don't rely on CPU ticks for time, but Swiss gears :)
 
Apparently singletons can magically make your code race-free.
 
What? Chuck doesn't know IEEE754 by heart?
@sehe The context there is shared data, so you can't weasel away with thread-locals.
 
1:58 PM
I basically said: Get the time, split it into 6 digits (I said hourDigit0 = floor(x/10); hourDigit1 = x-hourDigit0) etc then convert each digit into a boolean array, pad it, then for each digit set the dots based on the bool array
 
2:11 PM
Anyone needs GOF?
 
Come again?
 
@sehe Design patterns one :)
 
So the question is? (Translation: Q. <blurt!> A. <rubbish>)
 
I just got the new book , but I don't need it , so I was thinking to pass it
@sehe why do you think it's a Q from my side always , darn!
 
@MrAnubis Anyone needs GOF? Most people would parse that as a question !
@MrAnubis Aha that way. Nice
 
2:38 PM
Overgrowth alpha dev videos are delicious.
 
sbi
> 37 users currently talking in 13 rooms
25 of those are here.
C++ rulez!
:)
 
Are you sure "talking" means that?
 
35? where are they?
 
sbi
@RMartinhoFernandes Now that you ask, probably not.
 
Because I can count 10 in the JavaScript room plus 19 in PHP, and most of them are not here.
 
sbi
2:42 PM
@Abyx :-{
 
I see only 6-8
 
sbi
Sigh.
 
Still, yes, we're the most crowded.
 
CROWDED! See, if we up the volume, we make noise for 35
 
2:44 PM
LOUD NOISES. PEW PEW.
 
No circles.
 
http://stackoverflow.com/questions/8701277/htaccess-rewriterule
can you flag the question, to be moved to serverfault?
 
There's our 36th accomplice :) (@user726730)
@user726730 done
 
Closing system works funny when there are conflicting votes.
 
That was quick.
 
sbi
2:46 PM
@CatPlusPlus The way a broken engine is "funny"?
 
@sehe thx man!!
 
But it didn't move.
 
Not moved though :( Crappy broken system.
 
WE FAILED.
Clearly, it's your fault.
 
I swear I voted SF!
 
2:47 PM
can we reopen it and close again? (with moving)
 
sbi
@RMartinhoFernandes Yep. I had a look at the question first, to see if the claim is right, and when I cast my vote, I was informed that the question was already closed.
 
if it's possible..please
 
sbi
@Abyx I've flagged for a mod to move it.
 
Me too!
> Pretty please move to ServerFault? The migration system sucks :(
 
I can't see how people think .htaccess would be related to programming, as opposed to server configration.
 
2:48 PM
may i should make a new question to serverfault?
 
@CatPlusPlus Because it's codes.
@user726730 It's your question?
 
my friend's question
 
sbi
@user726730 Wait whether a mod moves it.
 
[programming]
with=keys
 
Programming is just typing stuff on a keyboard.
 
2:50 PM
Pew pew.
 
@sbi ok man!!
 
Hopefully Bill is around and it will be done in a pinch.
 
@RMartinhoFernandes rewrite rules have regexes. Depending on the dialect it may be turing complete (kidding)
@user726730 You know, if your friend has a browser and an operating system with the nifty feature commonly known as the clipboard, he could simply post the question there in a few seconds. Just saying
 
It's cold and raining and I need to go get gas. Dammit.
 
It's cold and rainy and I need to pass gass. Muhahahaha
 
2:53 PM
0
Q: "cm" domain names, what is the catch here?

samwiseUsing some domain searches I'm finding a bunch of two letter domains the "cm" tld... what gives? For example, looking up "ci.cm" returns no owner. Does that mean I can buy it and people will go to http://ci.cm and that'll be my blog/website? Or is cm a suffix to .co (http://ci.co.cm)? Or is it ju...

 
Joking!
It's not rainy :)
 
@sehe Cool, can you go get gas for me?
 
No words.
" Is there anything shady about this extension? "
 
I can't post questions to stackoverflow.. he show's me this:Sorry, we are no longer accepting questions from this account. See goo.gl/C1Kwu to learn more
 
@user726730 did you read the page they linked to?
 
2:55 PM
@user726730: ooh that's not good :) Kudos for blunt honesty. I won't go looking for why that user was 'blocked' in the first place. But, yes, hope for a migration
 
yes, i must start answering questions
 
and, apparently, improve your existing questions
 
Ahahahaha.
0
A: "cm" domain names, what is the catch here?

Sn0opyWiki has something http://en.wikipedia.org/wiki/.cm In a report published in December 2009 by McAfee, "Mapping the Mal Web - The world's riskiest domain", .cm was reportedly the riskiest domain in the world, with 36.7% of the sites posing a security risk to PCs I recommend not buying a ....

AHahahah.
 
sbi
@user726730 I don't think that's the problem. AFAIK it's perfectly fine to only ask on SO, and never answer.
 
@jalf that's not easy
 
2:58 PM
@user726730 Prevention is the best remedy. Anyways, I'm sure you can still ask a mod to help, but two of us already did that for you now :)
 
And I thought the question was funny.
 
lol
I wonder why they used a URL shortener for that link.
 
Because letters are expensive.
 
@RMartinhoFernandes mmmm perhaps they can use it to update the reference when the link target moves (... nah)
 
2
Q: How to master C++?

TrishaI am a grade 11 student and have Computer Science... I just love the subject.. We are doing C++ ... I have loadsss of interest in this subject ... I am kind of able to do the programs but would like to master C++ before college itself... It would be kind enough if someone can tell me some sites w...

 
3:03 PM
They could use one of their own permalinks.
 
bait?
 
Use URL shorteners on URLs into your own sites sounds silly.
 
the problem is that i made a question which had html with very bad formatting
this question has -10 vote or something
some admin delete this question (i can't find it anymore)
and now a can't post any new question
 
@FredOverflow Ah, too many ellipses for me.
 
@user726730 HTML on stack overflow? Does that even work?
 
3:04 PM
@FredOverflow Well, you can ask HTML questions.
And you can use a small set of whitelisted HTML to format posts.
 
well it was about 100 lines of html formatted into 1 line :)
 
That's just one bad question. That wouldn't forbid you from asking questions.
@FredOverflow Dammit, someone already posted the Abstruse Goose 21 days method :(
 
so what's my fault?
 
I don't know what the criteria are. They're secret to prevent people from working around it. I only know questions with negative score count.
 
But that's a paradox!
 
3:08 PM
Should we ban users with good questions instead?
 
We should ban Johannes.
 
I don't ask questions, so I don't care either way.
 
Do you at least vote questions? ;)
 
No, I got the badge.
:P
 
But you're annoyed constantly by the "please vote on questions" thingy, right?
Well, question downvotes count for that, so it's not that hard to shut it up.
 
3:11 PM
I rarely vote lately.
 
I know a bad question when I see it, but I have trouble identifying good ones.
 
5
Q: Message telling me to vote on questions

Matt FenwickWhen voting on a couple of answers today, a message popped up saying something like You haven't voted on questions in a while! Questions need votes too! is this new? what triggers this? As of this moment, I have way more question votes than answer votes (346 to 268). (My stats don't say ...

lol
 
Also, it should be possible to get rid of that by some scripty hacky thingy.
 
If you don't vote, there's no issue.
 
@user726730 Go through your questions. The ones that are flagged/vote-to-close'd or downvoted clearly have some kind of problem
then try to improve on that
I just posted comments on a few of them
 
3:22 PM
> @jalf: I use singletons a lot, f.i. for a Resource Manager (handling cached files in an application). I cannot see how you'd manage to do that efficiently WITHOUT a singleton. And there are many more uses for them. – Robert 10 mins ago
Sigh.
"A global."
 
@jalf ok man!!
 
Why is this so hard to understand?
Why the convoluted DIY global that brings pain?
 
BECAUSE PATTERNS!
AND MANAGERS!
 
Design Patterns are the new Cargo Cult.
I read it in a book. It's a "Design Pattern", so it must be good!
 
@jalf edit done!!
 
Argh, dammit, I almost went back to the singleton discussion. I'll just let people be wrong in the Internet and hope I'll never have to work on their code.
 
but i get a page don't work!
 
sbi
8
Q: Are questions about Santa Claus on topic?

DavRob60Is Santa Claus a Fantasy topic? I think yes, but just want to be sure before doing so.

LOL!
 
Or something like that. I can't read the legalese.
 
sbi
3:35 PM
@RMartinhoFernandes In other news, the govmint moved Belarus 250km closer to North Korea on Dec, 22nd. This created considerable friction in the Near East.
 
> Improvements to the Usage of the National Segment of the Internet
 
WTF is a national segment of the Internet?
 
The censored things.
> Additionally, the Law states that the owners and administrators of Internet cafés or other places that offer access to the Internet might be found guilty of violating this Law and fined and their businesses might be closed if users of Internet services provided by these places are found visiting websites located outside of Belarus and if such behavior of the clients was not properly identified, recorded, and reported to the authorities.
 
@sbi I loved reading this linked article though xfinity.comcast.net/articles/news-general/20111215/…
 
(with that Russian accent from movies) "Hey, you know Nikolai from across the street? He's taking away my clients. I'm gonna bring the bastard down." ... "Hey kid, I'll pay you 50 rubles if you go to Nikolai's café and visit amazon.com"
 
sbi
3:51 PM
@sehe Yeah, I had read that earlier. It made me wonder how you could have spent $200 on toys for a 4 year old when you don't have a lot of money. I mean, I probably spend that much on all my kids for Christmas, and I have many kids.
@RMartinhoFernandes In Russia, Russians don't have a Russian accent. Hard to believe, I know, but true.
 
@sbi But that's supposed to be in Belarus!
 
@sbi Oops. Too true. I usually read american financial stuff without applying filters/judgement because things often seem too different there.
Learnt to let go of cultural differences since my sister moved to Uganda.
Indeed, we don't spend nearly as much on our kids' presents even if we can afford it. But we don't do christmas, is it St. Nicolas in Holland :)
 
I didn't spend anything on my kids' presents :P
 
I should think the difference is that when you are really tight on income, there is really nothing to go around, and Christmas is really the only occasion in the year, besides birthdays. I remember that from my own childhood: I never realized how strange I must have looked when asked "what did you get from Santa (=St. Nicolas)" and answering: "a pencil"
Then again, I never missed a thing. At least, I never noticed it during my time. I know my sister hated it, and she can't believe I didn't care :)
 
But a pencil is awesome. It's like a space pen.
 
4:00 PM
@RMartinhoFernandes: to be honest I think the St. Nicolas presents usually entailed new socks, a pyjama and that pencil :)
 
The Space Pen (also known as the Zero Gravity Pen), marketed by Fisher Space Pen Company, is a pen that uses pressurized ink cartridges and is claimed to write in zero gravity, underwater, over wet and greasy paper, at any angle, and in very wide temperature range. The Fisher Space Pen was invented by American industrialist and pen manufacturer Paul C. Fisher and is manufactured in Boulder City, Nevada, United States of America. Paul C. Fisher first patented the AG7 "anti gravity" pen in 1965. Pens claiming some or all of the same abilities have also appeared on the market from other manu...
 
And I can buy myself all the pencils I want these days. Which explains my savings account since, apparently, I don't crave pencils that much
 
I have the same pencil for 4 years now.
Who uses pencils, seriously.
 
I do.
I don't like pens.
 
sbi
@RMartinhoFernandes They are so close, I doubt you could tell Russian from Belarusian when hearing.
 
4:07 PM
I like pencils at home, pens elsewhere
 
@sbi I added the remark about the accent so you guys would be able to tell!
@sbi Dammit, stop foiling my attempts to serve stereotypes.
 
sbi
@RMartinhoFernandes Even if you spent €1k per kid, 0*1000 is still 0.
@RMartinhoFernandes The stereotype you served was that of a Westerner's view on Russian. :)
 
If I say it was a Russian accent, you play it in your head as what passes for a Russian accent in your head.
 
I just found a use for std::vector<bool>: simulating neural networks with 10^6 neurons on a laptop with only 4GB of RAM.
too bad matlab's boolean type is 8 bytes :(
 
sbi
@RMartinhoFernandes Yeah, but you hear what's a Russian accent in Portuguese or English. But they are likely speaking Russian or Belarusian. So what you hear in your head is wrong. :)
 
4:12 PM
@sbi that must be your German stereotype of 'westerners' then? (LOL)
 
sbi
@sehe Right, since I'm not a Westerner...
@rubenvb You wouldn't need the abomination that's std::vector<bool> for this.
 
@sbi Is there a point? How is it not a stereotype because you belong to group X?
 
boost::dynamic_bitset anyone?
 
@sbi well, any bit-sized element container would do yes, but still...
 
sbi
@sehe Well, I freely admit that I share many of the western prejudices against Russians. That wouldn't stop me from pointing my fingers on others who serve the stereotypes in public, though. :)
@rubenvb Yes, sometimes you do have the need for a container of bits. That's perfectly fine, and I'm all for having one. I'm just against std::vector<bool> being raped into serving this role.
 
4:17 PM
I have a friend who studied who studied Russian in university. He ended up with a great dislike of everything Russian (except the vodka). He refuses to fly with Russian airlines because he believes the pilotes are likely to be drunk.
But I have a hard time believing that.
 
sbi
@StackedCrooked Well, my gut reaction was to answer "I don't", but then I thought I wouldn't say anything because your statement doesn't say how likely they are to be drunk.
 
Drunk pilots are not a new thing.
I never heard of a Russian case, but I heard of one in the US.
 
sbi
@RMartinhoFernandes If they progress with the current speed, the U.S. will develop into an police state in my lifetime yet.
 
4:22 PM
@sbi I hope you live long then.
 
evening all
 
Not that I would hope you didn't otherwise.
 
Woah:
> In 1994, an aircraft operated by Aeroflot crashed in Siberia after the captain allowed his 15-year-old son to take over the controls. The boy accidentally overrode the autopilot, sending the aircraft into tailspin. All 75 on board died.
 
I overdid the negation again, didn't I?
 
I hate 10^6 neurons being connected to 10^6 neurons
 
4:23 PM
@RMartinhoFernandes I don't think I disagree with that.
 
that's 10^12 connection booleans
 
@StackedCrooked I couldn't help but read that with a Russian accent :(
 
that's log_2(10^12) ~ 2^40 bits
:(
 
> "Really, all he has to do is press a button and the plane flies itself. The worst that could happen is he'll trip over something in the cockpit."
I wonder why we're paying pilots to risk tripping over something in the cockpit.
 
robots! But then we need neural networks to make them think, and for that I need more frigging RAAM. Anybody want to donate?
 
4:26 PM
> The latest incident sparked heated debate on Russian radio talks shows, with many callers saying they did not believe a pilot needed to be sober to fly a commercial aircraft.
^ Russians ...
 
@rubenvb You work for the cause?
@StackedCrooked Lemme guess, many callers were drunk.
 
sbi
@RMartinhoFernandes ROTFL!
 
@RMartinhoFernandes the cause, euh... the cause... Why, of course I work for the Cause!
 
0
Q: How to define a "never to be called" static function

paul simmonsI have a macro definition, #define PRINTDBG(all) \ if(all) \ x = a_static_function(...) \ printf("%d",x); and I call this macro in two files, A.cpp is like: static double a_static_function() { ... } ... PRINTDBG(1) and B.cpp is like PRINTDBG(0) so actually within B.cpp a_static...

 
__builtin_unreachable
supported by GCC and Clang and probably others have similar stuffs
 
4:39 PM
What the hell is this question about.
 
No freaking idea.
People can come up with the weirdest things.
Like wanting to store a regex in a std::string because for some reason a boost::regex isn't good for it.
1
Q: Storing regular expessions within a varible (std::string)

Shamari CampbellI am trying to store a regular expression within a variable, i.e if we had a regular expression, \\d and a string, std::string str; then I would store the regular expression \\d within std::string str. From that I could then use str whenever I wanted to use that regular expression. I tried somet...

 
Thinking hurts.
0
Q: windbg coredump analysis adress with "bad"

Guillaume07I have a corruption memory heap problem with an application. by using windbg and a dump file of the crash as an input I have the following output with dd esp command 0:002> dd esp 00000000`03e3e490 14badf55 00000000 03e3e8c0 00000000 00000000`03e3e4a0 00000000 00000000 03e3e8c0 00000000 000...

Lol.
 
hejhej
 
sbi
 
4:48 PM
That's a nasty sign. If I passed there, I would be invariably drawn to touch the edges to test their sharpness and possibly cut myself.
 
Reverse psychology at its finest.
 
It's missing a counter of people who touched the edges.
 
And blood.
 
fuck!
 
EVERY1 @rupertmurdoch was only having a joke pROMSIE!!!
 
4:53 PM
I have a question titled "subset sum problem", which it's proper title
 
now I want to go back and edit it
 
@DeadMG Haha.
 
and the site won't accept my edit
 
Stupid word-based bans.
 
4:55 PM
well, I'm going to file it on Meta under "bug"
 
Go for it. I have upvotes ready.
 
sbi
@DeadMG Post a link here, I'd upvote that.
 
0
Q: Can't edit old post

DeadMGI've got a question called subset sum problem, which is the proper name of the problem. Now I want to edit the question and I can't edit it, because the system will reject the title for having "problem" in the name. Subset Sum Problem is the proper name of the problem, not some generic "Problem w...

 
Change it to "problum".
And observe the rage of people trying to fix it.
 
rofl
 
4:59 PM
lol
 
sbi
@CatPlusPlus LOL!
 

« first day (443 days earlier)      last day (4491 days later) »