« first day (746 days earlier)      last day (4219 days later) » 

5:08 AM
Form over function. Fuck it.
 
Xeo
@Rapptz I got it twice. :D
 
@Xeo twice?
 
thrice.
 
Xeo
Blame sleepy brain
 
I'm too picky with the things I answer to get it on SO.
I have one on meta though.
And Jon Skeet has 69 Great Answer badges...
That's two whole pages of them.
 
5:17 AM
 
lol
0
Q: Should we reset the all repuation point of all users to 0

user1713836I think SO has grown much people have lot of reupation in 1000s. I think we should mark all that to 0 and start the new point system so that there will be more fierce competition. Currently there are people at top who have gathered points years ago when there very less competitors.

^^ You know what to do. :)
 
Fuck.
Missing 49 rep.
 
@CatPlusPlus We can use some of your trolling on this meta question above. :)
 
Posted an answer instead. Not a troll answer though.
 
+1'ed you. You need two more upvotes to be able to downvote.
 
5:25 AM
4 actually. Though I've never really seen much of a need to post on meta.
 
It isn't 125?
 
Oh it is. I always thought it was 150.
 
what's this about @cat, does he graduate?
 
That guy nneonneo has gotten half of his 15k rep in this month.
 
@Cheersandhth.-Alf He's good at trolling meta questions like this.
 
5:27 AM
I think he meant the sidebar.
 
There's at least a little bit of irony in calling people "n00b" and then posting this on Stack Overflow. — NullUserException อ_อ 4 hours ago
 
Xeo
> in 1000s
ahaha
Skeet is at nearly 500k...
 
holy shit..
 
that surprisingly looks good..
 
5:31 AM
It looks like plastic.
 
I'm trying desperately to stay ahead of @Luchian in C++. I don't think I'm gonna win. :(
 
I'm just in the mood for waffles really
 
Xeo
@Mysticial I'm desperately trying to get 4th gold badge. :|
If Kerrek gets 34 upvotes before I get 14 answers, it's not gonna happen.
I already lost 3rd place to Howard, and I don't want to lose 4th place too. :x
 
Luchian is averaging 800 - 900 votes a month in C++. I'm getting far less than that. :(
 
Xeo
Well, you accumulate C++ votes through performance / C questions... and normally get 900 in a week if such a question pops up.
 
5:34 AM
I have 93 votes on C++. 13 for C++11
 
@Mysticial Yeah, but he's actively going for the "easy" questions.
Well, not "easy", but rather, "quick to answer".
He's honest about it, though, so I don't hold it against him.
 
@Xeo Which is what's keeping me ahead. He almost caught up with me. The curly braces question came pretty close to push him ahead of me. Then I got the matrix question - which gave me a bit of breathing room.
 
guys I need some help
 
Is it a dumb question
 
Please vote to open this question stackoverflow.com/questions/13148490/…
 
5:36 AM
Damn it is.
 
And 2 months later, he caught up to me again (almost). And then Hacker News pumped another 1k into the branch question. But now that lead has already dropped to 800... god.
 
Xeo
@Mysticial He got one answer which got ridiculous upvotes lately
 
@KodeSeeker Woa, you got nuked by a mod there.
 
yeah
damned
 
Sweet. I can downvote on meta now.
 
5:39 AM
@Xeo And got lucky enough "cancel" it out with the matrix question. :)
 
Xeo
Oh, not ridiculus.. 13 on the "steps" question, which are totally deserved, but 25 on the "NULL vs 0" question.. well, I guess it happens. The easy stuff simply gets the votes.
 
I just answered OP's question just to downvote him. That feels funny
 
Xeo
You also got the exponent question
While not as much by far, it's still a good chunk.
And has more votes than any of my answers but two.
 
@Xeo Which gives me like 1 or 2 of Luchian's typical days.
 
@night , it is a race , where one tries to answer a fast as possible to gain rep points. — user1713836 22 secs ago
 
5:41 AM
I'm gonna need to hit another big one within the next month if I'm to stay ahead of Luchian. I doubt that's gonna happen.
 
lol, sounds relevant
 
@KodeSeeker what is "master theorem"?
 
 
2 hours later…
7:13 AM
@Cheersandhth.-Alf He's the big boss in a video game.
 
-1
Q: Is Hurricane Sandy Allah's punishment for US?

HanifIn the Quran, Allah has used natural disasters as a way of punishing those who have acted against his will (such as the people of Lut whom he destroyed for being homosexuals). Is the hurricane Allah sent an example of his displeasure with the US? Their refusal to embrace Islam, their violence t...

 
@Pubby lol?
 
7:29 AM
lol
@Pubby How did you find that?
It's not on the multicollider or anything.
 
@Mysticial It was on homepage
I didn't know there was an Islam site
 
Islam.SE is not a site that I regularly browse.
 
Religion has so many crazy rules
Even more than C++
maybe
 
Only insane religions have so many crazy rules. Sane religions are... well, sane. /afk, not going to get involved in yet another religion flamewar
 
Sane religions don't exist
 
7:39 AM
I think football has about as many rules as C++.
*American football
 
@Mysticial The NFL rulebook has 120 pages. C++11 has 1334.
 
@Pubby oh okay...
 
Lemme check the bible
742 pages
 
What bible is that, "Code Complete"? :)
 
I think some guy named king james wrote this one
 
7:42 AM
And in what language? C++?
 
@h2co3 I am curious about your views on C
Chat can notify people outside of the room, right?
 
@Pubby It can if you link to a message, I think, instead of just writing @user.
@Pubby What exactly are you curious about, by the way?
 
8:01 AM
@FredOverflow Some guy mentioned he considered C superior to C++, and I wanted to know why. Not very curious, just bored!
I'll just let it pass
 
Probably because the first C++ compiler was written in C, and not the other way around? lol
 
@Pubby If the name doesn't popup when you start typing it in, then no, you can't ping them.
Mods have the ability to superping though - and it can be done anywhere in the network.
 
8:21 AM
mornin'
 
evening
 
noon
 
8:49 AM
 
9:09 AM
is this reddit/4chan/whatnot again?
 
yes
the room was dead....
 
@Zoidberg'-- trolling? that could be painful. Both if troll and if not
@LuchianGrigore That's no excuse, really. I mean, those horrible pictures aren't gonna attract more sensible chatters :)
 
what about this?
 
Another picture.
 
9:25 AM
So... closing up on the elections
who's in front?
 
Alphabetically? Obama.
 
@LuchianGrigore I'm on top
 
Well, polls have them head-to-head, right?
 
Sandy literally blew the competition away
Not quite _right out of the water_ though
 
9:42 AM
can anybody help me with my question, I posted it 6 days ago..
I know it is in the C# section, that's because of its implementation but it is a general algorithms question..
And there is an open bounty ending in 3 days..
http://stackoverflow.com/questions/13054708/what-is-the-best-way-to-route-paths-in-a-large-grid
 
@LuchianGrigore Chocolate is toxic for dogs
 
lolwut, more rep e-peen envy on meta? meta.stackoverflow.com/questions/153152/… Sigh.
 
@kbok that's why it's funny...
 
Oh, I thought you were asking for an explanation
Well, you get one anyway.
 
That actually reminds me of work...
 
9:47 AM
@LuchianGrigore Wait, it's funny?
 
"Should I use a singleton here?" Me: "Sure, just remember... if you use it, you'll have to support it."
@R.MartinhoFernandes dark humor is funny
 
Does the "support it" part involve getting shot by coworkers?
 
of course
 
10:02 AM
Can anybody take a look at this gist.github.com/3986190 I want My current code to work as Expected code
 
How the heck does adding a new class break the existing tests.
@NeelBasu Turn the function into a function object?
 
No rightnow It calls function f() but I want it to call f<i>()
 
@NeelBasu I meant like this: gist.github.com/3986226
You can't pass a function template around, but you can pass an object that has a member function template.
 
@R.MartinhoFernandes But I cant fix the name print
cant I make F as template template parameter ?
or something like that ?
 
Nope, not for function templates.
 
10:12 AM
@R.MartinhoFernandes not even C++11 ?
 
10:27 AM
@LuchianGrigore Being a programmer afterall, means supporting every mistake you've ever made in a program for the rest of your career
 
aRARHGGRHGERG. Standard library, Y U NO OUTPUT u32string.
 
I am under the impression that MSVC doesn't complain when you x.swap(T());
 
@Neil You can always throw in the towel and become a goat herder.
 
Otherwise someone says, "Well why did you put it in there if you didn't support it?" which leads to a long frustrating conversation about why programmers make mistakes and how difficult it is to debug software which is inevitably more time-consuming than just living with the fact that you have to support it
 
@R.MartinhoFernandes That's why I want std::wstring_convert.
 
10:29 AM
@Neil not if you leave the company
 
@LucDanton Well the advantage to being a programmer is that nobody will think badly of you if you kick your computer every now and again
 
@kbok I think MSVC lets you bind temporaries to lvalue refs. Or something.
 
I basically consider this as light treason
 
Ideally I'd also want Unicode to implementation but failing that.
 
@LuchianGrigore Hah, depends on how big the mistake
 
10:30 AM
In which case, you can #define true (rand()%100 != 0)
 
@R.MartinhoFernandes when does your job start?
 
..or passing it on to some unfortunate maintenance/enhancement developer :(( That would be me, so please, everyone, don't use singletons or any other dubious, over-complex and difficult-to-maintain gunge.
 
@LucDanton Yes, but there's no codecvt for it :(
@bamboon Friday.
@LucDanton Anyway, in this case, it might actually be better to write my own operator<<. I want it to output numbers and not characters, anyway.
 
Which is not what a Standard operator<< for std::u32string would have done O_O
 
@LuchianGrigore That is truly evil
 
10:32 AM
@R.MartinhoFernandes Yep, prior to 2008.
There goes the answer to your previously asked question : here we use 2005.
 
@LucDanton Because this is C++.
 
@R.MartinhoFernandes Completely wrong word lol
 
Also I expect std::u32cout << some_u32string to 'work'.
 
But there's no std::u32cout.
 
10:34 AM
Right.
 
> test\normalization.c++:25: out.storage() == U"ABC\x0041\x030A\x006F\x0302\x0073\x0323\x0307\x0064\x0307\x0323\x0071\x0307\x0‌​323" failed for: {?} == 0x884a78
 
We have codecvt facets but the ExternT for std::cout is char anyway.
Isn't that fun?
 
What a helpful message!
 
ah, the joys of iostream
 
test\normalization.c++:35: out.storage() == U"ABC\x0041\x030A\x006F\x0302\x0073\x0323\x0307\x0064\x0307\x0323\x0071\x0307\x0323" failed for:
        \x41\x42\x43\x41\x30a\x6f\x302\x73\x323\x307\x64\x307\x323\x71\x307
        ==
        0x884a74
Much better.
For some reason, putting the operator<< in the global namespace did not work, so I had to to put it in namespace std.
 
10:56 AM
heh, I love incredibuild as a product, but the way it reports compilation speed is absurd
 
@R.MartinhoFernandes You mean it didn't compile, or it was not selected during overload resolution?
 
apparently I'm compiling at 110 GHz at the moment
 
@StackedCrooked It was not selected.
@jalf lolwut
@StackedCrooked I'm not terribly concerned though. This is test code...
 
@R.MartinhoFernandes it just sums up the clock speed of every core used in the compilation
which, was 35 or something. Dropped down to 32 cores now, for a total of 91.1GHz
 
0
A: Should we reset the all reputation point of all users to 0

R. Martinho FernandesLet's assume for a moment that this is indeed a competition. Basically, what this post is asking for is a bit of fairness for those that are just starting. Those that have not contributed anything yet, those that have not made any effort yet, those that have not actually competed yet, should not...

Inspired by @jalf's comment on the question.
 
11:06 AM
IMO there should be badges given out monthly/yearly for top contributors of certain criteria
That way it is actually possible to compete against Skeet
 
Why would you want to compete against Jon Skeet
This is totally missing the point.
 
Do they change the rules of the hundred metre competitions to make it possible to compete against Bolt?
 
@R.MartinhoFernandes Well right now if you want to compete against someone you're going up against their 4 years of work
 
This is still missing the point.
 
The whole system is a game
 
11:10 AM
@Pubby Nope.
 
It's like having a non-profit and a list of the greatest donors to the non-profit (think kickstarter, for example.) And someone asks for the numbers to be reset because they can't be in the list because some people gave a large amount of money in the past.
 
@R.MartinhoFernandes ?
 
Even if you want to play the competition angle, there's weekly, monthly, quarterly, and yearly leagues.
 
What I'm trying to say is that the leagues should give badges out and use different criteria
 
You should be happy to give, and the numbers are encouraging, but if you contribute for the rep you're doing it wrong.
-1
Q: How fix damged zip file using java

user1780795Encrypt afile by converting it to a zip file, then adding an array of bytes to it. When clicking on the file after addition, it returns "damaged file". then give it new extintion the problem is, remove the added bytes from the zip file to make it work again ? import java.io.BufferedWriter; imp...

le damgaed file usign JAVAlaugegg pls help hot to fix
 
11:16 AM
WTF is that.
 
> the password is sobhi saede
 
That guy will probably be question banned soon.
 
Anyone using git add -p ?
 
hahahahahh ^
 
11:36 AM
@R.MartinhoFernandes #268 here :)
 
I was higher, but dropped a bunch with that +500 bounty.
 
huh, I'm surprisingly stable
 
Which is not producing anything useful :/
 
#276 in both quarterly and monthly, 268 on year, and 304 on week
@R.MartinhoFernandes which bounty?
 
ohai, I have a question here??
 
11:40 AM
12
Q: What encoding does c32rtomb convert to?

R. Martinho FernandesThe functions c32rtomb and mbrtoc32 from <cuchar>/<uchar.h> are described in the C Unicode TR (draft) as performing conversions between UTF-321 and "multibyte characters". (...) If s is not a null pointer, the c32rtomb function determines the number of bytes needed to represent...

 
I can't understand why std::wstringstream won't just take my double without truncating them?
 
@R.MartinhoFernandes oh, it's about iostreamy stuff. I won't go near that ;)
 
@jalf It's not iostreams!
 
@TonyTheLion Are you sure it does truncate them? I suspect it's just how they're formatted when printing
 
But I do understand if you don't want to go near that anyway.
 
11:41 AM
need to set all those weird std:ios manipulators and thingies
 
@jalf hmmm, but how do you set the formatting?
 
std::setprecision or something.
 
@R.MartinhoFernandes it kind of is. Streams and locales kind of go together
tbh, I just never really dug into that stuff, so I have no clue how to answer it ;)
 
Seems no one has.
 
Sounds about right
Someone once wrote a book about iostreams and locales. Kate Gregory, I think? That's about the only indication I've ever seen that anyone actually understands that stuff
 
11:44 AM
@jalf No, not Kate Gregory.
 
@R.MartinhoFernandes oh right
 
@jalf Hope they updated for C++11
 
@DeadMG Did something change drastically?
 
dunno about drastically, but they did change some stuff
 
AFAIK iostreams is pretty much still the same pile of steaming crap, but with moves.
 
11:51 AM
I think they have state blocks for the formatting flags now.
 
You mean, for saving and restoring them?
Nope.
 
huh
oh well
 
It's still the same old crap.
 
12:15 PM
some_vector = {}; or some_vector.clear();?
 
I'd use the latter
 
Ell
.clear
 
that's kind of what clear is for
 
It's a clear case.
 
12:32 PM
Canonical ordering algorithm is aworking.
Which means now all I need for normalizing to normal form D is a function that calls the underlying machinery.
 
Ell
normal form D?
 
Ell
are you going to make it normalise to all four forms?
 
For now only the canonical ones. Compatibility forms are for later. Much later.
 
12:39 PM
how much wood a woodchuck would chuck if a woodchuck could chuck wood?
 
I am completely ignoring any compatibility features, and any tailored features for now.
It's messy enough as is.
 
@TonyTheLion About as many good cookies a good cook could cook, if a good cook could cook cookies good.
 
Ell
if a good cook could cook cookies well?
 
Yeah :(
FUUU
 
Anyone knows how I can tell scons that some variable should not require recompilation of stuff that already compiled?
 
12:46 PM
I've been kicked from the editing dialog just before I hit enter
 
Ell
I'm not a pheasant plucker I'm a pheasant plucker's mate, I'm only plucking pheasants when the pheasant plucker's late
 
> According to the Annals of Improbable Research, a woodchuck can chuck 361.9237001 cubic centimeters of wood per day.
 
Ell
^say that 10 times fast
what does it even mean to chuck?
 
Ell
as in, throw?
 
12:50 PM
throw std::runtime_error("Fail!");
 
Oh god amazon, this is so fucking stupid
I can't submit an evaluation if I don't provide text
 
I'm hungry
 
I order the book, the book arrives
Is there anything to say about this ?
Why the fuck should I write a novel about a book arriving in my postal box
 
4
Q: Use of -> in function declaration

Chris WilsonI've just come across the following examples of C++ functions using the new auto keyword, and I was hoping someone could help me understand what the syntax means. template <class T, class U> auto add(T t, U u) -> decltype(t + u); auto f = [](int a, int b) -> int { return a*b; }; ...

 
Woot, this test passes: pastie.org/5142621. I'm awesome.
 
Ell
12:56 PM
I never knew there was such thing as std::u32string
 
It's just a glorified vector of char32_t.
 
Ell
what does .storage() do?
 
Exposes the internal storage used by my text class.
 
Ell
What is the internal storage? do you choose it? Or is it a vector of something
 
@Ell Yes, you can choose it: basic_text<utf32, vector<char32_t>> is valid. The default is std::basic_string<whatever the code unit for the encoding is>, which means in that code it's std::u32string.
 
Ell
12:58 PM
right okay
what is a char32_t equivalent to?
an int on a 32 bit architecture?
 
It's at least a 32-bit unsigned integer.
 
Ell
right kk
 
But is distinct from uint32_t and from uint_least32_t.
 
Ell
why?
 
That way it can be safely assumed to represent text.
 
Ell
1:01 PM
okay
 
E.g. it's convenient for overloading
 
And you can have overloads for the two.
For example, outputting a uint32_t with value 65 you would expect "65". Outputting a char32_t with value 65 you probably want "A".
 
Ell
right got you
 
Any possibility of a "Trello Hurricane fund" which we can donate to?
 
Ell
can you do strong typedefs in c++?
 
1:03 PM
No. There's some hack in boost.
 
Ell
wtff my terminal is spazzing up
the end button seems to have just lost all kind of sanity
 
For canonical equivalence comparison, should I make free function so that calling it is easy, a function object so that it can be used in template arguments, both?
 
Ell
both
 
equal_to defaults to the == operator
 
Ell
how do you get a function object from a function?
 
1:15 PM
So you don't need a function object if you have implemented operator==
equal_to is a function object
 
@kbok No, I don't want a operator==.
Its semantics are not clear.
One of my design goals is no implicit wishy-washy stuff happening.
 
Is operator== unclear, or your function ?
 
operator==.
 
I'm not sure how equality is unclear
 
Does it do exact codepoint comparison? Or canonical equivalence? Or compatibility equivalence?
@kbok There's more than one equality.
 
1:24 PM
Honestly I think your objects have unclear equality semantics, not operator==
 
@Ell You write it? struct foo_fun { R operator()(...) const { return foo(...); } };.
 
But you need both, for sure
 
@kbok Yes, they do. And that's why I don't want operator==: if you want to compare, I want you to be explicit in what you want.
 
Fair enough
 
Ell
@R.MartinhoFernandes isn't there a shortcut? with like std::function or somethin
 
1:31 PM
Why do you want function object from function.
 
Ell
to pass to a template for isntance
wait a second
std::function is runtime, derp
 
@Ell But that doesn't give you a distinct type.
 
Use std::function or std::bind, if you really need it, but if you have a template you can just use function directly.
(You probably shouldn't take std::function as arguments)
 
Ell
does std::bind need language support?
 
@Ell probably no
 
1:36 PM
@R.MartinhoFernandes There's nothing wrong with normalizing to NFC or NFD, then comparing, in ==.
 
I think there is.
 
which is?
that is how the Unicode Standard defines equivalence
 
Nope. That's how it defines canonical equivalence.
There's a reason they put in a different name.
 
which is the reasonable default
compatibility equivalence should be the one you have to work for
 
Ell
hmmm. I wonder if the ouya will do any good
 
1:43 PM
Hey, Apple Maps was accurate after all: http://i.imgur.com/UGSFv.jpg #ImGoingToHellForThis
 
rofl
very nice
 
So much destruction
I need to do console->breadboard->wireColor = color; and I have made breadboard & wireColor private members of their class. So is it good to have setters inside console's class and inside breadboard's class?
 
anyone know how to debug SEH code step by step in VC++ 2010?
when a Violation is raised, Visual C++ deal with it , the breakpoint never fired
 
@Triumphant which breakpoint?
you can have VC++ break when a SEH exception is thrown
 
LONG WINAPI CVMArray<TYPE>::UnhandledExceptionFilter(PEXCEPTION_POINTERS pep)
i can't step into the function when an exception occurs, the compile catch it at the first moment before the breakpoint fired
 
1:54 PM
no clue then :)
 
I need to change the default settings in the dialog?
the Exception Dialog in Menu: Debug->Exception
 
3 mins ago, by jalf
no clue then :)
 
@jalf aha, thank you all the same
 

« first day (746 days earlier)      last day (4219 days later) »