« first day (2271 days earlier)      last day (2677 days later) » 

9:00 PM
@Andrea Isn't that the whole reason weak types exist?
 
Wes
9:13 PM
someone needs css help? for once i can help someone nobody pings me? :B
 
I called the css help line, turns out it was more of a support group
 
@wes I'm having girl problems. Can you help me?
 
@rabbitguy he's got 99 problems, but that ain't one
 
Wes
@rlemon but at least we stopped suggesting alcoholics as a cure
@rabbitguy sure :B
 
we have? :puts down beer:
 
9:15 PM
@Wes Actually I do
 
@Wes the problem is that I don't have a girl
 
Wes
@rabbitguy pr0n? that usually fixes
 
get a plant. keep it for a year, if it doesn't die get a fish. keep it for a year, if it doesn't die try okcupid
 
It probably also involves JS though
 
9:17 PM
I've reached a point where pr0n doesn't cut it anymore. There's only so much beastiality you can watch before it just doesn't do it for me anymore, ya know what I'm saying?
 
So eeeeek
 
Wes
@rlemon the AA made us notice that we weren't actually solving the problem
 
@rlemon lol nice one
 
@Wes after 8 beers it doesn't matter how bad the css is, site looks good.
 
@Wes if you have some spare time this week github.com/ekinhbayar/gitamp fix it fix it fix it
 
9:18 PM
Could someone take a look at this? Thanks.
http://stackoverflow.com/questions/41452499/laravel-relationships-trying-to-get-property-of-non-object
 
oh, wait... you mean I can just ask wes to fix my code and he'll do it for me???
 
@Wes learn React so you can help me
 
@PeeHaa you need the height with padding, also the height of the online users div
 
why isn't box-sizing: border-box; being applied globally?
default box model is a joke
 
Is it possible to not get the row number and only get the row name
using while($row = $result->fetch_array())
 
9:21 PM
@PeeHaa are you going to commit index.html anytime soon?
change the title :(
or maybe you already did and I missed, in that case ignore and carry on with the awesomesauce
 
Wes
@PeeHaa live version?
 
@Ekin Nope. Go wild
I have removed the overflow-x from the body. Which fixed it partly
 
@AbrarAhmed "the row name"?
rows have a name?
or did you mean the field name?
 
12 hours ago, by PeeHaa
Are yo using PDO by any chance?
 
in this case, you want while ($row = $result->fetch_object()), and you can use e.g. $row->field_name
 
Wes
9:24 PM
html, body {
background-color: rgb(78, 79, 140); /* --- */
}
why on both?
 
@Wes por que no los dos?
 
@Wes Dunno. Focus wes!
:P
 
/* --- */ I can't
 
@FlorianMargaine
[0] => Array
(
[0] => Ali
[first_name] => Ali
[1] => David
[last_name] => David
[2] => 2015
[year_regis] => 2015
)

[1] => Array
(
[0] => Abrar
[first_name] => Abrar
[1] => Ahmed
[last_name] => Ahmed
[2] => 2016
[year_regis] => 2016
)

I dont want the duplicate array like 0 for first_name and 1 for last_name
 
hopefully he can
 
Wes
9:27 PM
html {
overflow-x: hidden;
overflow-y: visible;
}
body {
overflow: visible;
}
just this...
 
or fix your heights.
calc is your friend.
 
Wes
and you don't need overflow:visible on body
 
@rlemon oooooh. I do remember removing a commented out section
4 mins ago, by PeeHaa
I have removed the overflow-x from the body. Which fixed it partly
Let me check the log what I removed
 
Wes
partly? i got the second scrollbar removed. are there other issues?
 
yes the other ones :P
@Wes If you remove the overflow from the body it gets rid of 1 of the three scrollbars
 
Wes
9:30 PM
you want it fit to screen or something?
 
yes please
 
I read that as "you want it to lift the screen or something?"
 
Do you even lift bro?
Wait wes. I found something I removed earlier
 
@PeeHaa how did you screw that up so badly?
why is there a scrollbar on body and html?!
WHAT HAVE YOU DONE?!
 
:P
Don't look so surprised
 
Wes
9:32 PM
header is 35px + 20px * 2
so #area must be height: calc(100vh - 75px);
 
do you even html bro?
 
* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}
html,body {
	height: 100%;
	width: 100%;
}

header {
	height: 80px;
}

#area {
	height: calc( 100% - 80px );
}
 
lemme try
 
Wes
if it still overflows, it's the script's fault
 
@Trowski uh, no…?! A single subscription should not kill the whole observable?!
 
Wes
9:33 PM
quick fix is overflow:hidden to #area
 
kk 1 sec
@Wes yeah @PaulCrovella suggested the same
But i didn't like it :)
@rlemon No dice :)
 
you fail
 
Wes
can i F5? are new changes live? @PeeHaa
 
you think hitting someone else's server w/150 threads to grab data will be noticed by them?
 
9:35 PM
@Wes I don't have access to that machine so I cannot deploy
4 mins ago, by PeeHaa
Don't look so surprised
 
Wes
@PeeHaa send me on twitter the link to a join.me session
 
it should work if you do it right
 
1 sec. wes haz access to machine
 
Wes
width = window.innerWidth || element.clientWidth || drawingArea.clientWidth;
height = (window.innerHeight - $('header').height()) || (element.clientHeight - $('header').height()) || (drawingArea.clientHeight - $('header').height());
sigh
 
the js is setting it to the window?
is element the svg?
 
9:40 PM
yes
yes again
err lemme check
 
element.height = `${element.parentNode.offsetHeight}px`
 
Wes
trying to understand why they needed that shit
 
element = document.documentElement;
 
your JS looks like shit
 
@PeeHaa ohh, that's the HTML tag
why the hell is it doing that?
 
9:41 PM
dunno
 
(I know, I'm totally helpful, don't thank me)
 
It's JS how the hell does anybody know what it does
 
Wes
@PeeHaa should just be height = element.clientHeight imho
and width = element.clientWidth
 
!!giphy magic
 
Wes
try to replace those two lines
 
9:42 PM
li.rlemon.ca/magic#.png rightgif's magic is better
 
much better
1 message moved to bin
NOOOOOOOOOOOOOOOOOOOOOOOOO
 
the right magic's gif is this one, imho: media.giphy.com/media/ujUdrdpX7Ok5W/giphy.gif
 
Is the gifbin gone???
 
Wes
@PeeHaa FOCUS
 
errr sorry
:P
 
Wes
9:43 PM
:P
 
But but but gifbin! :(
 
Wes
i read this `width = window.innerWidth || element.clientWidth || drawingArea.clientWidth;
height = (window.innerHeight - $('header').height()) || (element.clientHeight - $('header').height()) || (drawingArea.clientHeight - $('header').height());`
"just in case someone decides to browse the site with netscape navigator 4"
 
Nope. Still poop
 
Wes
at least it didn't completely break. screenshot?
join.me ?
teamviewer?
smoke signals?
 
Do you have TV installed already?
 
Wes
9:47 PM
wat
 
So wat one more fucking time
 
Wes
aha
 
:P
 
Wes
i think you can screencast with hangouts, right?
 
857 128 825
 
Wes
9:48 PM
tw?
 
is that your ssn?
 
teamviewer
 
Wes
... updating -__-
 
ugh I hate it when it does that
1 sec getting something to drink
there. did you fix it yet?
 
whacha drinking @PeeHaa
 
9:51 PM
coke
 
what, no alcohol???
 
Nope
 
what kinda coke do you drink w/o alcohol in it?
 
powdered
 
9:52 PM
4682
 
4682 is the type of coke you drink w/o alcohol in it?
 
fix it fix it fix it
 
Wes
lemme see
 
Should I revert to before I started doing stuff?
 
Wes
nah
do i have control already? i didn't use it in ages
 
9:53 PM
yes you have :P
 
Wes
you didn't change that? :B
 
change what?
 
Wes
there
 
HOOOOOOOW
 
Wes
you... didn't do what we told you to do :B
because alcohol :B
most probably
 
9:57 PM
1 sec. let me restart and see whether it sticks before you logoff :P
 
Wes
wait
k
yeah, you just need to set svg{height:100%;}
 
but now I have scrollbars again :P
 
Wes
goddamnit
 
hahaha
 
What are you guys working on..
 
Wes
10:01 PM
height:100%; and display:block on svg element
 
1 sec again
@staabm @wes is unfickyfynig my css :)
 
Of what?
 
Wes
no that's circle{} not svg
noooo
wrong css you edited :B
 
noooooo?
 
@bwoebi It would only fail the Subscription object, not the whole observable.
 
10:03 PM
<3 @Wes
 
Wes
can i check if all it's fine? :B
 
yes
 
@Trowski wait … would subscription implement Promise now?!
 
@bwoebi As a suggestion. That's how I originally implemented it. If the callback threw or unsubscribe was called, the promise would fail.
Otherwise the promise would resolve the same as the observable.
 
oooh okay
 
Wes
10:05 PM
okay
it works :B
 
\o/ Love you long time
 
Wes
<3 :D
 
48 mins ago, by PeeHaa
user image
 
Wes
anyway, join.me is nice(r)
i always use it..
 
It requires login though
 
10:06 PM
@Trowski the main gripe I have is really having Promises which are never expected to even resolve to a value…
 
Wes
i haven't used teamviewer in ages i should probably check again, but it was slow most of times
 
I've been promised all kinds of things I never expected to resolve to a value
 
@bwoebi We could eliminate Observable implementing promise at all… but it seems like such a nice neat mechanism vs. a subscribe method taking 3 callbacks.
 
Wes
the worst is skype's screen cast. i hate that thing
 
@Wes It's ok
@Wes And yes that's just utterly useless
 
10:10 PM
does discord do screen sharing yet?
 
Never really used discord
 
@Trowski well, I principally am not even against status quo. As long as users do never pass Promises which are not expected to resolve soon to combinators and then abandon that, it's fine too.
 
@PeeHaa i've used it for gaming in the past. it's rather nice.
 
@Trowski the whole discussion originated from adding a way to detach when() watchers…
 
@bwoebi That's where it might be a good idea to drop Observable from implementing Promise, but rather have Subscription implement it. Then users could unsubscribe from an infinite observable.
 
10:13 PM
I still say that you should not use when() if you do not expect to see an end while watching for when()
 
@PaulCrovella Yeah I think I have seen people use it for games too
 
@Trowski Nothing prevents us adding a detach() method to Observables, which is just present on our Observables, but not impacting standard.
The main discussion point after all is this:
> If we want to unregister no longer needed callbacks in combinators, we need it to be interoperable, because combinators operate on the interface, not specific vendor implementations.
And I disagree that you should ever pass Promises to these combinators if you do not expect their timely resolution.
 
@bwoebi Right.
 
And thus the whole thing being a non-issue and status quo being fine.
 
@bwoebi How about an ability to unsubscribe from an observable?
 
10:19 PM
The whole is, just in case you think status quo is bad, then yeah…
@Trowski yup. I think we should provide a way to just straight ahead detach given the callback.
 
@bwoebi I sort of like the idea of returning another object.
 
I sort of dislike it ^^
 
What happens if you register a callback twice?
 
@Trowski well… why would you…
but yeah, that's the only issue
 
@bwoebi Who knows… maybe someone wants to perform some action twice and sees that as an easy way.
 
10:24 PM
@Trowski I was being inspired by register_tick_function()/unregister_tick_function()
 
@bwoebi So what happens there if you try and register the same function twice? Nothing?
 
nothing is correct… and thus not applicable here
Well, then it pretty much has to be an identifier
(identifier may be object or string, we'll decide)
@Trowski what's the disadvantage of using a string identifier instead of an object?
 
@bwoebi Only that a callable can be something other than a string.
 
@Trowski nah, I mean returning
i.e. Observable::detach(string) vs. a new Unsubscriber::unsubscribe()
 
@bwoebi Oh, and then just using that for unsubscribe… umm… nothing, that's a good idea.
That still leaves any register when callbacks in the observable.
 
10:31 PM
@Trowski so, Observable will be interface Observable implements Promise { function when(callable $cb): string; function subscribe(callable $cb):string; function detach(string $identifier); } right?
 
when() would return a string?
 
@Trowski to detach?
 
But other promises can't detach callbacks.
 
yes, only Observables
 
Eh… no, that's just weird.
 
10:32 PM
in the standard the return value is unspecified
 
I thought it was void actually.
 
Observables add the possibility of detaching?
 
Then to me this makes more sense:
interface Observable {
    function subscribe(callable $onNext): Subscription;
}

interface Subscription extends Promise {
    function unsubscribe();
}
 
@Trowski that's - for me - unspecified … others may disagree with my definition of void though, see also github.com/async-interop/promise/pull/39#issuecomment-270017084
 
@bwoebi I've never tried replacing void in an extending class/interface. Does that work?
In fact I haven't really used void at all.
 
10:35 PM
@Trowski the 7.1 void? no AFAIK (which is a bad thing)
(but in phpdoc we distinguish @return null and @return void - and exactly that's the difference IMHO)
 
@bwoebi Tried it out, void can't be replaced.
 
@Trowski the Observable should still implement promise because you're not necessarily interested in the intermittent updates
 
@bwoebi The callback on subscribe() could be optional.
Then it would basically just give you a promise for the resolution of the observable.
 
@Trowski yield $client->request($url)->subscribe(); looks wierd
^ what the fuck are we subscribing? (when reading code)
 
Ok, well observable could still implement promise, it just shouldn't be yielded or used in combinator functions if it is infinite.
 
10:40 PM
@Trowski And then we have two ways, where it is easily to mess up because we accidentally may use when() on the observable instead of the Subscription
At which point it is easier for me and less prone to mistakes: I attached X times, then I must detach X times too
 
When all subscribers are detached, are you thinking the observable should stop/fail?
@bwoebi I thought we talked about this before and decided unsubscribing was unnecessary, and that's why we went with the model we did.
 
@Trowski It was unnecessary given the requirements.
If we now require to be able to use infinite streams…
 
if an observable resolves in a forest does it make a sound?
 
well, then it'll leak memory, slowly but surely.
 
Just fail the observable if you're done with the stream.
 
10:45 PM
@PaulCrovella no, the forest will quietly die \s
@Trowski ?
@Trowski well, you are right.
 
@bwoebi I would assume the code to create the infinite stream would have some method to end it.
 
Yeah, got that too
in that case it's completely unnecessary
Yeah, you should be right
 
Honestly I have never had more than one subscriber on an observable.
 
I did, but the scope of relevancy was the same for all the subscribers…
I also saw people installing a subscriber for every client (e.g. websocket) … but that's the wrong approach … you should install a single subscriber for the whole Websocket, and maintain a list of clients who need updates from that subscriber.
 
10:51 PM
@bwoebi Then using filter to only send messages to some clients, resulting in many unnecessary function calls for every message.
 
that, too.
 
Observables are great, but I think people abuse them.
 
@Trowski Could you please leave a comment on github.com/async-interop/promise/issues/10 ? To not have always the same one reiterating his point…
@Trowski agree.
@Trowski And RxObservables are something totally unrelated.
 
@bwoebi Yep. Still wondering if we should rename ours to avoid confusion.
 
@Trowski (I feel a bit like theirs is misnamed… but meh)
 
10:56 PM
@Trowski @bwoebi a lot of thought went in Rx Observables. This is a good video that explains the theory behind it youtube.com/watch?v=looJcaeboBY
 
@Trowski I'm open to good names … Emitter is not bad, but Emanator or Moderator for current Emitter is weird… the function is called emit(), and thus Emitter is better for the sender…
@daviddan Oh, I do not disagree about the usefulness of Rx Observables, I just find the name a bit unappropriate
 
@bwoebi This is what I came up with github.com/amphp/amp/commit/…
Emanator is weird… definitely open to suggestion there.
 
@Trowski yeah, and I think Emitter is better for sender than for the Observable
 
@bwoebi Do you have another suggestion then for Observable?
 
@daviddan I mean… Rx Observables do not really observe, they are more about lazy application of promises
 
10:59 PM
aren't RxObservables more like "promise-like API for event emitters"?
 
@Trowski Watchable?
 
in Rx the Observer observers
 
@bwoebi That's not bad. Watchable and Watcher.
 
@Trowski sounds good to me… lol… it actually would have us return to the Amp v1 naming where we have Promise::watch() :-D
 
Emitter just rolls off the tongue easier though.
The current Emitter class could become something simple like Producer.
 
11:04 PM
So we'd then be gone full circle, with the difference that Promise and Watchable are now two different interfaces, lol
@Trowski Producer sounds better (than Emanator or such)
@Trowski well, if you change Emanator to Producer, I might be on board
 
Wes
:B trying to be helpful even if nobody asked: to a complete ignorant (e.g. me) Emitter, Producer, etc are poor names. emits.. what? produces... what? at least "watch" is more general knowledge, as it's normally used for the observer pattern.
 
@bwoebi I'll update that branch.
 
I'd like to hear Niklas' opinion too though
@Wes Well, it emits what you tell it to emit
 
Wes
any kind of event?
 
any kind of data
 
Wes
11:09 PM
code example?
 
$postponed = new Postponed;
$postponed->emit(1);
$postponed->emit("foo");
...
$postponed->resolve();
It's just a generic way for communicating
 
Could someone take a look at this? Thanks.
http://stackoverflow.com/questions/41453607/laravel-empty-relationship-foreach
 
the subscriber will have to make sense of the incoming data @Wes
 
Wes
dunno what that does :B is it like a queue? (bwoebi)
 
@Wes from db?
 
11:13 PM
well, you can register callbacks and they will be called with the data you emit
 
would that be useful on my case, me wonders...
 
@Ekin yes
 
@Wes The classes represent an async data set, so the names are very general.
Sort of like array, vector, map, etc.
 
22 mins ago, by bwoebi
@Trowski Could you please leave a comment on https://github.com/async-interop/promise/issues/10 ? To not have always the same one reiterating his point…
^ @Trowski will you?
 
@bwoebi Oh, yes I will.
 
Wes
11:16 PM
aren't you guys trying to make the api naming too small? "new Postponed" sounds to me like an event name :B
 
I do not like Postponed too much either
but naming is hard
Better names are always welcome
 
I think Postponed is as equally good as Deferred. :-D
 
@Trowski Deferred sound a little better and is also used in other langs
 
Wes
browsing the repo, for instance. Promise::when sounds also strange. but i know nothing about async, maybe that's what the rest of the world uses
 
\o I've heard of Deferred in other languages.
 
Wes
11:20 PM
i would use Promise::kept or something
 
@bwoebi I know there's precedent for Deferred, I just think it's an equally terrible name :-)
 
I wouldn't object to s/Deferred/Future/
 
Is postponed a daemon which will postpone things? :D
 
@LeviMorrison haha :-D
@Trowski IMHO Future is the most obvious name "future value"
 
docs on Deferred also mention PrivateFuture and Future
I'm not sure if those are different things now
 
11:26 PM
lol
$confusion++;
 
indeed :D
 
Wes
$IDontEvenTry
i'm actually trying... is Postponed in respect of what @bwoebi?
 
@bwoebi Deferred is well established, so I would. Future is a synonym for Promise usually.
Usually… except C++ I think.
 
@Trowski well, it's just Postponed which is a bit annoying me … It's actually just an other word for Deferred, not hinting at the updateability
 
@bwoebi I'm open to suggestions.
 
11:38 PM
@Trowski There's the issue :-(
 
@bwoebi Scheduler?
 
@Trowski Stream?
(It's actually an unidirectional stream with optional backpressure :-D)
 
@bwoebi That's not bad.
The method returning an emitter could be named stream as well.
 
11:53 PM
@Trowski true
 
$stream->stream() looks a little odd.
 
uh, can we name the Observable Stream and the Postponed Emitter?
Makes more sense to me to subscribe (or even listen) to a stream than to an Emitter
Also $emitter->stream() looks fine
the emitter emits data onto a stream… and then you listen for updates from the stream.
@Trowski that even sounds nice to me…
 
I like that.
 

« first day (2271 days earlier)      last day (2677 days later) »