« first day (3421 days earlier)      last day (1752 days later) » 
01:00 - 17:0017:00 - 00:00

17:00
I probably picked a bad time to try this with github shitting the bed
I got the project nw
@Tiffany Yes your xpath is wrong
When I inspect the response body I get I do not find any mention of spirits
granted, I'm using dev tools on distiller.com/search?term=lagavulin
Is that the actual response you get or the result of some ajax request?
how do I inspect the response body?
Client::38 ` $response = yield $this->makeRequest($request);die;`
no wait
Client:40 var_dump(yield $response->getBody()->buffer());die;
That gives you the html response body
17:15
yay
I'm able to find <ol class='spirits'> within the response body, using ctrl-f
but, that at least means Amp's working correctly, it's something with my code
I only get
<meta name="description" content="Find new liqours and spirits."></meta>
<meta property="og:description" content="Find new liqours and spirits."></meta>
<meta name="twitter:description" content="Find new liqours and spirits."></meta>
Take your spirits journey to the next level when you
<li>Search spirits on the go</li>
<li>Discuss spirits with friends</li>
<li>Search spirits on the go</li>
<h1 class='offscreen'>Search For Spirits</h1>
All Spirits
On a related note @class='spirits' is super brittle
sorry, test.php::13 var_dump(wait($scraper->search('lagavulin')));
As it only check element which has only "spirits" in the class attribute
can you give me a hint as to how I should do it instead?
as in, I want to figure it out and understand, but I'm not exactly sure how I should do it
Let me find it
The "trick" is to use xpath_html_class() instead as it normalizes the classname
So that class="foo bar spirits" would also be a hit
17:25
I see
Pieter@MSIGL72M7RDX MINGW64 /d/Web/WebScraper (master)
$ php test.php
string(5) "found"
Seems like that was actually your problem?
<?php declare(strict_types=1);


namespace WebScraper\Parser;


use function Room11\DOMUtils\xpath_html_class;

class DistillerDotCom
{
    public function parse(\DOMDocument $dom)
    {
        $xpath = new \DOMXPath($dom);

        if (!$this->isBoozeFound($xpath)) {
            return null;
        }

        return 'found';
    }

    private function isBoozeFound(\DOMXPath $xpath): bool
    {
        return (bool) $xpath->evaluate('//ol[' . xpath_html_class('spirits') . ']/li[' . xpath_html_class('spirit') . ']')->length;
yup
\o/
thanks
\o/
\o/
I'm hungry.
I'm just going to leave that repo on github so it looks like I have contributions
@StatikStasis girl scout cookies
17:33
Should go to the gym- but I think I will eat something unhealthy instead.
@Tiffany My wife bought $60 worth from a girl scout the other day. We had so many cookies... and not enough caramel delights.
@StatikStasis girl scouts
lol
cannibal
I had a box of thin mints and dosidos, but they're gone now
I used to buy like 4+ boxes of thin mints a year, stick two to four sleeves in the back of my freezer and wait until summer
@StatikStasis funny my wife never bought me $60 worth of girl scouts before :(
gotta marry her first :D
cc @Ekin
17:35
Cookies, man- COOKIES! lol
I doubt that would change it :P
mints are NOT cookies btw
they are mints
@Ekin Can you get this man some cookies please? =P
Like toothpaste
it's minty, chocolaty goodness
@StatikStasis fiiiine. only if he gets me a drink first.
@Ekin Didn't we agree you had enough?
@PeeHaa sudo get drink
Fuck you both
hahaha
fiiiiiiiiiine
17:37
sudo !!
do I get double drinks now?
I say I do
> emphasizes what the Girl Scout Cookie program is all about
A fancy website and generic cookies
sure that's what it is about
They are actually really good.
generics
they are amazing
*_*
@Tiffany She has taken a marketing class.
boy... really? :-P
gal...fuck ja
fuck
:(
:D
lol
dork
17:42
LOL!
buenos aires
planning to be there for a while september onwards
@PeeHaa HAMMERTIME!
1 message moved to staph
17:45
now that I've figured out what's wrong with my plugin, I can start adding other plugins
now I really miss Jeeves :P
I am just happy most chat mods resigned at this point :P
I miss !!should I
y'know I can kick you, rite? :-P
Have there been resignations?
17:46
Madara resigned a while back :(
@Ekin I don't hear you over my finger hovering over the "remove as owner" button sound
@StatikStasis Plenty
Oh! SO Chat mods. I was thinking room mods.
@StatikStasis neh
room owners for life
We all have the tattoo
ASyncBot is not a room owner, but Jeeves is.
aye
it doesn't do anything yet which requires it
It will once I do handle the pinning stuff
^ /s/I/somebody else/
17:48
Of course.
Also fuck anybody who mentions thin mints
thin mints
inb4 chat kick
I see lemon-ups and lemonads
le monads
WAIT
STOP
I see fucking chocolate chip cookies
17:50
Caramel Delights are my fav!
> Caramel Chocolate Chip cookies are offered only in select Girl Scout council markets
Not sure about "Girl Scout S'mores"
omg, smores!
I've never seen the chocolate chip cookies
Sounds somewhat illegal
17:50
want
Also... some cookies are named differently depending on region. True fact.
The Smores are pretty good.
33 secs ago, by PeeHaa
Sounds somewhat illegal
Wait- are you both moving to Argentina?
@StatikStasis it depends on the baker, they alternate each year
Ah- I didn't know it was based on baker, I heard they were packaged by name based on the region where they go.
17:52
@StatikStasis Possibly. Depending on her behavior
Some Reddit I saw a couple of years ago.
though, named differently based on region might be true too, I haven't checked
Vacation or work?
@PeeHaa ... one more annoyance I notice and you reeeally get kicked :-P
@Ekin poopface
17:53
LOL
you asked for it
now, behave :-P
@Tiffany I cannot find it- I'm probably wrong.
Why are there two names?

Girl Scout cookies are produced by two bakers. That’s why some of our cookies have two different names! But whether the box says Samoas® or Caramel deLites®, these two cookies are similarly delicious.
yolo
@Tiffany Yeah I saw that- I meant the regional thing.
17:55
ah
@Ekin @PeeHaa Work or vacation?
to live out there for a while
Can't talk
She kicked me
so both? I guess
@Tiffany hence why "I" was wrong, not you. =P
17:56
@PeeHaa <3 deserved it
HARASSMENT
CENSORSHIP
;-P geez
@StatikStasis yeah, I understood that part
Why did you guys choose Argentina? Nazi memorabilia? =P
@StatikStasis ja fuhrer
17:57
lol, I'm finishing up watching The Hunters
lol, I've been there and it was fun. It's closer to 'murica too
@Ekin ok nazi
She's such a racist
..........
17:58
Isn't there also that nazi village somewhere there?
@Ekin Must be nice to be rich. =D
I know it's somewhere in Smurica
I'm not googling that
@PeeHaa honey, pick a spot on the map. Anywhere- ...alright we'll move there.
nods
17:59
Has anyone here bought sublime text 3? Is it worth it?
Do you feel as if there's enough return on investment?
You two should move to America.
for starters, I'd never call him 'honey' as he's more like a jalapeno
@JossieCalderon phpstorm <3
@JossieCalderon A nice text editor is always worth it
sublime is in my top 2
But yes for actual development also get an actual IDE
@Ekin lol
I second PHPStorm
18:00
@StatikStasis She just called me hot
giggity
sigh, on that misunderstanding... I'll go back to work
You two are hilarious. I'm literally laughing out loud.
:-)
@Ekin @PeeHaa This video I saw a while back is what I always remember when I think of Argentina. When I first saw this video it made me want to move there too. In fact just watching it again make me want to pack my bags, sell the house, and move there on a permanent basis. youtube.com/watch?v=dQw4w9WgXcQ
18:04
@StatikStasis dammit
@StatikStasis I got just the thing for you
I know- it's beautiful, right?
18:07
@PeeHaa Wait... I think you did it wrong. It looks like it is signed by me for you.
I fixed it
Yeah- that's better. =P
ok ok- I get it. LOL
That seems like a thing @DaveRandom would create... but if not create, definitely use.
it looks like someone was inspired by Malcolm Tucker
18:10
@PeeHaa Does ASyncBot have !!remind ?
Don't you just love it when stuff makes sense? :)
Always. But it rarely happens.
Unless you're a beginner haha
18:43
@StatikStasis Nope. Not yet
@JoeWatkins Was this ever actually released? It's not documented anywhere or in the migration guide for 7.4.
All issues have been resolved!
cmb
cmb
19:11
@Sherif Joe prefers not to document it, to prevent users from using the built-in Webserver in production.
What sense does it make to have undocumented features?
That's absurd.
19:28
@cmb well that's a very legit reason.
No it's not.
Documentation serves the purposes of knowing what the thing does. Not dictating what to do with it. If people want to use it in production they're going to and there's absolutely nothing you can do to stop them.
But not documenting something because you think they might use it wrong is just absurd.
They can't use it if they don't know it's there.
Then why implement it at all?
Do you even listen to yourself before you say things?
I assume Joe had a reason.
@Sherif that was suppose to be an irony.
20:31
@Sherif its used for testing opcache
@beberlei I'm fully aware that the built in server is for testing. I'm not here to ask what its use cases are. I'm merely asking why a feature of php was not documented at all.
This notion that secrecy will somehow prevent stupid is baseless in fact. Stupid will find a way to be stupid now matter how hard you try to stop it. But the idea that we should not document features because their dangerous... well then why the hell don't we just remove eval from the manual while we're at it?
Let's take out fsockopen too. That's obviously dangerous.
Kill md5 since people seem to use that wrong as well.
Quite the argumentative chap.
Perhaps you don't care to rectify inequities and stand up for your values, but I do. So please don't reflect your sense of adverse personality onto me.
I do not conform to wrong just because it's popular
Can you point to an example of purely-for-internals debugging functionality being included in release notes? I'm not saying it's not there, just that I don't remember seeing any.
20:53
Whether it was intended purely for internals or not it's a feature of PHP now. Therefore it needs to be documented. Let's flip that question: can you name a single feature of PHP that has gone undocumented?
21:04
Yes.
For example, there's an undocumented feature in the CLI server that's used for opcache testing, probably preloading.
21:26
@NikiC so they are all fixed, other than one which seems to come from MacOS directly :| However, is there a point of fixing the [-Wclobbered] warnings or not? If not I need to figure a way for the compile flag not to be set when compiling on Clang as it doesn't know the -Wno-clobbered flag
You're on a roll the last few days Girgias xD
Finally finished coursework so I've got some time again :')
@Girgias That warning can probably be "fixed"
@NikiC I'm worried that some are false positives, especially considering the outdated GCC version on Travis
As there are a bunch of bug reports on the GCC bug tracker about it
12
Q: What should be done about this wrong answer?

Dharmanmickmackusa has raised concerns about correctness of this particular answer: How to remove part of a string? The answer mentions regex as a solution to remove a part of a string in PHP. As shown by mickmackusa the answer is wrong and doesn't do what it claims should happen. The answer has a ...

21:32
@Girgias ah sorry, I thought you were talking about the macos warning
Ah, well if you have an idea for that one that be great
Does Clang just take the same compiler flags as GCC or is there a special env var in Zend.m4?
@Girgias Fixing -Wclobbered does not make sense, too many false positives
@NikiC thought so, but need to find a way to not pass that flag to Clang otherwise it will complain of not knowing that compiler flag
have fun
21:42
I have no idea about autoconf
maybe stack overflow knows :P
Not like I have a lot of knowledge :')
Maybe, will try to look into it
Also Clang complaining of two new Unitialized structs
And still need to figure out what to do for the 32bit warnings :|
22:34
Boi first go at it and managed to figure out how to make Autoconf what I want
22:49
i think i am done with the dom rfc PR
let the hoardes of pr reviewers take it apart ;)
Is that the one which fixes some of the behaviour?
ahaha "hoardes"
@Girgias no it doesn't fix behavior, it adds more behavior ;)
I don't use DOM that often so I suppose it's still a good thing :)
I wonder if we get editions we could fix the non compliant behaviour
Thanks PHP.
char *zend_ini_string(char *name, uint name_length, int orig) // <= 7.1
char *zend_ini_string(char *name, uint32_t name_length, int orig) // 7.2
char *zend_ini_string(char *name, size_t name_length, int orig) // 7.3 and 7.4
char *zend_ini_string(const char *name, size_t name_length, int orig) // master
23:22
At least master is technically correct :p
23:35
@JoeWatkins Here's a question up your alley: if I spawn a thread in minit, can that thread use php_log_err as long as mshutdown hasn't happened? I started investigating but am done for the day, and realized you might just know that already :)
It looks like "no", actually. I somehow missed the if (PG(in_error_log)) when I started :facepalm:
01:00 - 17:0017:00 - 00:00

« first day (3421 days earlier)      last day (1752 days later) »