« first day (2049 days earlier)      last day (2903 days later) » 

3:00 PM
@kelunik Maybe we want to dump registry and move the tests into LoopTest?
 
ok cool. I have an angularjs proj. and i have REST api in cakeph framework. I want to keep cakephp and angular files as in client and server folders. but after doing this i cannot connect cakephp to mysql database. you know wqhy? and how can i overcome this?
 
@Trowski nope
 
@RonniSkansing
 
the one is Loop-level tests (the static class)
 
Explain again why it's separated into a trait then?
 
3:00 PM
the other is driver-level tests
@Trowski feel free to propose a revert of that, I'd support it.
 
@bwoebi By LoopTest, I meant this class: github.com/async-interop/event-loop/blob/master/test/…
Not what you're working on.
 
@WaseemAkram
 
ah
yeah, sure
 
@KevinMGranger so would you like to see the file on pastebin? or should I ask on SO? been trying to fix it but nothing so far
 
did u get my question?? @RonniSkansing?
 
3:03 PM
I'd recommend making a question on SO, with a Minimal, Viable, Complete example
 
@WaseemAkram Yea
moment
hmm
 
ok cool @RonniSkansing
 
Well I think the seperation first of all is a good idea @WaseemAkram
do you get any errors or etc when trying to connect to the db?
 
No errors, but I get some etc
 
no it just says cakephp is not able to connect to database!
@RonniSkansing
 
3:05 PM
heh
/me hugs Chris
oh
 
:-D
 
@bwoebi Any reason I can't publish branches on the event-loop repo?
 
@WaseemAkram okay, I sorry, dunno why that happens when you rearranged your folder and files
Should be possible to get some debug/error messages out somewhere
 
My git-foo is not terribly strong :-D
 
@Trowski You actually get an error or just not showing up in gh UI? I had the latter problem the other day
If error, what do you get?
 
3:07 PM
Is someone able to help me correct this code... I know it's silly to ask but <?php echo'<input name="input" '.if(!empty($_GET['username'])) { echo'placeholder="'.$_GET['username'].'"'; }else{ echo'placeholder="Enter a username"'; }' type="text">'; ?>
 
@DaveRandom 403
 
I need to connect cakephp to mysql db without starting xampp. How do i do that.? @RonniSkansing
 
Anonymous
@WaseemAkram You need to connect PHP with Mysql first.
 
I'm an admin on the repo... wtf
 
Anonymous
Run the PHP's built-in server and the mysql daemon side by side
 
3:08 PM
@WaseemAkram but is msql server turned on?
 
how can i do that without running xampp.
 
Anonymous
go to xampp/somedir/something/bin/mysql ..
 
mysql server is running @RonniSkansing @samayo
 
@Trowski a) it may be a github fail, I can't find any settings anywhere in any of the org things I have access to anywhere to grant push but not create branch, I don't think it's that granular
b) use SSH
 
M(any) of you do Golang?
 
3:10 PM
Whenever I have apparently nonsensical problems with git over HTTPS, using SSH fixes it 90% of the time
 
I golang a bit
 
I have peaked into it a couple of times
but each time got abit scared of by the way it grabs dependencies and how it handles errors
 
@TheCodesee you can't just intersperse an if statement into there
 
would be nice to hear abit about peoples exp. have been with it
 
@Trowski What are you doing/getting exactly?
 
3:12 PM
I've yet to use it for a project big enough where those are issues, so I can't comment on those
 
Anonymous
<?php
$username = isset($_GET["username"]) && !empty($_GET["username"]) ?
    "placeholder=" :
    "placeholder='enter a username'";
?>
<input type="" name="" <?= $username ?>>
 
@bwoebi I just was going to push a branch to async-interop/event-loop for the namespace cleanup, but I get 403.
It looks like you've pushed branches, so that's why I asked.
 
Anonymous
@TheCodesee now get lost :p
 
@Trowski git push -u <remotename> <branchname> or some other combination of commands? (where -u and --set-upstream are the same)
 
Anonymous
@WaseemAkram how about phP?
 
3:13 PM
@samayo before i run off, could you explain the advantages of using both isset and empty?
 
@Trowski I've pushed nothing in particular…
 
Anonymous
@WaseemAkram You can easily find that out if you google it.
 
Jeeves is dead
 
@KevinMGranger well thanks for that bit of feedback none the less
 
3:14 PM
@samayo i dint get you. what do you mean by php??
 
@bwoebi github.com/async-interop/event-loop/branches Looks like you made a branch.
So I'm just trying to figure out what I'm doing wrong. git push -u origin cleanup-namespace
 
@Jeeves wake up
 
@Trowski that branch is 3 days old?
ah okay… got what you meant now
I thought you meant that I had pushed a conflicting branch now.
 
I don't think I'm doing something wrong, I just don't have permission.
 
@RonniSkansing I think you need to wake up peehash for that
 
3:15 PM
oh really, I didnt know he was gophering it off
 
So... I was curious how you did it :-P
 
@Trowski very normally, just like you ^^
 
@Trowski srsly, try it with the remote as an ssh url instead
humour me...
 
Haha there's no feedback there. I think it's nice and simple. Vendoring + git submodules always seemed like a natural and simple way of handling deps to me, but error handling can get a bit... idk. I've come around to rust's way of doing that
 
3:17 PM
The simplicity of the toolchain, plus their take on OOP is just refreshing overall (save for generics, which I don't feel strongly about yet)
 
yay yea am almost pumped enough to fire some go again
 
Plus the fact that just by going from 1.5->1.6 you suddenly support http2 is cool
 
btw fun php7 stories from real life techblog.badoo.com/blog/2016/03/14/…
ah.. well fuck it, I will retry .. again =)
 
@DaveRandom haha, worked. That's stupid...
 
@Trowski might be because of 2FA if you use https
 
3:21 PM
@kelunik Might. I had to add my public key to github to use SSH.
That is, I couldn't use my password.
 
SSH is so much better, especially if you have a Host config like I have: Something like git clone gh:async-interop/event-loop works.
 
@Trowski s/stupid/git/
 
@bwoebi @kelunik Can one of you review and merge the namespace PR.
 
I've had all sorts of issues with HTTPS, stopped using it altogether now
 
@Trowski later, on the way currently
 
3:26 PM
@Trowski Will merge it shortly…
@Trowski done
 
@DaveRandom What I don't understand is what's special about the async-interop group, since I can push to Amp, etc.
I think I'll stop using HTTPS as well...
 
/me still uses https successfully ^^
 
Do you have two-factor authentication on?
 
yes
there's something happening on OS X builtin git integration with keychain ensuring that it's not a problem
 
I'm also on OS X
 
3:31 PM
^^
 
... I give up, lol
 
3:44 PM
speaking of git: what causes some merges to create specific "merge branch 'branch'" and others don't? I think it's when there are conflicts, but I've made two merges today that did not conflict yet a second merge commit was automatically created. Are some conflicts automatically resolved?
 
Do catch blocks count as a layer that can be break'd through?
 
@Sean no
 
@NikiC Cool, thanks!
 
3:58 PM
guys my issue pastebin.com/ysNUhGUe 72 to 86, post request isn't working, not echoing hello, if you could find the problem great, else I'll try my luck on SO, but i expect it to be some small typo so
 
@FĂ©lixGagnon-Grenier because some merges are fast forward and then don't create a commit.
 
@kelunik hmmmmmmk.. thanks :) proceeds to read stuff about git
 
o/
 
@kelunik oh that was actually a newbie question. ta again
 
Hello
 
4:18 PM
hi
 
@samayo, are you there?
 
Have you read Pro Git yet? I think it's really all you need. git-scm.com/book/en/v2
 
Anonymous
@FederickJons I think so.
 
@samayo Talk me in private please, I don't know how haha
 
In DDD should the command handlers live in the application or domain layer?
 
Anonymous
4:21 PM
That will cost you $40 bucks for 30 minutes. (no tongues)
 
80 bucks an hour. that's honest ;)
@KevinMGranger oohhhh.
 
Anonymous
That PHP FIG is a joke.
 
4:38 PM
@Trowski before I PR: that's what you meant, right? github.com/async-interop/event-loop/compare/lazy-fast-loop
 
@samayo do you know of a post-mortem of that dracony / phpixie thing? the reddit thread was locked and I have some time for a popcorn moment
 
@bwoebi Loop::get should set self::$driver with Loop::createDriver(). Other functions would then be $driver = self::$driver ?: self::get();
Loop::execute should call Loop::get on line 68.
 
@Trowski no it shouldn't
@Trowski if $driver is null, a new driver shall be created
 
@bwoebi If code were to set up watchers outside of the loop, then call Loop::execute() it would create a new loop. I think the default behavior should be to use the already created loop.
That could be a separate PR though.
 
@Trowski That's just fine on the outermost scope
but there you use wait().
@Trowski How exactly would I then have the factory create a new loop?
That's the whole point
that it scopes properly.
If you want to set up watchers outside loop
 
4:45 PM
    public static function get()
    {
        if (null === self::$driver) {
            self::$driver = self::createDriver();
        }

        return self::$driver;
    }
 
then use Loop::get() as second argument
@Trowski yeah, no.
 
That's the only way that makes sense.
Otherwise you could create many separate loop drivers.
 
@Trowski That's the point.
When you nest Loop::execute(), you want separate drivers
That's the whole point of the scoping
 
Right, so leave it as createLoop on line 68.
 
yip
 
4:48 PM
But Loop::get should create the loop if one doesn't exist.
 
Anonymous
@FélixGagnon-Grenier Yeah, I know all about it.
 
Anonymous
Funniest thing ever.
 
@Trowski It still does
It's just not its main responsibility.
The correct function to call, to get a new loop is createDriver (in case none is set)
 
@bwoebi Then the other methods should use $driver = self::$driver ?: self::get()
 
@Trowski why?
 
4:53 PM
@bwoebi because createDriver doesn't set self::$driver.
 
oh, OOPS
 
get should set self::$driver using createDriver.
Like what I posted above.
 
yeah, then it's fine
 
Sorry, I explained that poorly I think.
 
I hadn't noticed that createDriver doesn't actually set it
 
@Trowski yes, yes, I got it
 
:-D
 
Wes
hold the doooor afternoon
 
@Trowski feel free to upvote: github.com/async-interop/event-loop/pull/65
 
We should have named \Throwable like that github.com/sgolemon/table-flip
 
5:08 PM
Sorry @DaveRandom /me went drinking instead of working today
Doesn't look to useful to me :(
 
Wes
@PeeHaa what's your secret?
 
Wes
:P
 
No guilt here. It's a "business opportunity" :P
 
5:13 PM
@bwoebi Done.
 
:-)
 
Just on Driver?
 
yes
It's already implied, this is more an implementation hint
 
Also @DaveRandom could you please review @Sara's patch? #lgtm
 
@MorganTouvereyQuilling I'm going to throw this from all my asserts from now on.
 
5:19 PM
Anybody ever heard of this? If that really is te case which I doubt that is terrible.
@DaveRandom I strip mentions in tweets ;-)
 
@PeeHaa ISP blocking SMTP seems unlikely... maybe some overzealous network admin would block it.
 
@Trowski Yeah that would basically block all external mail not hosted on gmail/hotmail
 
Well... they might block incoming connections to SMTP so spammers can't use a poorly configured mail server to send spam.
 
Yes a lot do, but outgoing makes no sense at all
 
WHY???
 
5:28 PM
Yeah, and they did say outbound, so... shrug
 
Every time I see that page, I think that PeeHaa is laughing an evil laughter, before his computer screen..
 
Am totally
 
Thinkin' about implementing github.com/nikic/FastRoute in the web server...
 
Ekn
'noon
 
o/
 
Anonymous
5:42 PM
o/
 
@Ekn heya
 
Ekn
o/
 
booted back into windows \o/
 
6:08 PM
 
@bwoebi Not you're microdeoptimizing E_ENGRISH
 
@PeeHaa s/not/now/
 
Anonymous
Does anyone use any 13" laptops that you recommend?
 
@samayo Do you really want 13"?
 
Anonymous
6:23 PM
@kelunik Yeah, tired of carrying around 15" anvil.
 
14" is a good size for travelling while still being not too small.
 
Anonymous
It's had to find 14" laptop, they are so few even the specs
 
Probably only Lenovo ThinkPads.
 
Anonymous
But yeah, 14" would be the ideal choice.
 
Anonymous
Do you have any experience with one?
 
6:25 PM
I'm pretty happy with my Lenovo Carbon X1 currently.
 
Anonymous
I was just going to ask you that :)
 
@samayo My first Laptop was a 17" … I never wanted a 15", but now that I have a 15" for a longer while, I don't want the 17" back ^^
 
@bwoebi That's way too large.
 
@bwoebi I felt the same about 15" versus 13" I find 15" way too big now.
 
@samayo At home I'm using it with the standard docking station, external keyboard + 22" monitor.
 
6:27 PM
@Sara dunno… I think my perfect size is between 14 and 15.5"
 
Anonymous
Yeah, I'm only carrying it around .. I was going for Carbon X1 .. but gordon didn't seem to think it was a good idea chat.stackoverflow.com/transcript/11?m=23408192#23408192
 
@Sara Same here. It also fits quite nice on the tables in lectures. And it's way lighter. My current one has 1.3 KG, the previous (Lenovo IdeaPad U510) weighted 2.1 KG or so.
 
If I need real estate, I have an external monitor. I want my laptop to fit in the airplane seat without cutting off my breathing
 
Anonymous
I have my eyes on Dell XPS 13" but I would prefer thinkpad series as they are more durable.
 
@kelunik It's rather all laptops got much lighter over last 5 years
 
6:29 PM
@bwoebi Sure, but the last one was ~3 years old (3 years from now).
 
@kelunik I'm on a MacbookAir atm, so 1.35kg here. WAY lighter than the 15" MBP I used to carry around.
 
@samayo It does have a docking station. At least the 3rd gen.
 
My Alienware M14 is a fucking brick though
3kg beast of a laptop
 
@Sara dunno, I don't feel like the 2.02 kg are too much
 
@bwoebi It is, if you carry it around the whole day.
 
Anonymous
6:32 PM
Aorus X3 V5 is a 13.9" beast powerhouse, It would be my choice if it wasn't $ 2K.
 
@kelunik these 670 grams… uh…
 
@samayo
 
@bwoebi 2/3.
 
evenin
 
The fraction is irrelevant here, just the absolute difference
 
6:34 PM
@tereško hola
 
@Sara Also… that thing is too slow … I need shortest compiling times possible :-P
 
Anonymous
@kelunik Hows the noise with the X1? And which (specs) did you get?
 
@samayo Usually none.
 
Anonymous
How much RAM do you have?
 
Anonymous
and processor
 
6:39 PM
Intel® Core™ i5-5200U CPU @ 2.20GHz × 4 + 8 GB RAM + 360 GB SSD.
You might not find that configuration online, because it's an edition only available to students.
 
Anonymous
I don't understand the 4 + 8 GB RAM otherwise, it's not difficult to get similar one
 
@samayo nah, it's 4 cores and 8 GB RAM
 
"× 4", that's the CPU.
 
it's not 4+8GB RAM
 
Anonymous
This may be the most overpriced laptop out there. galaxus.ch/de/s1/product/…
 
6:46 PM
@bwoebi I'm usually on a 13" MBP, the Air is because when I left FB I had no laptop at all, and Angela was upgrading, so I took her old one.
 
Anonymous
I can get Dell XPS 15" twice the power for that price.
 
> 26.4GHzGB
 
@Sara Angela is your wife?
 
Yep
 
They just need some parenthesis
(Intel® Core™ i5-5200U CPU @ 2.20GHz × 4) + (8 GB RAM) + (360 GB SSD)
 
6:47 PM
@Sara That's why you need an own laptop and not a work one :-P
 
So....anyone know how to get it through a colleagues head that 'unit tests' of controller code, that require touching an actual database are a bunch of shit?
 
@Danack Have you tried applying fist to face yet?
 
@PeeHaa my own yes.
 
@bwoebi I used to, but it became too much hassle to bother.
 
@bwoebi Hmm... that's a bit of a problem. The registry will have to be associated with a specific loop instance.
 
6:49 PM
@Danack You're doing it wrong :P
 
@Trowski right …
At which point we may just mandate the loops to provide a registry themselves even if it's a tiny SRP violation maybe?
@Sara I don't know what exactly could be problematic here, so dunno…
 
We could just check if the loop instance actually changed in execute and only change it then.
 
Also, Silex is nice for trivial stuff, but with that shitty Pimple 'dependency "injection" container' it has, I am not 100% happy today.
 
$self::registry = $previousDriver === self::$driver ? $previousRegistry : [];
 
@Trowski see my example…
$loop = new DriverInstanceFromSomeWhere;
Loop::execute(function() {
    Loop::storeState("foo", 1);
}, $loop);
Loop::execute(function() {
    var_dump(Loop::fetchState("foo")); // ugh???
}, $loop);
the registry disappears here …
 
6:52 PM
Oh... hmm...
 
Which is why we possibly cannot really solve it at the Loop (static class I mean) level.
 
Yeah, drivers need the registry... boo...
 
yea … boo … well said …
 
I suppose it is for storing objects that are coupled to that particular loop driver (trying to make myself feel better about it)
 
lol
@Trowski no it isn't
it's for objects stored to in a particular instance of some driver
 
6:58 PM
@bwoebi Isn't it for storing things like a DNS resolver, that depends on that loop running to actually work?
 
there's no coupling
@Trowski DNS resolver will work with any loop, not just a particular one
 
Coupling was perhaps the wrong word.
 
Wes
evenings \o
 
I meant storing objects that depend on a particular driver instance to work.
Not a particular implementation, but just that driver (because it has watchers in it)
 
oh, sure
 
7:00 PM
@Wes o/
There has to be a more elegant solution... I'll ponder for a while...
 
@Trowski I hope so, but I found none yet
 
Wes
guys, what's the best http abstraction library existing? i don't care if it's not psr friendly
 
Anything but that symfony turd
 
Wes
7:16 PM
lol
 
I seriously hate that http foundation thing
 
hey guys
 
@kelunik @bwoebi Infidel! Get him! :P
@bwoebi's already on it :)
@taco hey o/
@RonniSkansing \o
 
^^
 
7:26 PM
o/
 
I'm debating on using YAML for routes config, but it has logic. How would you replace this array with yaml gist.github.com/funkytaco/6e12ffd25ea28bd6b11802fb360b9779
 
I would just keep it like it is now
What does $IndexCtrl contain btw?
 
a class
 
Good, I was afraid it was an instance :)
 
maybe I'll do something like "class: Main\Controllers\IndexController"
 
7:29 PM
My routes currently look like $router->get('/', [Index::class, 'index']);
Which basically boils down to what you have
 
what's your logic for Index::class if you don't mind sharing? I'm sure I can come up with something
 
Symfony DI also uses the callable-array notation for factories eg factory: [Faker\Factory, create].
 
@taco What do you mean? What the class contains or what Index::class means?
 
not the yaml side, the php side. Are you just checking for '::', splitting it, and instantiating as class?
 
That resolves the class name
Now I wonder whether @Jeeves understand it
!!docs ::class
 
7:35 PM
[ get_class() ] Returns the name of the class of an object
 
Close @Jeeves
 
on a side note, we are hosting the CS Go tournaments apparently
 
anybody can help me on how to upgrade php mysql server?
 
@taco I have played so much 1.6 back in school. And I sucked so hard at it :P
 
I don't play. I still have my CS disks from like '99 though. And most of my FF7 disks :/
 
7:39 PM
Guys do you have any idea?
 
@taco That's totally hardcore :)
 
@BHUPI Have you tried google?
 
yup
 
Have you tried hiring somebody?
 
but did not get any luck
 
7:40 PM
@BHUPI Unless you are going to ask a specific question I doubt you will get a lot of people willing to bite
 
That's too broad of a question
 
Where's that?
 
cool
 
First major network to support e-sports, too
in the US at least
 
7:50 PM
lol, these E_CACHE's are fun…
Issues 2 (in the navbar) and 3 Open on the issues page
when I reload it's fine
but for like 3 seconds^^
 
Wes
eating pizza with pumpkin and mushrooms. it's surprisingly delicious :B
has also cheese, mozzarella and stuff on it
 
@PeeHaa Someone on the internetz was wrong. I had to prove him wrong ASAP. Done now.
 
internetz Someone on the wrong was :)
 
?
lol
 
@bwoebi :d
 
Wes
8:03 PM
@PeeHaa PeeYodaa
 
posted on May 26, 2016 by bwoebi

amphp/dns v0.8.11

 
Is there any English word like "lade" which means "bye for now" ?
 
@Shafizadeh later?
 
Oh, you are right... I heard that in movies but I didn't realize that's "later" .. thank you :-)
 
8:19 PM
@PeeHaa, it seems like this will work, so thanks:
        ['GET', '/', [$injector->make(\Main\Controllers\IndexController::class), 'get']],
 
That will create an instance even if the controler is not needed though
 
yeah, if you look at my original code, this is only a test. I'd just never used ::class and started reading up on callables
 
brb going to find more beer
@taco What I have is this which just defines the controller/action pairs for each route. A bit further I check if a route matches and if it matches I do something like $this->injector->execute([$controller, $callback[1]]);
That Router instance there is just a small wrapper around fast route
!!package niikic/fast-route
 
@PeeHaa No matching packages found
[ nikic/fast-route ] Fast request router for PHP
 
@PeeHaa is this package handling dependency injection for the classes?
 
8:34 PM
Nope it's a router
!!package rdlowrey/auryn
 
[ rdlowrey/auryn ] Auryn is a dependency injector for bootstrapping object-oriented PHP applications.
 
Yeah, I'm using Auryn with basically the same setup
So it sounds like I should move where I use Auryn
 
Correct. Only instantiate once you know which one you need. As in once you know which route matches
 
 
1 hour later…
9:41 PM
@Trowski did you get to a better solution in the meanwhile for the Registry?
 

« first day (2049 days earlier)      last day (2903 days later) »