« first day (2436 days earlier)      last day (2736 days later) » 
00:00 - 17:0017:00 - 23:00

00:13
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_osi=! acpi_osi='Windows 2009'" #WAT https://t.co/lXXgEkDqvk
I'm so confused by linux...
 
1 hour later…
01:30
I have php's built-in webserver running on a vagrant VM at localhost:8000, how do I access it from my host machine?
by access, I mean access localhost:8000
port forwarding in virtualbox?
@Tiffany yep - port forwarding does that, but it's usually explicit and requires a VM restart
I'm reading that I need to find the IP of the guest machine, add it to the ports and alias it to localhost (I think)?
frustrating part is ip addr show is "command not found" -_-
dammit
I'm probably better off making a new VM because I can't get @Jimbo's to work. Commands not found, which I'm guessing is a permissions problem? but I don't know the root password so I can't do anything about it. Back to square one again!
01:51
Guys
O/
Anyone?
02:10
most are asleep
Wes
Wes
02:50
bla
03:06
@littlepootis I had trouble the last time I tried forwarding ports through the vagrantfile. I followed their instructions and it wasn't working. But I'm going to try it again tomorrow. Bedtime now.
Wes
Wes
gn
03:41
!!unix
03:56
mrrrrning r11!
0/
 
1 hour later…
04:59
morning
05:26
@Linus morning.
05:50
tuuttuuruuu~~~ mornings o/
To everyone coming in to the chatroom while I'm here... Please take a moment to complete the online survey which I need for my thesis. Please answer ALL questions. Just 10 minutes. Also if you need any help on php/codeigniter, I'll see what I can do to contribute in here.
06:07
PDO Related – #74769
06:30
Hello
Hey @SalOrozco
@itsols what's going on?
Most folks aren't here yet. You need help?
I do with my survey, if you don't mind :)
Survey?
yup. please look above a few posts. I have a link
06:34
ok so whats wrong with it?
oh no, nothing wrong. I just need inputs from developers. So if you don't mind, I'd love to have yours.
And if you have any issues, I'd help if I can
What is SOLID?
huh? I don't understand. What are you talking about? Or are you testing to see if I'm not a bot - smiles...
@SalOrozco Here you go:
!!wiki SOLID
In computer programming, SOLID (single responsibility, open-closed, Liskov substitution, interface segregation and dependency inversion) is a mnemonic acronym introduced by Michael Feathers for the "first five principles" named by Robert C. Martin in the early 2000s that stands for five basic principles of object-oriented programming and design. The intention is that these principles, when applied together, will make it more likely that a programmer will create a system that is easy to maintain and extend over time. The principles of SOLID are guidelines that can be applied while working on software...
06:37
LOL
i KNOW WHAT IT IS
I was testing him
you blew it
Oh, lol, didn't have a coffee yet :D
Only read some of the messages.
Good one. I've been coding for a long while and I never knew this. Here we go... yet another acronym.
You don't know that
but you been coding for a long time?
Wes
Wes
@kelunik morning
06:50
morning
Wes
Wes
are you caffeinated? :D
not yet, but coffee is already ready :D
So AMP 2.0.0 aye
Release notes? :)
thank you
07:26
!!DAD
What do you call cheese that isn't yours? Nacho Cheese
@Jeeves get new one's..
@Linus I still do. Maybe two jobs.
any of you php devs also know java?
I like coffee, yes.
Wes
Wes
07:58
cell shaded or diffuse shaded?
@wes these are better then you show yesterday (y)
Wes
Wes
yeah it's getting incrementally better every time :D
user6845426
I'm going to start seeing that logo in my sleep
Wes
Wes
lol
user6845426
:p whats up
08:03
hahaha
user6845426
On a side note i've finally managed to get my first grad job :)
Yesterday I show dream where @wes give up on making changes and stop making logos anymore 0_o
user6845426
So the world stopped turning
Wes
Wes
i don't often do this kind of stuff
in fact almost never. surprises me being so good at it :B
That's actually nice to do different things!
08:06
@Wes that look's cute elephant
@Wes Looks rotated when it's mirrored :D
tools.ietf.org/html/rfc1034#section-3.8 < That's a great section. :D
08:25
What's the logo for Wes?
@Fabor Amp
Tis looovely
Elephant looking -> way is best
When can I order the t-shirt with that logo on it? :P
Or better yet, one previously worn by Daniel
@Fabor As soon as it's finished :D
-_- no no, you have to go straight to marketing the unfinished product if you want to be professional.
@Fabor You would have been walking around with a moonsquidcondom on your shirt though
ornigns
08:39
I googled that expecting it to be something
Morning
Wes
Wes
@PeeHaa look above. cell shaded or soft shaded
open_basedir causes segfault (11) – #74770
Wes
Wes
also mornings
i beg for help
i'm very undecided
let me pour in my coffee and scroll up
soft
although I think it looks better on the larger one the smaller one looks like a lo res gif when you do that
Wow, amphp/dns has a code coverage of 8%...
08:54
libdns doesn't have tests at all I assume
does anyone here use containers for dependency injection? i.e. use the container to - pre instantiate - dependencies and pass them into a constructor when creating new objects. Im wondering if its common practice to unit test the containers themselves?
That's not really dependency injection what you are doing
Well it is, but in a really broken way
In 99.999% of the cases you don't pass the container around
Anyone watch Silicon Valley?
Tried first two episodes. Hated it :)
Watch Peep Show -_-
08:57
Watched first n episodes and forgot about it.
That's often a bad sign :P
You're a bad sign
:P
@PeeHaa ok - maybe I should have said " instantiate on demand"? either way , new up the dependencies - which themselves may have their own dependencies, using a container where the container doesn't get passed around but just returns the dependencies. is it common to unit test these containers?
Yes
09:01
@the_velour_fog Yes, a couple of people in here use Auryn.
@the_velour_fog yes
I was just going to write my own simple container. I see auryn already has unit tests - which would save having to write those myself
@the_velour_fog There's no reason to write your own, except for learning purposes maybe.
Also... Auryn is awesome.
@the_velour_fog type declarations, yes
posted on June 17, 2017

New Cyanide and Happiness Comic

whats this?

$injector = new Auryn\Injector;
$obj1 = new SomeNamespace\MyClass;
$obj2 = $injector->make('SomeNamespace\MyClass');

Can Auryn make a dependency without you having to register it into the container?
09:45
@the_velour_fog Yes, if all parameters have default values or are themselves creatable.
09:59
@kelunik wow yeah I just `composer require rdlowrey/auryn` a new project and ran this:
<?php
require_once('vendor/autoload.php');
class MyClass { public function foo() { echo "bar baz"; } }
$injector = new Auryn\Injector;
$obj2 = $injector->make('MyClass');
$obj2->foo(); // output "bar baz"
yeah thats cool :)
10:32
@the_velour_fog btw you might want to check out the delegate functionality for creating classes, where there is a tiny bit of logic needed to create the class.
Jul 28 '16 at 12:44, by Danack
function createLibratoConfig(Config $config) {
    return new LibratoConfig(
        $config->getKey(Config::LIBRATO_KEY),
        $config->getKey(Config::LIBRATO_USERNAME),
        $config->getKey(Config::LIBRATO_STATSSOURCENAME)
    );
}

$injector->delegate(LibratoConfig::class, 'createLibratoConfig');
10:42
@DaveRandom ping
@Danack thanks, yes I need to do something like this for my `PDOConnect` class, which allows me to swap between sqlite and mysql

    function createPDOConnector(Config $config) {
        return new \PDO(
    		$config->get_db_dsn(),
    		$config->get_db_username(),
    		$config->get_db_password()
        );
    }

    $injector->delegate(PDOConnector::class, 'createPDOConnector');
s/$this->/$/ probably - but yes that is what makes setting up applications with Auryn so nice.
ah thanks,
does all the "automagic" stuff, creating dependencies from typehints etc, cause problems with reasoning about the code? e.g. extra complexity or is it like PSR-4 autoloading, you just set it up, and forget about it - and it just makes for one less thing you have to think about?
@the_velour_fog it mostly just works and removes a huge amount of complexity, as it makes it so much easier to write SOLID code, that you naturally write code in a good way.
type declaration
10:55
@the_velour_fog However, there are some advanced cases - where you can't know all the dependencies ahead of time where it reveals that your application is lacking a required capability - blog.basereality.com/blog/15/Stop_trying_to_force_interfaces
me nods
yeah thats the kind of thing I worried about. I would guess you would be ok if you just use the delegate method to hard code the dependency creation, rather than leave it to Auryn to try and work it out?
hah, from http://blog.basereality.com/blog/15/Stop_trying_to_force_interfaces

> This is known as [Yo' Dawgging](http://www.urbandictionary.com/define.php?term=Yo+Dawg) as in "Yo dawg, I heard yo like coding so we put a language in yo language so yo can code while yo code."
11:17
@the_velour_fog yes. I think it's fine to put any kind of hack in the bootstrap layer of the application. I quite strongly split my application into two types of code: 1) good code that sits in the middle of the application, uses types everywhere and is completely unit tested 2) Stuff that is at the borders of the application (either coming in to setup the application, going out to talk to external services) where the code doesn't really use types, and isn't unit tested at all.
11:29
makes sense, well im off to bed now. I'll look into it tomorrow
11:57
> Every time you ignore Loose Coupling a little donkey dies
I am trying to clone my ubuntu to a new SSD I added in my laptop, anyone willing to help?
you must be desperate to come to me room11 gif
Wes
Wes
12:24
how about this shading? cc @PeeHaa
Can I see a smaller version?
@bwoebi travis-ci.org/amphp/amp/jobs/243972400 < Can you have a look, please?
Nevermind, I think you already fixed that, but Travis' nightly isn't up to date, their support has a new message. :)
Anonymous
12:59
@Wes omg! It was an elephant all long!?
Wes
Wes
eat a bowl of dingleberries @JayIsTooCommon
lol
@Wes I think I like it
splfileobject lock and unavailable FCLOSE, REMOVE file. – #74772
people start playing with framework first then grasp basic of language...
:P
https://t.co/ChGCqpTvKL
@pmmaga Any job description that quotes years of experience is by a hiring manager that has no idea what experience is...
@ircmaxell true that
ohh.. it's actually from SO: stackoverflow.com/jobs/146072/…
> Hours:

- Willing to work 45 hours per week
How about you fucking place another job ad
> Senior/Lead PHP Engineer £20k - 30k
wtf is up with people
@PeeHaa Is that in England? English managers are bad at maths.
13:20
It's in fucking london
Even. Better.
Although they say they do remote
But still :P
@PeeHaa is that less or more ?
@Linus That's waaaay too low
Wes
Wes
ahem. i need to divide a segment of length 9 into 7 segments. i need to place 6 points on it using a logarithmic scale, where the curve is a quarter of a circle circumference sketchtoy.com/68162595
i failed at school, life, everything
13:24
Was that even English?
Wes
Wes
> i failed at school, life, everything
Same brofist
Wes
Wes
:(
where are the Bobs when you need one
Just summon him. Surely he is at his screen :-)
@Wes you can find log value of number on x axis and then plot result?
Wes
Wes
13:30
kelunik solved it already. and yes, it was easy
oh you want programtically :P
Wes
Wes
it's the same :B
Anyone know if there's a limit how deeply nested traits u can have?
You are doing it wrong
I dont care of style opinions i choose traits, so my question stands - anyone know if there's a limit or is there no actual depth limitation.
13:39
I don't care about giving people a knife when they don't know how to handle it :-)
fuck off
a bold strategy.
Wes
Wes
@Eddie i am a fan of traits. i use and abuse them. but nesting traits at the point that you wonder if there's a depth limit is certainly a sign that you are something that you could do in a different way
13:42
Nope
It's just style
You are being ignorant blanket
weeeeeh
Could anyone pull github.com/amphp/file and see if the tests pass?
sure
Hello ,should my model take care of scraped data(will be connected to an api for handling it)?
Working fine locally (except for one UV test), but totally failing on Travis.
Does that mean skinny controllers fat models?
13:44
Oh I don't having uv here atm :(
@PeeHaa Just run the other tests, no uv is fine
oh k
moment
More interested in the parallel tests and testMkdirRmdir.
0.2 branch I assume?
13:49
yep fails
1) Amp\File\Test\BlockingDriverTest::testMkdirRmdir
Failed asserting that 511 is identical to 420.

D:\Web\file\test\DriverTest.php:229
D:\Web\file\vendor\amphp\amp\lib\Coroutine.php:53
D:\Web\file\vendor\amphp\amp\lib\Success.php:33
D:\Web\file\vendor\amphp\amp\lib\Coroutine.php:93
D:\Web\file\test\BlockingDriverTest.php:9
D:\Web\file\vendor\amphp\amp\lib\Loop\Driver.php:112
D:\Web\file\vendor\amphp\amp\lib\Loop\Driver.php:70
D:\Web\file\vendor\amphp\amp\lib\Loop.php:53
D:\Web\file\test\BlockingDriverTest.php:10
woops. sorry room :p
@PeeHaa This is a job spec I wrote last week and just published yesterday. Does it look ok? boards.greenhouse.io/lingolive/jobs/731976#.WUUzwmjysUE
Yes. I wish all of them were written like that. Only thing I am missing though is the pay or some indication of an amount
@PeeHaa So it's failing for you, too.
yeap
@kelunik Anything else I can do?
@PeeHaa Sure, debug why it's failing :P
13:55
I knew that was coming :P
I am sorry to tell you I can hardly read my screen because of the sun right now :P
user924016
mornings
Speaking of the job @ircmaxell you made peace yet with rails?
user924016
^ lol
Morning @RonniSkansing o/
user924016
\o
user924016
13:57
woke up at 3:30 PM went to bed.. duno
@PeeHaa yeah, was debating putting salary, but we're still figuring out bands and such. I have a budget for it, but not quite willing to publish yet
Drinking / coding / hacking?
@PeeHaa nope...
user924016
@PeeHaa yes
13:58
@ircmaxell :(
@RonniSkansing All three 3? \o/
I spent a day debugging something the team couldn't fix for literally a year (they pourd hundreds of hours debugging it), and it turned out it was because someone defined Nil.upcase()...
I nearly screamed when I found it
lol
user924016
Swap the drinking with something else
user924016
(=
I love the theory of ruby. I hate it in practice
I feel it's just like C++. Really powerful and gives you a ton of options. But in practice if you use more than about 14% of that power you're going to get yourself into a metric shit-ton of trouble
14:00
The theory behind it being build things fast and if it works great?
ah I see
no, I mean the mutability and total lack of types
Yeah sucks
(and the way it handles variables, scope, state, etc
@ircmaxell all the power of C++, with all the safeguards of C ... but with ducktyping
hehehe
14:01
with all the safeguards of ASM
C at least pretends to defend its type system with compiler warnings
it will probably cause some measure of chagrin, that someone, who was PHP developer for more than a decade, found that bug
14:20
@Wes you have birthday today?
oooooh looks like it
Buon compleanno tuti pasta @Wes \o/
Happy birthday @Wes ;)
14
Happy Birthday @Wes :)
@PeeHaa Could you modify github.com/amphp/parallel/blob/… and dump the exception there?
Wrong SCRIPT_NAME with Tomcat and CGIServlet – #74773
sec
lol
couple more secs
> PHP Fatal error: Allowed memory size of 134217728 bytes exhausted
uhhhhhhm
> [PHP Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 532692992 bytes) in D:\Web\file\vendor\amphp\parallel\lib\Worker\AbstractWorker.php on line 39]
[PHP Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 532676587 bytes) in Unknown on line 0]
user924016
14:34
Moar memz
@PeeHaa Is that the error or does the parent process exit with that then?
That's me trying to dump the exception during the test
How did you try that?
Something something recursion?
Just try a fputs(STDERR, get_class($exception) . ": " . $exception->getMessage() . PHP_EOL);
14:41
oh you just want the message?
Would be a first step :D
:-)
> Amp\Parallel\ContextException: The context stopped responding, potentially due to a fatal error or calling exit
Well that is useless
Ok, then same with $exception->getPrevious() please
> Amp\Parallel\Sync\ChannelException: The channel closed. Did the context die?
> [PHP Notice: Undefined variable: handle in D:\Web\file\test\HandleTest.php on line 103]
[Uncaught Error in D:\Web\file\test\HandleTest.php on line 103]
Error: Call to a member function close() on null in D:\Web\file\test\HandleTest.php:103
That the next previous one before that
Now we have a helpful one :D
14:49
:P
yay for hiding usefull messages deep in the stack \o/
15:07
@PeeHaa Wait, it's not really helpful, it's just open throwing.
@PeeHaa Can you put a \sleep(60) where you dumped the exception and see if any amp-worker process is still alive?
Going to get food now. Will do afterwards
I'm running php's built-in web server on a VM, I want to access localhost:8000 from my host machine. I know it requires port forwarding, but I don't know what to put.
15:33
@PeeHaa Do you have pthreads installed?
@bwoebi Getting the following error with UV enabled only:
Starting test 'Amp\Parallel\Test\Forking\ForkTest::testExitingContextOnSend'.
[PHP Fatal error:  Allowed memory size of 1073741824 bytes exhausted (tried to allocate 65536 bytes) in /home/kelunik/GitHub/amphp/parallel/vendor/amphp/amp/lib/Loop/UvDriver.php on line 53]
@Tiffany Why?
Why what?
Why are you using PHPs built in web server?
Do you have your VMs IP?
15:39
yes
Which is?
10.0.2.15
I was using a VM with Apache for the tutorial, but came to a part where the page wouldn't load, Patrick said it's because I need to use the builtin web server
that's the "why"
Fair enough. What you running the VM on?
You do this part? "add this to your hosts file: 192.168.7.7 php7dev" ?
Anonymous
15:44
Might be a little too much, but still ... I was pissed. i.sstatic.net/7wAFh.png
doh
no I didn't, I'll do that
sorry, that's what I get for not reading everything on the page >.>
Open notepad as adminstrator
Open: C:\Windows\System32\drivers\etc\hosts
add to the bottom
192.168.7.7 php7.dev
go to php7.dev:8000
not loading
do I need to do anything in virtualbox to make it work?
@samayo they also seem to require "Object Oriented Java" ... also "MapReduce"
So you've added it to the hosts file? php7.dev
15:53
yes
# vagrant php-7
192.168.7.7 php7.dev
and this is in your vagrant file? config.vm.network "private_network", ip: "192.168.7.7"
Evening room
let me check
config.vm.network "public_network", type: "dhcp"
config.vm.network "private_network", ip: "192.168.7.7"
nope, not in the vagrant file
15:54
Perhaps you should go back and follow the tutorial fully before asking what's wrong -_-
Anonymous
@tereško lol .. didn't even see that.
Anonymous
@Tiffany Why do you even need Vagrant?
@samayo it's easier, because I'm still having trouble setting up my own VM and I just want to finish this tutorial
Anonymous
What happened to your last setup? I thought it was working fine
I've had bad luck with the vagrant get started guide, was going through it once and the port forwarding wasn't working right through the vagrant file. But I'll go through it again.
it's not finished
I have like five VMs set up right now x_x
and my headphones are fucking borked
Sorry @Fabor, thank you for your help. I'll mess with it some more.
16:03
@Tiffany It seems frustrating at first but well worth getting past the difficulty. VMs are useful because you can just tear them down and start fresh
posted on June 17, 2017 by kelunik

- Fixed warning on already closed resources.

I originally had time to work on this, then like eight different things were thrown at me, so it goes on the back burner again
16:16
sorry, just pissed, the sound in my headset went out in one ear piece at random, and I can't figure out why, and I'm pissed because this headset is barely six months old. I have a pair of Sennheiser headphones that STILL work after seven years.
But I don't have a microphone
Anonymous
16:35
this better be gold plated headphone shop.musix.ch/en/…
Two segfaults in one build, yay. travis-ci.org/amphp/parallel/jobs/244017582#L404-L418 @bwoebi
@kelunik nope
user1804599
$requestURI = explode('/', $_SERVER['REQUEST_URI']); 🤡
1 hour ago, by PeeHaa
Going to get food now. Will do afterwards
Yep. Gimme 5 and I will run it
user924016
16:43
5
🤣
!!dad
What do you call a deer with no eyes? No idea
00:00 - 17:0017:00 - 23:00

« first day (2436 days earlier)      last day (2736 days later) »