« first day (1434 days earlier)      last day (3513 days later) » 

3:00 PM
Calendar functions still my favourite
 
-2
Q: Deduce std::function parameters from lambda

Mr AlmightyI'm trying to accept multiple arguments in a std::function, but I got errors: #include <functional> template <typename... Args> void caller(std::function<void(Args&&...)> function) { } int main() { caller([&] () { }); } The error is: main.cpp:11:22: error: no matching function for call...

 
Errybody is bad
 
It's pick-a-dupe, the game.
 
user1607528
getline(cin,mystring); asks for the input and doesnt end when hitting enter in netbeans
 
user3010322
 
user3010322
3:01 PM
@PolymorphicPotato ^ Proper deprecation!
 
user3010322
But I still can't, uh.
 
user3010322
Deprecate a using
 
user3010322
or at least I can't figure out the proper syntax.
 
You can use more indirection.
 
You're so wasting your time.
 
user3010322
3:02 PM
Why am I wasting my time? ;~;
 
You need to document it anyway :ssh:
 
Because Rapptz won't accept it.
 
template<typename T>
SOL_DEPRECATED struct userdata_t {
    using T = T;
};
template<typename T> using userdata = typename userdata_t<T>::T;
 
Also yeah I don't think this warrants API change at all
 
user3010322
But there's been lots of people confused by the name. :(
 
3:03 PM
How can I perfect forward arguments using a c++14 lambda taking a parameter pack?
 
Try jumping
 
[](auto&&... args) { return f(std::forward<??>(args)...); }
@R.MartinhoFernandes awesome thanks
 
@R.MartinhoFernandes Oooh, forgot I wield the dupehammer.
 
@TonyTheLion Left! Everybody stay in time now!
 
Xeo
3:07 PM
#define FWD(v) std::forward<decltype(v)>(v)
for great success!
 
user3010322
._.
 
user3010322
If this were me, I'd just smash the API and then document the breaking change.
 
And after that you wouldn't have users anymore, so you could break API all you want!
 
user3010322
Perfect.
 
3:11 PM
@Xeo i guess bjarne is never getting rid of macros :D
 
@Xeo #define FWD(v) ::std::forward<decltype(v)>(v)
 
@ThePhD GEE you'd break the API just because you don't like the fucking name.
 
I thought that is what semantic versioning was for, screwing your users without feeling guilty
 
user3010322
@R.MartinhoFernandes Yes.
 
2.0.0 changes:
- changed the name of a single thing
3
 
3:13 PM
You're terrible.
But we knew that already.
 
user3010322
I also got rid of the storage of the name in the userdata
 
@Muhammet The difference (since nobody really answered) is that operator<< for a left-hand operand of type ostream and a right-hand operand of type int is overloaded as a member function, but for a right-hand operand of type std::string is overloaded as a non-member function. Oh, and the "moron" part is storing an age at all-you should store a birthday and compute age on demand so you don't produce a stale result.
 
user3010322
since no other storage class had that convention at all.
 
user3010322
It's a massive inconsistency that I shouldn't have let get through: I fixed it for the function pushers and everything else, userdata shouldn't have been special.
 
@ThePhD yaaay
 
user3010322
3:14 PM
@PolymorphicPotato That's only in the api-fix branch, which is a separate PR.
 
Is anybody actually using your API?
 
I am. :v
 
Not for long.
 
user3010322
66 people have watched it, others have opened bug reports against it.
 
What API is it anyway?
 
3:15 PM
This doesn't warrant an API change
 
The API of Sol.
 
Backlog it for a next major release
 
Je moet er niet mee sollen.
 
user3010322
Well, it's in it's own branch.
 
3:16 PM
Ik zal er wel mee sollen.
 
@CatPlusPlus But the OCD.
 
user3010322
And it's a separate PR from everything else.
 
@R.MartinhoFernandes Its getting the better of him
 
user3010322
So it's not like I'm convoluting real fixes. :v
 
at the end of the day: who cares?
 
3:16 PM
I do.
 
@CatPlusPlus Unlike going to the bathroom, where you back-release a major log. (okay, sorry. That was bad even for me).
 
fucking shit
 
^ the log
 
emergency project turnin moved
to FUCKING TODAY's MORNING
god.
 
Xeo
3:17 PM
Did you know you're fucked?
 
I was fucked they day I entered that uni
from then on everything is just a consequence of that
 
@BartekBanachewicz Don't participate.
 
@BartekBanachewicz Yes my son? How many virgins do you have available within the next hour?
 
I need that fucking shit of paper
GRAWRGH
 
3:18 PM
Ugh Discourse stop stripping my whitespace
I want all those newlines fff
 
ITT Discourse is a stripper.
 
Uh uni stop fucking my life
 
Dude it can't be that bad?
 
it IS THAT BAD I thought I made it obvious
 
@Bartek how did that exam go?
 
3:19 PM
it's absolutely the worst thing ever
@LightnessRacesinOrbit I failed. Retry on tuesday.
 
Xeo
@R.MartinhoFernandes That seems familiar.
 
@BartekBanachewicz lol. I mean, sorry to hear that.
 
@Xeo from a movie
 
Xeo
Ye, I think I remember
 
@CatPlusPlus Discourse, I damn thee to hell! I've told you way too often already: strip the virgins, leave the white space alone!
 
3:21 PM
@LightnessRacesinOrbit Absolute shit.
 
wow racist
 
black space
 
@BartekBanachewicz try a prostate exam next time.
 
gay exam
 
3:21 PM
A friend of mine had a prostate exam once. She failed.
 
Together with Tony.
 
It's absolute crap
 
@BartekBanachewicz After careful study, we've found there is no black space. Every cubic meter of space was found to contain at least one photon at any given time.
 
It's an apogeum of pro forma and utter stupidity
 
I'm pretty sure it was the other way around - some 2 years ago
 
> delete[START-END]array;//Our suggestion to shrink the array
lol
 
@R.MartinhoFernandes I'd shrink my uni instead
to NOTHING
get it.
 
Did they take your stapler or what
 
@TonyTheLion dat code
 
3:25 PM
@CatPlusPlus it exists. Isn't that enough?
 
it's not code. well, not anymore than /dev/urandom is code
@BartekBanachewicz STAHPLE IT WHILE YOU CAHHN
 
So how's it going on with Scotland?
 
@R.MartinhoFernandes ...and too late for me to edit my comment to: "Frist Psot!"
 
Ell
scotland is still firmly attached to england unfortunately
 
@LightnessRacesinOrbit next step: devolve an english parliment
 
@Ell Scoltand, you mean.
 
I want to go home and sleep
or something
I'm stressed out and tired. I don't want to study anymore
 
Xeo
apropos go home...
damn, I've been here too long again
 
@BartekBanachewicz Do that, dude. Get a grip on yourself.
 
Xeo
> 8h15m
 
3:27 PM
@R.MartinhoFernandes why can't they just give me that shit of paper
 
Xeo
no break today
and I was actually productive!
 
@Xeo I am awake since 11. Yesterday.
 
@Xeo Productive at what?
 
@R.MartinhoFernandes It's all right. If you want to tell somebody to fap, you can be direct. No need for euphemisms like "get a grip on yourself".
 
3:29 PM
oh look
I saw the subjects this semester
 
Ell
@LightnessRacesinOrbit that's such a dick move :P
@JerryCoffin haha
 
> .NET
> Web in Java
> Web applications
> Local applications [sic]
And WOW "selected algorithmic problems"
 
user3010322
@LightnessRacesinOrbit 10/10 would do that to every soda in my house to make sure someone would be afraid to drink it.
 
there goes for interesting things this sem.
why were I hoping for anything reasonable
why.
 
Xeo
@LoïcFaure-Lacroix Work
I haven't done anything yesterday, and I've done all the things today
 
3:31 PM
@BartekBanachewicz what is that?
 
2 mins ago, by Bartek Banachewicz
I saw the subjects this semester
I've decided to not pick the "fancy" part this semester
There was a plan with game design and computer animation
So I've concluded it must be complete shit
That being said, I really hoped for more math :S
so instead I'll spent 4 months writing shit I don't care about in managed languages I don't care about
dunno, maybe I'll learn Scala at least
oh and F#.
 
How to do PR: 1. proofread emails you send. 2. proofread emails you send to apologise for not proofreading. http://t.co/nR7SWPKZO8
 
@Xeo Sounds like me!
 
My foray into MSc ends with a note in uni terms that says you can't take dean's leave after first semester
rip
 
3:37 PM
uff.. today I'm really tired
 
(I haven't done anything in first semester, so I can't continue normally either :v)
 
heheh fucker
told you
they are on lookout for people who do this shit
fucking fuckers
 
After 31.10 I will no longer be a student
 
good for you
 
:toot:
 
3:38 PM
ACTUALLY NO IT FUCKING MAKES ME MAD
 
think about dota
 
fuck this shit
I've withstood that for 3 years straight
 
Relax, man.
 
the fact that I'm not completely crazy yet is a miracle
 
Do something else.
 
3:40 PM
@R.MartinhoFernandes lmao that typo
 
Go see a doctor.
 
Last 4 semesters I did on inertia alone
 
That's what they tell me.
 
@R.MartinhoFernandes yeah right with maybe that project turnin MIGHT be tomorrow also exam on tuesday
also another project god knows when
 
Unsurprisingly it wasn't enough for the MSc :v
 
3:40 PM
also another semester full of bullsit in perspective
yes I am in PERFECT position to relax
 
Xeo
@R.MartinhoFernandes 'cept you tried to do things yesterday, no?
 
Is bullsitting a toilet technique
 
@Xeo Hmm. Yes.
 
@Xeo You should see my time charts
 
Actually, even though I accomplished stuff today, I feel like shit.
 
3:42 PM
Win8 upgrade assistant is taking forever to do the compat report god
 
Ell
@BartekBanachewicz then maybe you can pretend you wrote it in java? :P
I feel good because I ordered The Art of Electronics
 
did you just link me the fucking coldplay
oh god this day can't get any worse
 
@Xeo Have you had any compatibility issues btw
wrt things that worked on 7
 
3:49 PM
Fuck you django.auth. Why can't you easily let me set a password validation that is not your current default.
 
@BartekBanachewicz I liked Parachutes.
 
@Jefffrey Eh?
 
Xeo
@CatPlusPlus Not that I noticed so far?
I think one or two things that I could resolve through compatibility mode, like the driver installer for my headset
 
@python_2_unicode_compatible
class AbstractBaseUser(models.Model):
    password = models.CharField(_('password'), max_length=128)
    last_login = models.DateTimeField(_('last login'), blank=True, null=True)
    ...
 
@CatPlusPlus after today I will no longer be at NVIDIA
 
Xeo
3:52 PM
guess I should head home soon-ish
 
@CatPlusPlus Set a validator for that password field ^
 
Override set_password or better yet don't
 
don't what
 
What do you want to validate in a password
Also it belongs in forms
 
3:53 PM
that it contains a character, a number and is at least 8 chars long
 
Still belongs in forms
 
@CatPlusPlus But then model forms don't work properly, not to mention that manage.py createuser wouldn't validate the password
 
There's no createuser and it shouldn't because who the fuck cares
Also what's "model forms don't work properly"
 
model forms take validators only from models to build themselves
this means that the model form of the User won't validate the password as I wish
nor will contrib.auth.forms.ResetPasswordForm, PasswordChangeForm, etc...
 
Override the field you butte
 
3:57 PM
the model field or the form field?
 
the latter would make all the built-in forms useless
 
There's nothing to override in the model because validators don't belong there
 
yes, they belong there
or at least that's what django does
 
Built-in forms are useless anyway, also you want custom behaviour
No it doesn't
Well there's the shitty useless EmailField
 

« first day (1434 days earlier)      last day (3513 days later) »