« first day (3392 days earlier)      last day (1546 days later) » 
02:00 - 14:0014:00 - 23:00

2:00 PM
all of this sounds super hard without at least a little bit of AoT, though (or at least, doesn't seem compatible with autoloading at first glance)
 
yeah, I think it goes hand in hand with moving from autoloading to preloading as the idiomatic way of loading code
I'm not convinced autoloading serves much purpose with opcache
 
cmb
^bad for Windows :(
 
Interesting bug in ext/dom and/or ext/soap: bugs.php.net/bug.php?id=79191
 
does opcache not exist on windows? or did you mean something else?
 
I think it was about preloading
 
2:04 PM
@SebastianBergmann i.e. ext/soap :-P
 
@SebastianBergmann ah yes, lol! ;) i might check that one out
 
I actually think I might know what's going on there, I'll look in a bit
 
ah good :)
 
feel free to take a look though
I've come across issues in libxml2 where it won't allocate new document resources if you leave one partially dtor'd
the whole of the libxml bindings need reviewing, it's super frustrating that it's not re-entrant so you can't use zend mm routines with it :-/
I suspect there's a big fat DoS vector in there somewhere but I've never applied myself to making a PoC, so it's really hard to get people to give a shit :-P
 
@cmb could you clarify? is there something that Windows can't do regarding opcache/preloading?
 
2:14 PM
@DaveRandom Does that explain, though, that saveXml() works and only save() does not?
 
cmb
Preloading is not supported on Windows at all.
 
@SebastianBergmann yeh, no, just looked at it and it's actually XML_IO_FLUSH that's being raised
 
is there a fundamental reason for that, or just not implemented yet?
it seems like it should be possible anywhere that opcache exists
 
I'm actually not sure how the I/O stuff is implemented in the PHP bindings
that error is only ever raised when the writer callback returns < 0 afaict from a quick look at libxml src
no time to investigate further atm but if anyone else is looking there's a place to start :-P
(for ref, here's the only place I can see where that error is raised)
 
@IMSoP something about ASLR restrictions
there was a github issue about it when it got disabled on windows
 
2:20 PM
eugh; scrap Windows support? ;)
people can just run it under WSL instead :P
(I wonder if that would work, actually - point IIS to an external FCGI process, which happens to be running in WSL)
 
@IMSoP why should that not work?
 
depends how IIS and WSL work
can WSL expose the right kind of socket for IIS to talk to?
can IIS talk to an external FastCGI process manager rather than running the executable directly?
I've honestly no idea
 
the answers are yes and it does not need to
 
I'm serious about the general direction of travel, though - autoloading only makes sense when each page load requires a small subset of the application, in terms of number of classes
as frameworks have got more complex, I don't think that really holds - I haven't tried, but I bet count(get_defined_classes()) would be pretty high on the average Symfony request
to extend my earlier dumb idea: rather than sealing a namespace, just seal everything - "I have preloaded all my code, please disable new declarations, and optimise the current state"
 
2:40 PM
@IMSoP it also makes sense in terms of the way that PHP is deployed in general... there's no "build" process and introducing new code elements is as simple as putting a file in the right place. Moving to any kind of AoT is a radical, fundamental change to the architecture and eco-system with far reaching effects in many places.
I'm not necessarily against it, but I'm not sure the framework complexity argument holds a lot of water
 
Can anyone help me with curl??
 
> Don't ask to ask, just ask.
 
(and don't ask specific people either :-P)
 
@DaveRandom Please Check the link, i need help quite fast
 
2:43 PM
I don't have time at the moment, sorry
 
I'm not convinced it would break all that much, to be honest
 
@IMSoP Are you free now
@IMSoP To check that??
@DaveRandom Liked your freedom
 
@DaveRandom if you can run your application with an optimized autoloader (static map of class name to file path), you can probably run it fully pre-loaded (loop over all those file paths and preload them)
 
@ALLTHINGSREMAINHERE Please do not ping random people
 
@ALLTHINGSREMAINHERE break your problem down; you've got 11 lines of PHP code there, and just one check at the end for "did anything go wrong?"
check each one; where is it failing?
 
2:46 PM
@IMSoP It's echoing PROBLEM
I found no sytax error
 
@beberlei wasn't planning to ^^
 
@IMSoP think, if you check the api docs, you will see, there is no return for an error.
I think, there is a mistake in curl codes
 
@ALLTHINGSREMAINHERE I didn't mean syntax errors; I meant: what does fopen return, what does $data contain, what does $response contain, etc, etc
step through with XDebug if you have that setup
make liberal use of var_dump if not
 
@IMSoP It might be pretty high, but it's probably still far below count(all_classes_in_all_dependencies_that_you_dont_even_use())
 
yeah, I guess
it just feels like autoloading is more of a hindrance than a help to the rest of the language
 
2:50 PM
I am actually new to CURL, so I think there are mistakes in CURL codes. @IMSoP
 
@NikiC just saw its 160 people, going to be quite the event ;-)
 
I tried to upload images, but It failed though
 
@ALLTHINGSREMAINHERE this isn't about curl, it's about basic debugging skills
and rule one is Always Break The Problem Down
you have a black box that tells you "success" or "problem"; open up that black box, find where the problem is
if nothing else, that will give you a better question, because you can create a Minimal Reproducible Example: stackoverflow.com/help/minimal-reproducible-example
 
I know, Can you help me?? I know, it’s silly to say, But can you explain in answer sections,.... FORGIVE ME
@IMSoP There is no return for errors
Check the api docs
 
how do you know there's an error?
 
the problem might be before you've even created the curl handle, for all you know
forget about the API, forget about curl; you're debugging some PHP code
look at the output of every line of that PHP code, and find out which is the first one that fails; then delete everything after that so it doesn't distract you
 
No, I tried with different api and CURL code, It worked with others
@IMSoP I used Imgur, Imgbb
But all was fine
 
then say that in your question; remove the unnecessary detail about looping over $_FILES, show the difference between your working and not working attempts
 
And I understood the problem is in Curl codes because, PROBLEM will be echoed only when the url is not retrieved
 
don't show us the links to what you should get, show us what you do get
 
2:57 PM
Okay, deleting that loop, forget about that
 
what is in $response? what is in $err?
make an example that we can run ourselves, or better yet make sure there's enough information that we don't need to
we can't lean over your keyboard and play with your application
 
Hmmm.... @IMSoP You should be my teacher... Let me try them
Can you give me your email?
I gonna try this tomorrow
I would like to inform you about my qorkt
*work
Can you help me with that
Or please say, when you will be active here
I Will ask you then
 
@ALLTHINGSREMAINHERE no, sorry, I have a day job to get on with
good luck though
 
urgent things are never really important, and vice versa..
 
3:13 PM
@Code4R7 Well, if bug reports are any indication of importance you're definitely right: The oldest open MySQL bug reports with a Serious or higher severity
> Open(1639 days)
Doesn't look that important.
 
Who uses MySQL anyway (pun intended)
 
I was trying to make your point for you
I had to pick the least favorable software I knew of
 
Thanks :-)
 
Had I gone with Java I likely would have come up empty.
 
I never did anything with Java... except running Eclipse
 
3:16 PM
So you...
<15 minutes later>
used Java?
 
Well... technically...
Maybe I should deny everything
 
At least you haven't dealt with JMeter
When that sucker crashes it crashes
 
nope, sorry.
I did use Windows XP.. A long time ago, in a galaxy far, far away...
 
XP was superior compared to Vista
 
That thing turned my new PC laptop into a DOA.
Had to install Windows 2000 to make it run..
 
3:19 PM
This is why I didn't upgrade from Windows 2000 for 10 years.
Once Windows 7 came out I stuck with that for another 10 years.
 
Then I switched to OSX, only to discover that it crashes 'outdated' hardware just the way Windows XP did...
 
Every decade or so MS actually comes out with a half decent operating system and then they ruin it.
 
I want to switch to FreeBSD, but it does not support my sound card
 
FreeBSD? Are you a masochist or something?
I'd rather use OSX
 
I prefer open source... it's a political choice rather than technical
 
3:22 PM
Well, OS did give us heartbleed so... somebody's winning here. That's for sure.
Or you could go the gentoo route and just compile everything from scratch to be safe.
including the compiler
 
what about Citrix... that last security update... even our government had problems with it...
I've used gentoo ... to compile itself.. Wasn't very useful to me afterwards. Also the sound card was not supported at that time.
 
@Code4R7 That's because they got an X-Googler working for OSTP now.
 
I have to stick with Windows for my sound card :-(
Google itself is a political choice.
 
No wait that's the wrong department.
What the heck do they call that thing again?
hmmm I forget
 
Don't know.. I'm not American :)
 
3:25 PM
@Code4R7 You got me there
 
I'm currently rewriting my session code.. to avoid SessionHandlerInterface. You know why :)
It makes it easier to port to Rust when the time comes.
what are you working on these days ?
 
who's that girl ? :)
 
@Code4R7 Reinforcement learning from cell phone towers
Mean Girls is a 2004 American teen comedy film directed by Mark Waters, and written by Tina Fey. The film, which stars Lindsay Lohan, Rachel McAdams, Tim Meadows, Ana Gasteyer, Amy Poehler and Fey, is partially based on Rosalind Wiseman's 2002 non-fiction self-help book, Queen Bees and Wannabes, which describes female high school social cliques and the damaging effects they can have on girls. Fey also drew from her own experience at Upper Darby High School as an inspiration for some of the concepts in the film. The movie introduced Amanda Seyfried in her film debut. Saturday Night Live creator...
 
I don't need to port all of PHP to Rust, just my own bit of code.
 
3:30 PM
It's a meme
 
I knew that I know her. I saw that movie once. These days I replay Star Wars.
 
I got a lot of buzz in my ears right now about how Rust is going to replace C
Then again I'm surrounded by elitests so they may be right
 
As far as I am concerned, the only important part of Rust is that it can build to WebAssembly.
 
Then again they said Fortran was dead 25 years ago but banks still exist.
 
They call that 'Proven Technology'. Just like rocks, they are proven as well.
 
3:33 PM
Either that or Banks are stubborn
just sayin'
They're like the only organizations I know of that still rely on it heavily.
 
banks don't have to care.
they are the money
don't forget airports, they rely on mainframes as well
 
What? Airports don't run on vacume tubes?
That's it I quit
 
don't quit, just don't fly
and don't use Unicode characters on your boarding pass.
people can be just as stupid as mainframes
or worse...
Actually I don't get it.. you can ask far more money when you know about mainframes. Yet almost nobody wants to learn the old ways. Why ?
They want to learn something new ..
 
old is impractical
you can't do much of anything useful with an 16-bit icu that can only speak serial port
Most people don't even have serial connectors anymore
Have you ever needed to read something from a CD-ROM these days? Laptops don't even have them.
 
mainframes did evolve... ibm.com/us-en/marketplace/z15
 
3:46 PM
They didn't evolve from horizontal scale methodology.
Like I said, old is impractical.
 
If you'd say the same about EBCDIC, many would agree.
 
Urs Hölzle, head of infrastructure at Google, once said, the return on CPUs platues at a certain scale. You get more benefit by connecting more servers with light-speed fiber optics than you do increasing the bus speeds.
More bang for your buck anyway.
 
But what to do with all that cpu power?
and often, a metadata server is still a single point of failure...
 
@Code4R7 then you need replication and failovers for that server
 
I'm hoping that reducing fear for other people, being afraid to depend on one another, will reduce the need of such hardware.
but, as i said before, people can be quite stupid.
 
3:58 PM
@NikiC will you join us at the Meetup tonight?
 
4:13 PM
Who are free
I mean free from job currently
 
I'm free to do what I want
 
Okay, I am a php developer, Not offering jobs
@IMSoP Okay, Thanks
 
Free as in beer or ...
 
free from everything
 
How will you create a programme like this: A user can't use your website more than 2 hours per day
In php obviously
 
4:16 PM
Sounds like our government
 
just block the site in the firewall
 
😂
@Sherif
 
@Sherif lol
 
@Sherif Are you from US?
 
Well, they're the only ones I know of that bother to set time limits on websites
It's like setting an air limit on lungs
 
4:17 PM
banks do that also.
 
Do they?
Can't say I've ever seen one
 
Actually, i am creating a social media. I Don't want people to be addicted in it
 
Tell them to go outside and play
Stop building social websites
problem solved
 
Oohhh...
Amazing
 
@ALLTHINGSREMAINHERE who wants that tho?
 
4:18 PM
Liked you Man
 
imagine getting into this quality ass talk with this girl, all of a sudden you get kicked out????
 
out of the bed you mean?
i hate social media, all the typing takes way too long
it's just impractical... like old
 
@Code4R7 you joking right.
 
it's faster to really talk. with a girl really next to you
reality is also more fun
I can't understand why one would want to hide behind social media, when reality is more fun and satisfactory.
Either step up to a girl and talk to her, or let your parents arrange your marriage. It'll both work fine :)
 
I think what you are talking about is the second level.
you don't meet alot while you stay at work all week.
so thats where SNs come in.
And who lets there parent arrange a marriage for them?
 
4:40 PM
I beleive that @Code4R7
But we have to use social media to make people social, not unsocial. That's the mission of LISHUP. If this becomes succeed, you will see how it works
 
I actually think social medias are just doing the opposite.
but it still gets the job done.
 
@Sherif I went over bloom filter subject and seems to me if domain jumps into blacklist there is hard work to remove it from there if anyhow (which is another subject, just saying).
 
5:05 PM
@Ghostff Right. And LishUp's goal is to do the opposite
 
5:18 PM
let me put it this way, when people don't communicate well, buying a new phone will not help
nowadays, when I call people on their cellphone (or smartphone) they often are afraid to pick up the phone and talk back. they rather type messages via whatsapp
fortunately for me, even the united nations discourages whatsapp reuters.com/article/us-un-whatsapp/…
but hey, some people are just not that smart. Something they can not be blamed for.
 
5:51 PM
Anyone heard of the XCache zend_extension for PHP 5? Someone reported a segfault and we noticed it's in the list of modules.
 
cmb
6:02 PM
@LeviMorrison xcache.lighttpd.net (latest relase from 2014)
 
6:15 PM
@NikiC When we recorded the podcast, you mentioned a "hack" with regards to expression for new, where you could make a statement return a string? Can you pop up an example for me for the show notes?
 
@Derick Are you by chance talking about his latest RFC with regards to new (expr)?
 
yes
 
@Derick so, something like function create_collection($type) { if (!class_exists("Collection$type")) { eval("class Collection$type { /* impl ... */ }"); } return new ("Collection$type"); }
 
I don't think that's what he meant
 
 
1 hour later…
7:32 PM
Anyone got any experience changing car tyres? To be clear, I mean changing the actual tyre on the rim, not just changing the wheel. Basically I want to know if it's practical to DIY without specialist tools or if I should just pay someone. Got plenty of "regular" tools, including some fairly heavy duty stuff.
I'm thinking @JoeWatkins @StatikStasis @ircmaxell may have some sort of opinion?
 
Whenever I get mine done they always use a big hydraulic press to widen it out and slip it over the hub
 
yeh that's the main thing I'm thinking is going to be a pita without things designed specifically for that job
I have a couple of screw brace things though (not sure what they're actually called but hopefully you get the idea)
presumably it's basically the same as a bike tyre only no tube and needs more force
predictably searching the web reveals about the same number of people saying it's fine and saying it isn't
 
Could go at it yourself but a not insignificant chance of accidentally shoving a screwdriver through the rubber. Probably most expedient and cheaper to take it to somewhere with a tyre fitter
 
yeh, I called someone today and they wanted £35(!!) but I will call round a couple more tomorrow
not paying that much, I've paid not much more than that when buying a tyre as well
I can live with a tenner or whatever, but it's literally a 3 minute job if you have the tools, I've seen it done enough times
I really need to make friends with an AA engineer :-P
 
8:10 PM
@DaveRandom pay someone
Without proper tools, you can do damage to the bead, which can ruin the tire.
It's not super hard without them, but it's enough of one and a critical enough component where I wouldn't suggest risking it
 
@DaveRandom It's enough of a PITA to do it yourself that £35 is probably worth it. That probably includes balancing too (ask), which also requires special tools.
 
I usually use Tyres on the Drive
 
I'm getting a test failure locally for kelunik/certificate, because the certificate serial number is printed as 0x<hex> instead of decimal as it used to be, passes on Travis, any ideas?
Any way to convert a hex string to an integer string in PHP without any bignum extension?
 
8:31 PM
How big a hex string?
Bigger than hexdec can handle?
 
@kelunik the algorithm to do that isn't that hard to write.
 
8:50 PM
@Derick Something like new ${!${''}=expr}(); is the usual pattern
 
 
1 hour later…
9:58 PM
@ircmaxell @Trowski thanks, makes sense, I'll just shop round a bit to try and find it cheaper I guess
 
10:17 PM
@Tpojka Technically, yes. But there is way around that.
 
Probably some periodic (very expensive) work, seems in my head.
But bloom filter is great tool to know. :)
 
It's certainly not one of those data structures most people know when prompted.
 
Answer could be clearly known just by someone who already used it.
I am glad I learned something new.
Checked this today.
 
I didn't know what a tree was until I used it
Technically, I didn't know what a DAG was until I had a need for it and then I went researching ways to solve my problem and then I knew what it was.
Same with bloomfilters. First time I even read about it was when I was trying to solve a telemetry problem on a server that only had 2GB of memcached and I needed to fit like 100GB on there.
@Tpojka Here's an article I wrote on Bloom filters a few years ago. The site no longer exists, but waybackmachine still has it: web.archive.org/web/20170511130547/http://phpden.info/…
It has a PHP implementation of a bloom filter in case you're interested
 
10:37 PM
I am, very much. Thank you.
From your task I saw it is one of rare cases (but very efficient) where it must be used.
 
Glad you found it helpful :)
 
Looking forward for good puzzles. ;)
 
02:00 - 14:0014:00 - 23:00

« first day (3392 days earlier)      last day (1546 days later) »