« first day (2136 days earlier)      last day (2818 days later) » 

@Fabor Nah. I have (or had) a beast of a gaming PC, has a GTX 780 in it; right when they came out I got one. After work, I still prefer to come in, switch on the console, and just chill with a controller. Even though you can do exactly the same thing technically with a controller and your PC
Knowing that, I'm not sure why
 
It's convenient.
 
!!dad
 
What do you call cheese that isn't yours? Nacho Cheese
 
Ha, nice.
!!mum // should return PeeHaa
 
1:12 PM
:p
 
@Saitama because I got a decent video card, and I expect it to be used properly
 
I don't know what it is about people that ask a question in the format of: I did A and it works great. Then I did B and all is well. Then I did C and everything worked out perfectly. Then I did D and... it works wonderfully. Then when I went to do E, everything worked perfectly. But then if I do X while doing A, B, C, D, or E it doesn't work. Any suggestions?
But it just pisses me off.
 
@Saitama coz dey suck m8
 
1:28 PM
It's like, why tell me your life story and that everything you did works perfectly, only to conclude "But nothing I've done so far is working at all"?
 
@Sherif A-E are usually scripts they've copied/pasted from elsewhere, and X is the one they want you to write for them
 
@PaulCrovella Sounds about right.
Which actually wouldn't annoy me so much if they had just asked about X and not made me read about A-E.
 
@bwoebi So. Do I need to define multiple endpoints (one for each room) and then onHandshake point to that endpoint?
 
@Fabor no?
 
@Fabor make the room name be a regex capture thing?
 
1:35 PM
->route("GET", "ws/{id}", websocket(new Chat()))
 
@Fabor should be "/ws/{id}"
 
@Fabor I hope you're documenting what you're doing here :-)
 
then I need to add something to onHandshake?
 
The perspective of someone who hasn't done this before is invaluable - the dev of these things tends to write things either too simplistically and doesn't go far, or goes too in-depth expecting users to understand things that weren't explained
 
@Jimbo Yeah, but I am still in the feeling like a retard phase
 
1:43 PM
Some of us never get out of that phase
Actually that's one of the worst things about conf speaking, standing there and thinking, someone thinks this is bullshit
 
@Jimbo Well tbh usually when I watch a conference where the speaker tells me nothing new it just affirms the decision I made while building whatever they're talking about.
 
@Danack haskell. Golang is not a functional language (since it doesn't enforce functional)
 
The same bad thinking is in go apparently:
> It also tends to prefer shorter names for receivers.. ie something like k or ki instead of kernel_info
 
@Fabor you can find dozens of questions on SO that describe their problem as "if is broken" - you're not in a retard phase, and it's quite likely you never were
 
1:47 PM
Because it is totally obvious what k is.
 
@PaulCrovella heh. Everything I know seems simple and everything I don't seems complex. Always the way. I often feel like what I know can be learnt in months not years even though deep down I know it's probably not the case.
 
@Danack oh, they really like shooting themselves in the foot
 
@Fabor I know there's nothing rational about impostor syndrome, and being aware of it inexplicably doesn't seem to help, but try to remind yourself of it anyway
 
Aye. Just gotta be persistent I guess.
 
http://stackoverflow.com/questions/39064986/how-to-make-a-php-website-wh‌​ich-can-chat-with-a-mobile-application
 
@Fabor what does your current onHandshake look like?
 
public function onHandshake(Request $request, Response $response) {
        $origin = $request->getHeader("origin");

        if ($origin !== "http://chat.dev:1337") {
            $response->setStatus(403);
            $response->end("<h1>origin not allowed</h1>");

            return null;
        }

        return $request->getConnectionInfo()["client_addr"];
    }
 
@PaulCrovella there are retards on many levels. But yeah, just not understanding things yet is not being retard
public function onHandshake(Request $request, Response $response, array $args = []) {
    $origin = $request->getHeader("origin");

    if ($origin !== "http://chat.dev:1337") {
        $response->setStatus(403);
        $response->end("<h1>origin not allowed</h1>");

        return null;
    }

    return [$args["id"], $request->getConnectionInfo()["client_addr"]];
}
 
@bwoebi I think I'll have some time beginning Tuesday to actually move RFC to discussion, etc.
 
@LeviMorrison the short functions one?
 
2:18 PM
Yeah.
 
@Fabor and then you can just in onOpen() do list($chatId, $client_addr) = $handshakeData;
 
Okay thanks.
$handshakeData only contains the IP (local) that I connect to the WS on. So I guess I gotta backstep from there.
 
@Fabor what's your onOpen looking like?
 
public function onOpen(int $clientId, $handshakeData) {
        $this->connections[$clientId] = $handshakeData;
        $this->ips[$handshakeData][$clientId] = true;
    }
@bwoebi It's basically this
 
@Fabor well… this uses one websocket for all chats you're in
 
2:32 PM
Aye. Trying to understand and figure out how to make them individual from this. :P
 
either you use just "/ws" and push all the chats onto it, or you use "/ws/{id}" and have one ws per room
 
Which makes more sense? I read just use /ws and push all chats there.
 
@Fabor damn you. #ModdedSkyrimFTW
 
@FélixGagnon-Grenier :). Stream it
You check out nexus then and the top mods?
 
next time :)
yeah, I checked nmm, then the other mod manager, then all these physics improvements, then all these sounds, light effects etc etc
I was maybe a bit compulsive about it too.
 
2:42 PM
Yeah, you need to find the right balance too. Not all things are compatible and stability decreases with more mods.
 
yeah, I somewhat got to that point :p
@Fabor oh how useful
 
It opens up the game a little too. I watched one guy who did a playthrough where he wasn't allowed to attack people. So he had a multiple followers mod installed and commanded them to do this bidding :P. He only healed them and such.
 
heh
ok I have to stop thinking about it, or I'll start playing again
*but what harm could it do?*
- that stupid voice in my head
 
heh. 500 hours later
 
2:46 PM
you played that thing for 500 hours?
 
@tereško very liberal use of the word "enjoy" but agreed. :D
across the years? probably
 
Only 110 but people sink thousands of hours in
 
It's totally worth it.
 
notsureifserious.jpg
 
"it's a great game if you fix everything that's wrong with it"... from the perspective of someone whose never played, it seems like a bit of a weird scene
 
2:48 PM
totes serious. I loved how big the game world was.
 
It's funny how much time you can spend on a game. People actually made wastedondestiny.com
 
@PaulCrovella heh. most bethesda games are like that. vanilla versions are kinda fine (especially morrowind) but modded games are the shit.
 
Keep in mind how long Destiny has been out too
September 2014 Destiny released.
 
2:50 PM
That doesn't include idle time too. Which is a HUGE amount of time in Destiny. Orbit, tower, reef etc.
I'd say at least 20-30% more for idle time
 
that's almost a year
 
I played TF2 for 1200+ hours.
 
almost 50% of the time since game release!!!
 
Never gets boring. 10/10 would do again.
 
2:51 PM
Yuuup. My most time spent is probably MW2. 690 hours. I mean I have a game called Subspace where I sank more but it's not known how many. Basically my childhood
 
The players on that list are insane.
I hope they get paid for that.
 
@FélixGagnon-Grenier my favorite for now is "intersectional veganism"
 
Destiny's culture is revolved around weekly based events. So they put a lot of reason to keep coming back. But it also sucks in many ways.
 
@tereško will that be the fifth wave feminism?
 
Then you have the cassowary, that got partway thru dinosaur to bird evolution and said "eh good enough" https://t.co/lAbFxTme7s
 
2:55 PM
@Fabor feel free to do that.
 
@bwoebi So for a single WS to separate rooms how/where do I handle it? Presumably the WS/Endpoint?
 
@Danack cute bird :p
 
@FélixGagnon-Grenier not so much.
 
@Danack those guys f*cked you up on Far Cry 3.
 
2:57 PM
@Danack cute !== beautiful ?
but yeah. w/e
 
cute implies "not something to run away from"
 
You've not played FC3 then -_-
 
unlike "tigers"
 
@Fabor well, you'll probably want to do a map: $clients[$chatId] = [<all clients of this chat>]
 
@tereško Tigers are adorable
~ Hagrid
 
2:59 PM
(didnt have a tiger, but this will be close enough)
 
@MadaraUchiha ahahahah
 
Ekn
this doesn't have a tiger too, but cute enough.
 
I want to cuddle a tiger/lion :(
 
@Danack oh. just read a bit more. ok these birds are actually dangerous!
 
3:01 PM
Just avoid the belly, I already know how to handle it.
 
@Fabor You know how a cat has enough of your belly rubs and lets you know by biting/scratching you?
Imagine that, only with amputation.
 
I just gotta establish myself as the Alpha @ModaraUchiha
 
@MadaraUchiha nice small jump
 
I already did it with Marley cat.
 
@Fabor make sure to stream that
 
3:03 PM
@bwoebi I love how we humans take pride in our world records, and these things just go "lol, cool story bro"
 
@Ekn honnn :)
 
@MadaraUchiha do we [take pride]?
 
"Usain Bolt can run at 50km/h for 10 seconds!"
"Cool story bro" ~Tiger
 
the individuals reaching them, sure
but humans… mh
 
Push comes to shove, I reckon I could take a big-cat :P
 
3:03 PM
@MadaraUchiha 60km/h, if chased by a tiger
 
I'd carry an emergency yarn-grenade. Throw it and run.
 
@tereško We don't need to outrun the tiger, just each other :D
 
@MadaraUchiha how do 12 m/s translate to 50 km/h?
 
@MadaraUchiha true enough
 
@bwoebi I exaggerated (on purpose)
 
3:04 PM
@MadaraUchiha You know Cheetahs can't sustain max speed for very long. You'd be more screwed being chased by a Greyhound if the distance was a little longer.
 
@MadaraUchiha :-P
 
@Fabor Cheetahs can reach well over 100kmph, it wouldn't take it very long to catch you
 
@Fabor I'm picturing wile e coyote trying to toss a yarn grenade that explodes in his face
 
@bwoebi 12 * 3.6
 
@PaulCrovella heh. ACME branded.
 
3:05 PM
@tereško is 43.2
 
yeah
 
@MadaraUchiha I could take it. -_-. gotta go in to these things with confidence.
 
@bwoebi I wasn't that far off.
@Fabor I could take it, and that's because I can drop meteors.
You? I'm not so sure :D
 
lol
 
my money is on the cat, but I'm willing to put you in the cage to find out
 
3:07 PM
Just need a time and place. If I pacify the cat, it counts as my win too.
 
Also @Saitama youtube.com/watch?v=1B7GeI_TKeA (starts at 11:20)
 
btw, first impression - "Far Cry: Blood Dragon" is awesome
 
@Trowski You reverted too much.
You need to keep ?.
 
(it's on sale now ... or was yesterday at least)
 
Still on sale I think
 
3:08 PM
@LeviMorrison The cries from doing so were rather noisy.
 
No, the cries were about \
 
it's like far cry 3, but as a "future movie" from 80s
 
For example: bugs.php.net/bug.php?id=72906. This is about the slash.
 
@LeviMorrison Prepending ? breaks zend/code because it manually prepends the \, so it generates code like \?TypeName if something like foo(TypeName = null) is used.
It's just a mess...
At this point I think we should just deprecate using __toString() for code generation.
 
I don't care.
And we don't have to deprecate anything.
It was never intended for that purpose.
 
3:12 PM
But it was used for that purpose because it was the only option.
 
We knew it was a BC break which is why it has to go in with 7.1 and not any later.
@Trowski you can use ReflectionParameter for everything those libs are doing...
(Well I didn't look at all of them, but at least a few of them)
The intention of __toString is this:
 
@LeviMorrison But the type name still comes from ReflectionType::__toString().
 
if you wrote ?Foo then you get ?Foo out.
If you wrote self you get self out.
If you wrote ?self you get ?self out.
Why is this so hard to understand?
We can't resolve types like self, btw. Traits screw it up.
 
I understand it, and I wanted it that way... but I'm not going to fight with the rest of the community.
 
It'd be nice if we could fully resolve all type names and prepend the question mark and have all the methods you would need to get to parts of that name, but it's not generally possible.
You don't have to.
Just put the ? back.
 
3:16 PM
@LeviMorrison Apparently that's not BC enough...
 
We know.
That's the whole bloody point.
That's why it has to go in with the nullable type changes.
 
And I'm not going to get yelled at for breaking BC again.
 
It can't go in later.
 
@Trowski just don't listen to the yelling people and be fine…
 
If we can come to a consensus on putting the ? on internals then I'll happily do it.
But at this point I'm not going to just do it.
 
3:18 PM
@Trowski We already did, that's what I'm trying to tell you.
 
Hmm... well, I suppose I can revert the revert, lol.
 
[That's what reverts are for.]
 
@Ocramius thought it was best to not prepend the ? because it would still cause BC issues with nullable parameters in 7 code...
 
@Trowski saw the mail, didn't reply
much appreciated tho. Did we add a deprecation notice or such?
 
The issues with ?, if any, are intended.
 
3:25 PM
or is it just marked deprecated in the code?
 
@Ocramius Not sure what to do at this point...
@Ocramius No deprecation notice. Maybe it should stick around for errors/debugging.
 
kk
 
@Ocramius Thoughts on still prepending the ? for nullables?
Maybe would be best through a reply on internals.
 
I'd rather not change __toString at all, and make it slowly die. I already replied on internals with that
 
Ah, didn't see that.
 
3:28 PM
previous responses
basically, a string is a bad place where to put information, unless you have a good parser for it on the other side :P
 
It's not intended to be parsed.
I understand that for return types it is the only tool available but it's a __toString.
You are permitted to echo out the type exactly as it's generated but that's really the only guarantee we try to make with it.
That the string emitted by the engine would be suitable for regenerating the type declaration for that exact position.
This is why we need to emit the question mark.
 
> I understand that for return types it is the only tool available but it's a __toString.
that's what it was in 7.0
 
The intention is to provide better tools which are not __toString in the future (wish it had been in 7.1 but people rejected it - not my fault).
 
so you now have an endpoint used like that, cannot change it
(until libs using it die)
 
That's not true.
 
3:32 PM
well, read the thread then, because it is like that. It's a BC concern, not an API design concern
 
@Ocramius the concern here is not the BC.
When ReflectionType was created it was intentionally constrained. You were not supposed to do this kind of thing.
 
Well, yes, breaks symfony, zendframework, doctrine
> You were not supposed to do this kind of thing.
 
Thus we do not care at all that your code breaks.
 
we did it
now it's BC
 
@MadaraUchiha +1
 
3:35 PM
It was a point of discussion around the design.
 
@Saitama I dunno what I expected, honestly :D
 
We are repeating the SAME EXACT discussion of the unset($this->foo)
 
No
This is different.
 
I am not interested in doing that
 
I liked that cover <3 👍👍
 
3:35 PM
feel free to spew nonsense on the ML
so I'm off
 
That was an unintentional design that has been around for years.
This is not.
This has been around for 1 version and we designed it this way and you misused it.
 
@Saitama The cover was awesome
 
it is NOT the same thing.
 
That guy is pretty awesome all around, check out his other covers
 
Gonna check out his boku no hero academia cover now
 
3:36 PM
@Ocramius This is not the same at all and if you can't recognize this then I'm not interested in a discussion anyway.
 
I loved that anime
 
3:47 PM
@Ocramius Also I tried to give you better tools for reflection anyway and you voted against them after saying you'd back them. It is difficult to sympathize with you on this issue because of that.
As noted on the mailing list its a BC break either way.
Why should your code be the one that doesn't break?
 
@LeviMorrison maybe he did. I'm sure he had his reasons to. And that's - I'm sure - not to betray you, but rather he changing his mind in last second.
 
Also, Reflection is tricky business anyway.
If we had added extended callable type info his code would break.
If we added union or intersection types it would also break.
He and everyone else using reflection need to understand that the APIs and outputs will evolve with the language.
If we added generics it would also break.
 
4:09 PM
@Ocramius You still don't seem to understand that it is a BC break in either case. I'm not sure why.
 
@bwoebi ping
 
@Ocramius Dont' know why you won't reply here but you reply on email.
@Ocramius But here is a 100% completely genuine question about Zend Code:
> Zend\Code\Generator provides facilities to generate arbitrary code using an object-oriented interface, both to create new code as well as to update existing code.
 
@Saitama 0
 
If the intention is to generate backwards compatible code aren't you going to have to do some version specific code paths anyway?
Or if it's to update old code I'm not sure how this fails?
 
@bwoebi does this seem right?
$appended = $this->websocketKey . self::HANDSHAKE_MAGIC_STRING;
        $hashed = sha1($appended);
        $encoded = base64_encode($hashed);
ws handshake... that is ^
 
4:15 PM
evenin
 
@Saitama no
 
which part seems weird tho?
 
@Saitama you're base64 encoding hex data instead of raw data
 
which is good place to learn php for beginners ?
 
@bwoebi ok...
 
4:18 PM
@Saitama [i.e. the second parameter to sha1 must be true]
 
sou ka
 
sou ka?
 
everything is so complicated...
@bwoebi i see in japaneese
 
@Saitama Why don't you just use Aerys instead of reimplementing it yourself :-D
 
@bwoebi +1
 
@JitendraPathak I think you'll get many different responses from many different people around here.
 
@Saitama and this means?
oh
 
:P
 
@bwoebi you see ;)
 
@JitendraPathak I think you'd be better off starting maybe not with php, but by setting a local development environment on the machine you use. That is, learning about composer, autoloading, namespacing and basics of oop. Then, using a local web server (you can begin with something like AMPPS before proceeding towards better server libraries)
 
4:22 PM
@FélixGagnon-Grenier Right, I'd give the same answer than you.
 
@FélixGagnon-Grenier back in my day it was all much easier. We've just produced spaghetti code, it worked and we were proud of it!
 
Back in my day -_-
 
@bwoebi lol
 
hehe
wow. I can't remember the last time I was proud of my code. probably before joining this room
 
4:24 PM
:P
 
@FélixGagnon-Grenier ampps?
 
@bwoebi a webserver / dbms / things bundle. somewhat stable, ships with php7 and configurable
 
ah
 
@Ocramius The git repository doesn't seem to contain usages of how it could be used. It just tests components.
 
@Félix your github user link?
 
4:26 PM
.. is in my profile, if you really need to have it :D
but really, nothing to see there
outdated unfinished (sometimes not even begun) projects
still, a few tools just good enough for me to use parts of em
 
@FélixGagnon-Grenier Thanks for your suggestions i copied all suggestion in my notepad file to understand slowly one by one with some googling
 
class Engine
{ ....
that syntax I hate it ^
y u no use class Engine { \n ...
 
@Saitama write it on one line class Engine {
 
@JitendraPathak it's a pleasure. if you have questions about any of these feel free to drop by and ask about it :)
 
@FélixGagnon-Grenier thanks i do when i need.
 
5:00 PM
another thing
so how is the server supposed to know for which route a websocket message was socket
?
@bwoebi :P ^
 
@Saitama That's the reason why the Websockets in Aerys are handled by the individual Rfc6455Endpoint instances and detached from the main server
 
shieeet... shit's too complicated...
 
@Saitama who said it's simple?
 
nobody, apparently
 
@Saitama seriously, Aerys was developed over three years and still not 1.0…
 
5:04 PM
the thing happened now is, my respect for aerys was +100
 
I'm not saying you can't do it, but it's really - really hard to do it efficiently with easy API and full protocol support.
@Trowski Already had time to look at the Postponed issue in Aerys/amp_v2?
 
I will try my best... the thing to do for me now would be to read Rfc6455Endpoint
 
@Saitama why do you actually do that? as pure exercise?
 
yeah.
 
some people practice footbag (you know, this shit hippies and now hipsters play all the time), some people build webservers
the world is a fascinating place
 
5:12 PM
Usain bolt: I am fastest
Sunday:LOL
 
I think I need to understand more about websockets and stuff before bashing my head against aerys for a bit. Though I did find an example non aerys of what I'm trying to do.
Basically I wanna build that using aerys
 
@Fabor ah, ratchet
 
lol. forums are so funny. the question is is there a way to uninstall all mods in nexus mod manager. After twenty answers of clueless people that say it's impossible and you have to do it by hand:
> There's a "Uninstall all active mods" button in the Tools menu.
 
!!urban ratchet
 
[ [Ratchet](http://ratchet.urbanup.com/6710768) ] A diva, mostly from urban cities and ghettos, that has reason to believe she is every mans eye candy. Unfortunately, she's wrong.

Typical signs to beware of include, but are not limited to: -owning a Blackberry -BLARES anything by Drake, 2Chainz, Nicki Minaj, Gucci Mane, Waka Flocka, Lil Wayne, T-Pain, Cali Swag District, or any other garbage entertainment rapper -rowdily quotes "lyrics" from aforementioned artists -has a weave reminiscent of a bird's nest after a tempest hit the tree it was in, and is dyed at least thrice -wears torn leggi
 
5:17 PM
@Jeeves learn to markdown, Jee'es
 
Is there some sort of pop-up book available to explain websockets to 5 year olds?
 
[just trolling :-D]
 
lol, not this thing again. Daniel already said to read it :P
Needs more pictures
 
@Fabor use google… Don't know any off the top of my head
 
heh tis fine, i'll find something.
 
5:27 PM
@bwoebi could you probably gimme a basic overview of what should be happening like... the handshake req comes for a specific route... I get that route, and call the onHandshake method on the websocket endpoint registered on that specific route... and then what?
 
> _This section is non-normative._
this is so meta ^
like, you know, text that doesn't even convert markdown indication to visual things, leaving it as a tool for the reader's mind to deciper it
 
@Saitama then the handshake is sent as reply, then the socket exported from server and attached put under control of the endpoint. After that the endpoint calls onOpen() and the fun can start.
 
the only thing I can't get my head around is: 'socket is exported and attached'........ sorry if I'm being dumb
 
@Saitama exported means that the Server class removes it from the list of sockets it controls and detaches all the watchers. Attaching means here that the Endpoint installs its own watchers on the socket
 
okay... okay.. I think I get it now... I think I would need to change my app structure quite a bit then
 
5:34 PM
> Objects can also inherit methods from other objects and “override” these with added or changed functionality, this is called “polymorphism”.
hmmm... ?? ^
 
 
I kinda understood polymorphism through the use of interfaces and implementing types, leaving the implementation to the concrete types. I guess inheritance and dirty overriding somewhat does that too?
 
in JavaScript, 27 mins ago, by Caspert
I was wondering how I can achieve this.
I have a variable number that has a value of 0 by default. Then I have a formula: var formula = 2 + 2; What I would like to have is when number is not zero, but another numb it will be added to the formula 2+2, so the formule will be 2 + 2 + number;
@FélixGagnon-Grenier Not really.
That's not polymorphism, that's an LSP violation.
polymorphism is either with interface, or with abstract classes, and concrete implementations.
 
there seems to be a somewhat popular mis-view of it, then
 
Example with classes and inheritance:
 
5:41 PM
the quote was from phpthewrongway, and some popular google results also associate overriding to polymorphism
 
interface DoesSomthing {
  function doSomething() : Thing[];
}

abstract class DoesSomethingSingular implements DoesSomething {
  function doSomething() : Thing[] {
    return [doSomethingSingular()];
  }

  abstract function doSomethingSingular() : Thing;
}

// now can polymorphically choose between instances of DoesSomethingSingular
Implementors of DoesSomethingSingular can be polymiprohically chosen
Even though the actual interface method doSomething() was already implemented (in terms of the abstract method)
@FélixGagnon-Grenier ^ I gtg now, bbiab, ping me if you have questions ;)
 
Ekn
> Tomorrow: Join 6 PHPers at "Laravelear"
ugh. I thought I unsubscribed from php mvd.
 
good edit :p
 
what's "php mvd"?
 
Ekn
5:52 PM
Montevideo group
 

« first day (2136 days earlier)      last day (2818 days later) »