« first day (2535 days earlier)      last day (2419 days later) » 
00:00 - 15:0015:00 - 00:00

12:09 AM
> FINALLY FOUND THIS SONG! The worst part is I couldn't even google the lyrics to find out the song name!
 
Wes
lol
 
 
2 hours later…
1:42 AM
\o
 
2:05 AM
14
Q: What does this British road sign mean?

Tim LandscheidtBBC Radio Solent tweeted a picture of a road closure (apparently near Winchester): In the background, there is a road sign with two red lights on and a yellow "symbol". What does it mean?

 
Wes
2:45 AM
L: "Very fine people" R: "Sons of bitches" #TakeAKnee https://t.co/GOwZmzo8CF
 
 
4 hours later…
6:26 AM
moin o/
 
6:47 AM
Incorrect token formatting on two parse errors in one request – #75252
 
@Jeeves is it apple juice or apple water?
 
@crypticツ kisses.
 
*reports you to HR*
 
Wes
lol
welcome to 2017 @Jeeves
 
@Wes Well you said thank you.
 
Wes
7:22 AM
just read of the incredible story of the new lead singer of journey. steve perry didn't want to continue singing, so the band looked for replacements on youtube and they ended up hiring a boy from the philippines that at the time was so poor that he struggled to even eat. and now he's the fokking lead singer of journey lol.
and he is even amazing youtube.com/watch?v=sZBBDYao9W4
 
It is super annoying when I can't get Ubuntu to backlight my laptop keyboard.
Can't a drunk guy get a little help? Jeez...
echo 2 | sudo tee /sys/devices/platform/dell-laptop/leds/dell\:\:kbd_backlight/brightness
 
anyone here know laravel? I just got laravel working in Docker
im wondering why the laravel test page is coming up instead of my friends website
might be a simple bootstrap problem
 
@taco Don't use Laravel. But...that's a SUPER vague question.
 
yeah, its a friends app
she paid a guy $1800 to transfer the site to godaddy. lol.
I just decided to see if I could spin it up in Docker instead of shitty Godaddy
 
I can't help at all with that information alone.
What server are you using? Where is it pointing? What are you getting? What happens when you change the index.php to some simple echo?
 
7:38 AM
Thanks
Not sure what you mean by pointing
What server are you using?
Docker runs on localhost for me, similair to a chrooted app (in a docker container)

What happens when you change the index.php to some simple echo? Good idea.
here's the dockerfile I used to build it gist.github.com/funkytaco/017807c7bd5559637958f18fe662b7df
 
I have never used Docker...you have to be using some server...looks like Apache?
 
If you're not familair with Docker, to put it simply a Dockerfile has commands similair to what you might do in a bash script, but they run against Docker volumes
 
Forget Docker...what stack are you running?
 
Docker is great. come join us in the Docker room!
In Docker you choose a base image (or make one). My base image is Debian Jesse
and yeah its apache2. let me try what you suggested about the echo
 
@taco I am 99.99% sure you have an Apache configuration error.
 
7:42 AM
possibly. I'm using somebody elses dockerfile
 
@taco Once you have a feel for what's going on BEHIND Docker...come back with the specifics and I'll do my best.
 
Thank you, sir. And if you want to learn Docker, let me know!
It totally gets rid of QA needing software versions and the "it worked in dev" convo aspect of development
 
Meh. If you just understand the underlying stack that's not a problem. Solve those problems after you know how it works.
 
anyhow, i'm working on figuiring this out. how are ya
what are you up to
So I did what ya suggested and found four index.php files. Hmm. Laravel is pointing at /var/www/public/index.php
 
Again, not enough info...
 
7:52 AM
I think you got me on the right track
I probably need to point to /var/www/call-to-love/src/public/index.php
 
I have zero domain knowledge here @taco.
 
ok
It's cool man. I've worked at a few ISP's lol. I think I just needed a little bit of rubber ducking
I think that was it. Thank you
I'm now at a different error, "Database [] not configured.", but that seems like progress
I had to change this:
docker run -e APP_ENV=dev -e PROJECT_NAME=love-app --user root --name love -itd -v /Users/me/Git/Laravel/activist:/var/www -p 8081:80 TAGHERE #$TAG

to this:
docker run -e APP_ENV=dev -e PROJECT_NAME=love-app --user root --name love -itd -v /Users/me/Git/Laravel/activist/call-to-love/src:/var/www -p 8081:80 TAGHERE #$TAG
basically the volume flag
so it would mount /Users/me/Git/Laravel/activist/call-to-love/src as a volume where Laravel expected the bootstrap index file
sup dark
 
8:18 AM
hi @Danack
Gonna be so glad to be off this shift soon. Nobody is awake.
 
9:12 AM
running as root inside the container?
 
Morning room
 
@RonniSkansing I'm just debugging somebody elses snafu. This doesn't affect the prod website. Looks like maybe some settings were missing in the .env file uploaded by the guy she paid $1800 to copy a website to godaddy.
 
sounds fun
 
eh i get bored on night shift, lol
 
Wes
10:16 AM
yo
 
Anonymous
mornin
 
10:41 AM
morning
 
@Wes what
 
Wes
@Ocramius nothing ahahaha
no, seriously
is there a way to get the "callee" like arguments.callee in js in a closure?
basically the closure being executed
named functions are easy as i can just get the name from debug_backtrace
 
Not sure, tbh
 
Wes
but cannot do that with closures
 
I don't have experience with JS reflection-ish stuff
You could throw and catch an error and dump the trace internally
 
Wes
10:51 AM
i mean $c = function() use(&$c){ $closure_self = $c; };
without adding that obviously
the trace doesn't include the closure, it just says {closure}
very useful btw lol
 
Oh, you mean in PHP?
 
Wes
yeah
 
Hmm, not sure, but you got the file/line, so you could better-reflect it
 
Wes
yeah that's not going to work, too slow. just wanted to check if you knew some trick
 
@Wes What's your actual goal?
 
Wes
10:55 AM
recursion? for example
 
Wes
11:06 AM
how the fuck do i configure xdebug in phpstorm globally? damn every time 3 hours to set it up
it doesn't seem possible?
 
11:17 AM
\o
 
@Wes if you xdebug running on the default 9000 port, it should just work.....what config do you have to do?
class SessionCustomBehaviourTest extends \PHPUnit_Framework_TestCase {

    /**
     * @var \Auryn\Provider
     */
    private $provider;
Pretty sure that test needs updating...
 
Anonymous
11:52 AM
!!wotd
 
Wes
@Danack it's disabled in new projects, the toolbar and everything
it's easy (probably) to set it up. except that i don't remember how to do it :\
@JoeWatkins @Jimbo valentino rossi is racing today despite he has fractured bones. he could even win. he is on drugs. no joke
 
f1 ¯\_(ツ)_/¯
 
Wes
12:25 PM
it's bikes.
 
@Wes How old is rossi by now? O.o
 
Wes
39 or something
 
Damn
 
Wes
and he's still among the 2-3 bestest
 
Did he fall again during training or something?
 
Wes
12:29 PM
right now he has 4 nails in a bone
they said 3 months stop
but he didn't give a fuck
 
lol
 
Wes
now he's on a bike despite the fracture
they've interviewed him before the race
completely on drugs, painkillers
:D
and now he's 2nd
it's always a shame when the best drivers don't have decent bikes
like alonso, 10 years without winning even if he's probably the best driver in f1
 
It's just kinda sad putting so much effort in it
 
mornings
 
Wes
rossi lost 2 sure championship. engine failure last year and two years ago when marquez decided to ruin his race
 
12:38 PM
@RonniSkansing o/
 
Wes
i think he just wants to win one more championship but seems the universe doesn't want that to happen :P
 
@Wes Aren't there any young talents ready to take over?
 
Wes
right now it's hard to tell because bike counts much more than riders
it never happened before... usually riders could make a difference. doesn't seem possible this year
 
k
 
Wes
12:41 PM
but there's marquez that is basically the only good enough that could've battled with a young valentino
however there's this problem that marquez is a deeply unpleasant little asshole
you don't feel for him... like lewis hamilton... he's just an asshole that happens to be good at riding bikes
valentino was funny... unique... :(
do you remember simoncelli?
 
Nope
 
Wes
the one that died some years ago
 
Damn. he didn't get old
Stupid accident
 
Wes
that could've been rossi's heir. people loved him, he was funny and talented. i'm pretty sure that when valentino leaves motogp dies... there's just not enough fun without valentino
 
12:57 PM
unable to call func_get_args() in a file required from within a function – #75253
 
@Jeeves I am not even going to ask
 
@PeeHaa Ask what?
 
That reminds me @Wes. How's the test framework coming along? Or did you move on?
 
Wes
i am building it as i need stuff. which means that i get at least 3/4 of the things wrong :B
but some stuff is certainly ok
 
:-)
 
Wes
1:03 PM
but that's not really the framework i'm working on, that's accidental :P
 
hi all
 
@Wes ehheheeh :D
@user3504751 o/
 
having a bit of trouble trying to change a bit of php code to be 5.3 ok , i know [] cant be used and array should be used instead but cant figure out how to make the change
@PeeHaa hi
 
5.3 is beyond dead. Better just upgrade your install to be not vulnerable to god knows what
 
Wes
actually i'd save most of it. i wouldn't save the way i test though
 
1:06 PM
$users = [];

								// $i starts at 2 to skip the dir entries '.' and '..'

								for ($i = 2, $size = count($dir); $i < $size; ++$i) {
									$users[] = explode("-", $dir[$i])[0];
 
Wes
behavioral testing (aka mockist testing) has been useful in many ways
 
What is the actual thing that made you make the test framework?
 
Wes
except that you can't really go without actual functional testing, ie the classic way
 
@user3504751 The only thing that would change is the first line
 
i appreciate 5.3 is dead but i need to use it in soemthing ive been doing
its a test based thing
 
1:07 PM
But again seriously php.net/eol.php
Also use a directory iterator
 
i changed to $users = array(); but then im getting unexpected T_array when i try to get rid of [] on the other lines
 
1 min ago, by PeeHaa
@user3504751 The only thing that would change is the first line
 
i do have this above that code if it stands as a dir iterator
$data = "../Openface-Data-Converter/output/";
								$dir = scandir($data);
 
!!docs directoryiterator
 
[ DirectoryIterator ] The DirectoryIterator class provides a simple interface for viewing the contents of filesystem directories.
 
1:09 PM
ah ok ill take a look
whats with the unexpected T_array
 
1 min ago, by PeeHaa
1 min ago, by PeeHaa
@user3504751 The only thing that would change is the first line
 
Wes
it's not really a framework, it's small tools @PeeHaa i have a function that creates a programmable object. that object is handled like you prefer. i have some default "handlers", like the mock queue or stubs. then i have an handler that records all the interactions while delegating to a real object (spy)
 
Also array dereferencing is also not included in php 5.3
 
i mean i got the t_array error when i changed the [] to this
	$users array() = explode("-", $dir array($i))array(0);
 
read what I said
I have said it three times now
 
1:11 PM
is that for me ?
 
Yes
 
Wes
the most important component is the isolator (which i called Wilson [get it?]) that is gold for certain operations
 
directory itreator i will have a go
thanks for the tip
 
That too, but mostly that other thing
2 mins ago, by PeeHaa
1 min ago, by PeeHaa
1 min ago, by PeeHaa
@user3504751 The only thing that would change is the first line
@Wes Is it like a proxy?
Oh wait. I remember the delegation stuff
 
yeah i took a look at the link , and i change $users = []; to $users = array ();
 
Wes
1:14 PM
say you have
public function get($file){ return file_get_contents($file); }
and you want to test it @PeeHaa what the isolator does is converting it to
public function get($globalObject, $file){
    return $globalObject->get("file_get_contents")->__invoke($file);
}
 
and that worked but further down on this line i now get the unexpected t_array
 
Wes
$globalObject is an object that you can mock/stub
 
@user3504751 No you still don't read
I am not going to link it again :P
The sentence is not that long
 
ive looked at the link
 
Read it again
Not the link
 
Wes
1:15 PM
similarly, "new Foo(1,2,3)" is converted to "$globalObject->get(Foo::class)->new(1,2,3)"
 
The quote
 
[ DirectoryIterator ] The DirectoryIterator class provides a simple interface for viewing the contents of filesystem directories.
 
Wes
so you can provide fakes/stubs/mocks instead of using actual objects
 
I give up :P
 
please be patient , im trying to understand
 
1:16 PM
Read my comment I have linked 5 times now
And don't skip words
Words have meaning
All of them
 
The only thing that would change is the first line
that one ?
 
yes
 
i responded to that
 
Yes responding you did. reading less so
@Wes That's actually cool
 
so its not that sentence your talking about , its the words you wrote after that poitn right ?
about the directory iterator
 
1:18 PM
No it is that sentence...
When I say you can only have one piece of candy
What does that mean?
Do you grab the entire bag of candy? :P
 
Wes
yeah but it's not just cool. basically it creates a new function that you need to put somewhere if you want code coverage on it
and at the same time you need to do @codeCoverageIgnore on the original
it can be messy :P
 
well as much as a nice analogy that it may be , ... im not even in the "candy/sweet" shop
 
You didn't answer my question though
Where are you from?
Not trying to stalk :P Just trying to find out if it's a language barrier :-)
 
i dont know what you mean with candy
 
@Wes If you want to unit test that class, why not replace file_get_contents with an injectable "FileLoader"? Or if you want to run an integration test....just run it as an integration test?
 
1:22 PM
is there a php function in 5.3 called "candy" that resolves my problem
 
@user3504751 yes. Yes there is.
You should use it.
 
if there was it would be sweet candy
 
In PHP?
 
It would be sour/bitter
 
1:23 PM
because its 5.3
 
Wes
@Danack how do you test fileloader then? :P
 
lemon_candy array()
 
Wes
THE FUTURE! https://webkit.org/blog/7929/designing-websites-for-iphone-x/ #iPhoneX
 
Yeah read it this morning
 
Wes
imho apple are trolls
 
1:24 PM
tbf crap like that has been going on for years now
favicon / theme shit
 
@Wes you accept that some things can't be unit-tested, and you have a set of small integration tests, that only test the edge of your system, where your 'typed' code is interacting with other systems.
@Wes you need to grok this: vimeo.com/80533536
 
@Wes It's more a industry thing instead of an apple thing though
Morning @FélixGagnon-Grenier o/
 
Wes
@Danack i understand that.
 
My head hurts
 
1:27 PM
Been drinking again? :)
 
I'm supposed to play hockey in like, three hours. I can barely stand.
 
@Wes but........you're running an integration, that is disguised as a unit-test?
 
@FélixGagnon-Grenier heheheheh
Skate it off :D
 
A friend moves country for at least a year. We had to make sure we remembered, or something
 
Wes
i'm decoupling just for the purpose of testing @Danack
 
1:28 PM
@PeeHaa hehehe I'll try that.
 
Wes
i don't see that being too bad
 
@FélixGagnon-Grenier Do you play competition or are you just going to get groceries on skates like that rest of your people?
 
Wes
i have more units and potentially zero integration. which is good
 
s/that/the/
 
Wes
i'm in the middle of a side project
yet again i was like, how hard can it be
30 minutes tops
 
1:30 PM
Hihehe
Hockey
We keep stats
 
@Wes I disagree. You still have integration tests, they are just much harder to reason about, or even see.
 
k :)
Beer team or do you guys actually put effort in it?
 
Oh we actually really put the effort
 
Cool
 
More often than not, we even don't drink beer after the games
 
1:32 PM
Much better than dicking around imo
 
Wes
@Danack it's not that it's perfectly clear in my mind, no.
i'm still not sure how it should work
@PeeHaa suggestions are welcome tho
 
I need to see it work / work with it to be useful. Just wait til I finish my project and I can integrate it as a plugin and test it :P
 
@PeeHaa so candy aside how do i make this line 5.3 compliant ? $users[] = explode("-", $dir[$i])[0];
 
All the info is already in chat
@Wes Current status: fighting with different git implementations :D
 
1:40 PM
30 mins ago, by PeeHaa
Also array dereferencing is also not included in php 5.3
 
if dereferencin is not included in 5.3 does that mean there is no way to make the statement compliant
 
Wes
@PeeHaa gitili?
 
Yes. The reason I stopped working on it last time (besides being a easily distracted moron) is that I didn't find a good way to get rid of file system based repositories. But I found out that all cool guys are using gitlib2 to enable actually database backed backends
Which should solve concurreny issues
 
sorry
 
And just general management of repositories
I think
 
1:47 PM
i just dont know the language php very well
 
Alternatively I give up again and wait another 2 years to look at the repo :P
 
@user3504751 you also don't seem to be able to converse very well.
37 mins ago, by PeeHaa
Also array dereferencing is also not included in php 5.3
Do you understand what that means?
 
is there a better language than php ? or is is a ridiculous question like saying english is better than french ?
im reading the documenttion to understand your sentence
 
Wes
@PeeHaa the important is that you have the logo ready :B
btw, i'm gonna do a small logo later today
 
To be completely honest the logo is the reason I starting looking into it again. That thing looks so fucking delicious and would be a waste to not have a project sporting it
 
Wes
1:50 PM
ahahah
don't. it's just a logo :P
 
Dunno what it is
The colors / shape logo is just awesome
 
Wes
we can always remove the git thing and put something else
 
@Danack i am figuring out what that means
 
PHP needs a git thing though. All the cool languages have one or multiple even
 
Wes
is that like a self hosted github, right?
if i recall correctly
 
1:53 PM
Correct
 
Wes
must be a fucking massive work lol
 
The interface itself shouldn't be too hard
But I want to have an easy way to implement CI/CD too
 
@Danack ok so in general terms its to do with the way you reference a array
 
Wes
if i have even the slightest chance to learn something about git count on me for the ui
 
Will dump the rewritten proof of concept to github at some point. Might hide it in a private repo. Or even I host it on the project itself if it comes to that :)
 
1:55 PM
@user3504751 Scroll to the bit "Example #7 Array dereferencing" in php.net/manual/en/language.types.array.php
 
@Danack checking now thank you
@Danack so there is a alternate way of writing the line in question then , if only i knew what it did lol
 
OMFG
the page shows you the alternative syntaxes right on that page.
you don't even have to understand it.....just compare it the different versions shown.
 
@Danack oh rght , i will look again
@Danack it shows for 5.4 , beneath that it says previously i missed that bit , probably applies to al previous versions to 5.4
@Danack nope i cant figure it out , thanks for showing me the soution though i appreciate it
 
2:19 PM
@Danack i am looking at this github.com/endel/php-code-downgrade
 
evenings o/
 
o/
Working on Saturday and Sunday why not....
 
00:00 - 15:0015:00 - 00:00

« first day (2535 days earlier)      last day (2419 days later) »