« first day (2140 days earlier)      last day (2812 days later) » 

6:00 PM
@Trowski Set buffer size to only buffer up to 256 KB after the currently emitted message
 
When a value is consumed, you'd have to resolve another awaitable.
 
?
@Trowski well, using observables has the advantage of not throwing on Close. But it might still throw on incomplete message
Actually, I'm wrong
@Trowski Close is a control frame and thus might be interleaved between a TEXT and the subsequent CONT frame
 
@bwoebi That would be a protocol violation then, so the connection would close with an error status.
 
@Trowski it isn't.
 
@bwoebi CONT frames shouldn't have control frames interleaved.
 
6:04 PM
@Trowski no, they should… sec
> Control frames can be interjected in the middle of a fragmented
message.
@Trowski from RFC 6455 ^
 
@bwoebi Ok, I must've been thinking of something else then.
Though a close frame should be the last frame, so not finishing a data message is a protocol violation.
 
@Trowski do you need to finish a data frame?
you just can't start a new data frame without finishing the old one @Trowski
 
@bwoebi A CONT frame should be marked final before sending a new data frame.
But sending a close without finishing a set of data frames... not sure if that's explicitly called out.
 
@Trowski s/should/must/. But it doesn't say that not finishing it before a close is a violation
 
Sounds like an error to me.
 
6:10 PM
@Trowski Btw. even Aerys does that (I mean putting a close frame after an unfinished data frame)
Quoting the RFC:
> an endpoint MAY send the remaining fragments before
sending a Close frame
note that there's not written MUST.
 
@bwoebi Really? I need to dig into Aerys code a bit more. How does it decide when to break up a message?
 
@Trowski some option on size
 
@bwoebi Yeah, so technically it's not an error. I guess then you'd discard those frames and just resolve the observable.
 
@Trowski and how do you discard a yielded $message?
 
@bwoebi This would be buffered frames, not messages.
 
6:13 PM
?
 
Oh wait... that doesn't work if you can stream a message.
 
yes.
 
Bah, the websocket protocol is stupid...
 
hah
 
the entire premise behind Air Bud was that there was nothing in the rules saying dogs couldn't play basketball.. it was not a good movie
 
6:14 PM
You could fail that message, since it's a separate observable.
 
@Trowski right.
And then it'll throw
even though it's not exceptional. [your words]
 
@bwoebi Or you could assume the close frames means that message is closed...
 
@Trowski That's a bad assumption, TBH
 
I still think that's a protocol error and should throw.
 
at least with the better servers in the wild.
 
6:16 PM
The message wasn't properly completed... that's an error.
 
@Trowski annoy IETF people for a RFC superseding it… but that's what the current RFC says.
@Trowski when Aerys is shutting down, it will inject a Close frame right after the last frame was sent in completeness. And that last frame might be part of an unfinished message.
 
@bwoebi But this should happen unless the server crashes/is shutdown. It won't normally do that.
 
@Trowski Not only then, also when the $endpoint->close() API function is called explicitly
 
@bwoebi Ok, so it doesn't wait until the last sent message has been sent, it just closes immediately?
 
@Trowski yes. (or you can yield Promise returned by sending the last message and then do $endpoint->close())
 
6:21 PM
I wanna get pinged too!
 
So Connection::listen() should be an Observable so it doesn't have to throw on normal closes.
Really, it generally shouldn't fail, only return an error close status.
 
@Trowski but normal closes after an unfinished message will still have to throw then.
 
Connection itself could implement Observable.
 
@Trowski It couldn't. At least not if we yield websocket(). Else yield websocket() == $closeStatus
 
@bwoebi from() as @rdlowrey suggested could help.
@bwoebi Right... boo...
 
6:24 PM
guys here's the script http://pastebin.com/8Xci7y2y and here's the url http://amig.ga/elie/tycron/contact.php

the question is, no emails are being sent and it takes too long to finish loading after submit is pressed and it isnt the first time, i been trying to send mails using very simple scripts and didn't work, im using sendmail. do you think that the issue is from the server or am i doing something wrong
if you think this question is worth being on SO ill post it but i think my question is silly
 
frantically tries to sql inject a drop database
 
@Trowski uhmhm :-/
@Trowski but in general, I do not expect the server to close my connection at all.
 
@bwoebi Yeah, I'd almost rather wrap it in try/catch on second thought..
 
@Trowski yeah
If a Server closes my connection, it's because I did something wrong or it has to free resources, usually.
Thus, I'd propose to just always throw when remotely closed and we want to still iterate
 
@bwoebi That's probably best.
I still think it should be an observable from Connection::listen(). Seems like a much more elegant solution.
 
6:30 PM
@Trowski Why do we need an Observable when it can be an Iterator?
 
@bwoebi Even closing the connection yourself would requiring failing the last awaitable returned from the iterator.
 
@Trowski just if you close it while waiting for a message
but that would also be an issue with Observable.
 
@bwoebi No, then it just doesn't emit another message.
 
@Trowski right, Iterator won't either
 
If it was in the middle of streaming a message, that one might fail too.
 
6:36 PM
@Trowski that's what I meant.
 
@bwoebi The iterator aways has to provide an awaitable for the next message.
 
@Trowski no, it can say Iteration finished too?
i.e. Iterator::valid()
 
But Iterator::valid() can't be an awaitable.
 
And?
you are supposed to close the connection before calling ::valid()
 
And you don't know if there will be a next message. Maybe it's invalid.
@bwoebi For a client you can probably always do this, yes.
 
6:37 PM
@Trowski that's the point.
 
In a server context, probably not.
 
@Trowski Which we're not even talking about…
There's a reason why we have that interface in Aerys.
 
If you were managing a couple of websocket connections, you might close while waiting for a message.
 
@Trowski you might also close there while the server is sending something and you're waiting for a message then.
I do not want to have different behaviors depending on when exactly the close() hits
That's just inviting for bugs
 
Which is exactly what using an Iterator does.
And why I'm trying to argue against it.
 
6:43 PM
@Trowski what?
 
If you call close at the right time, the Iterator::valid() will return false and all is well. If you call it at the wrong time, then the last awaitable returned from the iterator has to be failed.
With an observable, it can just resolve when close is called.
 
same for observable with messages
 
No, not at all.
It resolves as being normally closed.
If using Observer, the awaitable returned from Observer::next() just resolves with false.
No exceptions need be generated.
 
Aha? while (yield $observable->next()) { $msg = yield $observable->getCurrent(); \Amp\defer(function() use ($ws) { $ws->close(); });
assume that there is a half-sent message by server in the buffer when close gets called
 
The observable still resolves with the close.
If it's streaming a message, then that would have to fail.
 
6:47 PM
 
But that's the case either way.
 
@Trowski And thus…
 
But that's only if the message is actually being streamed, which would be rare.
Most messages should be small.
 
you get different behavior on whether there's a half-sent message already or not…
@Trowski yes. This is why you get edge case, hard to debug bugs there then.
 
Ugh, I suppose you're right. Either way will result in an exception.
 
6:49 PM
right
 
If messages could just arrive as whole strings this wouldn't be a problem.
 
right.
 
Which we could do... almost every API I see treats messages as buffered strings, not streams.
 
we might add an API for that
And I say add. The other API should still exist. It's maybe for special cases, but it should still be there
 
Yeah, that would be fine.
99% of use-cases wouldn't need it.
 
6:51 PM
Not sure if 99%, but a lot at least.
It just shouldn't exclude the other 5%.
 
Well, maybe it's just what I've been exposed to, but I have yet to see a websocket that emits very large messages.
@bwoebi Totally agree.
Alright, so Connection::listen(): Iterator<Awaitable<Message>> would be the prototype?
 
@Trowski \Iterator<Message> you mean?
 
Yeah, fixed it.
 
@Trowski no, you included an extra Awaitable level?
 
@bwoebi Oh, no that should be there.
 
6:56 PM
@Trowski why?
the Message is what you yield, no?
 
@bwoebi Good point, yeah, that's fine. Just \Iterator<Message>
I'm still thinking of Messages as basically strings, ugh. :-P
 
And Connection::receive(): Observable<string> (needs better naming but …)
 
@bwoebi Yeah, I like that.
Though it might have to be an object just so it can have an isBinary property.
 
@Trowski you do not care about that IMHO, when you use the simple API
 
@bwoebi Yeah, that could be just for text based websockets (since again, most that I've seen are).
 
7:00 PM
@Trowski right.
 
Alright... sorry the journey was so long, but that API makes a lot of sense now.
Modeling problematic protocols is challenging.
 
@Trowski know your RFC :-P
 
@bwoebi I think I've read too many, getting them confused. :-D
I should have read it again first.
 
@Trowski I haven't … and I mess things up too … but that's why we have each other, to remind each other ;o)
 
If you haven't seen it, this blog post summarizes some of my frustrations with the protocol: lenholgate.com/blog/2011/07/…
So we're trying to model a stream-based protocol that is also trying to be a message-based protocol.
 
7:07 PM
@Trowski it's actually a segmented stream protocol
 
@bwoebi Right, but where you're not suppose to expose the segments as part of the API.
 
where the individual segments can be interpreted as one unit
@Trowski you're not supposed to expose the frames. You may expose each message as a stream of data though.
 
@bwoebi Which our API does, so it seems to be a good compromise.
 
@Trowski right.
So, let's wait for @rdlowrey to come back
@rdlowrey I strongly suggest you read the whole transcript until now as it contains a lot of information why. [I do not really want to explain the whole again.] — will take you a few mins, but worth it.
 
!!should I make music or watch a series?
 
7:13 PM
You should watch a series.
 
will do
 
@PeeHaa you see deleted posts, right?
 
@PaulCrovella yes
 
yes if I know where it is
You need something?
 
this dude has deleted and reposted this at least three times now, and I was curious if that showed in his profile for you
the first iteration I don't remember if it was from another account
 
I know I commented on an early one asking for clarification
 
hmm the one I found doesn't have comments. Let me try harder in stalker mode
Nope google purged the other one(s) :(
ping @MadaraUchiha
 
@PeeHaa Pong
 
instapong \o/
5 mins ago, by Paul Crovella
this dude has deleted and reposted this at least three times now, and I was curious if that showed in his profile for you
 
the lack of latency is impressive
 
7:21 PM
Could you maybe block the subnet of the country @MadaraUchiha?
 
What strikes me as odd is that his eldest deleted dupe is actually upvoted
 
lol
 
Why did he delete it? Is it possible he doesn't know how to edit?
 
Tell him he is doing it wrong :P
I bet he also gets a new pc if he made a typo in his text editor :)
 
when have you seen people like that taking an advice?
 
7:23 PM
@MadaraUchiha I have not seen any significant changes between reposts
 
you cant copy-paste an advice, @PeeHaa
 
> you cant copy-paste an advice, @PeeHaa
You were saying?
 
@PeeHaa you did it wrong again
you're prepended a >
 
I really need it to be friday btw.
 
@PaulCrovella @PeeHaa I've undeleted his first question and closed as a duplicate and also left him a comment
 
7:25 PM
@PeeHaa Okay, tomorrow exceptionally is not Friday but PeeHaaday instead.
 
tnx
 
@MadaraUchiha this seems a pretty good mmo-manga: mangafox.me/manga/the_legendary_moonlight_sculptor
 
@tereško Yeah, I've been following it for a while now (although I'm behind)
It's really nice
 
Anonymous
@PeeHaa you do music prod?
 
7:28 PM
Long time ago I did want to pick it up again
 
Anonymous
While I listen.. What software did/do you use?
 
ableton live
 
Ekn
too slow
 
Anonymous
Ah haven't used that, this sounds really cool though
 
What have you used?
 
Anonymous
7:32 PM
Logic mainly, some Reason and I tried cubase once. It's what I've always wanted to do just hard to get into, career wise.
 
Reason was my first proper gui daw
before that it was al IT an FT2 :P
oh wait. I lie. I think I have also tried fruityloops for a while
 
Anonymous
Reason was awesome. Really well made and great for teaching/learning. You ever tried logic?
 
yeah tried logic a couple of times
 
shit, I remember fruityloops.. the goal was always to draw smilie faces and shit in it
 
:P
@JayIsTooCommon Reason was really OMFGBBQWTFAWESOME when I found it
 
Anonymous
7:34 PM
I really like that track btw :)
 
/me pressed tab OMFG CABLES \o/
@JayIsTooCommon ty
 
Anonymous
Ikr xD must of been a ball ache to make
 
rebirth was also cool because 303
 
Hi, Can I somehow disable php extension in ini with ENV Variable?
 
no
 
7:36 PM
no
 
:(
And something docker compatibile with console?
 
wait, maybe. hold on.
put your extension in another ini file in a different dir, then set PHP_INI_SCAN_DIR to it when you want to include it (leave it out when you want it disabled)
 
@JayIsTooCommon still funny that Yoko Ono actually commented on one of my tracks :P
 
Ekn
heh
 
celebration I set up my first web server
 
7:41 PM
\o/
 
ALMOST complete, just need to get URL Rewrite rules imported over
 
beer for everyone
 
dance
 
it's on @Tiffany
 
haha
beers for everyone
5
 
Ekn
7:41 PM
\o/
 
I feel bad for yoko. She was actually a respected artist and took a real chance getting with john - he was looked down on as just another pop star in her circle at the time.
 
Anonymous
@PeeHaa seriously?? I'm on mobile, can you linky?
 
Ekn
but... but that last video I heard her... "sing"...
 
Can anyone recommend a camcorder that has an external mic input?
....it seems that the ones sold in Europe seem to have that left off.
 
@JayIsTooCommon it was just a comment telling me I should add it to her remix thing group. Let me see if I can linkn SC comments
 
7:44 PM
@Tiffany tnx, it's my second
 
@JayIsTooCommon does this work? soundcloud.com/sander-van-halem/…
 
> Please feel free to add your Ono Remix to this little family group, thanks!
aww
 
Holy shit I didn't even remember I made so many tracks
 
Ekn
:-)
 
I knew smoking pot was good for something!
 
Anonymous
7:47 PM
@PeeHaa nope, I'll take a look when on PC. (I've been forced to watch TV because somebody won't play rust...) that's still awesome though. Out of interest, where are the vocals from?
 
link is on the page
if the link is down you are shit out of luck. All my tracks and track assets are long gone after several puter crashes
 
Anonymous
Ugh SC mobile site isn't good - What I mean is, did you record them or are they samples or something?
 
samples
 
Anonymous
Ah, nice
 
@PeeHaa powder sometimes do that yeah
 
7:49 PM
hehe
 
Anonymous
Bunch of junkies.
 
/me off to hockey, taking care of my other dependence
 
fwiw prodding works best when drinking and smoking pot with a friend
 
Ekn
7:51 PM
true that
 
Anonymous
Or when you're a loner 15 year old with nothing better to do ;)
 
:P
 
... just had to be sure
 
ermm yeah :P not that one
 
7:52 PM
fixitfixitfixitfixit
 
lemme check
 
Ekn
asdfkdefgñe
 
phpenmod? If I disable extension can I still have it configuration unchanged?
 
4 messages moved to bin
1 message moved to bin
 
Anonymous
Lol
 
Ekn
7:57 PM
:p
 
yes I have reached that point...
 
Ekn
cheers then
 
cheers :)
 
I forgot to install the LDAP extension and Pear mail
woops
at least it's not live yet
 
8:14 PM
That's a bad choice.
At least several bad choices there.
Unless you have a function key on the right side of the keyboard you can't adjust volume with one hand. That sucks.
And the power off key being right next to volume... yeah.
That's won't ever be annoying.
 
that could never go wrong
 
power keys I've seen like that you have to hold down for a bit before they'll shut it off
so an accidental tap isn't a problem
 
@PaulCrovella coincidentally, that's exactly what you do , when you want to make something louder
 
use one, you'll see what I mean
 
8:57 PM
Welp, so much for second chances.
 
lemme guess
 

« first day (2140 days earlier)      last day (2812 days later) »