« first day (313 days earlier)      last day (4637 days later) » 

sbi
6:00 PM
@jalf No, there isn't. When you're at the supermarket's cashier and discover that your wallet is empty actually it doesn't matter whether you lost the money or never earned it. (It's just so much better for your ego to say "I lost it.")
 
"I invested in a random location."
 
@RMartinhoFernandes I don't see why not. It is something that may occur as a result of a user action, and the application should handle it sanely
ie, by ensuring that it is in a recoverable state
 
Well, you can't "handle" SIGKILL.
 
@sbi So there is a difference. It makes a big difference for my ego ;)
 
Well, it wasn't SIGKILL, exactly.
 
6:02 PM
SIGINT?
 
@RMartinhoFernandes sure you can. You can handle it by ensuring that your software is always in a state from which it can recover if it is terminated
 
sbi
@jalf Yeah, I said so. However, that doesn't stop me from rubbing your nose in it really not making any difference. :)
 
@sbi If it doesn't make any difference to you, you need a more sensitive ego! ;)
 
I've closed the console, it'd be WM_QUIT in a Windows subsystem app, don't remember what it generates for console one.
I doubt it calls TerminateProcess, though.
 
Ok, I'm gonna stop defending svn. I gotta start picking my battles better.
 
6:03 PM
also, by "handle", I don't mean "catch the signal and prevent it from terminating my application", but simply guaranteeing that "if we're terminated now, we can recover afterwards"
 
sbi
@jalf Oh, so now you want us to be careful when reminding you that you are procrastinating? :)
 
TortoiseSVN is meh. Especially when you want to remove the WD and it hoards open handles to directories.
 
@sbi no, just pointing out that procrastinating isn't quite the same as working backwards
@CatPlusPlus or when it slows explorer to a crawl with all its caching and indexing and open handles and whatever it does
 
I don't use Explorer for file management. Total Commander <3. It does use a separate process for caching, though.
The one that hoards handles, TSVNCache.
 
@CatPlusPlus well, whatever it does, I've had it cripple Explorer a few times too many
 
6:06 PM
If only that stupid VCS didn't sprinkle the entire hierarchy with .svn folders.
 
:)
at least they're prefixed with a . - the CVS equivalents are just named CVS
guess which VCS we use at work...
so I guess svn really is an incremental improvement over cvs
in a "polished turd" kind of way
 
hi did any one used Succinct data structure library here?
 
what's that?
 
I have problem in installing them o my window pc
 
I hear "data structure library", I think "C", I cringe.
 
sbi
6:09 PM
I; too, rarely ever use the explorer. As one who started out with NC (on a CPM), TC is heaven-sent.
 
(I wonder what Latin for that is.)
 
data structuris librarium?
Quidquid latine dictum sit, altum sonatur.
 
Argh, removing that thing takes so long. So many tiny files.
Hm, there are two endian things in Boost Sandbox.
 
boost sandbox?
 
> When mixing formatted (i.e. operator << or >>) and unformatted (i.e. // operator <= or >=) [input and output](...)
Am I the only one that finds this ugly (the <= and >= part)?
 
Als
6:19 PM
I don't understand why people downvoted on that C++faq answer of mine
I dont understand the rationale behind the downvotes, those are because: there is some incorrect information in the answers or just because don't like me posting that as an self answered q?
 
sbi
@NicholeGrace The sandbox is were the boost developers recreate with their kids after a long day of coding.
 
Als
This is probably the one of best answer i wrote on SO and sadly it is my most downvoted as well.
And one of my worst answers is my most upvoted answer
sigh..
 
Link?
 
Als
8
Q: How should I write ISO C++ Standard conformant custom new and delete operators?

AlsHow should I write ISO C++ standard conformant custom new and delete operators? This is in continuation of Overloading new and delete in the immensely illuminating C++ FAQ, Operator overloading, and its follow-up, Why should one replace default new and delete operators? Section 1: Writing a sta...

One of the better ones with most downvotes
130
A: Is 0 a decimal literal or an octal literal?

AlsYes, 0 is an Octal literal in C++. As per the C++ Standard: 2.14.2 Integer literals [lex.icon] integer-literal: decimal-literal integer-suffixopt octal-literal integer-suffixopt hexadecimal-literal integer-suffixopt decimal-literal: nonzero-digit decimal-lit...

One of the worst ones with most upvotes
 
that reminds me of a bad joke i heard
 
Als
6:28 PM
@hexa: Hit me with that
 
Well....
While it is full of useful information, it is weird.
 
then people should downvote the question
not the answers, unless they are incorrect (and of course then you should say what is incorrect)
 
@als Why do mathematicians always confuse Halloween and Christmas? Because 31 Oct = 25 Dec
 
Als
@KillianDS: It doesn't work that way always here in SO, the voting pattern is just a chain reaction
 
@Als: I know, I find the voting system horrific
 
Als
6:31 PM
@hexa: I am not sure, I guess perhaps because we are from different cultural backgrounds I may not understand anything amiss in that
 
think harder
 
Als
@hexa: dont tell me because you assigned 25 dec to 31 oct
 
harder
 
Als
@hexa: I can't i think i need a drink and a woman lol
 
@Als what do you think "dec" and "oct" mean?
 
6:33 PM
@hexa Haha
 
Als
oh okay okay @jalf, literals ...damn i hate yu @hexa
@hexa: Joke is on me eh....
 
@als You started with the 0 octal question!
 
Is there a SO related site where I could ask about programming books and such?
 
I got it straight away :L
 
sbi
@Als The voting on SO is just like the voting for politicians in RL: The most votes are given to the most popular ones, not to the most sensible ones.
7
 
Als
6:35 PM
@hexa: yeah yeah
 
;)
 
sbi
@wilx Programmers.SE?
 
Als
@sbi: :) I realized that when 130 people upvoted on an answer saying YES, 0 is an Octal literal
:P
 
sbi
@Als I know. I was referring to exactly that one.
 
Als
@sbi: I actually hate that one shows as my most voted answer :)
 
sbi
6:37 PM
And might I say, starring in this chat room (I suppose it's true for others, too, but I only know this one) follows the very same pattern.
 
3 mins ago, by sbi
@Als The voting on SO is just like the voting for politicians in RL: The most votes are given to the most popular ones, not to the most sensible ones.
 
sbi
Although, regarding stars here in this room, the @Cat is our local Jon Skeet.
 
Are you claiming this isn't sensible ;)?
 
Als
haha @sbi: I starred it because i couldn't agree more to it
 
sbi
@RMartinhoFernandes Why are you citing a message that hadn't even had time to scroll off the screen?
@RMartinhoFernandes "This"?
 
Als
6:39 PM
Grrrrr....someone upvoted me on the literal Q again
 
Er, I have a tiny screen...?
@Als You keep linking to it!
 
sbi
@Als If you ask really nicely, we might be persuaded to downvote you on that one. But you will have to ask nicely!
 
@Als Make it CW, at least you won't feel bad for getting rep.
 
Als
@RMartinhoFernandes: Well I ain't got no woman no drink at the moment atleast i should be allowed to crib.
:)
 
Oh, apparently endian_ext wasn't even tested on MSVC.
 
sbi
6:41 PM
@RMartinhoFernandes It would still show as his highest voted answer, though.
 
Thank you very much.
 
Als
Oh btw the latest faq Q got me 9 downvotes, my maximum
 
sbi
@Als IRTA "ain't got no woman to drink", and was wondering why you need a woman to drink. :-x
 
We're showing off our highest-voted answers? Mine is this
 
sbi
@RMartinhoFernandes What's your problem?
 
6:42 PM
44
A: Python datetime to Unix timestamp

Cat Plus PlusAnother way is to use time.mktime: future = datetime.datetime.now() + datetime.timedelta(minutes = 5) return time.mktime(future.timetuple()) It's also more portable than %s flag to strftime — latter is not supported on win32.

 
Als
@CatPlusPlus: We are talking of most downvoted ones too :P would u like to showcase that as well? :P
 
sbi
@CatPlusPlus Pfft. Not even 50 upvotes. Beginner!
 
And after a year I still get upvotes on that.
 
@sbi If I can only counterflag messages that have been flagged, why the hell did the message show as flagged in the first place? That was my "problem".
 
sbi
-2
A: converting String.data() into an array

sbiWhat do you need that char array for, anyway? And are you sure whatever is in you string will fit into it? (There's a whole class of bugs coming from the use of arrays, and a famous one, too: buffer overruns.) You're very likely much better off using std::vector, which resizes dynamically: std:...

@RMartinhoFernandes What do you mean "counterflag"?
 
6:44 PM
Vote "invalid" on the flag.
 
it's opposed to terrorist flag
 
Als
@sbi: Oh I am afraid it doesn't have 2 downvotes anymore :P
 
sbi
@RMartinhoFernandes Ah, you've been to SO?
@Als It does. But now it also has an upvote. (Why do you think I posted this here?!)
 
Als
@sbi: Cheeky eh
 
@sbi ? A flagged message showed up here in chat with that blue circle thingy. I voted "invalid", and the chat told me I couldn't because it wasn't flagged.
 
sbi
6:46 PM
@Als Why? At least I don't pretend otherwise.
 
@sbi Ha! I don't have any answer with a negative score :P
 
sbi
@RMartinhoFernandes Ah, that. Sorry for being so dense. Well, I guess it was gone while you thought about how to handle it.
 
Als
@sbi: We all like rep at the end of the day :)
 
Oh, wait, don't take that to mean I want you to go downvote one of my zero-score answers.
 
I've still got one at -9
 
Als
6:48 PM
@RMartinhoFernandes: You were too slow to decide on that peeps decided and it vanished
 
sbi
@RMartinhoFernandes Once we're at it, this is my other one. Both are unexplained downvotes.
 
Als
@DeadMG: same pinch! i got a niner too today!
 
sbi
@RMartinhoFernandes Too late.
 
@Als Yeah, that's what I figured. It wasn't that much of a problem, it was a bit more of a problem trying to explain it to @sbi ;)
 
sbi
@Als Actually, I even like rep at the beginning of the day. (Yeah I'm a pervert, I know.)
 
Als
6:49 PM
@sbi: :)
Oh btw folks i reached 20k today
:)
 
YES
I mean, grats!
 
Wait, what meaning can "rep" have that makes one a pervert for liking it?
 
gz
 
Or maybe I don't want to know.
 
none as far as I know
 
sbi
6:51 PM
@Als No problem. Go to stackoverflow.com/reputation, hit "Trigger Reputation Recalc" at the bottom of the page, and you'll be relieved of that nuisance.
 
Als
Rep is like sex, you pretend you don't want it always, but at the back of your mind you always think about it and want it.
2
 
Anyway, my highest scoring answer is just bashing Perl: stackoverflow.com/questions/1995113/strangest-language-feature/…
 
sbi
@RMartinhoFernandes Liking it in the morning, rather than at the end of the day.
 
I got the same before and after recalc
@Als Don't say that, @Tony will be here in no time
 
You want Tony away?
 
6:52 PM
Hi
 
Als
@DeadMG: He has an interview today, I missed out on wishing him good luck yesterday
 
oh yeah
 
Als
@sbi: Ah no, i went to stackoverlow/reputation and total there shows more than my current total, so triggering a recalc would make my total equal to that is what i understand
 
Oh, they're owing you rep.
 
Als
6:56 PM
And it says
** rep from bonuses: 100
 
The bastards.
 
Hey, Jeff! Get yo fat ass over here, or I'mma have your hide! Where's my rep, huh? You said you'd give me that crap last week!
 
Als
oh I didn't win any bonus
 
You're cheating!
It's a 100 rep bonus from associating accounts on different sites.
 
Als
@RMartinhoFernandes: I think the system wants me to win are the correct words
ah i see...silly me
oh I must say I officially hate the people who downvoted me on the operator overloading faq...It took a lot of effort to even formulate that!
 
6:59 PM
@Als: Linky?
 
Als
@DeadMG: Don't you downvote me on that though :(
9
Q: How should I write ISO C++ Standard conformant custom new and delete operators?

AlsHow should I write ISO C++ standard conformant custom new and delete operators? This is in continuation of Overloading new and delete in the immensely illuminating C++ FAQ, Operator overloading, and its follow-up, Why should one replace default new and delete operators? Section 1: Writing a sta...

 
I wouldn't be so mean
... you hope
 
sbi
@DeadMG We know. We also know Occam's razor, though.
 
lol
yeah, I'm too busy playing buzzword bingo with UML to be mean
 
sbi
:)
 
Als
7:02 PM
Actually, with this one none of the people bothered to even read it, IMHO i think it covers the subject matter cleanly, but ahh....we peeps want only cute small answers here not good ones
 
I haven't read it.
I haven't voted either.
 
touche
overloading new and delete is something I never did
 
Als
@RMartinhoFernandes: then do it, i mean the voting :P
@DeadMG: Agreed. It just completes @sbi faq of operator overloading
That was the very aim of this since we discussed the other day on an answer that the operator overloading faq doesn't cover it and the topic in itself is so vast to be a part of operator overloading faq as such.
 
ok, here's a question
 
hm, can you actually override new[] as a separate instance? Or is that one an implicit call of X times new?
 
7:07 PM
when describing use case diagrams, sequence diagrams, and contracts, and how they're related, how many words should I aim for?
 
@KillianDS You can.
 
@KillianDS new[] returns contiguous memory- new repeatedly called won't
 
@DeadMG good point, makes sense
 
well, it might
but that's somewhat unlikely
 
so when overloading new, you should also overload new[] ?
 
Als
7:11 PM
@DeadMG: Minimum words, Your diagrams should be self explanatory
 
I prefer the opposite.
 
Als
Isn't that the purpose of having an UML language in first place?
 
Succint diagrams, with words for detail.
I prefer reading text than "reading" boxes.
 
Als
@RMartinhoFernandes: Then just write paragraphs don't use boxes
 
But boxes help as well!
 
Als
7:13 PM
If you are drawing boxes those better explain the purpose
 
haven't included any boxes yet, I'll think about them later
need to get the flesh down first
there's another part of the C/W which will be almost completely boxes
 
Or do both, most of the time when you are making a nice diagram (UML or other), you end up describing it in full text anyway
 
Linux turned 20 today
 
Als
@hexa: Me too! 20k
gooooood
 
lol
 
7:21 PM
Evening all!!!
 
Hello.
How did the interview go?
 
It went much better then I expected
 
Als
@TonyTheTiger: Tiger! interview! how was it
@TonyTheTiger: won the war eh
 
I was able to answer about 85% of the technical questions
and they weren't even that hard
except one or two
 
Als
@TonyTheTiger: Nice..
 
7:22 PM
next week I'll get feedback
 
@TonyTheTiger ohai
 
hai
but they asked a lot of tech questions
 
Als
@TonyTheTiger: Wish you best of luck bud, Your mood tells me you gonna make it
 
Thx :)
getting a job at this particular place would be a dream come true for me
cause it's got everthing I'm interested in
 
Als
@TonyTheTiger: Good things are meant to happen sometimes if not always :)
about time
 
7:25 PM
@TonyTheTiger I hope you let them know that :)
and even if you don't get the job, it should help your confidence a bit that you got to the interview and did well in it :)
but sounds great, hope you get it :)
 
@jalf yes I told them that fairly clearly
this was one of the interview questions I couldn't answer
can you guys see what's wrong; besides the mem leak?
 
Als
needs virtual base class?
 
It's got syntax error, for one. Should be shapes[i]->draw() if anything.
 
@CatPlusPlus Not that.
It's not an array of pointers.
 
@CatPlusPlus i told them that, but that's not the answer
@Als nope
 
7:31 PM
Oh, right.
Derp.
 
I see lack of virtual dtor, though.
 
yea true; but it's not that either
 
No dtors have been called in the running of this program.
 
true, but that's not what they were looking for
guess I better tell you
 
7:34 PM
Yes, I was pointing it to the cat.
 
Als
@TonyTheTiger: You heard a host of probs and they were not looking for that is all u said lol
 
Dunno.
 
I think I'll post it on So
see what answers I get
 
I call shenanigans.
 
7:35 PM
You can't index that way, can you?
 
0
Q: Interview question, couldn't answer it today

Tony The TigerI went to a job interview today and was given this interesting question. Besides the memory leak and the fact there is no virtual dtor, why does this code crash? #include <iostream> //besides the obvious mem leak, why does this code crash? class Shape { public: virtual void draw() const...

 
lol
yes; free rep :)
there was also some C questions, meh, got them right though
haha
and even .NET questions, even though this doesn't look like a .net shop
and they asked me if I knew what SIMD (SSE) was, and what it stood for :P
 
Als
Why does it keep saying Not Running on ideone?
 
Silly Instructions that Make Derp.
Because you haven't checked 'run code' box.
 
7:40 PM
Answered.
Should probably rephrase and get some standard quotes. Those always net some extra rep.
 
@TonyTheTiger rectangle has size of 2 ints and shape has size 1
 
Als
ah ok
 
@RMartinhoFernandes how index it correctly then?
 
Als
okay anyways need to go ZzZz
 
Good, that's what I thought too.
 
Als
7:42 PM
Have a good day all of you
 
Actually, nvm
 
@hexa yea exactly; but I missed that
 
the virtual dtor thingy was just to throw you off
 
I'd say that was about the hardest question today
@hexa I think so
 
Hey! I want the job!
;)
 
7:44 PM
Hey, I knew that answer, I just derp'd.
It's late, that's my excuse.
 
I was typing it and then the orange bar appeared
 
Me too.
But the other answers were not mine.
 
I hate that orange bar, lol
 
7:45 PM
yeah but i reloaded and you had 6 upvotes
so i just gave up
 
Free rep for @RMartinhoFernandes lol
@RMartinhoFernandes but what about me then?
lol
 
Oh my, 13 boats in 6 minutes.
 
speed counts
 
woah, wish I had given the answer, lol
 
I don't think I ever got so many so fast.
 
7:46 PM
:)
 
except when you are doing it, righ tony
 
Thanks @Tony, I rep-capped :)
 
2 hours ago, by Cat Plus Plus
I like to go to and downvote everything on the grounds of being in PHP.
nailed it :)
@RMartinhoFernandes welcome :)
 
@hexa He's a robot, why are you surprised.
 
we should do a C++ mafia here
whenever one of us have a question, we post it here first
then post on SO
 
7:48 PM
hahah
 
dude, that's not how you play Mafia
Mafia is about secret assassinations and shiz
 
the meta police would be on to us fast; for cheating the rep system
and about Omerta
 
it's not cheating, kinda
 
Argh, people who post half the error plus completely irrelevant code.
And then "it works for me" answers.
Of course it does, it's not the code OP uses.
I mean, isn't it obvious.
 
I post "it works for me" comments.
Answers like that I downvote.
 
7:51 PM
0
Q: function return type is vector in c++

yogesh pateli want vector as return type of function in my code like, std::vector<int> Myfun(){ //build the vector v; vector<int> v; v.push_back(1); v.push_back(2); return v; } int main(){ std::vector<int> a = Myfun(); return 0; } but it show an...

Have fun.
 
man
I bought some ice-cream and I can't eat it
how shit is that
and some other stuff I left to go off :(
 
why'd you buy it then?
 
Upload it to me, I'll have it for dessert.
 
cause I didn't know I couldn't eat it until I tried :P
 
7:58 PM
wish that would be possible, would be cool
 
You wouldn't download a dessert!
 
ok, here's a question
why is it that Weird Al Yankovic's parodies are always way better than the original
 
Because he's awesome.
 
That was easy.
 
this.
 
7:59 PM
"Perform This Way" is so much better than "Born This Way"
 
For this particular title I prefer Form This Way.
 
except Weird Al can actually sing
and gotta admit, CGI'ing his face onto a model's body was a hilarious move
 
8:35 PM
@TonyTheTiger so how much SSE/SIMD do you know?
 
@jalf not much at all
I just know it's a cpu instruction set
 
ah
well, from what you've said, it sounds pretty promising :)
 
8:50 PM
oh wow, my stm library is only 2833 lines, excluding tests. I thought it' be a fair bit more than that
 
@jalf hehe.
what's stm?
 
It's cool.
 
Transactional memory attempts to simplify parallel programming by allowing a group of load and store instructions to execute in an atomic way. It is a concurrency control mechanism analogous to database transactions for controlling access to shared memory in concurrent computing. Hardware vs. software transactional implementations Hardware transactional memory systems may comprise modifications in processors, cache and bus protocol to support transactions. Software transactional memory provides transactional memory semantics in a software runtime library or the programming language, and r...
 
PyPy is experimenting with replacing the Global Interpreter Lock with STM.
 
8:54 PM
@CatPlusPlus oh, that's pretty neat
 
In Qt, does this cost a lot: QString obj_class = obj->metaObject()->className();?
 
cool, thanks
I need to study the metaobject class, but I don't feel like it atm
 
@CatPlusPlus sounds like a pretty good fit too
 
I'm using Boost.Parameter for the first time. Beware, I might go insane.
 
8:58 PM
lol
 
@CatPlusPlus You mean more insane, right?
 
also, it's really amazing how much cool stuff seems to come out of pypy
 
Insanerer.
 
stark contrast to cpython
 

« first day (313 days earlier)      last day (4637 days later) »