« first day (1364 days earlier)      last day (3807 days later) » 

16:00
@TonyTheLion Nah. Just no plans have materialised.
@CatPlusPlus We have some code that creates a HtmlImageElement, and then check its dimensions (yes, img.complete === true at that point. We check that first). if you're quick, you'll first get height === 0, and then on the next line, if you do the same again, you get the image's actual height.
@R.MartinhoFernandes ah right
And I'm a bit depressed and the plans for tomorrow have just crumbled.
@R.MartinhoFernandes Stay in. Nobody likes "people" anyway.
16:01
That doesn't seem too far-fetched, the element needs to be rendered before it has dimensions
I've seen problems like that in all browsers
@Puppy I'll probably go out cycling all day.
Gotta be in shape for next week.
Going to visit an abandoned Soviet nuclear base outside Berlin.
stocking up on materials for judgement day huh
@CatPlusPlus huh? It's kind of hard to render something if you don't know its size
@jalf I think I've had that problem before too, for a canvas (on chrome)
Oh, I have to book flights for my vacation.
16:03
Really it's not an IE-specific thing
also, if I try rendering it to our canvas, it draws with those borked dimensions (meaning it draws a whopping 0 pixels)
ohhhh vacation.
And to plan something for the extra week I'm taking but not spending in Portugal.
Preload all images
@CatPlusPlus how do you mean?
16:04
Request them when the page is loading, before you start using them
isn't the point in the complete property that it tells you, you know, when the image is complete?
That I don't know, JS is terrible and full of shit like that
@CatPlusPlus the image data are streamed over a websocket connection, and the image elements created from that local data
they're never requested per se
(also, it has worked perfectly in every browser except IE11 for a couple of years now. Seems pretty IE11 specific.)
vOv
There's naturalHeight/naturalWidth that doesn't seem to be tied into rendering, try looking at those
Ell
Ell
the tube is confusing man
16:08
I'm tired of these super explicit cuda errors.
Also I like that Mozilla dev wiki has "this is unknown" marks for Firefox
HOW DO YOU NOT KNOW
@Ell takes a bit of getting used to, after that its easier
> Cuda error : unspecified launch failure.
user1804599
Time to work on video game again.
didn't seem to make a difference with naturalWidth/Height. The fix I ended up with was just to treat the image as incomplete if !complete || (height === 0 && width === 0)
Ell
Ell
16:09
@TonyTheLion I find catching them fine, but I can never seem to get through the ticket barriers :P
It's not clear to me when I can use a rail ticket to get into the tube and when I can't
@Ell yea those machines aren't very good
just show your ticket to the people standing there, and they'll let you through
@Ell Tell me about it.
@jalf So now I can't upload 0-sized images, great fix.
Not that IE being broken surprises me either
@Ell Only if its a travel card, normally
Ell
Ell
16:10
@TonyTheLion Yeah that's what I did last time. I felt bad for slowing people down at first when I sequentially but all 6 ticket shaped things into it :P
travel cards are valid in specific London Zones and it say on it "valid in Zones 1 to 6"
@ParkYoung-Bae you can't do that anyway. We're not running an image hosting service. :p
meaning you can use it on Bus/Tube and Train in those zones
for that day
MPL doesn't have ana.
@Ell don't feel bad, because no one else does when it happens to them
16:11
@ParkYoung-Bae Also, are you seriously arguing that it's a problem if 0-pixel images are skipped instead of rendering 0 pixels? :p
You should not be allowed to write a library inspired by FP if you don't FP much.
Ell
Ell
I think you're supposed to be able to use any tickets with a dagger on them for one pass through the underground
@TonyTheLion I guess
London is very busy
I like the business
Ell
Ell
it is very lively
@jalf I want my non-pixels rendered on screen
16:12
yes, there's always people around
never a dull moment
going through London
What'd be a good name for a function that inserts a list into a list with flattening
@TonyTheLion Hey I might be in London next year, got some spare time in your agenda by january 2015?
Jan 14 '13 at 21:26, by user142019
OOP is a faggot.
a = [1, 2, 3]
b = [f(a), 4, 5]
b == [1, 2, 3, 4, 5]
@CatPlusPlus insert_flatten
16:13
@ParkYoung-Bae Sure, but it depends when in January?
I thought about that but I'm not sure
just call the function boobs
@CatPlusPlus flat_insert
Hm maybe just insert
16:14
@Jefffrey Let's just say that user142019 sucks at delivery.
He tried twice as well.
@R.MartinhoFernandes wait, wasn't that Zoidberg?
@CatPlusPlus Just use Perl and it's called nesting.
btw @CatPlusPlus, supposing it was a more normal scenario, where the images were fetched by regular http requests and I preloaded them as you suggested, how would I know when they were done preloading?
@TonyTheLion Maybe. Still sucks at delivery. (0 stars vs 8 stars of mine)
16:15
heheh true
Jan 14 '13 at 21:38, by user142019
PHP is a nice language.
only Zoidberg would say something like this
@TonyTheLion And when you look at the surrounding text for his... Yep, totally screwed delivery.
You can't just make lame jokes like that out of the blue.
@R.MartinhoFernandes Yet you did
@ParkYoung-Bae Nope, there was context.
user1804599
16:16
@TonyTheLion That’s from my deleted account.
I suspected as much
user1804599
Jan 14 '13 at 21:39, by user142019
For extremely small values of "nice".
Cosh was bashing on OOP at the time.
@jalf You could put them as hidden img tags and they should be done before script runs
@TonyTheLion Yes
16:20
Meh I have to write an expression parser now
Meh
user1804599
That’s easy.
@ParkYoung-Bae ok cool
also
OOP is a faggot.
16:21
My god this joke gets funnier every time someone makes it!!!
For some values of 'joke'
> import sexy.rightfold.torus.Request
user1804599
@Jefffrey woot June.
@CatPlusPlus Every time the same person makes it!
user1804599
I forgot everything about that month!
Very infinitesimal values
16:22
oh man, another email from a recruiter for yet another .NET developer position
user1804599
@ParkYoung-Bae woot sexy.
I HAVE A JOB THAT I'M HAPPY WITH
Don't send me shitty other jobs
@rightfold woot woot
@TonyTheLion Unpossible
fucking cross room flags
user1804599
@Jefffrey woot.
@R.MartinhoFernandes oh you :P
user1804599
@ParkYoung-Bae s/fucking/jesus/
@rightfold so tempted to flag that :3
flagging is the new cross-rooms-starring
user1804599
16:24
@Jefffrey nailed it
What'd you expect other_list to be?
Or: which list you'd expect to be used
For fuck's sake stop with the idiotic flagging
cmon cross-room-star it
@CatPlusPlus that still assumes that the browser correctly blocks on rendering until the image is fully loaded. Which IE11 apparently doesn't in our case
it just silently renders as a 0x0 rectangle
Maybe
I'm glad I don't have to deal with frontends, esp on IE
:v
16:26
:)
user1804599
@CatPlusPlus a list of two integers and a string.
@CatPlusPlus In a I expect { 0, 1, 2, 3, 4 }, in b { 1, 0, 1, 2, 3, 4, 5 } if I am not too retarded
good lord! now this is a pulse jet! This thing is massive!
b is getting evaluated, so there'll be only two variables
@ParkYoung-Bae you are
16:28
I'm just not sure if that insert should work before or after inheritance is considered (and then, what about interpolating insert_parent argh this sucks)
@CatPlusPlus what
@thecoshman not as much as that guy in the vidya
I have no idea how you got 1, 0, 1, 2, 3, 4, 5 tbh
@ParkYoung-Bae :D I so wish I could go down near Dover to hear that thing
But then again -1 w/e I'm dumb
The problem is whether it should be 1, 2, 3 or 3, 2, 1 in the middle
@CatPlusPlus Oh yeah { -1, 0, 1, 2, 3, 4, 5 } sorry
that - is unreadable
16:31
Maybe it should be 3, 2, 1
I could do this in two passes
> The code's writin' but ain't nobody programming.
Lists are stupid, I don't like 'em
user1804599
Why?
They need special treatment
Maps are so much easier to merge
not if both sides have the same key present
16:34
Child overrides parent, p simple
sure, but then merging is not (commutative? associative? I always forget which is which)
Maybe I should make dict merging explicit too though
and there are other things like stuff that cannot be a map key, or hell, just finding a useful key in the first place.
@Puppy The inheritance is one-sided, why should I care about associativity
maps and lists aren't superior to one another, they're different structures with different uses.
16:35
Thank you for this pearl of wisdom
@CatPlusPlus I totally didn't read further above.
hmm, why do Ubuntu apps always forget the files I've used in them before?
@Puppy hey on the value silly :P
@Puppy you mean file type associations?
@thecoshman No, just plain files.
if I open my password database in KeePass, next time I load up it says no recently used files.
@Puppy ¬_¬ that's rather simple and sensible thing to say... who are you and what have you done with the puppy!!!
Maan it's getting complicated with nested dicts
16:38
@Puppy ooh, vOv works for me. But that would be a program thing right?
and their shitty music app tells me all my music files are missing when they're right where they were before.
it suddenly remembers if you ask it to import them again.
@CatPlusPlus Are you building a YAML-based abomination? o_O
It can be JSON too :v
user1804599
@CatPlusPlus edn!
I need an expressive config language that can still be manipulated programmatically
16:41
Dammit, Oxygen Icons cannot be embedded in my app unless I make it LGPL.
@CatPlusPlus IOW what I said.
Yes
@rubenvb What
Lua if you don't like Python?
Lua was built to be a configuration language, IIRC
16:42
> [...] you should not embed the icon into the application binary. This happens if you use Qt resource files or .net linking. This would mean the whole application is now LGPL. Instead you should keep the .png as a separate file and load it at runtime. (There are provisions in the LGPL for allowing this if you have a mechanism to relink to a modified version but most applications do not have such a mechanism).
@rubenvb Then just load them what's the problem
It's the same thing as static linking restriction
@CatPlusPlus redist. I'm thinking of making a DLL or so with the icons
Then just make the DLL LGPL
Yeah
But that takes fighting with Qt's qrc system.
pff
I greatly dislike GPL and it's ilk
16:43
@Puppy Still has the problem of being imperative code, not declarative data
our software is free; you only have to pay with your rights.
Maybe I'll just redistribute them alongside.
No harm in that and will keep the icons replaceable in a much easier way.
@CatPlusPlus Lua table definitions are designed to straddle the two. For example, func { } is legal short-hand for func({}).
That does not help
what exactly are you intending to declare?
16:45
Configuration
@Puppy From my experience with premake, it's crap.
It needs to be externally modifiable
But maybe it's just premake that decided to be as crappy as possible within Lua.
Is this really so hard I have to explain it twice
@R.MartinhoFernandes Yeah... they really didn't use it that well.
@CatPlusPlus I wasn't here the first time.
16:46
Anyway maybe I need a completely different approach
I should go home.
user1804599
@CatPlusPlus The approach is called vodka.
Just forget about environments and merging shit together and just put variable config in the environment
am I alone in thinking that when things try to solve more than one problem, they tend to do a half assed job of them.. example
That sounds dumb but actually makes sense
16:51
Ow.
Friend of mine had his tent break on the penultimate day of his bike trip.
to be fair, there are some nice features to that cooler, but some of them are like... yeah... no, I'd just like to have an proper thing to do that.
what feature don't you like?
"blender built right into the lid"
FFS
Will it blend?
@R.MartinhoFernandes thanks for the example
16:55
"removable Bluetooth speaker that connects to any smartphone to wirelessly stream music"
speakers built in... ie, I'm carrying around dead weight all the time
I don't even.
chargers for equipment... even though if I was taking that thing anywhere, it'd be in a car, with near endless power for my phone and shit
The tie-down things are nice.
light in the box... maybe, though who's phone doesn't have a light on it?
yeah, the tie downs and big sturdy wheels look nice enough
16:57
lol, "it has a bottle opener!"
but but cans
@R.MartinhoFernandes if you don't carry a bottle opener with you, you are not party enough
@thecoshman What do you mean? I just carry Germans around.
Pfff, bottle openers.
ah balls.
Boost 1.55 uses an MFP as none_t.
Wide isn't written to handle Clang types that aren't classes/structs.
@R.MartinhoFernandes o_0
16:59
@thecoshman Germans can open bottles with anything.
From age 3.
I can't learn that
It's hard
That's why I use the Germans.
I'm bad at physics
@R.MartinhoFernandes sure, but why make life hard for your self vOv
17:00
I don't. I just ask the Germans.
teeth, counter top what ever
@R.MartinhoFernandes but they'll tax you
Talking about Germans, Robot, do you still sometimes see the Ape?
Saw him last at the unconference.
17:13
OOOOOOOOOOOOOOOOh.
Maybe there's still a chance for tomorrow's plans to hold up.
I'm too excited.
Meaning I won't need to drive for 90 minutes twice tomorrow.
you drive?
I didn't think the police would close roads for any old person these days
Yes. But no.
I am legally allowed to drive and I can do it if needed but I'll avoid it as much as possible.
I once drove a friend to the hospital in his car, for example.
hint: I was subtly implying you are bad at driving
17:23
Okey
Hooking my projector was a terrible job
But well worth it
It's freaking awesome
@thecosh where did you get that idea?
@R.MartinhoFernandes but did he have to go to the hospital because of your driving?
:)
so what are tomorrow's maybe-plans?
@R.MartinhoFernandes you are not what I would describe as co-ordinated :P
17:26
@jalf Westhavelland International Dark Sky Reserve
@thecoshman he's merely ordinated
@R.MartinhoFernandes where they keep the reserve dark sky?
so I figure that in the long run, I'll just have to support MFPs.
@nightcracker I'm here.
user3010322
Make member function pointers take ( this, args...) please
user3010322
17:34
to make the syntax easier to deal with
user3010322
please. Plz. I beg you.
er, of course
who do you think I am, Bjarne Stroustrup?
user3010322
I dunno. :D
for member data pointers, I'll probably use ptr(this) too.
user3010322
ptr(this), ptr(this, values...);
user3010322
17:39
get, set ^
no, ptr(this) returns ref.
user3010322
Ref to what?
user3010322
this ?
the member.
user3010322
Oh. That works too I guess.
user3010322
17:40
I just wanted more of a functional-call-syntax thing, so I could use it with things that expect functions.
@Puppy do you have const?
ptr(this) and ptr(this, value) could never work.
@rubenvb Not currently.
Planning on it?
not sure.
user3010322
Maybe you could have a lifting-lambda that properly makes a setter/getter for the member functions?
17:41
I hate const as it's implemented in C++.
but there are some places where it's kinda necessary.
I'm definitely intending on deferring such considerations.
the system works without const, it just has some undesirable UB that the compiler could have prevented.
@Puppy are you referring to the "const overloads" of member functions or more than only that?
the whole thing, generally.
you don't like being able to let the compiler tell you: "don't modify this, fool!"?
no, that's not the problem.
it's the implementation that's the problem.
Also, MSYS2's pacman is awesome as a package manager for MinGW-w64
17:45
you want to use it as a key in a map one time and you gotta mark fucking everything as const.
even though the type is inherently immutable.
and that means the base class and all the deriving classes.
one const in like one place spreads like a virus to infect your whole damn codebase.
"infect"... "protect"
there's nothing to protect against because it's inherently immutable.
the only difference is that I'm stating this to the compiler every other line, again and again and again.
Well, the compiler is just dumb. It should obviously just see that your type is implicitly immutable.
the only people I've ever seen actually make a mistake about mutability is C programmers mutating string literals, and that's only because strings aren't real values in C.
But const has no real meaning in C.
It's even more broken than in C++.
17:49
C++'s const isn't systematically broken, it's just super fucking annoying as an implementation.
as a concept it's a nice little addon.
const became more meaningful once I started writing concurrent code.
const is also very useful for functions like : write(T* dst, const T* src, int len);
accidentally passing src as dst will trigger a compiler error
const isn't solving your problem here
which is that you have an unbelievably shitty function prototype.
and if my actual src just happens to be mutable for me
then const won't error for crap.
@Puppy Why would you use const on a map key?
17:53
@Jefffrey Because mutating them in certain ways really does make bad things happen, and you can't just copy them into heap memory or something to solve the problem like you can with strings.
@Jefffrey map keys are used as const in std::map
oh yeah
So there's really no choice...
did I mention that the Committee absolutely fucked up const in std::map?
Guys.
I thought you were like, good at C++.
17:55
now we can't have nice things.
And then I get this.
they were taking a std::nap
9
@Puppy how so?
@StackedCrooked Because the semantics of std::pair<const K, V> mean that K must be stored as const, which means that you can't mutate it even if you're a map implementation detail who really should be allowed to under certain circumstances.
there were some nice map extensions proposed for C++14 that couldn't go through because of consting the key.
17:56
can't rebind help here?
no.
not when you dish out std::pair<const K, V>& from your interface.
brainfart, I confused std::pair with std::map :)
@FredOverflow There's none for me, but the Committee built std::map not me.
IYAM the result of the iterators should have been std::pair<const K&, V&>.
@Puppy being a map implementation detail is something that should only worry std maintainers, not?
@Puppy a map implementation can const_cast, just like the rest of the world...
17:58
@StackedCrooked The problem is in the map interface, which forces them to implement it in a certain way, and forbids other implementations.
for the user the constness is a good thing
@rubenvb That does not help you if the original value is const, which it must be to satisfy the interface.
user1804599
Dude …
the language semantics still state that mutating the value is UB.
user1804599
Stop it.
17:59
@Puppy you're the implementation. You know what the compiler will do there, no?
@rubenvb Yes, you do, and what you know is that it's going to break all of your code because you just did something totally illegal.

« first day (1364 days earlier)      last day (3807 days later) »