« first day (2050 days earlier)      last day (2902 days later) » 

7:04 PM
@Wes yes.
 
Wes
great \o/ :D
 
Wes
nice
 
@Trowski may you please include the event-loop-tests into amphp/loop?
 
user895378
I have always seen exactly zero value (harm, actually) in the ability to tell php database libraries the result format (i.e. object or array)
 
user895378
7:15 PM
(array) $obj | (object) $arr
 
user895378
There's value in providing a specific concrete return type
 
user895378
And if someone wants to modify that to something that's interchangeable then they can do it themselves.
 
@rdlowrey As long as it's always an array I'm fine with it :)
 
user895378
@PeeHaa me too
 
Sorry for pings I am bad
Couldn't live with the typos :)
@rdlowrey What does you life currently look like? work work?
Although you seem to be more often here again
 
user895378
7:20 PM
work work work girlfriend work work work work sleep work work work work sleep work work work girlfriend girlfriend girlfriend work work work work
 
user895378
I want to spend more time on the async php stuff though.
 
user895378
The massive amount of work is self-imposed, not mandated externally, though.
 
make it async
work on it while driving
 
user895378
No driving in NYC homie.
 
user895378
I walk 15 minutes each way to and from work.
 
user895378
7:22 PM
And if I need to go anywhere I walk, subway or taxicab
 
you can totally do that while walking then
enough blocking stops
 
user895378
nah I'm too busy watching rebecca black videos on my commute.
 
@Ocramius :)
 
user895378
Rebecca Black as a Service.
 
user895378
RBaaS
 
7:23 PM
Oh shit. I forgot about that. Sorry @Gordon
beer > memory
 
user895378
FTFY
 
Today's deployment results, because you gotta deploy before taking a plane. #yolo https://goo.gl/Ohyw8k
4
 
Request must specify a valid HTTP URI
HTTP/1.1 200 OK
Expires: Tue, 27 Apr 1971 19:44:06 EST
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
Strict-Transport-Security: max-age=604800
Content-Type: text/html; charset=utf-8
Cache-Control: no-cache
X-XSS-Protection: 1; mode=block; report=google.com/appserve/security-bugs/log/youtube
P3P: CP="This is not a P3P policy! See support.google.com/accounts/answer/151657?hl=nl for more info."
Content-Encoding: gzip
Date: Fri, 27 May 2016 19:28:21 GMT
Server: YouTubeFrontEnd
 
7:28 PM
^@Gordon will make a proper service out of it someday :)
@rdlowrey yeah girlfriends are a proper time sinker :)
Unless you use those tinder one off things of course :P
Don't hate me @Wes, but I am writing css
 
@PeeHaa at least no JS.
 
I am very very sorry
 
@rdlowrey yeh we can do this, but I now remember why I concluded that attaching them directly to return values is not sane, it's things like prepare()... this obviously returns a statement, where do you put the notices generated while preparing? Putting them on the statement itself seems odd, and returning something with a getNotices()/getStatement() also seems wrong (most code is just going to ignore them anyway).
Also, in unbuffered mode, which seems like the most async thing to do and I imagine would get used a lot, the notices could appear at any point during the fetch process, and having getNotices() which may or may not give you all the notices you expect also does not seem right.
 
4 messages moved to bin [sorry, too distracting…]
 
So yeh, promise stream seems like the best route to me
 
7:35 PM
@bwoebi We made you the boss of this room!?
:P
 
@PeeHaa Goto complain towards Joe :-P
 
@PeeHaa And don't you forget it!
 
However there is an issue with that in ext/pgsql @rdlowrey in that you do have to manually check for notices and because of the way it works, if you received 2 in a row with no other data in between you'd actually lose the 1st one completely
 
That's strange, there are a lot of Room11-originated messages in the bin
 
also pgsql currently does not support unbuffered mode, but @bwoebi worked up a patch for this yesterday which will be sorted as soon as I finish writing tests for it, which will happen by the end of tomorrow
 
7:37 PM
!!giphy yep
Such a useless command :P
 
it really is
 
1 message moved to Orphan GIFs
 
deffo need !!bin
binning things is way too many clicks
should restrict to ROs though
 
Yeah that's what undo is going to do when if I write it :P
Or do you mean binning in general?
 
yeh general binning
 
7:40 PM
I would like !!gifbin and !!bin
 
@bwoebi Yep, just didn't get around to it yet.
 
Wes
does it exist a bloody semver php implementation that just bloody implements what semver bloody tells to do
 
We could auto-gifbin gifs with !!bin
 
See you are smarter than me like that
 
@PeeHaa I would have thought that !!undo would delete the message entirely?
 
7:41 PM
@Trowski I wonder how many tests fail the first time you try to wire it together :-D
 
Wes
don't bloody call it semver if it's a different made up bloody standard
i love php but i hate php developers
 
@DaveRandom yes you are right
 
Wes
especially @PeeHaa
 
could bin it if > 2min but I suspect that won't happen much
 
@Wes You're perfect for Internals then
 
right I am going to buy some cake making stuff, catch y'all in a bit
 
later @DaveRandom
 
Wes
@PeeHaa that could be fine
 
@PeeHaa Wow that guy hates PSR-1
 
@bwoebi Looks like you didn't submit it to packagist.
I can do that quick.
 
7:47 PM
@MorganTouvereyQuilling was psr1 the crappy autoloader or the cs one?
 
Wes
assert($YaraGreyjoy === $JordiBoggiano); // in case you didn't know
 
user895378
hahahaha
 
lol
 
@PeeHaa "Basic Coding Standard". Maybe we need !!psr [num]
 
user895378
7:49 PM
I better give it back before I forget though. That would be mean if I went off for the weekend and forgot :)
 
@MorganTouvereyQuilling I couldn't care less about psrn tbh :P
 
lol
I was very shortly afk
 
Crying I assume?
 
7:51 PM
The browser just refreshed when I came back :-D
 
:p
 
user895378
16 mins ago, by PeeHaa
@bwoebi We made you the boss of this room!?
 
nah, time for … euh … lunch.
(yes, it's 21:52 here…)
But too lazy to eat yet, lol
 
Speaking of lunch. I think I still have a bottle of whiskey somewhere here
 
… that's … not a lunch
 
8:05 PM
@bwoebi Added tests... most of them fail, then eventually one hangs :-D
 
@Trowski that sounds like you still have some work to do…
 
@bwoebi Or the tests just don't match the standard :-P
 
@Trowski I hope they actually do… If they don't, feel free to fix
Just the one about $loop->enable("Invalid") should fail as you made it throw even though we haven't yet decided on it^^
The problem with the tests is that they're completely untested… there may be blunders…
 
@bwoebi I'll look at them this weekend and fix either the loop or the test.
 
@PeeHaa That's the worst of all!
 
8:14 PM
Hello, is there a way for me to manually log errors to my mamp log file?
 
!!docs error_log
 
[ error_log() ] Send an error message to the defined error handling routines
 
?
@bwoebi It's ok :)
 
:-P
 
so simply error_log('hello world');
that will log to my log file?
 
8:21 PM
@MatthewSmart Should, try it.
 
guys i have a php array containing strings that are in facts files on the server, I could convert this array to a JS array if I have to. my question is, how to feed this string to html5 audio player so that it can play them? like a playlist.

how to echo the array into the player?
echoing the a $variable in the player isn't working, if it was, i would loop it, so im asking about it
 
var tracks = <?= json_encode($yourarray); ?>;
 
ok thats done, how to echo it? i tried

<source src=$var type="audio/mpeg">
ill try it again and get back to you
 
8:55 PM
yay chrome is showing warnings on non ssl sites
Good for you. You still suck, but at least you are trying to do good
@WietsedeVries I kinda like your site :)
 
Wes
hodor?
 
hodor
 
Wes
hodor hodor
 
!!giphy hodor
So useless...
1 message moved to Orphan GIFs
 
Wes
!!giphy hold the door
 
9:06 PM
@Jeeves?
 
Wes
i killed jeev again?
 
!!version
 
I think it's a giphy command bug
!!giphy rebecca black
 
Wes
i don't get it. who is the guy
 
9:08 PM
!!imdb supernaturals
 
[ Supernatural ] 2005 TV series, Eric Kripke
 
Wes
ah, i don't watch teen stuff #shotsfired
 
4 messages moved to bin
It's actually not that bad
imdb agrees with me for once
 
Wes
8.6? THAT?
 
As said. It's ok
 
Wes
9:10 PM
it's because it was voted by an army of teenagers :P
 
I think @tereško was also watching at some point. Not sure what his verdict was
 
Wes
are you still watching the 100?
 
@Wes Dude. season. must be finished. withdrawal. must wait. cant stop
 
Wes
yeah i remember teresko likes it, but i don't trust him anymore since he said he also likes buffy :D
 
which series exactly are you both talking about ?
 
Wes
9:11 PM
supernatural
 
it's ok-ish
 
See @Wes it's not just teenagers and me
 
Wes
lol. there's an army of people that actually likes even stuff like xena the warrior princess
 
if you want a "teenager series" just go watch "Teen Wolf"
 
Wes
that is so cheesy that it has holes in it
 
9:12 PM
@Wes It's even worse when you see it now! :P
 
:D
I tried watching Xena
 
Wes
my god. even as a kid i couldn't watch it. stupid stupid stupid stupid
 
slogged through the first season and just gave up
I am currently giving "Blindspot" a try
 
Started ok but gets crap pretty fast sadly
Concept is pretty cool though
 
Wes
later i will start 12 monkeys. do you remember the movie? there's also a series now
 
9:15 PM
The movie was cool iirc
!!imdb 12 monkeys
 
[ Twelve Monkeys ] 1995, Terry Gilliam
 
Wes
movie's epic
 
oh right that one. yeah that was awesome
 
Wes
one of the greatest scifi imho
 
I was impressed by Expanse ... and to a lesser degree - Killjoys
but, TBH, I prefer audiobooks instead
or even real books
 
9:17 PM
Real books are just too much effort
 
Wes
i've developed the ability to guess if a movie is shit from its poster
this looks shit
 
Ekn
:D
 
oh god
 
Ekn
YES?
3
lol I wanted to do that for a long time :p
 
Wes
lol
 
9:19 PM
@Wes it's not that terrible. Try one episode. If it's shit - move on
but the Expanse is definitely no-shit
 
!!imdb expanse
 
[ The Expanse ] 2015 TV series
 
Wes
is it comical also?
 
sci fi, near future, solar system
 
/me starts trailer... space sex \o/
 
Wes
9:21 PM
i meant killjoys
 
I saw a deus ex trailer today btw. Not sure about that one
 
you and everyone else
I actually would prefer Cyberpunk instead of DX: Humanity Divided
@Wes not in local star system, but planet-bound, sometimes with too much focus on style over substance
closest think I can compare it with would be "Dark Matter" series
 
Ekn
huh? I haven't seen the deus ex trailer yet
 
I still haven't finished DX:HR
I am stuck at the second boss
 
Wes
i try watching everything, but i often get disappointed. you suggested me some series some weeks back, i tried watching them but quit them. i don't even remember the names. for instance the one of the guy that entered a wormhole while testing a spaceship
how was that called?
 
9:29 PM
Farscape
 
Wes
yeah that. watched like 5-6 episodes then gave up :(
 
switch to audiobooks
 
Wes
good scifi books/audiobooks must be more rare than good scifi movies/tv series
if i understood semver correctly, the min version is 0.1.0
as 0.0.0 is invalid
 
0.0.1
But IIRC it's adviced to start at 0.1.0
 
Wes
indeed
 
9:35 PM
Not sure what the reason was, but I think I have seen it somewhere
Oh it's in the faq without a reason afaics. I just followed what they told me to do :)
Makes sense though because the initial version is not a patch
 
Wes
0.0.0 could be valid though
 
Maybe if it's an empty repo :)
 
@bwoebi Subscriber based model. Backpressure can be provided by returning an awaitable from the $onNext callback. github.com/amphp/observable/tree/subscriber
 
looking…
 
subscribe returns a disposable, an awaitable object with a dispose method to stop receiving notifications from the observable. I added this feature because it was needed internally, so I just exposed it on the public API.
 
Ekn
damnit that looks nice
 
@Trowski Disposable is stopping notifications or cancelling it wholly? At least When you throw a DisposableException?
 
@bwoebi It fails that subscriber, not the observable.
 
eih… but the subscriber is a callable?
how can that be failed?
The subscriber is not a Generator … at least not on Observable?
or am I missing something?
 
Wes
@Ekn spent several years playing wipeout. what a game
 
9:44 PM
Rather it fails that disposable (and the subscriber stops receiving notifications), not the observable.
 
Wes
this grip doesn't look to be frenetic enough though
 
Ekn
I totally forgot about that game
 
I could have disposals push back up to the observable... though I'm not exactly sure what would make sense there and the mechanics of that.
 
Wait … @Trowski the Disposable is at the same time the Awaitable responsible for success on finish? … Naming's confusing me a bit ^^
 
9:46 PM
@bwoebi Yes.
 
ah makes more sense now
 
@Wes I like trackmania games
 
@Trowski this thing is complex … 12 classes/traits (excluding exceptions) for a "simple" observable …
 
Wes
never heard of that
 
@bwoebi There's a lot going on there to support back-pressure. It's a pain, but I think back-pressure will be important to avoid build-up of emitted values/inflow of data.
 
Wes
9:50 PM
how about flatout? :D
the time i wasted on that...
 
Another issue was ordering of emitted values. Values are always emitted in the order they were pushed to the observable.
 
Wes
@PeeHaa that looks nice indeed :o
 
@Wes lol
 
F zero X nostalgia
 
9:53 PM
@bwoebi Note how in example/emitter.php, the third emitted value is resolved before the second, yet the values are still emitted in order.
 
@Trowski perhaps you should rename Disposable to Subscription … at least that's what I expect when I subscribe … intuitively.
@Trowski oh, emit() does Awaitable resolution?
 
@bwoebi Yeah. I just copied the name from the JS implementation.
@bwoebi Yep, sort of like resolving an awaitable with an awaitable.
If the awaitable fails, the observable fails.
 
may be fine, not sure if needed…
 
@Fabor That's the first time I have ever seen that
 
returning from a function, how do i determine if its a string or array?
 
9:56 PM
If you couldn't emit an awaitable, some of the code would be simplified... but it does seem intuitive that you could emit an awaitable... shrug
 
Wut? FzeroX is classic
Also this looks delicious
 
@MatthewSmart Why does your function return either a string or an array?
@Fabor My parents were poor :)
 
just does i guess lol
 
@Trowski doesn't seem exactly intuitive to me… but fine ^^
 
@PeeHaa Well you're not. Buy a N64 :P
 
9:58 PM
:)
 
Wes
a friend had fzerox. was bad compared to wipeout :P
 
lol just visited /r/southampton. What a tagline :P Portsmouth is the neighbouring city.
 
PeeHaa how would i do this?
or can you give an alternative
essentially i want to either return true and say yes its all works, or if not return with an array of errors
 
@bwoebi Something to consider I suppose... what would happen if you emitted an awaitable? The subscriber would receive it?
 
@Trowski probably yes.
It'd be a simple transfer of a value
With no values getting special handling
 
10:02 PM
If I didn't have to deal with worrying about ordering, I could probably eliminate two classes.
 
Also, not sure, but doesn't your observable fail in case you dispose the first subscriber and then subscribe another one
(but works if you first subscribe another one and only then dispose the first?)
 
No
The observable just keeps going even if there are no subscribers.
 
Speaking of real books. I've almost finished a real book. Might end up being the first book I finish reading in probably 8+ years
 
@Fabor hehehe nice one
@MatthewSmart What does your function do?
 
@Trowski but EmitQueue::decrement() calls done()?
 
10:07 PM
@bwoebi Wrong branch. Look at the subscriber branch.
 
ugh
@Trowski dunno, but when I want to resolve an Awaitable, I just yield it before passing to Observable…
 
I probably would too. Completing the observable might be complicated... as it's resolving an awaitable, so there you could pass an awaitable. I could solve it by explicitly forbidding emitting or completing with an awaitable.
 
@Trowski completion should be just like Deferred I guess?
for simplicity, it probably should expose the exactly same API as Deferreds?
 
@bwoebi That's how it is now, which is why you can use an awaitable.
 
resolve() and fail() eventually, with same semantics
as no other values can be emitted after completion, no need for queues etc. anyway
 
10:19 PM
complete == resolve, except that it returns an awaitable.
 
why does it return an awaitable?
On completion, there's no backpressure?
 
The observable doesn't actually complete until all values have been emitted.
However, if you can't emit awaitables, then there would be no need to return the awaitable on complete.
 
oh, well … that's redundant then too, when we do not special case emitting awaitables
right
 
In that case, complete/fail would be identical to resolve/fail.
In which case I'd just call it resolve/fail.
 
at which time you should just name it resolve() too
… that's the third time now that you say something and I say exactly the same about 1 second later…
:-D
 
10:22 PM
Good to know we're on the same page then.
 
I guess that'll save a lot of complexity now and the code may get understandable at all ^^
 
@bwoebi Back-pressure is what makes it awful.
 
@Trowski why? Isn't it returning a simple Amp\all() from subscribers?
I think the implementation is too object oriented here which leads you to have to wrap and pass values back and forth.
 
Not exactly, since I didn't want a subscriber fail to fail the observable.
 
@Trowski I thought that was the point?
Why should that not happen?
 
10:28 PM
@bwoebi So we want it if a subscriber throws to fail the observable?
 
If the returned promise fails, yes. … If it throws, no.
 
@bwoebi Wait... so if $onNext throws, don't fail the subscriber, but if it returns an awaitable and that fails, it should? That makes no sense.
 
If it throws it probably should just go into Loop::defer() and rethrow there
what exactly is $onNext?
 
The callback registered to receive values from the observable.
The subscriber, basically.
 
right. That one should just throw into the event loop
which may then be handled there with the error handler (or not)
 
10:31 PM
And if it returns an awaitable?
So the problem here boils down to how useful do we think back-pressure will be?
 
you're right
back-pressure is mainly useful in an 1-1 scenario
one emitter, one subscriber
 
Generally yes. With how I have it implemented it doesn't really matter how many subscribers there are.
 
multiple subscribers with back-pressure should be pretty edge-case
@Trowski I think that's fine
 
Ok, well then it's going to have to stay at least somewhat complex to support backpressure.
 
But I still think it should be Amp\all()
this defacto will stop the Emitter from emitting
At least from my experiences, in the cases you want backpressure, you also want cancellation in some way
 
10:36 PM
If subscribers throwing failed the observable it would also be simpler.
Not sure if that makes sense... the observable could fail if all subscribers fail.
 
@Trowski I'm torn between all() and any()…
Not sure what the right one is
as I have no experience with backpressure/cancellation in case of multiple subscribers
 
settle() would work if I just wanted to know when subscribers succeeded/failed.
 
not familiar yet … what exactly does settle() do?
 
Look at Amp/Internal/Emitted::ready. That's how I know when all subscribers have finished.
@bwoebi Settle succeeds when all awaitables given have resolved.
Settle can't fail.
 
k
@Trowski I dunno… I think if you want to throw into the observer, it isn't asked too much to return new \Amp\Failure($ex);
throwing is mainly for unexpected throws IMO. (i.e. exceptions which are critical to the application)
 
10:48 PM
If I'm returning an awaitable from a subscription, I have a place for the exception to go, so sending it there makes the most sense IMO.
 
You might be right. I'm not sure.
 
Let me refactor a bit again to directly emit awaitables, that will reduce some of the craziness.
 
I hope I get an end result which will be a pleasure to read :-)
 
Err... it'll be better, I can tell you that :-P
 
That … doesn't sound too optimistic :-P
 
10:51 PM
Should I just emit the awaitable object, or resolve the awaitable and not care about emission order?
 
the former
It's an 1:1 emit.
 
user986408
11:07 PM
when working with oauth authentications, would you generate an additional pwd for the user? like for future sign ins without oauth?
 
user986408
what is the best practise here
 
@codepushr no
The user specifically told you (s)he doesn't want a password for your site
 
user986408
@PeeHaa makes sense. also most of the time i wont get an email, so i guess i should make password, salt and email nullable?
 
Either that or separate the "external" users from the site users
 
Wes
!!eval if(PHP_VERSION === '7.0.6') echo random_int(0, 1) ? "coffee" : "beer";
 
user986408
i guess that's not what i want. i want them to complete a quite big form, so "plain" users will fill that out from the very beginning, and oauth users will get presented the form afterwards
 
[ 7.0.6 ] coffee
 
lol
 
Wes
dammit jeeves....
 
That was exciting! :P
 
Wes
11:12 PM
eheheh
 
@codepushr Whatever works for your domain / use case
 
user986408
@PeeHaa yep, thanks :)
 
Wes
speaking of wait for it's
The ultimate wait for it. https://t.co/11CyxPD5xg
 
11:22 PM
lol
 
yeah that's golden
 
11:39 PM
night all
 
Wes
gn \o
 

« first day (2050 days earlier)      last day (2902 days later) »