« first day (2517 days earlier)      last day (2449 days later) » 

12:02 AM
AppendIterator iterate problem – #75161
 
 
3 hours later…
3:22 AM
Add documentation for all opcache options – #75162
 
4:11 AM
morning
@Saitama sorry not feeling well,so fall asleep.
 
Wes
4:42 AM
morning
 
o/
 
Wes
o/
@Ocramius I'm pretty sure the only reason we have the spaceship operator is the name.
i wonder of the 43 that voted yes are actually using it today :P
 
Insane, hurricane Irma that is heading my way has 225mph/362kph gusts, and sustained winds of 185mph/298kph. I don't know how any manmade structure could survive that. The people in the Caribbean islands are getting wrecked right now.
 
Wes
4:58 AM
damn. @crypticツ i thought you were a prepper kind of person?
 
oh I'm prepped, even went out and got new batteries for my red dot scope. I'm more worried about people who aren't prepped and they turning on me. People are always the greatest threat.
So stay the fuck off my lawn! =oD
 
Wes
i would go on a multi storey garage and camp there. they are for sure empty if people is leaving. i think they are strong structures and tall enough. also easily accessible from the outside, like from an helicopter
 
I have no idea how much rain is going to fall, and after seeing Houston I have my kayaks in the garage to safely float to the roof, lol.
 
Wes
damn i hope everything is going to be fine. be safe :B
 
It's Florida, if anything happens like Houston here we'd go full Mad Max.
 
Wes
5:07 AM
lol. i'm not sure if you mean that as "very bad ass" or "completely screwed" :B
 
Flooding in FL is scary af, we got millions of gators, water snakes, snapping turtles, and a gagillion mosquitoes.
completely screwed
 
Wes
damn
 
5:31 AM
@crypticツ move to germany?
 
Wes
6:00 AM
is there a way to check ini configuration in composer, during install? like assert(ini_get("foo") === true);
i am trying to search i promise. doesn't seem possible to do that :B
 
6:25 AM
@Wes afaik you can't do that because it would be a pointless check (you could just change the value while you install and change it back afterwards)
 
Wes
just like you can install with a required extension enabled and disable it afterwards
 
6:44 AM
@Wes sure, and if you distrust users that much you should check the ini settings at run-time anyway (as you should check loaded exts)
 
Wes
right now I do assert(ini_get()) but if i was using it i'd prefer to get told that settings are bad while i'm installing it
also i need to hope that users have assert() enabled
 
7:02 AM
"scripts": {
    "pre-dependencies-solving": "Vendor\\Hook::test"
}
If I throw from in there, it bails out
@Wes
 
Wes
uuuuuuuh noice
thanks
 
Hi guys
Below is my function to count number of \ in string :
function count(s1, letter) {
    return ( s1.match( RegExp(letter,'g') ) || [] ).length;
}
I am calling liike this :
count('Yes. I want. to. place a. lot of. dots.','\\\');
But it is giving error at the end
How to specify \ at the end?
 
Wes
wrong room
 
Ok sorry
 
Wes
7:13 AM
\o
 
Anonymous
7:33 AM
!!wotd
 
catachresis: misuse or strained use of words, as in a mixed metaphor, occurring either in error or for rhetorical effect.
 
Wes
7:44 AM
did you ever renamed a variable with phpstorm and you got a variable with the same name changed in a completely unrelated file ? :B
 
was it a global variable perhaps?
 
Wes
nop
 
weird.
 
Wes
yeah :P
 
I assume you did a refactor->rename, not replace-all, right?
 
Wes
7:52 AM
shift+f6, which is refactor -> rename i think. yes
 
both variables in funtion/method scope right?
 
Wes
yep
 
Anonymous
morn
 
o/
 
Anonymous
8:10 AM
@PeeHaa quality
 
Morning what is the way of get pdf version of my html ?
 
Anonymous
google.
 
k nice answer i found solution kappa
 
8:31 AM
Morning
o/
 
8:42 AM
\o
 
Anonymous
o/
 
\o/
 
Wes
@Gordon do we want to know?
also mornings \o
 
@Wes it's a followup to the message right before mine
 
Wes
should i be able to recognize the guy?
 
8:49 AM
@Wes no, I had to google it myself. turns out to be a twitch meme
!!urban kappa
 
[ Kappa ] The main symbol/emote of Twitch.tv. It represents sarcasm, irony, puns, jokes, and trolls alike. If you see this term used outside of Twitch.tv, then this is not the correct definition. Usually used at the end of an ironic or sarcastic sentence. Sentences that contain a Kappa should not be taken seriously. If you search "Kappa Twitch.tv" in Google you can see what the emote looks like, and why it is used as it is. Sentences that use Kappa do not…
 
Anonymous
How have you not heard of Kappa
 
Wes
i don't twitch
 
well… I am usually not watching video games, but … you know … play them
 
Anonymous
Neither do I. I think you're both just old
 
8:51 AM
I heard that's how you are supposed to use them.
boy, the amount of global scope pollution wordpress does is i n s a n e
it literally pulls the entire application into it
in addition to duplicating parts of objects, like cache_hits into it
I never knew it was that bad
 
Wes
function the_amount_of_global_scope_pollution(){
    echo amount_of_global_scope_pollution();
}
tl;dr wordpress
 
@Gordon lol
My sweet summer child
Aug 21 at 16:10, by Madara Uchiha
<?php
  function replaceHorribleHackThanksWordpress($buffer) {
    return str_replace("&#038;", "&", $buffer);
  }
  ob_start("replaceHorribleHackThanksWordpress");
  get_sidebar();
  ob_end_flush();
?>
 
@MadaraUchiha wat
 
@NikiC WordPress decided, on its own, that it HTML escapes &s, and only &s
 
Wes
you will love the globals and variables passed by ref in the loops
 
9:02 AM
We had some JavaScript in the sidebar which got screwed over
 
Welcome to Jackass Wordpress!
 
Wes
wordpress is bad, but templates are terrible
 
Anonymous
@NikiC Your friend is back - externals.io/message/100401
 
@JayIsTooCommon wow
He's tenacious, he is
 
dd if=/dev/zero of=Y bs=1024 count=∞
fixed
 
9:10 AM
@JoeWatkins pls chk wiki karma requests
 
There were a couple of people waiting, I think you have the rights
 
Just to give you a rough idea of how bad it is: I am var_dumping($GLOBALS) and it's about 30500 lines
 
@JoeWatkins Also something went wrong here: github.com/php/php-src/pull/2722#issuecomment-327419550
@Gordon That doesn't tell you that much ^^
I'm sure if you dump a random Laravel object you will get more than that, thanks to it holding onto the entire world through SL
 
Anonymous
@NikiC @JoeWatkins can you do anything right? Jeez.
 
9:12 AM
At least, I assume that's how Laravel works
 
fuck off jay
 
Anonymous
<3 you
 
@NikiC it's 189 entries in GLOBALS
about 100 non-scalars
 
@NikiC are you sure there's something wrong there ?
(look at files changed)
 
and there is this weird mix of referenced vars like ["is_IIS"]=> bool(false) ["is_iis7"]=> &bool(false) ["is_nginx"]=> &bool(false)
 
9:31 AM
posted on September 06, 2017

New Cyanide and Happiness Comic

 
10:19 AM
currently giggling at "The Speech" (IT Crowd)
 
.....current status; reviewing a merge request from a junior, and wondering why it's so completely different from the approach we'd agreed that he would follow.
 
because reality versus plans
 
Anonymous
plus he's a strong independent developer who doesn't need no Danack to tell him what to do
 
they might also be shit
oh oh, sometimes when me and the wife are off work, we will discuss how we are going to clean the whole house, then I don't do anything ... it might be like that ... in that case you should just do the PR yourself ...
 
@Gordon it was his plan that was the agreed approach....I didn't fully agree with it, but deferred to him as he has more experience of editing HTML to make sites look nice. If he'd committed his plan, that would be fine......instead it's really different from what he said he was going to do.
 
10:34 AM
and there's no rationale for why things are different ?
 
He's just gone on holiday for 2 weeks.
 
Anonymous
legend
 
@Danack fire him.
out of a cannon
into the sun
 
Then fire a black hole into the sun to erase the evidence?
 
10:43 AM
Y so hate?
 
"What one programmer can do in one month, two programmers can do in two months." - Fred Brooks
This task has been going on spread out over 6 weeks.....it should have taken less than 4 hours to do...
 
@NikiC last time I tried to dump one I had to ctrl+c after about 20 seconds
 
@Leigh Have you seen yasuo's email? I'm going to reply on internals, with 'words' to him. Just to check, if you had guess, what percentage chance do you think there is, that eventually he might be shown to be right?
 
No I haven't seen it, or anything else in internals for a good month or so
 
Anonymous
2 hours ago, by JayIsTooCommon
@NikiC Your friend is back - https://externals.io/message/100401
 
10:52 AM
@Leigh it's the same as his RFC that rejected, as far as I can tell wiki.php.net/rfc/improve_hash_hkdf_parameter
 
My response
1) No we do not change parameter order of existing functions
2) Too late for 7.2 anyway
If he cared so much, he could have got in on the original proposal
function my_hash_hkdf(...) { hash_hkdf(...); }

There's his problem solved
 
11:10 AM
@Danack is the outcome what you agreed upon?
 
No.........it's completely different.
 
well, I guess then you got a reason to ask him :)
 
The feature is to have some data fetched via javascript and then have that data used to add some HTML elements to a page. We agreed that there would be a 'prototype' element in the page html, which the Javascript would copy to make the new elements, and put the data in the appropriate place.
 
filter_var with FILTER_SANITIZE_SPECIAL_CHARS is manipulating data – #75163
 
I didn't particular like that, though it is very easy for people who aren't coders to setup custom HTML....and have the data magically appear.
Instead the HTML to be added is all hardcoded in the Javascript.
 
11:13 AM
I am sure he has a reason why he didnt stick to his original plan. I'd argue if the feature works as intended then its not that relevant how he got there. unless it's totally subpar for some reason.
 
So it's completely impossibly for someone who isn't a Javascript coder to implement.......which was the whole point of the change.
"works as intended" - yeah, that's what's thrown me. His change is completely at odds with why he said he wanted to make the change.
Which has me doubting either his or my own sanity.
 
then it's worth discussing
 
You don't have to approve it
that's the whole point
 
I'm not going to......but I had wanted to see the end of a feature that's been dragging on for ages.
On a different topic; asking again, if anyone uses google cloud computing, please let me know so I can ask some questions.......our sysadmins are seeing a shit-load of problems with it that don't seem to be normal.
Like an nginx container loses the ability to connect to a PHP container in the same cluster multiple times an hour.
 
11:30 AM
Mornings
 
yopee
 
Anonymous
yominaapee
 
@Danack I cant help with that, but are you using stackdriver?
@Saitama Joppiesaus
 
@Gordon we've got that setup I think, however I heard my sysads swearing a lot when talking about that.
They've set up the kubernetes logging system to be available, and they seem to be preferring to use that.
 
@Gordon ...
 
11:40 AM
As well as setting up some log dumpers to grab the logs as containers get destroyed, as opposed to having the logs of destroyed containers being deleted, so that you can't tell why a container fell over...
 
Anonymous
@Gordon dutch mustard
 
Not really mustard though
 
Anonymous
It's not mustard, it's dutch mustard
 
Anonymous
another weird word, 'mustard'. How strange
 
@PeeHaa I would have expected more enthusiasm
 
11:44 AM
@Danack no rsyslogd?
 
I am so not a sys-admin.
 
surprisingly enough, my maths test went quite ok, than what I was expecting...
 
@Gordon meh. I like speciaal better :)
 
@PeeHaa are you putting it on your frikandel?
 
@Danack and no log?
 
11:46 AM
@Gordon yep. either speciaal or just mayo
:P
Frikadel btw. You are making the same mistake as a lot of dutchies :)
 
what?
 
frikandel -> frikadel
 
> Een frikandel is een langwerpige, donkergekleurde staaf van verschillende soorten vlees die warm gefrituurd wordt gegeten.
 
@FlorianMargaine the log says that sometimes the nginx box just can't connect to the PHP box, we think because packets just aren't arriving from one box to another. The thing I'd like my sysads to know is i) is this a common thing ii) wtf do people do about it.
 
@Gordon It's wrong
 
11:49 AM
interesting
 
Common mistake though. So you are forgiven
 
it sounds wrong to me. Frikadel sounds like the german Frikadelle which is a kind of meat ball
but your Frikandel is a chicken sausage kind of thing
 
It's not chicken
It's "meat stuffs"
Like only god knows what crap they put in it :P
 
but sausage
not ball
 
yes "sausage"
 
11:59 AM
weird
 
Our snacks are weird
All of them
 
Vleeskroket for life
 
kalfsvleeskroket \o/
:)
Met mosterd
<3
 
it's basically a deep fried meat smoothie
so yummy
 
:P I like that definition and yes it's just that
 
Anonymous
12:01 PM
@Gordon .... yeah, sounds it.
 
Hey y'all
 
@JayIsTooCommon Haven't you had Dutch snacks when in Amsterdam at all? :(
 
Anonymous
I had the best burger i've ever had in my life there, if that helps.
 
The best kroketten are invented in amsterdam
IIRC both shops are even in the same street
 
Anonymous
also chocolate chips on bread? which is weird.
 
12:02 PM
@JayIsTooCommon hagelslag?
 
Anonymous
that's the one
 
:D
 
@JayIsTooCommon why is that weird? you never had eszet schnitten as a kid?
 
Anonymous
surprisingly, our British Sunday dinner didn't consist of esszett schnitten
 
Guys,what are my options if i want to show some status messages like( setting saved/not saved ) after a form has been submitted,and some sql changes has been made,in order to display the changes in front? If i want the changes to be displayed,i gotta reload the page with a header() or something similar,but then,i won't get the status messages.Btw,the form's method is post,so i can't use anything in the url like &status=1
 
12:04 PM
You are doing PRG wrong
!!? site:stackoverflow.com post-redirect-get
 
Anonymous
@PeeHaa It was this place burgerfabriek.nl, I don't know if it's famous.. but it should be.
 
@PeeHaa Did you know? That site:stackoverflow post-redirect-get... doesn't exist in the world! Cuz' GOOGLE can't find it :P
 
And you totally can use query string parameters with a POST
 
Search for "site:stackoverflow.com post-redirect-get" (https://www.google.com/search?q=site%3Astackoverflow.com+post-redirect-get&lr=lang_en)
• php - Simple Post-Redirect-Get code example - Sta… - 10 nov. 2010 - …make a payment…etc // redirect to the same page without the POST data, including an… (https://stackoverflow.com/questions/4142809/simple-post-redirect-get-code-example)
• php - Understanding "post/redirect/get" - Stack O… - 31 mei 2012 - As you may know from your research, POST -redirect- GET looks like this: The client g… (https://stackoverflow.com/questions/10827242/understanding
 
ok,looking for it,thx
 
12:05 PM
@JayIsTooCommon Nope. never heard of it. we have a lot of dedicated burger places though lately for some reason. And most of them are so freaking good
@PeterCos Also note what @Leigh said. Just can just pass querystring params to post requests and they will end up in $_GET just fine
 
Anonymous
Well I had the 'dutch burger' from there. Excluding your mum, it was the best dutch thing there.
 
:)
 
burger places opened up all over the place here, too. For about five years now. also food trucks.
 
Anonymous
Jun 20 at 16:13, by JayIsTooCommon
I think we should all plan a weekend piss up in amsterdam..
 
Anonymous
related
 
12:07 PM
amsterdam is no place for married men with children.
 
@Gordon Oh right. We suddenly started doing truck food festivals here in the last year
 
@Gordon You can leave them at home
 
@PeeHaa , end up in GET? i don't want to use GET ... can you give me a short ex real quick pls?
 
Anonymous
@Gordon just avoid red lights, you'll be fine
 
@PeterCos The method / verb is still POST, but data is in GET
test it
 
12:08 PM
@Leigh yeah, but you'll to get back to them eventually. so it's no fun.
 
@PeterCos Ignore the fact PHP calls the variables $_POST, and $_GET, they only named this way by convention. Form fields sent in the request body will end up in POST, and query string parameters will end up in GET, regardless of the method used
 
<sub><sub>Assuming using post method on your form</sub></sub>
 
*edited to specify request body ;)
 
\o/
 
form method default is post anyway
 
12:12 PM
No it is not
 
ok,so the process goes like this submit>post>db>reload>get>send status> , but on reload,how does my script know what to send with get? i gotta store the status somewhere,like a session or a hidden input so i can display a confirmation later right?
 
!!? flash message
 
Search for "flash message" (https://www.google.com/search?q=flash+message&lr=lang_en)
• GitHub - laracasts/flash: Easy flash notification… - readme.md. Easy Flash Messages for Your Laravel App. This composer package offers a Twitter Bootstr… (https://github.com/laracasts/flash)
• Send Quick Flash Messages on Truecaller | Truecal… - 11 apr. 2017 - With flash messaging, you can avoid calling or writing a full text message. Instead,… (https://blog.truecaller.com/2017/04/11/send-quick-flash-messages-on-truecaller/)
 
Ugh bad results
 
uhm?
 
12:17 PM
2
Q: Why is the default form post method NOT GET?

BirdmanWhat is the default form HTTP method? As stated in the link above an everywhere else the default posting method used in HTML forms is GET but I seem to get the POST methods results when NOT including the method="" attribute in my form declaration: <html xmlns="http://www.w3.org/1999/xhtml"> <he...

???
 
@PeterCos One way to handle it is with flash messages
 
i'm not talking about the design
 
@WillParky93 yes? Even the question states the default is get
@PeterCos me neither
 
ah i see rip me
 
ok,so those are done with sessions?
 
Anonymous
12:19 PM
@PeterCos don't copy this, because it's bad. But he means something like this gist.github.com/JayPHP/3b1b53f59608826c8f69cbc20ce8305b
 
Anonymous
there's hundreds of tutorials of how to do it correctly, if you google
 
would be any problem if i just header('location: $samepage&status=1') ? looks easier to implement
 
split_bc_num() is pointless – #75164
 
@PeterCos you dont have to do it with sessions.
 
@Gordon , what's another option? beside a get param on my header() and sessions ?
 
12:26 PM
cookies would work. or just an entry in some sort of db or kv store
 
wow, facebook totally changed its design...
 
nope?
 
uhm,ok but then i would have to clear the cookie/session/db value when the page reloads on a user action and not because of my script
 
Anonymous
@PeterCos just clear them once they're rendered
 
@PeterCos ^
 
12:29 PM
oh,right
 
@Gordon circled images, comment box border-radius, post layout change, action fonts change...
 
ok,i'll give it a try,thank you all
 
Anyone ever utilised a service locator only for a set of factories?
 
@Jimbo sure, if by factories you include functions called during bootstrap.
 
12:39 PM
Well imagine a factory that can create different kinds of an interface, each concrete requiring different parameters. One way would be to create a factory for each concrete, taking different parameters, and DI these factories in a 'set of factories' to the main factory to use.
Please ignore the factory factory
So the main factory would then go $this->factorySet['objectX']->create(...$randomPAramsHere);
Or, maybe I'm brutalising this
 
@Jimbo isnt this what an abstractfactory is for?
 
@Gordon The Abstract Factory is used to ensure all other factories conform to the same interface, sure
But when it comes to actually instantiating the correct one and type hinting for the abstract factory..
 
 function FooFactory($typeOfObject, Injector $injector) {
	$factoryTypes = [
	   //map of types to factory types
	];

	if (array_key_exists($typeOfObject, $factoryTypes) === false) {
	    throw new \Exception("Don't know how to create $typeOfObject");
	}

	return $injector->execute($factoryTypes[$typeOfObject]);
}
@Jimbo fmarkdown
 
@Jimbo I am not sure I understand what you are asking/saying
 
Does that do what you mean?
However you might just be running into a limitation of single layers of execution. You're having to move what should be application logic in to a factory layer....which sounds bad.
 
12:46 PM
@Danack It does, but I'm not injecting an injector :P (I mean, we don't have one - currently)
 
I'm pretty sure having multiple levels of execution is a better solution for difficult problems where you can't know what needs to be created until some application processing has been run. blog.basereality.com/blog/15/Stop_trying_to_force_interfaces (probably linked you that before).
@Jimbo I can lead a horse to water, I can't make it drink.
 
@Danack You can if you shove it's stupid head under there
 
puts RSPCA on speed dial
 
never knew that XeF₄ is an actual molecule
 
> and DI these factories in a 'set of factories' to the main factory to use.
That might be the sane solution then.
If you can't execute stuff and have the dependenices passed in just during the execution, you'll need to construct them somewhere....
 
12:48 PM
Please call them GigaFactories
 
send in a typo fix for php.net docs. would be great to get approval of someone..
 
/food.
 
@staabm sec
> Committed revision 343011.

Success.
 
Hmm okay
One more question, this time GIT (F* GIT).
I want to stash some stuff in PHPStorm. There's the Keep Index option
I have modified files, a few new ones, and some I haven't added to git yet
Should I add them to git first, basically, so they're green, and then stash without keep index?
 
@PeeHaa that reminds me to nuke the "its" and "value" for those files...
 
12:53 PM
"those files"
 
yes, those files!
 
:P
 
Anonymous
Y?
 
@salathe Is that a manual task or can you get away with something else?
 
@PeeHaa ... yes.
 
12:57 PM
Does this have a horizontal scrollbar for everyone btw? news.php.net/group.php?group=php.doc.cvs
 
it has no scrollbar at all
 
that ^
 
hmmm
Screenshot <3 ?
 
there is a vertical scrollbar on body...
other than that, none
 
12:59 PM
tnx
Doesn't wrap for me
 
chromium sucks
 
@PeeHaa ditto
 

« first day (2517 days earlier)      last day (2449 days later) »