« first day (881 days earlier)      last day (4082 days later) » 

4:00 AM
any ideas?
 
?_?
 
@techno We just told you, +infinity
unless you screwed up and it's actually "smallest number"
and not greatest
 
@StackedCrooked ....???
 
4:01 AM
"how not to implement colors" ? or what is this :/
 
check the first question
@Borgleader
 
oh
that totally isn't what I had in mind
lmao
that's even easier
 
I was looking for a way to get the enum type of an enumerator. Then I realized I could just use decltype.
 
Couldnt they just say "Greatest common denominator?"
ffs
 
It's 4 btw
 
4:03 AM
@Borgleader Common denominator would leave no remainder. Oh wait. Never mind.
 
43 % 4 == 91 % 4 == 183 % 4
 
No remainder === remainder is 0 --> 0 for all 3, answers the question
 
Indeed.
 
hmm
well,how am i supposed to calculate it
like dividing from 1,2,3..
oopps
forget that
well i did not notice the opeyions
options
 
lol I just gave you the answer
 
4:08 AM
i know
but i forgot to check the options
you could just divide and check
the options
rather than looping through
 
#include <iostream>

int main() {
    const int a = 43, b = 91, c = 183;
    for(auto& i : {4,7,9,13}) {
        int r = a % i;
        if(r == b % i && r == c % i)
            std::cout << i;
    }
}
 
@Rapptz thanks
:)
 
> The implementation of Concepts Lite does not yet include Common_type --- I left it out on accident, but there's a good definition in the Palo Alto TR (N3351). It's the result type of the ?: operator.
 
im taking an aptitude test today
trying out some questions
need a job :P
 
4:51 AM
predator
 
fascinating. don't think I've ever had an answer hit 100 upvotes, let alone 500
 
@nneonneo Must be enjoying the repcap no? :P
 
indeed
all I need now is a reddit submission. :P
 
I did see it go on reddit. But it didn't get too much traction.
 
oh? interesting
 
5:01 AM
I have to say that the answer probably has one of the highest vote-to-view ratios ever.
 
I admit I know nothing about how high-vote questions work
 
I'm looking at the voting graph right now, and it appears to have been linked from somewhere. But that "somewhere" is unusual because it's low traffic with a high concentration of voting accounts.
@nneonneo They can be very interesting. I started to take interest in them after my first one in December 2011.
But your case is definitely unusual.
 
wait, there's a voting graph?
 
I make them.
 
ah. neat
from sede data, I guess?
 
5:05 AM
After a few times, I actually made a template to make it easier.
I'll show you in a sec.
 
kewl
 
So it really started at around 11PM UTC the first day.
I believe that's close to when it was submitted to reddit. But the submission didn't get a lot of attention and the views is still very low.
Which is why your case is unusual.
 
@nneonneo Just a heads up, you only need 1 more C answer for a gold badge
 
Especially since your answer is definitely long enough to trigger the tl;dr for most passerbys.
 
apparently anyway
 
5:12 AM
@Rapptz: eh? that's odd, it says 1k x 202
for me
 
199 non-wiki, 3 wiki
don't know if wiki counts though
 
I don't see any wiki.
It looks like 202 of 202 are non-wiki?
Oh wait. 3 of them are questions.
199 answers + 3 questions
 
oh right it says 199 non-wiki answers and 3 non-wiki questions
so yeah it's 1 answer still
 
cool. will be on the lookout.
 
Super User has a nicer theme than SO..
even their upvotes are prettier.
 
5:22 AM
If I use that strange bel character on stacked crooked's server, whille the machine start to chime?
 
@ThePhD lol
Let's find out. Put it in an infinite loop and see if he complains.
 
Does he run it off a server he's like, next to?
 
VPSes don't make noise.
 
Ah, this is true.
Havok has never gotten back to me about the zero-cost license...
 
That was hours ago.
 
5:33 AM
Well, it was a simple licensing query. You'd think they'd just shoot out a quick e-mail with their legendary Havok support.
Unless... maybe the terms are more complicated?
Meh. I'll find out in a few days I guess.
 
Aren't they based in Ireland?
Give them time to actually come in to work.
 
They've got worldwide offices.
About 6 of them.
2 in the US.
 
Well, I guess they don't care about you, then.
 
(On either coast, I think)
 
It's the only explanation.
The only one.
 
5:39 AM
Tee hee. I'm important enough to be ignored.
Yay. <3
WTB: 2D Artist.
Or maybe I'll just draw myself.
Because Programmer Art: Fuck Yeah!
Quick question: can you smash 2 CMake-generated VS solutions together?
It's generating 1 solution using the x64 compilers, and one using the x86 compilers.
I thought it'd be easier if I could just smash the two VS solutions together.
 
@ThePhD Yeah, one solution, two platforms.
Why CMake, though?
I'm guessing you're targeting a bunch of different OSs?
 
No, it's just for this library. They pass out VS2010 solutions like everybody else, and they build fine.
But they prefix ALL the outputs with VS_2010_[Shit]
So, I'm trying to just generate 2 solutions and [snip] the edges.
Hm, well. the CMake mailing list explicitly states it's not possible for CMake to do it.
Guess I'll just do it by hand.
 
5:54 AM
posted on March 15, 2013

We continue last week's discussion by getting down to details.

 
Ooooof
 
You should probably get a better grasp of basic C or C++ before you try to do anything with AVX and vectorization. — Mysticial 14 secs ago
 
Building that CMake solution was a HORRIBLE idea. @_@
328 unresolved externals, 45 failed builds >_<
 
@Mysticial Oooh, programming by accident.
 
@R.MartinhoFernandes by accident?
 
6:05 AM
What else would you call it?
 
lol
 
@Mysticial Strong words from a man who doesn't know C.
 
@JerryCoffin shuddup
 
@Mysticial LOL (really, I did).
 
@JerryCoffin hey!
 
6:08 AM
@Mysticial I know -- even when I was a child in school, I did a lousy job of shutting up when I was told to. I've gotten even worse, so now I laugh...
 
I know. Thanks for reminding me. Buh i need to use dis ASAP. So can u just give me a hint what to do to make it work?? thanks — Jane 2 mins ago
^^ Something tells me that the OP started with someone else's code and tried to modify it to something that he wants.
 
user1357851
6:23 AM
 
@JerryCoffin hehe... I love giving people a hard time about similar things.
 
@Mysticial That, of course, leads to a question I've asked many times: how is it that we take children whose existence consists entirely of running around, getting dirty, and making noise, and think it's a good idea to put them in school and tell them to sit still, still, stay clean, and be quiet? Does anybody honestly believe anybody learns anything significant in the first couple of years of school (that couldn't be learned in ways that went along with their basic nature)?
 
@JerryCoffin beats me...
 
6:43 AM
@JerryCoffin Because what would make too much sense?
It seems to me that if something makes sense, it's almost certainly not going to be the way things will be.
 
@Insilico I try not to be too cynical, but in cases like this, that can be pretty hard to manage...
-1
Q: Karp Reductions

user2172840Take the following instance A of 3-SAT and reduce it to an instance B of VERTEX-COVER (x1 v x2' v x3) ^ (x1' v x3' v x4) ^ (x2 v x3' v x4') ^ (x2' v x3' v x4) Create B. (Construct the graph and specify the appropriate value of k.) Identify a vertex cover C of size at most k for B. From C, det...

NaRQ?
 
@JerryCoffin Reading and writing? :)
 
@JerryCoffin I CV'ed as NaRQ that question
We're not here to do people's CS homework without some attempt on the OP's part.
Or at least in theory.
 
@JerryCoffin A "karp" reduction? Does it have anything to do with de-evolving a Gyarados to a Magikarp?
 
omg
 
6:48 AM
@Mysticial My son would probably have a better answer for that than I would.
 
I don't know if Google Drive just fails to make proper pptx files of the presentations for download sometimes, or if the pptx file format is a complicated piece of shit.
 
@Insilico If they won't put any effort into doing their homework, they could at least put a little effort into rephrasing it to sound like a question instead of an assignment.
 
@JerryCoffin lol
 
@Insilico It is and it isn't. The pptx file format itself is pretty simple: it's a zip file with the extension changed. As for the content, your second choice is pretty accurate (IMO).
 
About half the slides in the downloaded pptx are corrupt apparently and PowerPoint was so nice as to replace them with blank slides. Yes, the presentation looks just fine in Google Drive.
 
6:58 AM
@Insilico If you'd like, you can read through the pptx file format spec. Be warned: it's long, and (at least as of the first and second editions) quite poorly defined (e.g., explanations like "makes it behave like PowerPoint 97", with no explanation of how PPT 97 behaved).
 
@JerryCoffin Can't possibly be worse than the specs published by the W3C.
 
user1357851
someone might want to enlight me on why some conferences are so expensive to attain while others are free
 
@Telkitty It depends on a zillion factors
 
@Insilico I'm not so sure about that.
 
Things like place, venue, date, sponsors, content, etc.
 
user1357851
7:00 AM
Like there are free ones with food and drinks provided and there are ones that cost $1000-$2000 for 2 days?
 
user1357851
Do people generally get more out of $2000 ones?
 
17
Q: Why are developer conferences so expensive?

Robotsushi Possible Duplicate: Programming Conferences A good example of this is the BUILD Windows conference by Microsoft, Its $2000 for a ticket. I've never been to one of these conferences so perhaps there are unicorns everywhere, but I have a hard time justifying the cost. Is there anything...

 
user1357851
Umm, I went to the last Microsoft partner summit in Sydney a few weeks ago, it was free. And I have been invited to the one in the US and that's around $2000
 
Is it possible to write a macro (or function, or type-trait, or something else) that accepts either a type or value? E.g both is_integer(2) and is_integer(int) would be accepted.
 
@StackedCrooked Both your is_integer examples work with values, no?
 
7:10 AM
Sorry, fixed it.
 
user1357851
Since I am invited to all sorts of networking/conference events nowadays, I start to learn a few things
 
user1357851
like seriously it does not take you $1000 to network with all those 'important' people in the industry
 
user1357851
sure, you have to show you have the talent and the drive, abut also choose your networks and events carefully
 
@StackedCrooked Would you object to`is_integer(2)` and is_integer<int>()?
 
No, I'm just curious :)
@Insilico That's not bad.
 
7:13 AM
You probably could use some crazy macro thing to make your prior syntax work, but I'd rather not have to deal with that. :-)
 
@StackedCrooked Getting a macro to accept both should be pretty easy. Getting it to do anything useful with both is a whole different story. I think a function is out of the question though -- you can't write a function to accept something like int or long as a normal parameter.
 
template<typename T> bool is_integer(T t);
template<typename T> bool is_integer();
 
SFINAE perhaps?
 
So is_integer(2) would invoke the first overload, and is_integer<int>() would invoke the second overload
I think. I haven't tested it.
 
It'll probably work.
 
7:16 AM
You would need some documentation to make it clear there's two overloads for a reason. :-)
 
Hey, maybe decltype(int) and decltype(3).
Ah, decltype(int) is not allowed :(
 
needs to be an expression iirc
 
Indeed.
@JerryCoffin Indeed. But perhaps it's possible to write something that accepts both <3> and <int>.
 
@StackedCrooked Does template argument "overloading" work? I don't think it does.
 
No, it doesn't..
Ah well. It's just a fun puzzle.
Bjarne would scold me severely if he saw this.
 
7:27 AM
@StackedCrooked Yes. I wrote one to emulate alignas.
 
Cool!
SFINAE based I guess?
 
@R.MartinhoFernandes Are macros involved in your alignas emulation?
 
Awww.
I lost an answer. =[
My explanation was not strong enough.
 
user142019
Good afternoon.
 
user142019
7:34 AM
@Insilico make it constexpr.
 
I had tried something similar with classes instead of functions and that failed.
 
@R.MartinhoFernandes There's a __VERSION__ macro
but I guess it isn't helpful for what you're doing
since I think it's a string isn't it
 
7:51 AM
Yaaaaaaaaaaaaaay
0 error build!
 
@ThePhD Compile with warnings on and turn warnings to errors. :-P
 
@ThePhD Great. Congrats.
 
@Insilico ;~; y u hate me?
I never did anything to your builds. ;~;
 
user142019
Don't build. No more build problems.
 
7:54 AM
@ThePhD I've actually haven't seen ";~;" before. What is that supposed to represent?
 
@Insilico All of my tears.
 
@ThePhD Oh, am I supposed to see that right side up as opposed to sideways?
 
Yeah. I try to make as many faces as I can right-side up.
Of course, sometimes it just doesn't work out.
 
Now I can't unsee the face in ";~;"
 
Forever tainted.
 
user142019
7:56 AM
(\/)(;,,;)(\/)
 
8:06 AM
@ThePhD You should use -Wall -Werror at the very least.
 
@StackedCrooked That's suicidal on any MSVC build.
 
Personally I use -Wall -Werror -Wextra -fpendatic-errors.
I don't rember much about MSVC warning levels.
I do remember that they had silly warnings. Like using this in the constructor.
 
Yeah.
They have a crapload of silly warnings.
 
Just do Warning Level 3
 
Even ones about truncation of names that are too long (mangled ones) because their compiler can't handle it.
@Rapptz S'what I'm at.
 
user142019
8:12 AM
@StackedCrooked lolwot
 
user142019
Why would using this in ctor be bad.
 
@StackedCrooked in ctor-initializer-list.
 
IIRC you got a warning if you used *this in initialization list.
 
user142019
Oh initialization list.
 
But that's not a valid warning.
 
user142019
8:13 AM
Still, I can imagine you want that.
 
user142019
Pimpl. :P
 
user142019
pimpl->pop();
 
user142019
I am thirsty.
 
morning all
 
user142019
8:30 AM
Arrr hello pirate.
 
user142019
inb4 ¬_¬
 
@sehe It's a bit different, but a classical album that is from a more recent time is the Gun Slinger Girls OST (it's an Anime).
They have a whole range of classical pieces that are extremely well done, in my untrained ear's opinion.
 
@Zoidberg ಠ_ಠ
 
user142019
¬_¬ prediction y u wrong.
 
you feeling ok @zoid, you seem, happy?
it took me far to long to manage to edit that :(
yeah... this...
 
8:38 AM
@thecoshman Is that a pun?
 
user142019
@thecoshman -1 not enough "go ahead and"
 
@Zoidberg stole it from reddit, shut up
 
user142019
You thief!
 
@MarkGarcia erh... yes, yes I never make spelling mistakes, so it must be a pun. Well technically, malapropism
 
marning
 
8:45 AM
Mooorniiin'.
Shall I play you a song to start your day off?
 
so how comes this SFINAE doesn't work?
No
 
@ThePhD "to start your day off ?" That would be nice.
 
user142019
@TonyTheLion y u no include <type_traits>.
 
@MarkGarcia :D
Too bad, you get music anyways.
 
8:49 AM
@Zoidberg fixed but it still doesn't work
 
user142019
@TonyTheLion That's because it's irrelevant.
 
Y U SCREW WITH ME?
@thecoshman lol
 
@TonyTheLion You're redefining foo btw
rename the second foo to foo2
 
@Rapptz but isn't that the point of SFINEA, to have one with true and the other for the false case?
 
8:52 AM
@Rapptz No, he isn't.
the default template parameter for each is different.
 
2
A: SFINAE working in return type but not as template parameter

Konstantin OznobihinYou should take a look at 14.5.6.1 Function template overloading (C++11 standard) where function templates equivalency is defined. In short, default template arguments are not considered, so in the 1st case you have the same function template defined twice. In the 2nd case you have expression ref...

@TonyTheLion ^^
 
user142019
@Rapptz no he overloads it.
 
@MarkGarcia I thought I understood it, but turns out I don't get it at all
 
user142019
Once for all integral types and once for all floating point types.
 
and it's not obvious why
 
8:52 AM
error: redefinition of 'template<class T, class> T foo(T)'
error: 'template<class T, class> T foo(T)' previously declared here
:|
 
@TonyTheLion Then that's something that should start your day.
 
@TonyTheLion ideone.com/jZfbrd
?_?
 
user142019
@Rapptz that's not the point you fool.
 
user142019
He doesn't want that.
 
then what is it?
also the second parameter of enable_if already defaults to void
 
user142019
8:54 AM
@Rapptz He wants definition A for foo(any integral type here) and definition B for foo(any floating point type here).
 
Hey, @Sbi, didn't know you where doing advice videos
 
hmmm
 
(yes, anything parenting related automatically make me think of him)
 
the C++03-style return type SFINAE works fine
 
user142019
@thecoshman lol
 
8:55 AM
it's only that defaulted template parameter which does not.
 
user142019
What about parameter?
 
Hmmm... so when the compiler does its overload ambiguity check run on definitions, it doesn't take into account the default params.
 
user142019
Oh no that obviously won't work.
 
user142019
It cannot be deduced.
 
user142019
template<typename T>
T foo(typename enable_if<is_integral<T>::value, T>::type a)
 
user142019
8:56 AM
lolololololololololololololololololololololololololololololololololololololololo‌​lolololol
 
fucking hell, ebay
 
user142019
I want to go home.
 
I want to unsubscribe to your shit, so you want me to tell you all the things about me?
fuck that.
 
user142019
Sue eBay.
 
user142019
Also Craigslist FTW.
 
8:58 AM
I don't like ebay
 
hmm
now I just have to deal with that e-mail from my boss
he probably wants to know why I didn't put in many hours over the last few days
 

« first day (881 days earlier)      last day (4082 days later) »