« first day (3317 days earlier)      last day (1621 days later) » 

ThW
12:04 AM
@hakre That is where promises play their part - you get an action that can be successful or not. Like "open file - on success do that, on fail do that" a plan with condition on the most basic level.
and events like 'on data recieved'
 
@Trowski what kind of files are supported? can i pass STDIN?
btw, I now have added a README: github.com/hakre/pcre.php
I hope it shows how it's easy to make use of it, I mainly use it in combination with git ls-files, it also supports ranges (most likely undocumented, like path/to/file:400-600, and it is not stable yet).
so this is my appreceation for sed/grep etc. but just w/ PCRE php style regex and for multiple files. Works pretty well in development.
it operates line based for search and replace.
 
ThW
12:21 AM
n8
 
me too, it's late
 
 
2 hours later…
2:43 AM
@beberlei basic_functions_module is looked up to easily find the target PHP version but that will only be there if debug symbols are present in the binary. If that fails it will try another method, basically grepping the binary, which usually works. Failing that it guesses version 7.2. You can specify a version at runtime to override all of that behavior.
That code is here github.com/adsr/phpspy/blob/… I'd be curious to look at your binary if the grep method is not working
 
 
2 hours later…
4:56 AM
@hakre Any type of file. STDIN can be used. There is a function that always returns the same stream object for STDIN: Amp\ByteStream\getStdin()
 
5:26 AM
o/
 
5:42 AM
Morning
 
6:08 AM
\o
 
6:49 AM
o/
 
6:59 AM
!!friday
 
7:35 AM
I said
!!friday
@Jeeves you pile of crap, do the friday thing ...
!!blame @PeeHaa
OH
 
chutzpa audacity; nerve.
 
There
Do the friday thing :P
 
!!friday
 
@JoeWatkins Only 1 day, 13 hours and 17 minutes left until Rebeccaday, OMG!
 
oh my god
 
7:37 AM
lol
> Wed Nov 13 11:43:08 CET 2019
seems like ntp is broken :|
I don't even know how that stuff works :(
 
witchcraft over tcp/ip
 
[root@149-210-224-55 peehaa]# timedatectl status
      Local time: Wed 2019-11-13 11:46:59 CET
  Universal time: Wed 2019-11-13 10:46:59 UTC
        RTC time: Fri 2019-11-15 07:41:18
       Time zone: Europe/Amsterdam (CET, +0100)
     NTP enabled: yes
NTP synchronized: no
 RTC in local TZ: no
      DST active: no
 Last DST change: DST ended at
                  Sun 2019-10-27 02:59:59 CEST
                  Sun 2019-10-27 02:00:00 CET
 Next DST change: DST begins (the clock jumps one hour forward) at
At least it's friday somewhere :D
 
chutzpa audacity; nerve.
 
There is no Friday Today?!
 
nope, @Jeeves ruined it
 
7:49 AM
Getting close I guess \o/
[root@149-210-224-55 peehaa]# timedatectl
      Local time: Fri 2019-11-15 08:49:38 CET
  Universal time: Fri 2019-11-15 07:49:38 UTC
        RTC time: Fri 2019-11-15 07:49:37
       Time zone: Europe/Amsterdam (CET, +0100)
     NTP enabled: yes
NTP synchronized: no
 RTC in local TZ: no
      DST active: no
 Last DST change: DST ended at
                  Sun 2019-10-27 02:59:59 CEST
                  Sun 2019-10-27 02:00:00 CET
 Next DST change: DST begins (the clock jumps one hour forward) at
!!friday
 
/closes everything and goes back to bed
 
chutzpa audacity; nerve.
 
cmb
\o
 
TIL Larevil has Larastan which is PHPStan not complaining about black magic :/
 
8:37 AM
o/ happy friday
 
@Naruto o///
@Naruto Ofcourse! :-)
 
9:06 AM
lol, TIL you can set I_WANT_A_BROKEN_PS env var to force BSD syntax for ps
 
doesn't work, I set I_WANT_A_COOKED_BREAKFAST, nothing happened ...
 
ha, wish I could do that to get me some hot coffee
 
o/
i built a simple laravel boiler plate for api projects using only jwt for auth and a traits file that contains all my response types/functions that i add to classes that will return responses
my question is ? is this enough to handle every thing?
are there some situations i am not yet considering, all so exceptions have been handled as well
 
9:25 AM
@adsr oh my mistake, the errors led me to believe it didn't work, but i recompiled outputting the detected version and that function is successfuly
 
 
1 hour later…
10:45 AM
pathinfo() on filenames starting with utf-8 character fails – #78817
 
11:17 AM
@BobbyAxe you're saying you've put a bunch of methods in a trait and use that trait in all your classes in Larevil site even if those classes don't need everything? I suppose that's not how we do applications but for Larevil site it is OK
 
i mean something like this

public function entityCreated($data, $message='success')
{
$info = [
"data" => $data, // retrieved data
"status" => 'success',
"status_code" => 200,
"code" => 'DHG38D', // agreed code by the company that describes an information
"message" => $message // optional though
];
return response()->json($info, 200);
}
still using response
i know larevil :) handles a lot already
but i am thinking i may have missed out on a few thing that may be issue if this becomes a generic boiler plate for all our projects
@brzuchal maybe i am just over thinking things :D
 
@BobbyAxe you know that was an irony|sarcasm, right? you know what is SRP?
 
not really figured it was sarcasm
 
the method you've pasted is nothing else like a use case for SuccessfulEntityCreatedResponseFactory class with one method -> create($data, $message)
that is what SRP says
 
@brzuchal not sure i understand
just checked the docs
 
12:03 PM
i see what you mean now
 
12:18 PM
@brzuchal thanks i think my brain just gained an extra level :) learnt alot
 
!!rfcs
 
Internals has voted to keep a feature we'd almost certainly not add now if it didn't exist. I'm not surprised, but at least it had a vote
 
12:56 PM
@Duikboot where? ^^
 
Uhmmmm
send.firefox.com @Naruto ? :)
 
Current Type variance changes breaks the Liskov substitution principle – #78818
 
1:33 PM
Morning
 
Mornin
 
Morni
 
I'm already watching c-span, sorreh :p
 
1:49 PM
dO nO eViL
 
They're already doing a huge amount of tracking of purchases made through cards, through methods that are dodgy af: bloomberg.com/news/articles/2018-08-30/…
 
2:22 PM
I am less and less enamoured with capitalism as time goes on, and I wasn't exactly totally on board in the first place
 
cmb
2:33 PM
commie! ;)
 
2:49 PM
o/
 
@DaveRandom you may enjoy reddit.com/r/LateStageCapitalism
 
3:23 PM
@DaveRandom What's your alternative?
 
Developing a heroin addiction and living in a cave
 
!!dad add hardToFind / First thing I do when I get to work is hide / Because good workers are hard to find.
 
@MadaraUchiha Sorry, I don't get that joke, I need name / setup / punchline
@MadaraUchiha Ha ha ha! Brilliant! I'll save that one about hardToFind for later!
 
Was wondering if anyone could offer any suggestions on this?
Hmm How do I post a screenshot here?
I pressed PrtScr button
Then Ctrl+V here
Nothing happened
Bottom line;
Trying to visit my site on Safari 5 for PC Gives error: cant establish secure connection
Host says nothing they can do
I claim BS on that and most of all its InMotion Hosting
 
cmb
Safari 5 for PC – best before 1970?
 
3:31 PM
Theyre GOOD as far as Im concerned
 
cmb
but no updates for like 7 years or so?
 
lol @cmb I hear ya. Just trying to cover as many browsers as possible
but Still... Still shld work
Most of my site works back to Win XP
ATW to the future
ALL Home Grown
 
@Stuart Doesn't that mean you are using heavily downgraded ssl?
 
I STILL Think InMotion SHOULD spend 5 mins and look into it
Seems it dont it @PeeHaa but IDK
IM paying premium
tho
100 per year
 
lol
For what do you think that is :P
 
3:35 PM
for some BS that came out a few years ago
 
It's not for XP support I can tell you :P
 
to get us all for another 100 per yr
NO Problem on Win XP
site func wise
Problem here is Safari PC
I cant be the ONLY one in the universe w such system. I want it to work
and Ill be hell on wheels until it does
lol
 
@Stuart There is all kinds of ouch going on there ssllabs.com/ssltest/…
 
Thanks PeeHaa
Looking Now
Gives me something to come at InMotion with maybe
B is pretty good Id say: (Bows at audience)
 
Pretty sure you cannot securely support both ancient clients (like whatever is still running on xp) and modern clients
 
3:40 PM
Well...
 
How many xp client do you actually have?
 
I hadnt thought of that BUT I CAN assure u, My site works on an old Windows XP laptop AND the most recent vs of all browsers
 
Yes "works"
 
IDK How but I Did it
 
Poorly :P
 
3:42 PM
Nah
and zippity split
 
In terms of SSL it's not exactly proper
 
I onlyy say Nah instead of going postal as it is spotty in some light regards on XP
but works a charm on new
 
It's the other way around
 
even IE
 
Modern clients are suffering because you think you need to support xp
 
3:43 PM
No. I have to respectfully disagree
 
Which is a weird statement as you don't know how many people that even are
 
Mine aint bogged down with every latest font-awesome etc plug in
is all
 
@Stuart That's not possible I'm afraid in the way it works :-)
 
even are what?
visiting my site on XP?
Youd be right
but IDC, as long as it works if they do
 
my web site works in chrome, edge, IE6, netscape 2.0, everywhere
 
3:45 PM
And you take pride in supporting xp, while all you are doing is making sure for example tls can not work proper for newer clients
 
and in my "Niche" of working on and riding dirt bikes. Were not the most current crowd
Mine 2 Dave
 
@Stuart It's xp
 
check it out, works everywhere ^
 
Uh... Ok
 
The last one I seen one in the wild either personal is business is years ago
I get there will probably still be machines
But I strongly doubt anybody should ever want to support that willingly
 
3:47 PM
Dave... Laugh you may but I get the last laugh b/c actually... My site does work everywhere (Except Safari 5)
 
I support Chrome, if someone complains then I might make it work somewhere else, depending on whether I can be bothered
the reality is that the world runs on webkit, though
 
@DaveRandom I support ff
 
Oh Myyyy
webkit is 70's
 
sure, but in general if it works in chrome it works in ff
webkit is chrome
 
Aye
 
3:48 PM
and opera
 
I dont have it anywhere on my site
 
and edge now
 
Technically it's blink now :-)
 
and it works everywhere
 
no, you have it in your browser
 
3:48 PM
Prolly even Atari 2400
 
...
Some people cannot be helped
 
LMAO
 
\o/
 
ironically, I don't work anywhere
currently sitting in office, not working
later I will be sitting at home, also not working
 
+1 PeeHaa
 
3:50 PM
@PeeHaa++
 
Heading off to give InMotion hosting hell with ssllabs.com/ssltest/…
 
cmb
Chrome dropped Webkit a decade ago; only one left using it is Safari.
 
orly?
 
@DaveRandom Lies, nothing worked in IE6.
 
I care so little about browsers, but I didn't know that
@Trowski no seriously look, it works everywhere chat.stackoverflow.com/transcript/message/47858456#47858456
it's the ultimate in portability, you just peel it off and take it with you
 
3:55 PM
Pretty sure it would fall off if using IE6.
The post-it would also fall of the sceen.
 
cmb
yup; Firefox uses Gecko; rest use Blink now.
 
<blink>TIL</blink>
(removed)
 
@cmb well, they forked it and did backport from and to webkit for a longer while
 
Wes
\o
 
4:02 PM
I think Ill use Like An Amazon Crocodile on a Chicken instead of Hell on Wheels. Im Christian. Or try to be So.... Like a Croc on a chicken I go
InMotion Says its between me and Comodo
Ok...
 
is that... I don't... am I having a stroke?
 
lol
Givin it... A Croc on a chicken
 
4:57 PM
Any idea if someone in the php community is preparing the tensorflow/keras wrapper already?
 
@salathe any news on git?
 
@user3655829 Wasn't that dmitry's ffi showcase?
 
That was Tensorflow1. The new Tensorflow 2 APi aka Keras is very different
 
Hmm. I want to apply a phpcs rule to only a specific directory. How do I do that? I can only find examples that exclude a specific directory. I have a lot of directories, so I don't want to exclude everything except this directory.
@NikiC I forget; what's the status of exit via special exception?
 
5:21 PM
@LeviMorrison pretty sure instead of doing vendor/bin/phpcs . you do vendor/bin/phpcs dir
 
6:00 PM
Hi. I have installed Laravel 5.6 with composer and it requires phpunit 7, however, composer installs 6.5.14. Any idea what could cause it?
 
Wes
@Adam run composer why phpunit/phpunit
 
@Wes I get "laravel/laravel dev-master requires (for development) phpunit/phpunit (~6.0) "
@Wes but if I go to "vendor/laravel/framewor/cimposer.json" it states in require-dev "phpunit/phpunit": "~7.0",
 
@Girgias Annoying that I have to change my script flow instead of config.
 
Hey guys, can you not call usort with an anonymous function on old versions of php?
Getting the following error on this line " Only variables can be passed by reference"

usort($tenant['Leases'], function ($a, $b) {
$t1 = strtotime($a['MoveInDate']);
$t2 = strtotime($b['MoveInDate']);
return ($t2 - $t1);
});
 
cmb
6:17 PM
you would have to pass $tenant, and resolve the ['Leases'] access in the anon func
 
er, how do you mean? are you certain that's the issue here?
 
What version of PHP are you using?
And it's the usort line?
 
5.3.10, yes I know it's old, yes i know it's a problem
and yes, it's on the line number with usort
 
Seems to work for me
 
cmb
but really, 5.3.10?
 
6:24 PM
Incompetent sysadmin let server go so long without maintenance and updates that it can't be updated
We're going to scrap the server and move to an ubuntu machine with php 7 soon enough
in the meantime i'm stuck in php hell
well, php (old version) hell
did you know JSON_PRETTY_PRINT didn't exist in 5.3.10?
 
What os version is that
that is even more scary than that old php version
 
A very old one
dirtos v.1.0
 
My ceo would actually pull the cables out now
 
real talk though, I don't want to say too much, for reasons i'd hope are obvous
 
yes
 
6:26 PM
i've conveyed the risks involved to everyone above me, so it's all I can do right now
 
but its also not a good idea to work on new things while missing out all updates and pile up even more debt
 
that's the fault of said sysadmin and the man who sat in my chair before me
 
@Derick Cool, I see you did a better pricing structure.
 
@MarkR Yeah - that's been there for a while though :-)
 
Hmm, fair enough. I'll buy into that rather than Patreon. Yay tax deductability.
How do you do payments, paypal?
 
6:47 PM
@DaveRandom I remember back when <blink> only worked in NN back in the 90s
 
6:58 PM
@LeviMorrison I know I know
 
posted on November 15, 2019

First thing’s first: Sources. What good is an absolutely hilarious webcomic if it isn’t diligently citing sources? Panel 1 and 2 - A sordid tale of AT&T misleading... [read more]

 
> Zend\Mvc\MvcEvent
le sigh
 
7:40 PM
@Danack Should be renamed to McEvent (McDonald's is a proud sponsor of Zend Framework)
Is it possible to compile PHP from source using VC++19?
 
@ThW What is carica-io?
 
@LeviMorrison haven't done any work on that yet
I think the discussion outcome was basically implement via exception, but don't allow catching it for now
should be fairly simple
I'm on vacation for the next two weeks tho ^^
 
Happy holiday :D
 
7:56 PM
Curious if this behavior is accidental or intentional gist.github.com/adsr/1ec85b32781910d846169a7e19e0625a
specifically that the keys of the array get formatted as <clazz><property>
 
 
2 hours later…
9:33 PM
@NikiC Can you compile PHP with VS2019, or do I need to see if I can find a VS2015 somewhere? Based on this page
 
May anyone please assist with some curl issues I am having? I am trying to increase the time allowed for a server I am reaching out to, to respond, and my curl_setopt doesn't seem to be getting acknowledged. When I read SO posts around this topic I seem to get a mixed bag of what each setting actually does
 
@DarrenFelton You mean something like this?
211
Q: Setting Curl's Timeout in PHP

MokiI'm running a curl request on an eXist database through php. The dataset is very large, and as a result, the database consistently takes a long amount of time to return an XML response. To fix that, we set up a curl request, with what is supposed to be a long timeout. $ch = curl_init(); $headers...

 
!!should I order pizza
 
I think so.
 
Works for me
 
9:42 PM
Yep I have that same question up in another tab @Machavity :)
 
@Tiffany Please Have Pizza ;)
 
Lol
 
I'm doing this:

\curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, self::CURLOPT_CONNECTTIMEOUT);
\curl_setopt($ch, CURLOPT_TIMEOUT, self::CURLOPT_TIMEOUT);

Values of those constants:

private const CURLOPT_CONNECTTIMEOUT = 60;
private const CURLOPT_TIMEOUT = 120;

Yet here's what I get from my curl_getinfo() calls...

"curlinfo_connect_time":0.072044,"curlinfo_total_time":50.357891
Connects quickly, was allowed to wait for a response, but certainly not the 120 seconds I'm trying to allow
 
Have you tried setting them directly without the class constants?
 
not sure what difference that would make but I can certainly try
 
9:46 PM
Well, the constants are the same as their PHP counterparts. I've seen oddball things there on occasion. Worth a shot
 
good point
of course now the remote server is responding in a reasonable timeframe... ugh lol. I'll have to direct requests to a localhost endpoint or something to play around with this.
That'll take some time to set something up and I'm up next on baby watching duties here at home. Given your statement though I'll at least revise those names for now, no harm in that.
 
Well, it can't hurt. I've not seen CURL options fail to set so it's a bit unusual. I hope that's it.
 
@Machavity Should be fine, but @cmb knows more
I believe official 7.4 builds use 2017 and master builds use 2019
@Machavity Actually, you're looking for wiki.php.net/internals/windows/stepbystepbuild_sdk_2 :)
 
A lot @Machavity enjoy your day
 
@NikiC Ah, so I am. Thanks!
 
10:02 PM
@MarkR No, I send an invoice and you can bank transfer it.
 
lol meant to add a "thanks" at the start of that last message of mine
 
cmb
@Machavity, in principle, you could build 7.4 with VS 2019, but the dependency libs are no longer available for that (likely possible to work around that). OTOH, you can use the v141 toolset (aka 14.6 aka VS 2017) from VS 2019, too. See the posts from June 4th and August 21st on windows.php.net for some further info.
 
10:35 PM
@NikiC Enjoy your vacation!
 

« first day (3317 days earlier)      last day (1621 days later) »