« first day (3111 days earlier)      last day (1843 days later) » 
00:00 - 18:0018:00 - 00:00

12:43 AM
\o/
@marcio não percebi que você mora no Brasil
 
1:11 AM
Also, try running make rebuild to see how slow it can be...
 
 
2 hours later…
3:27 AM
@ircmaxell Sim, moro em SP. Não sabia que falava português 🤔
 
 
1 hour later…
4:32 AM
There's a word for unbreaded chicken that I can't remember for the life of me. It's typically advertised as a "healthy" option at fast food places. Maybe that's what I should Google.
 
Wes
@Tiffany like, the name of a recipe?
 
"grilled" chicken. Balls. Not the word I want to use in digging for an unbreaded chicken parmesan recipe.
....and maybe that's what I should Google...
 
Wes
i am not understanding
are you digging chickens? didn't know that's how they reproduced
:B
maybe you are looking for scaloppina?
 
I'm trying to find a chicken parmesan recipe to cook in my crockpot, but I keep finding ones that use breadcrumbs or breading of some kind. I can't be bothered to bread the chicken breasts beforehand, so trying to find one without.
 
Wes
which is a slice of meat with some kind of sauce on top, like cheese
 
4:37 AM
Maybe "parmesan" implies breaded chicken? I dunno.
 
Wes
i don't know what that means
 
Lol
 
Wes
parmigiano seems a weird thing to put on cooked meat
 
Americanized "Italian" food, I guess?
It's a chicken breast, typically breaded, with marinara sauce and a cheese, usually mozzarella or sometimes parmesan.
Parmesan cheese here is usually crusty and comes in a plastic can. My paternal family dumps it over spaghetti bolognese. Chicken parmesan should have a cheese that can melt over it.
 
Wes
photo?
 
4:41 AM
Sec, I need to get up from bed.
 
Wes
on pasta is legit, but melting it, like grilled cheese is a bit weird... if we do that it's in very little quantity :B, like on top of "pasta al forno"
 
Wes
doesn't look like parmigiano tho :B
 
finding fresh parmesan here is near impossible
mozzarella tends to be used in place
or some other white cheese
 
Wes
looks legit
 
Wes
no i am serious, it can't be fake, it would be stupid to fake it given that parmesan is very cheap. they probably buy the "butts" in stock, they get rid of the outside layer and then they make it into powder
 
though I may need to replace my olive oil
 
Wes
 
huh, I didn't know
 
Wes
it's what we do too :B
 
4:52 AM
why would onions be placed underneath chicken in a slow cooker recipe?
what flavor would it add? or just intensify the overall flavor?
I hate cutting onions
 
Wes
well the juices of the onion might make the chicken more tasty :B
i am not great at cooking.
just guessing
 
I can almost promise you that you cook more often than me
though I'm cooking more often now that I'm jobless and getting bored of frozen junk
I'm more willing to eat leftovers, as long as it's something I can stand for several days
 
Wes
could be but it's more like culture than actual dedication :B everybody can cook some pasta and tomato sauce
 
hence why I say I'm pretty sure you cook more than me :P
 
Wes
i wouldn't call it a skill tho, it's just muscle memory :B
 
4:58 AM
lol
 
Wes
in fact i am not even good at following recipes AHHA
i asked a recipe to my mother once, she explained by phone HAAH
 
is that laughing? or an acronym?
 
Wes
yes, laughing :B
i have some stray dogs living around my house... not even the starving stray dogs could eat the thing i cooked
 
lol
I think the funniest "I'm so bad at cooking..." is someone saying "I've burnt water"
they set a pot with water on the stove...and forgot about it
 
Wes
i did that yeah
i left the pasta cooking for like 1 hour
 
5:03 AM
oh dear
 
Wes
i had to throw the pot in the trash, the pasta was black and embedded in the steel
homeitalianrecipes.com/scaloppine-al-limone try cooking this. it's super simple to make. you can use chicken rather than veal.
do you have a meat mallet?
 
I've burnt stuff, but whenever I cook, I already know that I'm absentminded, so I force myself to stay near the food while it cooks, or I set some kind of timer.
I don't
 
Wes
wrap the chicken in some rag and beat it with a hammer
 
I need food that can keep in tupperware in my fridge and I can easily microwave a day or two later.
 
Wes
i think that's the most important step in the cooking of any kind of meat :B
 
5:06 AM
my mom did that all the time with steak... I hated steak growing up... then I had good steak in my teenage years and realized it was because my mom cooked it wrong
they turned into thin, gray pieces of leather
 
Wes
she cooked it too much?
 
probably combination of that, she beat the flavoring out, and she bought cheap cuts because budget
 
Wes
that has nothing to do with the beating tho
google "meat tenderize machine"
 
it could if she was doing it wrong
 
Wes
if you want to avoid the beating you can use one of these machines
 
5:10 AM
I'm trying to think of how to explain how her steak turned out
 
Wes
cooked too much for sure, dried out completely
 
trying to find a picture, but none of them are right because none of them are beaten
hers barely resembled steak
youtube.com/watch?v=_5tLrsJnhXo they looked like these, except less juicy
the lady's steaks in the video actually look appetizing, but the appearance is the closest I can find to what my mom's resembled, except hers were grayer
okay, no more looking at steak...I can't buy any
 
Wes
:B
the beating might make them release the juices faster
but if you cook them slowly and add liquid like broth or wine then it won't happen
i usually cook the outside well, then i re-hydrate them with wine or broth or other alcohol, lemon juice etc
 
she didn't do that :P
 
6:06 AM
posted on April 16, 2019

posted on April 23, 2019

 
6:47 AM
ping @Trowski
/cc @beberlei
also moin
 
7:31 AM
stream_copy_to_stream should use mmap more often – #77930
 
8:00 AM
inexorable not to be persuaded, moved, or stopped : relentless
 
@rtheunissen No, allocating power of two is best
The memory manager doesn't have overhead
Or I mean, it has, but the information is stored out of line
There is a ZEND_MM_OVERHEAD variable that you can subtract from power of two, but this is only relevant for debug build, on release builds the overhead is zero
If you're using linear growth somewhere, the allocator likes it if you request 4K allocations
 
8:37 AM
!!rfcs
I think we have too many RFCs in voting...
 
8:50 AM
Hehe, must add that to the voting RFC... max. number of concurrent votes :P
Also, how is it almost May already?! Time is moving far too quickly.
 
@salathe you got May for at least two years now
 
@Gordon *groan*
 
@Gordon :D
 
9:31 AM
Warning for array_map mentions wrong type – #77931
 
9:59 AM
morns
 
@NikiC I like the vote on the arrow funcs. :-D
 
mornin' everyoneses
 
Hi all
Does anyone use any CMS?
 
reluctantly and only when I have no other choice - sonata
 
@kalle @kalle @kalle @kalle do the thing.
 
10:20 AM
@tereško Many stores on the internet have the sitemap outdated, there is a way to access the "catalog" and generate a sitemap (without accessing the server and installing plugins). I know how to do it in Magento and Prestashop but I need to find out how to do it in other CMS. (I've searched on google and I have not found anything).
 
probably, by writing a custom plugin for that
 
For example, for a magento site it is: protocol:// url.com/catalog/seo_sitemap/product/ and it will list all the products. I need to find a way to do the same in: CCV Shop, OpenCart, XT-Commerce, Hippo, and others.
No, I want to do it from the client side. (Without access to the server)
 
@bwoebi :)
 
 
1 hour later…
11:48 AM
/me waves
 
12:00 PM
@marcio eu falo um pouco. Estou aprendendo português para a minha esposa. Ela é brasileira e a sua família moram em Espírito Santo.
 
that's some strange spanish you got thar ...
 
12:34 PM
@ircmaxell I do not know any Portuguese, but I understand every single word of what you've written.
so close to latin
 
A lot of similarities
 
Always amazing
 
My gf is a linguist, she's pointed out so many 'similarity chains' from latin -> German / Spanish etc, it's very interesting
 
12:57 PM
@Jimbo when you're introducing new ideas to the Go community, you should tell them that you're an experienced PHP programmer. That will totally make them more receptive to new ideas.
 
1:09 PM
@bwoebi yeah, writing wise most latin derived languages are quite similar
spoken however is where it gets quite different
 
Good morning!
 
morning
 
There are two approaches of publishing content by user:
1. User publishes a content and will be shown immediately in the app, and there is a flag (or report) button
2. User publishes a content and will be shown after admin confirmation
Has these two approaches any name?
 
Can I use Memcached to store an entity that I don't want to lose?
Or should I just store disposable information in it?
 
1:27 PM
memcache is not persistant
 
*persistent
 
@Danack I went on a go slack chat, told them that I preferred code written like this.
Let me find a few examples of the responses
 
:)
 
1:45 PM
Is lolworthy
Imagine using a programming language where everyone is an asshole to you if you don't follow a coding standard to the letter. Never mind the solution, architecture, thought process - but the fucking lowercased names means you're not a good programmer XD
@Danack Oh and I was enthusing about runtime dependency injection at a Go conference, one of the guys said "just use java" and excused himself
even though I'm aware of the drawbacks :P
 
@Jimbo maybe they are scared its gonna turn out like 80% of the PHP codes out there.
 
nice, sounds like a lot I've heard
 
2:17 PM
@Jimbo The fact that said coding standard includes tab indentation should tell you all you need to know about Go ;)
 
@NikiC :D I even turned that off in my IDE as soon as I saw it
 
2:29 PM
/me Crosses Go off languages to learn list.
 
@NikiC honestly, I don't give a crap about that. As long as people pick one and stick to it, that's more than most do
 
@NikiC Ha, where I work we use tabs only. It's quite simple, here: my boss (our director) prefers 8-space indents, I prefer 2-space indents, and everyone I manage prefers 4-space indents. Tabs are the only way to accommodate it.
 
@LeviMorrison Curious, which tab width counts towards the line limit?
 
Our column limit is flexible, so it doesn't matter.
 
ThW
@LeviMorrison How do you handle doc comment indentation?
 
2:35 PM
We use tabs? lol
 
I hope you're talking about C++ code here, not PHP, right?
 
@NikiC We use tabs in all languages we use. C, C++, PHP, Bash, Python, etc.
 
ThW
@LeviMorrison doc comments usually align the * - this means it is indentation + 1 space. You don't do that?
 
@ThW Sure, we tab to the indentation level, then use a single space?
Although for my personal stuff for C/C++ (not work stuff) I use the default clang-format styles, which use 2-spaces for indentation.
 
@JoeWatkins pong
 
2:44 PM
@NikiC other than their poor choice of indentation, you don't particularly like it?
 
guys, is this the "used" value or the "remaining" one?
 
@Shafizadeh used
 
ah thx
 
@Danack you could say that
 
It'd be weird if it was 965MB used, and 374M total available wouldn't it?
 
2:55 PM
@Shafizadeh Alternative source of memory information: free -m
@Jimbo Could be something like with / without caches
 
@AllenJB good to know, thx
 
Anyone savvy with Prophecy?
Why this does not work?
/** @test */
public function should_call_register_on_cpt() {
	$mock = $this->prophesize(Test_CPT_Service_Provider::class);

	add_filter('project/providers', function( $service_providers ) use ( &$mock ) {
		$service_providers['post_types.test_cpt'] = $mock->reveal();

		return $service_providers;
	});

	$mock->register()->shouldHaveBeenCalled();
	some_project()->init();
}
[Prophecy\Exception\Doubler\MethodNotFoundException] Method Double\stdClass\P1::register() is not defined.
 
Wes
doesn't reddit have private messaging?
 
I have two servers. One has 100% use from df -h the other 40% on "/dev/xvda1" when I do "sudo du -hs -x / | sort -n | tail -40" to check size of / dir there's only a 300mb difference. But df reports a difference of 3gb. Am I missing something?
 
Wes
3:10 PM
\o
 
@NikiC for these internal refcounted objects (imagine a b-tree node) that are not exposed to userland at all and have no object properties, why do we still need zend_object to be the header / where does the gc handler come in?
I'm looking at zval_ptr_dtor and I'm following the logic but it seems like much of it won't apply. Do we absolutely need to use the object store and a gc handler or can we hack it (safely) to avoid having a zend_object header (even without the struct hack zval it's still a 36 byte header (I think).
ds_internal_rc_dtor(zend_object *obj) {
    if (!GC_DELREF(obj)) {
        GC_REMOVE_FROM_BUFFER(obj);
        efree(obj);
    } else {
        gc_possible_root((zend_refcounted *) obj);
    }
}
 
@rtheunissen how do you want to avoid the header?
The only thing you need the object for is the get_gc support. If you don't need that, then you don't need the object
 
By just having the zend_refcounted header, but not a zend_object
 
@rtheunissen how will get_gc be called then?
 
@Danack I shall do the deed in 1 1/2h to give the benefit of the doubt xD
 
3:23 PM
@NikiC I don't know - how do arrays manage that?
 
@rtheunissen with a specialized (hardcoded) implementation
 
@JoeWatkins Getting some compile errors with parallel on macOS. Ping me when you're around.
 
3:40 PM
@NikiC Oooo hardcoded in zend_gc where it scans rather than the destructor functions, gotcha. So I would need that handlers no matter what. I think that's okay. ie zend_object header without the properties and properties_table.
Thanks :D
 
Source Disclosure Vulnerability – #77932
 
@Jeeves you don't say.
 
Is this a very contrived way of saying that the built-in webserver is case sensitive?
 
If I'm understanding it right, that might still be a bug on windows
 
3:57 PM
@NikiC do you think I could avoid the object store though? As far as I can tell we only need the handlers but no the handle.
 
Yeah I need the handle too. :/
And the ce! So the only thing I can get away with are the properties stuff.
~28 byte rc header it is.
 
4:24 PM
Hi, bit of a long shot. Does anyone know of any complete resources for login / registering a user but one that includes Google /Facebook login?
I wanted to understand the flow (best practice), for example registering a new user who is logging in with Google / Facebook, also checking if tokens are still valid
 
4:42 PM
hmm there is something called saml (de.wikipedia.org/wiki/Security_Assertion_Markup_Language). Basicly all auth processes are possible but you have to play with it. Probably its the most overkilling solution you will find out there but if you want best practice... look into it.
Also i think registration is not part of that but you can make a simple IP own your own and merge all the sources with a "saml" layer
 
@ircmaxell why does bin/jit.php point to vm?
 
@Jimbo Be aware that PSR 2 is basicly the same with the space/tab war.
 
@Trowski ping
 
@JoeWatkins Getting the following when make links:
duplicate symbol _php_parallel_exception_ce in:
    src/.libs/exceptions.o
    src/.libs/parallel.o
ld: 1 duplicate symbol for architecture x86_64
 
@Danack Sent the mail to internals, 46-0 :)
 
4:57 PM
@Kalle ^5
 
@Trowski pull please
the original ping was just wondering if you had a chance to look at the new stuff in parallel yet ...
 
!!rfcs
 
@bwoebi because the JIT uses the VM to execute compiled code
 
@JoeWatkins No, I hadn't. Looks like I have to switch away from Future::select() to adding futures to an Event…
 
5:15 PM
@NikiC Might be too big.
IIRC if it gets too long for SO message then Jeeve's fails.
 
@Trowski something like this:
<?php
use \parallel\Runtime;
use \parallel\Events;

$events = new Events;

$workers = [
    new Runtime,
    new Runtime,
];

foreach ($workers as $idx => $worker) {
    $count = 0;
    while (++$count<1000) {
        $events->addFuture(
            "{$idx}.{$count}",
            $worker->run(
                function($count){
                    usleep(mt_rand($count * 100, $count * 1000));
                    return $count;
                }
            , [$count])
        );
    }
}

foreach ($events as $event) {
 
(apart from the doing it bit).
 
@JoeWatkins @NikiC Can any of you setup the Git repo and Github mirror for pecl/database/interbase.git? I don't think I have the karma for that
 
@Kalle yeah
 
@NikiC I set up the package already on pecl, but I don't know if it requires any pecl.admin to approve, but it certainly needs an admin to approve Martin's pecl account (he did not apply for a @php.net account yet)
And then the horror of doing a pecl release from Windows, trololo
 
5:18 PM
@JoeWatkins Yeah, largely figured that out. Can I tell if a Future is in the Events, or do I have to keep track of that separately?
 
@Kalle Should the ext be based on the 7.4 state?
 
@NikiC I think so, I don't know what direction they wanna take as the only changes is probably not sustainable
 
@Trowski we could have Events::contains if it makes life easier ?
 
@NikiC changes in master that is
 
but you would be using the target name, not the future object ... so you'd still have to track name => object relationship ...
I guess ?
 
5:22 PM
@JoeWatkins Nah, was approaching it wrong before, so nevermind. Seems it doesn't complain if I double remove a name.
 
Is there a method in PHP unit that is called at the end of all test(not each test class)?
 
hmm ... it should raise an error when you try to remove a non-existent target ... I think what actually happened was it removed the target ...
 
@Ghostff @SebastianBergmann ^
 
event->object is removed as target when event is returned
 
@Danack I do think it was kinda harsh to push through but thats how it is sometimes :)
 
5:25 PM
same with Input, when you get a write event, event->source was removed from input ...
 
@Kalle oh I didnt notice he was here.
 
@JoeWatkins Yep, I added a test that triggered the double remove. I was able to just check for existence in another array map, so no problem.
@JoeWatkins I can call Events::setTimeout(0) once, correct?
 
no, you can call as many times as you like ...
 
@NikiC Another thing, I originally asked Derick for the Git repo, but he said he had no idea how this worked. Is there any docs for how setting up the Git repos + Github mirror anywhere?
 
@JoeWatkins No no, I mean I don't need to set it each time I call poll(), correct?
That is, once set to 0 it's always 0?
 
5:28 PM
oh no, just once ...
yeah, as you expect
 
What's the purpose of Input? How is that different from Events::addFuture() vs. new Input, Input::add(), Events::addInput()?
 
for writing to channels, it's container for payloads for channels in Events ...
is it badly named ?
 
Maybe… might be just my ineptness.
So it's for waiting for a channel to be available to write?
I'm confused by Event::addChannel() vs. addInput() I guess.
 
yeah, when it becomes available the write is performed with payload from Input, and the Write event is returned ...
it's setInput ...
 
Ah, ok… hmm…
Maybe Payload would be a better name? Not sure though.
 
5:36 PM
I had it named payloads a few hundred refactors ago ... I'm open to change it, or add stuff to it, maybe merging/apply and such ...
I know it seems awkward, sort of making it up as I go along ... but I think it's not bad, the urge to rewrite it again has gone/is fading ...
 
I have been doing this new thing where I've been taking Tylenol for pain instead of my prescription NSAID medicine so that my stomach will stop hurting
After only a few days I am proud to say that not only does my stomach not feel any better but Tylenol also doesn't do anything for pain
 
\o
 
o/
@JoeWatkins I like being able to poll channels for data, though I probably won't be using it since I can't select, rather it would have to be timer based.
 
Note that ReactPHP uses the naming "Channel" in a similar way. For my thoughts ReactPHP did a great job to describe the events/channels/input/streams for some things
 
5:44 PM
I have to learn how to use a mac for my new job
I'm not looking forward to it
 
does it have 2 gpus inside? I dont know apple hardware very well but you can boot linux and macos at the same time!
 
I don't know I haven't gotten the computer yet
I think they actually want me to use macos though
 
@user3655829 Not anymore. The boot method on the new Macs prohibits a linux install.
 
rip mac users
 
If someone shows me a mac I automatically look like someone who's never seen a computer before
 
5:47 PM
@Trowski what do you mean by can't select ? just add more than one channel ...
 
"Uhh I just want to copy this. Umm how do I do that. Eh I'll just right click. Wait what? WHAT IS GOING ON??"
 
Remember Jordache jeans in the 80s? That's a MacBook.
 
@Alesana Just use the terminal? It's the same for many cases...
 
I had a big customer someday at the office and he wanted a "Testinstallation on his notebook". My eyes were getting bigger as he sits beside me and taking his macbook out. But he instantly had seen the pain build up and grinned. As he bootet it, he hat mulptiple oses and was able to boot 2 on the same time. Best customer ever.
 
@LeviMorrison That works for most things. It's moreso when browsing the internet and copy and pasting things that I get lost. It's not that it will take more than a day to learn the basic things I've literally never spent more than a few minutes on a mac
 
5:50 PM
Here is the result of journalctl -f for 5min ago:
UWF constantly blocks IPs, Is my server in an attack?
 
dat screenshot, with inactivated windows and user's mac addresses :P
 
Currently I don't care about them .. my concern is much more important for me
Am I in a DDoc attack?
 
@Kalle the actual repo & mirror setup is handled by a script in gitolite-admin
 
@Shafizadeh maybe google for UFW BLOCK
 
I did .. there are lots of possibilities
 
5:55 PM
such as?
 
did you already install fail2ban? It comes with a sshd jail in the default config
 
15
A: Why I'm getting this [UFW BLOCK] in my syslogs?

pgschkWell, it means that ufw blocked a connection from SRC to DST on TCP Port 8443. Unless you wanted this connection to be successful it is not a bad thing. Port 8443 is mainly used by webservices, for example it is used by VMware ESXi, or some (HTTPS) Application Servers. You can check if your box...

 
yes, I read that. what do you understand from reading it?
 
```
fail2ban-client status sshd
Status for the jail: sshd
|- Filter
| |- Currently failed: 1
| |- Total failed: 383499
| `- File list: /var/log/auth.log
`- Actions
|- Currently banned: 0
|- Total banned: 28243
`- Banned IP list:
```
it does the job of getting unwanted ssh connections pretty good...
hmpf no markdown here
 
00:00 - 18:0018:00 - 00:00

« first day (3111 days earlier)      last day (1843 days later) »