« first day (2902 days earlier)      last day (2059 days later) » 
00:00 - 20:0020:00 - 00:00

12:02 AM
@DaveRandom I hope you're doing well
 
12:35 AM
@Alesana Yup mysql-password.com/hash*CE8AD4BE613121DB254DC899D1F8E4C5F4DFA898 :D
 
1:19 AM
lol
@FélixGagnon-Grenier +1. Anyone know?
 
 
2 hours later…
3:08 AM
I just wasted 10 hours down a path just to throw all my work away :(
Which wouldn't be as bad if my job didn't need this done ASAP
 
3:26 AM
Yello
 
Blu
 
Night all
 
night
 
\o
 
 
1 hour later…
Wes
4:55 AM
morn
 
late night wave
 
5:09 AM
morn
 
5:52 AM
o/
 
6:24 AM
\o
 
Morning
 
 
1 hour later…
7:35 AM
morns
 
morn
 
git mernings!
 
7:57 AM
Making a theme for shopify, at this point, I'm really amazed they are a success. Their documentation is utter crap
 
8:10 AM
@rtheunissen QM = Question Mark. Originally used in ternary operator implementation
Nowadays you can think of it as just an assign to a temporary
 
Thanks :)
Would you be able to do a code review of a fairly basic extension at some point? Can trade or compensate or credit.
I just want to know what can be done better / smarter.
 
Morning
 
@rtheunissen sure
 
Still a wip, just wanted to know if you'd be willing. I'm playing with decimal support.
 
moin
 
8:24 AM
Good day
Could anyone tell me if there is anything similar to Java wiremocks for PHP code testing?
 
@tereško ding
also I saw a notification from you about "why did I spam .gitignore file again .."), well I didn't do that. I never touched .gitignore file these days.
 
Different behaviour with opcache on – #76933
 
8:44 AM
Hi all, can PHP see which function is calling a function
I want to log if a function calls class:generate()
 
@KoenHollander Technically, yes. Practically, you usually don't want it.
What's your usecase?
 
I have a bug, I'm creating a hash of a domain name. Like (md5(domain - datetime))
but the hash is generated twice
So I wan't to log which function is calling the generate method
@MadaraUchiha
 
@KoenHollander You should use a debugger
Put a breakpoint on the relevant line, and see what calls it when the breakpoint pauses the execution
 
How can I achieve that in PHP, its running on another server.
 
Well, normally you wouldn't be debugging on production....
You'd run it locally and debug it there.
 
8:53 AM
json encode bug php 7.1 and above – #76934
 
@Shafizadeh yes, that got deleted and "nevermind" was added
anyway, it looks like there is not account-limit or project-limit for gitlab
you probably will need to migrate to it soon-ish
 
<?php echo 'Hello world'; ?>
 
is any migration feature between bitbacket and gitlab? or we have to do that manually? @tereško
 
yesterday I tried it out manually ... it took me 5 minutes (+ some time to actually push the repository)
but there is an "import project" feature
 
Moving a git project is like 3 commands
 
8:59 AM
@MadaraUchiha what if you have host system and php is running in docker in guest system. It is still a remote for debug
 
@KoenHollander php.net/debug_backtrace is your friend
 
@Eugene Good question! You can forward the debugger port in dev, and connect through that.
Debugging is a protocol, you can remote debug.
But it's a terrible idea to do in production.
 
Okay. Gotcha
developing/testing in production is always a bad idea
period
There should be separate environments with separate settings.
It is not so expensive to start a docker container localy
 
@Eugene If you want xdebug to connect to the host you can use xdebug.remote_host=host.docker.internal
 
@MadaraUchiha I included time to google :P
 
9:03 AM
Yeah, I got distracted, moving a git project is like 3 commands, but the import function likely does more
Like import issues, or set up semi-automatic upstream updates
Also, if you have a 1GB repo, you don't need to download and upload it yourself.
@JBis A classic :D
PornHub might be the only porn site I might actually consider working in if they offered me a job. They genuinely seem like good fellows.
 
"chacha20-poly1305" is an AEAD but does not work like AEAD – #76935
 
9:25 AM
Their marketing game is on point at least, and their infographics are pretty entertaining to read
 
@Sean "Their"?
@Sjon That's exactly the solution you don't want to use in production.
 
@MadaraUchiha PornHubs
 
@MadaraUchiha depends.
;-)
 
@FlorianMargaine It's still probably not a great idea to do, even in Lisp.
 
9:34 AM
Morgens
 
@MadaraUchiha you could have a private fpm pool for xdebug in production running alongside the one used by site viewers
 
@FlorianMargaine You could do a lot of things
Doesn't change the fact that debugging is generally best done locally or on a dev environment.
 
there are a lot of bugs that are not easy to reproduce on a dev environment
 
@tereško then in this case, I prefer to do that manually
 
I will talk you through it either this evening or the next evening
 
9:47 AM
ah I see .. good
does "through" mean "about" ?
Also as a note, we've replaced "lamtakam.test" to "lamtakam.me" on all member's localhost as their vhost. Because google-login-api doesn't accept "test" as a TDL
 
@Shafizadeh it just means, he'll guide you
 
@Shafizadeh it's because *.test and *.example are reserved TLDs for development purposes
also *.localhost is in that list
 
I have a library, that communicates with a certain service. Service accepts requests only from known IPs (whitelisting). In my library I am using curl to make requests. Can I test somehow, that accepted request from my library actually used CURLOPT_INTERFACE option, that I provide as a outgoing network interface?
 
@Eugene sounds like you're testing the wrong thing to me
 
@Shafizadeh ".me" is valid domain and you should use ".local" to avoid unexpected future behavior similar to one with ".test".
 
10:03 AM
@mega6382 ah ok .. I guessed so
@tereško nope, google also doesn't accept .localhost tdl
 
THATS WAHT IS WAS FUCKING TELLING YOU
 
@Tpojka nope, .local is known invalid to google either
@tereško well we need to choose a tdl on localhost which is acceptable to google .. because we need to check on localhost when we're using a google api
 
@Shafizadeh I use some old Google OAuth thing for an app. They started allowing localhost as the return URL at some point, so you can actually do development.
 
18
Q: Possible to test Google social login locally?

jonprasetyoI want to test the Google Social login system on my local machine. However when I create a new OAuth button: 'Create New Client ID' it requires me to fill in the Authorized redirect URI which needs to be a valid address (ends with .com or .org). Obviously when we develop locally we don't have th...

 
10:07 AM
were you really not able to write "how to locally test google login" in the search engine?
 
well actually I didn't need it, since I've changed the local-tdl to "me" and it works fine now .. but I will search about it to use "localhost" tld instead
 
you have no idea what you are doing :(
none
whatsoever
 
I don't know what should I say
 
do you understand why *.me is working and why *.test is not working?
 
@jjok "localhost" as the domain name or the "tdl" ?
@tereško yes, ".test" is not in the google's valid tdl list. Apparently it is for developers
 
10:12 AM
I will take it as "no", since just repeated what I said few minutes ago
 
ah, your question is "why it is not in that list?", then no, I don't know why google didn't put it in the list
 
@Shafizadeh The Oauth thing that I'm using lets you enter the return URL or URLs.
And it allows you to enter http://localhost:8080 or something.
 
by international agreement, the "test", "example" and "localhost" are reserved TLDs, which means that nobody can register a domain name on those ("localhost" TLD and "localhost" hostname is not them same). Since there can't be such domain names registered, google dues not allow you to use them as the redirect-target.
the "me" TLD lets you register domains, but there is a reasonable possibility, that someone might already have that domain name registered
if you need to test the google API, then test it using 127.0.0.1 instead of using possibly-existing-and-not-owned-by-you domain name
otherwise there is a possibility, that you will be sending the authorized google login tokens to that domain ... and since it's OAuth, you can your account taken over that way
 
@jjok ah I knew it .. I used it already, but recently I've made a vhost on localhost and set a domain name it .. now google doesn't accept that.
 
^ and you still don't get it
I should just stop wasting my time
 
10:23 AM
@tereško I was reading what you wrote .. and I totally understand it ..
also I guess, if appache be running on my computer, and I enter lamtakam.test, and even if that domain is registered already by another guy, then it doesn't matter and the localhost project will show up
 
google's servers can't see your hosts file entries
 
now it is true :-) .. I should use that loop-back ip (127.0.0.1)
 
yes, because if google uses javascript to redirect back, it goes to your computer, and if google does something like cURL request, then it goes to google's servers
 
right
 
that way there is no room for a fuckup
 
10:29 AM
also wait .. why google doesn't return the response to the server which is gotten the request from ?
 
it returns the response the the callback URL, that you defined (most likely with javascript)
if you are talking about "login with google" thing
 
yes I'm talking about that .. but the issue is google doesn't let me to define 127.0.0.1
probably that limitation is applied recently, because I did it already (2 months ago)
 
search for the reason
on your own
 
@Sjon Thanks! Just tried, but I'm using Laravel. So the backtrace is HUGE (when I use it my system will hang)
 
10:43 AM
@Shafizadeh Why do you need 127.0.0.1 if you can use localhost?
 
@jjok because my local project is on a domainname (lamtakam.test). And it is not working on "localhost"
anyway, I fixed the issue
 
Good day!
 
Objects cannot access their private attributes while handling reflection errors – #76936
 
!!dad
 
"Dad I am strong, I do Judo", "Dear son I got the power, I do sudo"
2
 
10:57 AM
@FlorianMargaine why?
 
11:20 AM
@NikiC with do_operation, how should we handle cases where the op is on the RHS. Imagine something like `1/decimal(2.5)`. The handler would be called on the decimal but it'll be op2, and would need to be swapped. Easy for div, sub etc, but when I started looking at pow and mod, I started wondering whether I might be on the wrong track.

Maybe the ops should only be supported if both subjects are decimals?
I can also init a new decimal using op1
 
11:58 AM
Drupal tests fail with opcache on – #76937
 
I wonder, how long till we get the option of emigrating to Mars? archive.is/5qVpF \
 
How $test === null check is faster than is_null($test) ?
 
why are you not using === ?!
 
oops my mystake
edited
 
and you can use 3v4l.org to compare the opcodes
 
12:10 PM
Yes, that would be practical .. But I would like to know how php internally speed up ===null rather than is_null()
 
12:24 PM
@NikiC I think I managed to come up with an okay solution, just trying to avoid unnecessary allocations now. Can ignore previous pings. :)
 
1:09 PM
Morning.
 
1:36 PM
o/
 
@bwoebi I just closed the typed properties rfc vote
it was supposed to end yesterday
 
ic3.gov/media/2018/180918.aspx we had this happen to one of our employees
 
@FlorianMargaine good talk :)
 
@NikiC yeah, thanks - I'm feeling a little ill since yesterday evening, haven't gotten to it yet
 
1:57 PM
I need to bookmark that Uncle Bob video where he refactors a huge if/then/elseif chain into something manageable. I keep running into if/then/elseif chains.
 
@Tiffany Usually, polymorphism
 
oh, there was still one no vote.. party pooper
 
@MadaraUchiha I'm not sure if PowerShell supports OOP, and I'm kind of scared to check
 
@Tiffany It does, it's its main selling point
But why are you coding in PowerShell?
You have an actual programming language
 
shrug, it's somethign our netadmin wrote... about two years ago I said "I need a CSV file, I don't know how to handle an XML file with this PHP code..." so he wrote a PowerShell script to convert the XML files into CSV files...
Yes, I know PHP can handle XML now, but back then... I was in over my head.
The way I feel today, I don't trust myself rewriting this script into PHP, because I'll probably end up throwing it away.
 
2:02 PM
@Tiffany Sounds like, 40 LoC in PHP?
40 tops
 
@MadaraUchiha I get the feeling you're bored, and willing to teach me something new :P
 
What can I teach you that you don't already know? DOM? PHP's csv stdlib functions?
Or do you want a random nugget of wisdom? :D
 
Do a PHP Internals.
 
Wes
\o
 
o/
 
2:04 PM
o/
 
\o
@MadaraUchiha I guess it's more breaking down converting an XML file into CSV into smaller parts that I can wrap my brain around.
 
@Tiffany You convert the XML string into a tree of objects (DOM)
You then have two options
You can convert the DOM object(s) to a form that's nicer to work with (associative arrays? Your own objects?), and from there, generate a CSV
Or you can traverse the DOM directly, and build a CSV string out of it.
 
@MadaraUchiha by form do you mean "construct" (as a noun)?
 
okay
 
2:13 PM
Not a form as in something you submit from the browser
For example, an array of associative arrays
 
alright
I have to make sure I have enough time to get everything else in this damned project completed, because I have like half of the specifications, a half-ass test environment, and a deadline in like two weeks :|
 
Wes
2:31 PM
i don't know if i hate chrome or firefox more
 
careful, that road leads to edge :P
 
I used Firefox intensively for few months started last November but got back to Chrome.
 
Wes
@pmmaga edge is shit but i am fairly sure it is faster than both
if only it supported the standards... :B
 
yeah, that little detail...
 
Wes
english.stackexchange.com/a/56401/218811 the opposite as it is in italian, just to mess with me?
 
2:43 PM
@pmmaga xD
 
@ThW can you explain the purpose behind lines 13-15?
 
@ThW 500
 
ThW
@Tiffany find the first book element in the document, read() goes over each node next() (in the loop) goes over following siblings
@MadaraUchiha try eval.in/1059787
 
Still. Internal Server Error
 
2:56 PM
@MadaraUchiha works for me?
 
Now works
Peculiar
 
serverfart
 
it's spooky, first gave me an internal server error, and then on reload its fine, then another reload and same :p
 
now I get Internal Server Error when I tried making a change to ThW's example
 
Does it belong to anyone here?
 
2:59 PM
a round-robin load balancer and a dead server?
 
Likely
 
@NikiC congrats to you and @bwoebi ... Nicely done :D
 
!!rfc typed_properties_v2
 
@Ekin yeah, for me, Internal Server Error and the address bar doesn't have an ID for the script on initial submission. First reload, I get an ID for the script, but still "Internal Server Error," and second reload, it worked.
 
3:02 PM
/me now wonders why dmitry voted no at the very end
 
Wes
because trollin probably
 
@ThW why does it require having to do this? I tried removing the lines to see how the script would behave, and the output was blank, so that tells me that the loop is necessary. I'm just confused as to why that's in a separate loop with continue.
is it just a consistent way of loading the next element?
 
Wes
@StatikStasis wanted to buy chisels, then i checked the price of a section of a tree trunk, 30cm diameter, 50cm height: 150$
 
ThW
@Tiffany like I said it finds the FIRST book element in the XML, the first item. The loop moves the pointer to the next SIBLING book at the end.
 
Wes
i suppose because it's dried hardwood
 
ThW
3:08 PM
read()looks up descendants
 
sorry, my brain is moving like a snail today, so trying to process new information is rough, so I'm probably going to be asking stupid questions. But if this is something that can be explained in documentation, please point me to it.
 
ThW
@Tiffany if you look at the XML the first while iterates over node after node independent of the nesting level until it find one named book
The second loop reads the current book element values and outputs it as CSV, then uses next() to go directly to the following sibling book, without even looking at descendants.
 
@ThW I think I get it now. In order for the program to do what it needs to, it first has to cycle through the DOM to find the right element, and it has to cycle one-by-one, it can't just dynamically grab it. Do I have the right idea?
 
ThW
The XML, not the DOM - it only expands the book element into DOM after it found it.
 
3:16 PM
I used the wrong word, but seems like I understand it now, I think.
Thanks
 
ThW
This allows it to work with large XML files, but still use Xpath for the inner values.
 
I was using "DOM" as kind of a catch-all word, but I shouldn't
I'm going to need to read about XPath, because I'm going to need a firm grasp of it on another project I'll be working on
 
The CLR (C# runtime) doesn't support covariant return types. I thought it did, and I swear I've read articles that say it does. No, C# does method hiding instead.
I think it's because it would make their stack layout optimizations difficult/impossible.
 
@Wes Some of those specialty wood stores overprice that stuff in my opinion. Many times you can find someone who has a lot of land with fallen trees and they may let you collect some of the wood.
 
Wes
that means i need to get a chainsaw, and allow the tree to dry @StatikStasis
for years maybe?
 
3:31 PM
This is why they are expensive: they had to stock it for a long time.
 
Wes
yeah
i could clue some flat pieces together. those are (relatively) cheap
hardwood is like 10 times the price of softwood
 
Yeah- what @LeviMorrison said. I still think they are too proud of it though based on prices I see.
 
3:48 PM
@Ekin He doesn't like the additional complexity
 
posted on September 26, 2018 by CommitStrip

 
@LeviMorrison yeah, hiding works there because you have to cast to A to pass a B to an A hint IIRC
 
@Ekin I.e. Dmitry is not persuaded of the inherent necessity of typed properties at all
 
I see
 
@Ekin his salary is paid by a guy who is still not in favour of strict mode.
 
4:01 PM
and wants php8 to come out with a bang
 
Ohkay
 
@bwoebi sounds like an asshole (jk) :P
 
that thread kinda displays how he thinks about these I guess
and its from 2016
 
@bwoebi ... says the guy working on a JIT that has no business value?
 
Anyone know of a good Docker primer?
Or Jenkins primer while we're at it.
 
4:13 PM
@LeviMorrison I'm a bit confused by that as well.
 
4:30 PM
I read 'logarithmic regret' in some explanation few hours ago and that took me into a deep rabbit hole that decision theory is
I had work to do. I could have decided to just do it :P instead of regretting (slightly) now
 
> Few, if anybody, are saying that PHP's syntax is preventing them from doing what they need to do.
yeah, actually, that's a quite common complaint. That's why people are asking for things like type decalrations, annotations, generics, stronger type system, short closures, etc
 
Wes
@bwoebi me too tbh
i want it just because i want to avoid /** @var Foo */ :B
@Danack who is? rasmus?
@mega6382 dmitry is l33t
 
@Wes zeev. He emailed the internals list a few months ago still saying that the strict types are the wrong solution.
 
Wes
ah, right
 
5:09 PM
@Ekin I'm a bit lazy ... is there something shorter than cs.princeton.edu/~ehazan/papers/log-journal.pdf on that?
 
@NikiC not really, there's also arxiv.org/pdf/1510.01800.pdf where I got to understand it's saying 'regret bounds which are asymptotically logarithmic in the initial supply of each resource' and also found arxiv.org/pdf/1510.01800.pdf
but then I decided I should read more about the 'regret ' in decision theory first
 
@Ekin Those links are the same :P
 
5:29 PM
cs.nyu.edu/~mohri/ml/ml09/regret.pdf this was helpful in understanding regret in this context, also reddit.com/r/compsci/comments/31ru15/…
 
Ever stare at your code while trying to solve a problem and feel stupid... question your ability... question your knowledge... your capacity... sigh...
 
Wes
5:50 PM
7.4 is in a year from now, right?
that will give phpstorm a lot of time to support the feature. by the way, do you want me to file the feature request on jetbrains bug tracker? cc @bwoebi
 
@StatikStasis all the time
fortunately not having one of those days. I know my brain is being slow today, but I haven't reached questioning-all-of-my-life's-decisions yet.
 
Wes
6:20 PM
@StatikStasis all the time :B
 
bool is_equal($a, $b) { return is_object($a) ? $a == $b : $a === $b; }
\o/
 
6:33 PM
orly? nice
 
Hi, isn't it impossible for a factory pattern to be close to modification?
 
@Narnia have you read about the open/closed principle?
 
I know no pattern is absolute, but I ask this because I see people saying that "simple factory" is not a REAL pattern since it's not close to modification. But I think it is the case about any factories...
@Tiffany yes
 
hmm, found this softwareengineering.stackexchange.com/questions/302780/… so it seems it's not as cut and dry as I thought it would be
 
@Tiffany yes, so simple factory (i think) should be considered a real pattern too :-?
 
6:45 PM
... I believe it's fair game to ignore people that argue about "realness" of a pattern. Factory is a pattern. A simple factory is a factory. Not quite sure what there is to argue about...
 
@FélixGagnon-Grenier Ah, I agree. This confused me a lot. Thanks.
 
evening
I am so fucking tired today
 
Wes
7:11 PM
a simple factory is just a function that returns a new object
i wouldn't call that a pattern
factory method and abstract factory however...
 
7:26 PM
Some days...computers make no sense. User can't access webpage from server I manage, it loads and loads, but has a messaging in the bottom left "Waiting for available socket." Page loads fine from my computer, and loads fine when I remote into her computer and go to the page.
I contacted the support to find out how to track active sessions/connections to a Tomcat server because I have no idea, and I'm not sure if the company has modified it from a default Tomcat installation.
I suspect the solution to the user's issue is probably going to be something simple like "just turn it off and on again"
 
Wes
7:47 PM
when i have that sort of problems, basically always - i flush sockets here chrome://net-internals/#sockets
 
Arithmetic operations and assignment magic methods – #76939
 
operator overloading incoming? ^
 
@Wes my concern is if it's related to the server, I can't expect all of my users to do that
 
Wes
@FélixGagnon-Grenier already exists, Sara did it... Sara is amazing btw
 
there's an operator overloading extension I'm unaware of?!!! how nice :) and yes, she is
 
Wes
7:57 PM
by the way, i need to try it again and possibly help maintaining it
 
Wes
if it's simple ports to 7.1 .2 .3 .4 i might be able to do it :B
 
Wes
in fact i think i'm going to try compiling it right now
 
:O
this looks nice
 
Wes
7:58 PM
2017 means that probably will not work with .2
 
00:00 - 20:0020:00 - 00:00

« first day (2902 days earlier)      last day (2059 days later) »