« first day (1464 days earlier)      last day (3479 days later) » 

3:00 PM
@thecoshman wait. BACKWARDS?
You mean, really facing the wrong way? Or left-right reversed? Front/back reversed? Signal-ground switchted?
 
@sehe left-right would be a fairly safe presumption, no?
 
Backwards means a different thing though. I tend to not assume people mean something else than thay say, "yes?"
 
3:20 PM
CSS allows "select A only if preceded by B", but doesn't allow "select A only if follows by B" (the reverse).
Great.
Speaking of inconsistency
 
Meh. std::cin does allow "read an int and leave the rest" but not "leave the beginning but read the int that follows". Similarly, balls allow "bounce down the stairs" consistently, but not "bounce back upstairs", most of the time.
What I'm saying, it's a design trade-off
If you want to have lookaheads this is going to cost some performance. Don't assume that CSS is being applied in a DOM-model only. It can (and most likely) be optimized in streaming fashion
> White Trash Repairs
Wat
 
@CatPlusPlus What do you test about views in Django?
 
Same thing you test about other things? Common cases, edge cases, regressions
 
I mean, do you test if a view contains a piece of text?
 
Dunno, maybe, if it's needed
 
3:29 PM
If a header declares a struct, can I somehow define it as a class? Header cannot be changed.
 
@CatPlusPlus Let's say we have a view that lists 10 things. Now how would you test the fact that those 10 things are actually rendered? Going assertContains on the response makes me feel dirty.
@OllieFord struct and class are basically the same thing
 
Actually, I only get a warning for defining it as a class instead, but obviously I want to avoid. Can I do it more safely with a typedef or somehint?
something*
 
Why would you define it as a class?
@OllieFord SSCCE please
 
@Soffia for member functions etc
 
@Sofffia vOv I rarely bother with view tests
 
3:31 PM
I see
 
@Soffia The API won't use them, just see it as a struct, which as you say is basically the same, but I'll use them
 
Can you make an SSCCE of the problem?
 
@Sofffia sscce.h - because it's not mine
 
@OllieFord Which file can't you edit and why?
 
3:39 PM
whoops
 
There is literally no problem
Also C++ is not C
 
I edited my response instead of new -_-
@CatPlusPlus So I can safely ignore the warning?
 
@OllieFord Then make something a struct in sscce.cpp
Do you know what's the difference between a struct and a class in C++?
 
I usually take warnings to mean "this will work - but there's a better/safer way of doing what you're doing"
Yeah, the default public/private is switched, and classes can have constructors, member functions, etc
 
Structs are classes
Default visibility is the only difference
 
3:41 PM
@OllieFord ooh, if only you stopped sooner.
 
Oh.
 
right!"
in my new place
 
So there's apparently a game about being a bread slice
 
So then I should just define it as a struct, and make sure I'm explicit about pub/priv
 
@OllieFord only the default public and private thing is switched, the rest is equal
 
3:42 PM
Okay.
 
@OllieFord yes
 
Thanks :)
I guess I was taught/learnt structs in C, then C++ came and it was like, ooh OOP, classes are cool.
 
classes are great, but functions are great too
hmm
18MB/s.
now that's pipes.
 
Ell
I'm bread
 
user1804599
I don't understand why x(x+1)+2(x+1) = (x+1)(x+2) :|
 
Ell
3:49 PM
Because x(x+1) is x^2 + x
2(x+1) is 2x + 2
 
cpx
(x+1) is common factor?
 
user1804599
@Ell I got that far.
 
user1804599
But I don't see how I can deduce (x+1)(x+2) from that.
 
Ell
X^2 +3x + 2
 
user1804599
Ah wait.
 
Ell
3:51 PM
The factors of 2 are 1 and 2
2 +1 = 3
Therefore it equals (x+1)(x+2)
 
You really don't have to expand it
Just pull (x+1) out
1(x+1)+1(x+1) = (1+1)(x+1) hth
 
yes pull it out
that's what she said
 
user1804599
@Ell Where does that multiplication come from?
 
also help I'm trapped in HID
 
itt rightfold fails at basic arithmetic
 
3:55 PM
not surprising
for fucks sake
C apis are a sad joke
those people have absolutely no idea on how an API is supposed to look or achieve
 
mlyp
Also hi
 
user1804599
I'm so confused.
 
@CatPlusPlus well it's either that or... well, nothing actually.
Shitduino perhaps
 
@BartekBanachewicz Eh?
 
I'm trying to grind trough STM's USB library
because I want to create a joystick
well, sort of.
lol that error handling
"if error silently do nothing"
 
user1804599
4:02 PM
Oh I get it. :D
 
user1804599
x+1 is common factor, so you multiply that by x+2
 
user1804599
Because ab + ac = a(b + c).
 
gjob
Now stop drinking
 
@CatPlusPlus I have. I've been totally shagged by the Baxters and the Eldridges. £17.50 down. Why I bother with Sunday lunch cards I don't know..
 
4:37 PM
@MartinJames That's not too much.
 
4:57 PM
@Sofffia It gets better. Stoke won 2-1, which is exactly what I bet on with Bet365:))
 
@MartinJames Whoa, nice! :D
How much did you won?
 
@Sofffia Enough to totally offset the card game losses:)
 
user1804599
C++ is voodoo.
 
@MartinJames Were they hot?
 
Baxters and the Eldridges? Not unless you consider a massive pain in the ass as 'hot'.
 
5:03 PM
posted on October 19, 2014 by Scott Meyers

I'm pleased to welcome another book with a full-color interior into my Effective Software Development Series, Peter J. Jones' Effective Ruby. I'm not a Ruby developer, but Peter's writing is a pleasure to read, and his experience with and enthusiasm for the language is clear. For those of you who do code in Ruby, I encourage you to check out this very nice book. Scott

 
There is effective Ruby? Ruby is so slow that an overnight stay at Gatwick is a preferable alternative.
 
Ell
5:17 PM
evenin
@MartinJames woo go stoke!
who were they playing anyway?
 
5:34 PM
@BartekBanachewicz Hello
 
Ell
I just had a delicious pizza
tandoori chicken, beef meatballs, rocquito peppers & bbq base
 
@Borgleader hi
 
@Ell Are you sure it was a pizza?
 
Ell
@VáclavZeman yep, deliciousss
 
@MartinJames lol
 
user1804599
5:47 PM
bukkake bukkake bukkake udon
 
user1804599
I want to become better at software development.
 
@rightføld oh well
 
user1804599
I want to do something that isn't terrible CRUD web apps.
 
Ell
what is the best way to specialise a template classes member function?
without rewriting the whole rest of the class again?
Just separate it into it's own class?
 
5:59 PM
Depending on preferences/your needs, turning it into a member function template to enable SFINAE is also an option (though you need to make sure that the type/value dependencies really are).
 
delegate it to another friend class is the easiest way to go probably
maybe an internal private one.
 
user1804599
That's a nice approach.
 
Demo of what it means to ensure type/value dependency for a member function template of a class template.
 
Ell
ah cool thanks
I just need to not return if ReturnT is void
I feel like in this situation static_if would be much quicker and easier
 
static_if always looks like that :)
Also my depend_on_t stuff is a bit heavy-handed. If you don’t care that the user can subvert the function template, a simple typename RedependentType = Type works (where you then use RedependentType as if it were Type).
Or you can put a typename... right at the start and then it can’t be subverted again :) Plenty of tricks really
 
6:13 PM
I have a wheeled chair on a wooden floor
wheeeeeee
 
yay, you have a wheelchair.
 
oh hey bartek
back from isolation?
 
6:16 PM
SPIEL is over. Didn't get to play XCOM. @jalf
 
Ell
6:26 PM
I want doner meat agh
 
@Ell I want ARM gcc to work
 
Ell
what's up with it?
 
It needs different linker scripts
I can't write them
Heck, I can't even read them
 
Ell
man I always forget typename everywhere
but it seems the compiler knows where it should be every time
 
user1804599
I love purple.
 
user1804599
6:33 PM
It's a beautiful colour.
 
I got completely captivated by batman arkham city's plot imgur.com/osSkrPa (possibly NSFW?)
such a good game
 
Does anyone know what he said?
 
@Loopunroller knowing != understanding ;)
 
6:51 PM
@R.MartinhoFernandes oooh yeah, forgot you were bussy having an awesome time
 
oh man, i think i found my new phone :)
 
Ell
> Get up to 6 hours of use from only 15 minutes of charging.
woah
 
android lollipop lol
 
Ell
hmm. && is short circuiting right?
 
@Ell not user defined ones :P
 
Ell
6:57 PM
but for bool it should be shouldn't it?
 
user1804599
@Ell Yes.
 
user1804599
@Ell It should.
 
user1804599
f() && g() should not perform the side-effects caused by g() if f() is false.
 
yes
 
Ell
so (false && (some_function(), true), '0') should not evaluate some_function() and should give '0'
 
user1804599
6:58 PM
Indeed.
 
@Ell jesus christ wtf is this
 
Ell
@Borgleader ugly :P
it's an if inside of a template swallow. but it doesn't work
 
glug glug
 
Ell
and theres a much nicer way :L
 
it's called "Be puppy"
 
Ell
7:01 PM
nah
 
admittedly
my living room has a window out over the street and there's no curtain or blind or anything.
I just spent three hundred and fifty quid on furniture.
oh well I get paid in 11 days.
 
Ell
@Puppy what furniture?
 
chest of drawers, table and four chairs, desk and spinny wheely chair
and a couple other bits and pieces like laundry basket
 
How can I decide to which email the weekly subscriptions are gonna be sent?
 
still haven't seen Battle Royale. I should check it out one day.
 
7:16 PM
@StackedCrooked :O
@Puppy I thought you were renting?
 
I am
it's unfurnished
and with a very public window
 
great way to attract the ladies
 
no.
I am going to shop for blinds in Cabot Circus afte work tomorrow
also a new power lead.
I have just one screen
 
Ell
7:33 PM
ahh I'm so confused
I want to filter a tuple
and then iterate a function for each type in the new filtered tuple
but I want to filter the types not the tuple. hm
 
@Puppy ah, I guess that does happen sometimes :P
 
Ell
I think I want boost::mpl
 
@Puppy I was about to ask what you meant by 'a carboot circus' :P
@Puppy I really need to get a pair of new screens. I've just got the one mediocre one right now.
 
Ell
or maybe not. I'm tihnking aloud, ignore me
 
I might then let the misses have this one and sort her out with a wireless keyboard and mouse so she can have her laptop tucked away neatly.
 
7:44 PM
yesterday, by rightføld
I'm gonna work on Hexapoda.
 
user1804599
That's not a CRUD web app.
 
I mean, you're doing it to yourself. And, there' s not so much nice work :/
 
Ell
I'm getting lazy
in my coding, in this hour
and trying to take shortcuts
and it's only made this one task take far too long!
 
As sily benchmarks go, this one at least tought me some nice tricks to pacify the system scheduler
$ sudo chrt -f 99 /usr/bin/time -f "%E elapsed, %c context switches" ./test
1000000000 calls to:
  a regular function from the same executable:  3.024nsec/call
  a regular function from a shared library:     3.480nsec/call
  a virtual function from the same executable:  3.397nsec/call
  a virtual function from a shared library:     3.528nsec/call
0:13.43 elapsed, 6 context switches
 
sbi
8:15 PM
Good evening.
What? It's a Sunday night in Europe and this room is dead?
 
Sunday.
 
sbi
@Puppy I have tomorrow off, so I'm a bit off, too, when it comes to weekdays.
 
lucky you, some of us have to go to workk
 
Ell
@sbi I wondered this
 
sbi
@Puppy My oldest will become an adult in two hours. That's why I have the day off tomorrow: It's school holidays in Berlin, so we'll have a family party in the afternoon.
@Ell You wondered what?
 
8:17 PM
I just had a family party
in that my family were partying putting together furniture for me
 
Ell
@sbi I meant I thought this
 
sbi
@Ell You thought what?
@Puppy ???
 
Ell
I thought the room was dead for a weekend
 
sbi
Ah. Was it?
 
well I was in Bristol on Saturday and spent all Sunday putting together desks and chairs in my new place
 
sbi
8:19 PM
Oi! What's this test doing??
BOOST_AUTO_TEST_CASE(erase_seq) {
  std::string str = "Hello, world!";
  str.erase(str.erase(str.begin()+str.size()/2,str.end()));
}
This crashes for me. What am I missing?
@Puppy Oh, good for you!
Congrats for finally getting your own life!
 
well it really didn't take long, I guess
my sickness officially concluded at the beginning of August and I was employed by 22nd September
 
sbi
@Puppy No, I only knew you for 3 years or so...
@Puppy Ah, that. Good you found something to get rid of that!
 
Ell
I need a break I neeed a breaaak
 
sbi
Anyway, do you see anything wrong with that code??
 
It's in C++
 
sbi
8:21 PM
@Ell Have a break and look at my problem. :)
 
Ell
@sbi I won't be much use in my current state, my brain is frazzled
 
sbi
@CatPlusPlus Go back into your basket, cat, and return to sleep. You seem tired.
@Ell So must be mine. I can't see anything wrong with that code.
 
Why is it calling erase twice
 
Ell
@sbi Nor me^
oops.
I mean just what cat said but didn't want to ping twice
 
sbi
@R.MartinhoFernandes Oh boy. You really haven't got the hang of this city, have you?
@CatPlusPlus Damn! I never saw that! Thank you!
 
8:24 PM
seems to me like the 2nd erase call will get the new end iterator.
that may not be well-defined behaviour.
 
sbi
Yeah, this was a cut'n'paste error...
Phew. Everything's back to green now.
I am still working. :(
 
oauch
 
sbi
@Puppy Bless you!
 
thanks but I'd prefer not to deal with mythologies
 
Ell
template<class ParentT, std::enable_if<std::is_polymorphic<ParentT>::value>::type>
void try_register_parent() {
    register_parent<ParentT>();
}

template<class ParentT, std::enable_if<!std::is_polymorphic<ParentT>::value>::type>
void try_register_parent() {
}
^why is this ambiguous?
> couldn't deduce template paremeter '<anonymous>'
 
sbi
8:36 PM
I wish I had any experience with enable_if. :(
 
Ell
I think this is the fault of me declaring these inside a class
 
sbi
Anyway, with all the current tests being green, I got a beer from the fridge and call it a day.
Prost!
 
Ell
maybe I'll ahve to just use old fashioned enable_if
works now. hmm
but now my regular old dynamic non multiple dispatch overloading fails
I think I need std::forward in some places
 
user1804599
8:57 PM
lol, I just realised
 
user1804599
"plus x" in English sounds like the Dutch word "plassex" which means piss sex.
 
@Ell No typename = for those enable_ifs.
 
Ell
I tried it with them
but meh, I just used old style (ie in return type) and it worked
 
what compiler
 
Ell
@Puppy gcc 4.9.1 & clang 3.6.0 trunk 219947
 

« first day (1464 days earlier)      last day (3479 days later) »