« first day (1664 days earlier)      last day (3289 days later) » 

11:00 AM
I know how that feels
 
Ah, got it.
It's δίς vs bis.
You're right, it's Greek.
 
room topic changed to Lounge<C++>: I made four loops for you while you were arguing about dumb cases loungecpp.net/the-law/newbie-hints [c++] [c++11] [c++14] [c++-faq]
 
@Cicada and my goal all along was to be declared "right" on the internet by a bunch of strangers. My life is complete now.
 
Ell
I need a playlist that makes me do work
 
@Nisk couldn't agree more 104%
 
11:01 AM
@Ell That's also called a "TODO list".
 
@LucDanton "twice" is the word that matters here, not "two", and in Latin that's "bis".
 
@Ell have you tried Deep Focus on Spotify?
 
Ell
I haven't
I will though thanks
 
@Cicada that attitude - where you feel that people want to prove you dumb...
 
@R.MartinhoFernandes It was a tangent.
 
user3010322
11:02 AM
template <typename Self>
void do_shit( Self&& );
 
user3010322
This was a great idea and I don't know why I haven't done it sooner.
 
@Nisk irrelevant implementation detail
 
@LucDanton Ah. I thought it was "two" and that's why I got confused at first.
 
user1804599
@fredoverflow Is the order significant?
 
user1804599
11:03 AM
If not, make it a TODO multiset!
 
But amount of executors is not an irrelevant implementation detail?
Good concept bro
 
@rightfold I wouldn't want to do the same thing twice...
 
user1804599
Why not?
 
user1804599
Maybe one thing has to be done twice.
 
Example?
 
11:04 AM
@CatPlusPlus it is, from the point of someone using the parallel-for. I didn't say that only n-executor version is not a loop; I wanted to use that edge case to demonstrate that there's nothing loop-specific in the construct
 
user1804599
@fredoverflow buy one bottle of milk.
 
while has precisely the same edge case
 
@BartekBanachewicz No. Because the parallel loop is an abstraction - for which (I think) a control graph doesn't exist - you can only draw flow graphs for the resulting loops, which you did.
 
@AndyProwl It's "dichotomy" btw.
 
// Enough of the for loops already.
// Is this an assignment?
int i = 0;
 
11:05 AM
@BartekBanachewicz Wat.
 
Why is while a loop and for is not?
 
A degenerate loop is a loop.
 
(Also even 1-pass loop is likely to jump to start to check for condition so there's that)
 
@CatPlusPlus isn't for loop just a concise way to write a while loop anyway
 
Xeo
@Xeo a loop is a loop is a loop is
2
 
user1804599
11:07 AM
a loupe is A LOUPE IS
 
for (;;)   // <-- By the way, is this a loop?
{
    printf("a loop is ");
}
 
@CatPlusPlus because its inherent premise is making the computer do the same things over and over. For-each is a way to transform data to effects or other data. That's how I see it
 
Cant a loupe
 
> riverrun, past Eve and Adam's, from swerve of shore to bend of bay, brings us by a commodius vicus of recirculation back to Howth Castle and Environs. [...] A way a lone a last a loved a long the.
 
@BartekBanachewicz while and for only differ at language level
 
11:08 AM
@fredoverflow sigh no, stop being litb.
@CatPlusPlus there are other forms of "for" than C++'s for(;;)
 
@BartekBanachewicz Whatever happened to him?
 
hmm I need to look into latest CUDA toolkit
 
heck, JS alone has like 5
 
And they're all loops
 
is tail-recursion a loop :o
 
11:09 AM
@CatPlusPlus if we stick to your definition of "loop" being "a circle on execution diagram" then I disagree
 
@Nisk yes
 
I'm psyducking out of this, I have work to do
 
@fredoverflow (sssh I know) :)
that's weird, didn't reply
 
no space after the number
 
@BartekBanachewicz ty
 
11:12 AM
@Nisk I wish I knew ssh better.
 
@fredoverflow securer-secure-shell
 
lol
returning a tuple in Java
66
A: How to return 2 values from a Java function?

JesperInstead of returning an array that contains the two values or using a generic Pair class, consider creating a class that represents the result that you want to return, and return an instance of that class. Give the class a meaningful name. The benefits of this approach over using an array are typ...

 
user3010322
Yes, yeeesss...
 
user3010322
It's compiling.
 
user1804599
11:16 AM
@Mr.kbok Have an interface Product2<T, U> that is implemented by MyResult.
 
user1804599
That way you can have both named fields and generic code on two-element values.
 
user3010322
@Mr.kbok A cool thing for C++ would be named_tuple, where you could specify each item in the return to have a distinct name but still be accessed by the usual get<> with std::.
 
@ThePhD They're called structs m8
2
 
user3010322
@Rapptz Yeah, but adapting that to the tuple interface to make it play nice is hard. :(
 
user3010322
11:17 AM
Also, hi!
 
@ThePhD BOOST_FUSION_ADAPT_STRUCT
 
@ThePhD r u srs
 
> Top Tags php
 
17
A: How to generate a std::get like function for my class?

RapptzAssuming you wouldn't mind making this in a "manual manner" you can do this really simply. #include <tuple> struct A { int a; bool b; }; template<size_t N> auto get(A& a) -> decltype(std::get<N>(std::tie(a.a, a.b))) { return std::get<N>(std::tie(a.a, a.b)); } #include <iostream> int ...

 
11:19 AM
@LightnessRacesinOrbit where's lightning :(
 
@AlexM. in the past
 
chat already scrolls m8
 
user3010322
@Rapptz Whoa. Kinky.
 
@LightnessRacesinOrbit it doesn't when I minimize my browser or switch the tab and i'm too lazy
 
11:22 AM
@ThePhD actually quite reasonable
you shouldn't use it
it's too reasonable for you I think
 
@deW1 yes it does
 
time to go
 
Scrolling often shits itself and requires a refresh
 
@LightnessRacesinOrbit hmm not for me :> well now it does
 
why not press End
 
11:23 AM
cuz lazy
 
If it breaks then End helps only once
 
I can't imagine having it scroll to bottom every 5 seconds
how very annoying
 
user1804599
@Rapptz decltype(auto)
 
user1804599
Also y u take by lvalue reference.
 
11:29 AM
has anyone used CUDA with C++? I only ever used it with C
 
I dropped my 7x7x7 cube and all the little cubies burst forth.
Assembling those 212 things back together is going to take an hour or so :(
 
@R.MartinhoFernandes Oops :)
 
Ell
who wants to help me with physics :D
$\frac{dQ}{dt}$ test
hey it worked
 
user1804599
 
Ell
11:38 AM
:(
Okay, you could help me with a userscript instead? :D
 
@Nisk I had a friend that did, they said it was quite nice
 
Ell
I can't write javascript for shit
 
do it for money instead
 
you wrote it right ^ there
 
that wasn't for shit though
 
Ell
11:42 AM
I can't write it for money either
 
Ell
I'm trying to make a facebook chat resizer
 
lol somebody serial downvoted me yesterday wonder who it was
 
@Ell And maybe facebook chat doesn't want to be resized? Did you think about its feelings?
 
@Ell messenger.com
 
user1804599
11:44 AM
I stopped doing anything web-related outside of job.
 
Ell
@BartekBanachewicz this looks like a giant tablet interface
I also want LaTeX in fb chat
 
Now that the error message has been added to the question, surprise surprise it says the same thing as this answer :facepalm: — Lightness Races in Orbit 32 secs ago
> I can't find what's wrong
 
@Ell ha ha ha
 
fucking bullshit it tells you right there doofus
 
I'm thinking about writing something that adds some sort of extra plonk link that instead of using the default ignore feature just spoiler-ifies messages
 
11:45 AM
after they removed any formatting that was tehre
 
I'm struggling with converting from int to a const char in C. I have read http://stackoverflow.com/questions/9655202/how-to-convert-integer-to-string-in-c which shows the answer but according to it, you use the format %d

sprintf(str, "%d", aInt);

but according to http://www.tutorialspoint.com/c_standard_library/c_function_sprintf.htm that format is for the output... %d is a decimal, where as it should be %s should it not? I try %s and I get a System.AccessViolation Exception
 
Ell
I'd just implement it as a userscript
 
@BartekBanachewicz they never "removed" any formatting in FB chat
 
Ell
like chatjax
 
@Ell Kinda pointless when you're the only one it works for
 
11:46 AM
@LightnessRacesinOrbit how do you do italics then
 
@MyDaftQuestions Do you really mean const char?
 
Ell
$\frac{V}{R} = C\frac{dV}{dt}$
 
@BartekBanachewicz You can't.
 
Ell
works for me vOv
and also everyone in the phyiscs chat
 
@LightnessRacesinOrbit you could before
 
Ell
11:46 AM
and maths chats
 
@BartekBanachewicz They never "removed" any formatting because there was never any formatting to begin with.
Nope
 
you're wrong hth
 
Ell
and I'd just ask the person I'm talking to to use it
 
yes @lightnessracesin... but I guess it does'nt have be... I guess I could have a char only
 
Just casually making the obvious mistake again of interacting with Bartek. Easily fixed. #puhlonkagain
 
@MyDaftQuestions I'm pretty sure you're confusing const char and const char*/const char[N]. Why are you asking about C in a C++ room anyway?
 
0
Q: How to do bold and italic formatting in Facebook Chat

phwdA follow-up to Text formatting enhancements on Facebook, how does one create bold and italic formatting in Facebook chat? Is it possible to provide emphasis within messages? I think (maybe I'm going mad) that this used to work, but it hasn't been working lately.

 
@BartekBanachewicz Notice how none of those things are italics.
 
D'oh... yes, good point, I will leave and find a C place !!
 
All three links talk about bold and underline only.
Good work trying to be a fucking smart-arse, though.
@MyDaftQuestions Good luck!
2 mins ago, by Bartek Banachewicz
@LightnessRacesinOrbit how do you do italics then
2 mins ago, by Lightness Races in Orbit
@BartekBanachewicz You can't.
2 mins ago, by Bartek Banachewicz
you're wrong hth
I'm not "special pleading" I'm pointing out that you're talking total nonsense and your "evidence" is not evidence of the thing you were claiming. Just go away please
 
11:49 AM
yawn
 
what were we talking about again
 
Happy birthday btw
 
the good thing is
despite the fact I constantly make the mistake of unignoring lori
is that I care less and less about the things that are coming from him
it's like the really, really bad joke that at first was annoying but after some time you just get used to it and is like "eh whatever"
 
I bet it's mutual.
 
11:51 AM
@R.MartinhoFernandes not that I care about his opinion that much at all
 
@BartekBanachewicz it makes this channel worth idling in
 
> lori
 
I don't understand why he's bitching and moaning about me when he's the one who started the argument and then failed to provide useful evidence for it?
And then starts on the character assassination like he's got some sort of moral high ground? :facepalm:
 
@Nisk gonna end soon then I suppose because I feel little to no emotion about what he writes nowadays
 
Oh brother.
This is pathetic.
I'm going to go back to work for a while :)
@R.MartinhoFernandes: All set for tomorrow night?
 
11:53 AM
I mean sure it's still annoying when you catch the glimpses of reason
you're like "oh is this going to be meaningful today"
but it ends quickly and gets back to normal so
 
Yes you look really superior and mature after that hateful little rant. Well done!
 
the brightness key on my laptop works after like 10sec delay...dunno what's to blame...gnome or what
 
daaang 46 tornadoes last night
 
11:55 AM
@Nisk gnome idea mate
@Mgetz 46?!?!
like.. on the whole planet or what?
 
am I the only one who thinks lori is a nice name and lrio should switch to it
ok
 
Whenever I tell someone that "it's mutual" or "takes two to tango", it's a subtle hint that someone might be failing to consider another's POV.
 
@LightnessRacesinOrbit no just across Kansas, Nebraska, Oklahoma, and Texas
 
@AlexM. I quite like "lori"
@R.MartinhoFernandes I really just wouldn't bother. I mean, you've tried before, and nothing changed, so... shrug
 
Xeo
11:56 AM
Is that "iori" or "Lori"?
Both are good
 
Lori
 
@R.MartinhoFernandes "failing to consider"? oh but that's untrue.
 
@Xeo Lori (hint: anagram)
 
Xeo
@LightnessRacesinOrbit I figured.
 
I am considering and consciously ignoring it
 
Xeo
11:56 AM
Iori is nice too, though
 
@Mgetz It's almost like God hates you :)
 
You're ignoring what you sound like?
 
lori is just one letter short of loki
 
Not surprising
 
lol consciously ignoring my POV therefore I am the terrible bad one. awesome
2
 
11:57 AM
@LightnessRacesinOrbit nah, just springtime on the plains. I'm in Colorado anyway, we don't get nearly as many as the rest of tornado alley
 
@LightnessRacesinOrbit so you think gnome is to blame?
 
@Nisk sure why not
@Mgetz I liek Colorado
 
You should consider how you come across to others because the way they reciprocate is going to depend on that.
 
@R.MartinhoFernandes not surprising considering the constant annoying and aggressive overpedantry and overall lack of will to communicate. see, the thing is I want to communicate, and my unplonks kinda show how that's leaking. But it's absolutely useless because the other end, as you could say, shuts down the connection. Hopefully I'll learn a lesson enough to stop trying soon though
 
@LightnessRacesinOrbit useful.
 
11:59 AM
@R.MartinhoFernandes true. I generally consider myself nice enough, but easy to provoke.
 

« first day (1664 days earlier)      last day (3289 days later) »