« first day (2721 days earlier)      last day (2227 days later) » 

Wes
1:00 PM
le morn
 
if you don't know what user apache runs as, run ps aux | grep httpd in a shell and look at the first column in the output
 
OK
and if you run ls -l /cloudsql/, who owns the socket you are trying to use and what are the permissions on it? @DaAmidza
I'm guess it will be owned by root and the permissions will be either 600 or 660
 
Few users one is the database instance user.
 
basically the question I'm asking is, "Are the permissions on the socket you are trying to use sufficient to allow the www-data user read and write access"
 
1:05 PM
Thanks for simplifying it, I'll check it out.
 
'noonz
wasps nests
 
call the exterminator
 
there's no diy way ?
 
I guess there is but it's dangerous
 
it's probably best to just throw the whole house out
 
1:15 PM
can wasps kick off at night, because they're really quiet then ... I was considering sneaking up on them, with a little wasp bat or something ...
can they see in the dark, or do they need vision to navigate to my face and sting it if I hit them with a bat ?
 
the exterminator that we got used quite a lot of wasp bat
and he wore a protective suit
 
MY iOS APP FINALLY BUILT WITH ERROR YESSSSSSSS
 
because when they feel threatened they will mark you with chemicals so the others know who to attack
 
sneaky fuckers
 
on another note, Google has a solitaire game and it's pretty nifty
 
1:18 PM
@Tiffany 1990 called, they want their game back ...
 
@JoeWatkins it's disabled on our work machines
:<
 
also, depending on what kind of wasp it is, it might be illegal to kill them and they need to be relocated instead. at least that's how it is in germany
 
...I've been playing a lot of solitaire and sudoku on my phone lately
 
@Gordon I blame merkel
:P
 
seems unlikely, two nests ... although I haven't exactly stuck my hand in and grabbed a handful for inspection ...
 
1:20 PM
@Tiffany WITH or WITHOUT?
 
@mega6382 oh... lol... without
 
:P
 
@JoeWatkins cover your face. cover everything. in layers. tape your cuffs, etc. then dump or spray a ton of soapy water on the nest. night is good, better to catch them while they're sleeping, but they'll still come for you
 
1:22 PM
… or just call an exterminator …
 
Wes
use a fan near the nest entrance @JoeWatkins
 
@PaulCrovella Night is not good, cause you won't know where they are coming from.
 
Wes
so they can get out but not come in again
 
@JoeWatkins 1876 called, they want their joke back
 
Wes
lol
 
1:23 PM
How do you open a banana?
3
 
xD
 
@J.Ende best. programming. question. ever ...
@DaveRandom all I got now are mama jokes ...
 
in php
 
Wes
try with phar @J.Ende
 
@J.Ende like a monkey
php developers always do things like monkeys do
 
1:26 PM
upside down ...
 
@mega6382 they're coming from the nest you're destroying
 
@JoeWatkins also, in germany, the cost for the exterminator have to be paid by the landlord. dunno if pplicable to you
 
@JoeWatkins you are english, so you will always have sarcasm. No-one can take that away.
 
@PaulCrovella sighs I meant it would be dark.
 
1:27 PM
@DaveRandom , hey, i changed the code a bit as you said, moved the update statement outside of foreach( i concatenated the statements ) and change the value to 120 , but after the foreach does the job at the end still gives me the server gone away error
 
@PetruLebada basically, you need to work through everything on this page. Debugging that error is painful af.
 
Hi all, I am normally in js chatroom but i have a question about PHP platforms.
So i decided to visit you
 
@DaveRandom, probably it will work if i move the concatenated statements before the foreach containing the sleep, but i need to do it after
 
@KarelG apologies in advance
 
A friend of me has used Drupal for his website. But drupal is known to be a memory hog and his server is sometimes under huge strain
(aside from some caveats)
 
1:31 PM
@PetruLebada maybe, but there's also a pretty high chance that it is nothing to do with your code. I have encountered that error multiple times because of bugs in MySQL itself.
 
is there another platform on PHP that can be used for people that has some basic (not programmer level ) PHP knowledge
 
@KarelG What PHP version is he running?
Performance-wise, 5.6 vs 7.2 is a huge difference
 
echo "<iframe src='http://www.staggeringbeauty.com/' style='border: 1px inset #ddd' width='498' height='598'></iframe>"
does this work for you guys?
 
Based on your previous link, I am not going to find out
 
:(
 
1:33 PM
PHP version 5.4 I think
 
kill it with fire
 
suggested it too :P
 
@KarelG yeh, there's you problem. 5.4 is very unsupported
 
but I do not know web platforms for PHP 7+
 
no suggesting ... if they refuse, begin cutting off fingers and toes ...
 
1:34 PM
upgrade to 7.2, and if it's getting hit hard throw varnish in front of it
 
@KarelG I know one...
 
There are plenty of hosts that provide modern PHP versions
 
also @KarelG I am led to believe that Drupal 8 is significantly more performant than previous versions, but I have never touched any version so I don't actually know
nor do I know what the migration process is like
 
@DaveRandom not necessarily
I mean, nothing ground-breaking
 
1:38 PM
hi Florian * waves * Are you going to suggest ... wordpress? >.>
 
@KarelG see my employer...
 
Laravel ?
 
@KarelG I work at a hosting platform that supports php 7.2, is all.
 
and a cursory investigation tells me that migrating from Drupal 6/7 to 8 should be reasonably painless
 
is drupal 8 good or still "bad" ?
 
1:40 PM
@DaveRandom it very highly depends on the modules you have
 
does it still load all modules per request ?
 
The main thing it does is 100% support PHP 7, I don't know more than that
any CMS is going to be slow, because that's just the nature of a CMS
 
I also know other frameworks for PHP like Zend framework (from my student years), CodeIgniter and Laravel.
oh. I forgot symfony (silex + twig template)
 
yes but those aren't CMS
 
they mentioned CI, get them !!!
 
1:42 PM
but I have been out of loop. So idk which one he could take
 
@DaveRandom s/generic CMS/CMS/
 
yes
but I am assuming that the reason it was used in the first place is that it needs to be usable by people who aren't programmers, and that paying out for a custom CMS is financially non-viable
Those are my default assumptions for anything built with drupal or wp
 
Instead they pay the same for something based on drupal in practice :D
 
maybe
but if the only problem here is performance, migrating to a vaguely sane PHP version and throwing varnish in front of it is likely going to solve that problem, and that's potentially one day for one person
If there are other problems and the site actually needs a rebuild, that's another story
 
it could be yes :P
he has started it recently. It is fairly new, but he came to me when he was facing with the load problems
So I checked it. The homepage loads after 4 seconds
using symfony is too difficult for him I think
maybe I should aid him a bit
 
1:52 PM
you know that's a rabbit hole, right?
 
I will survive it I only put my hands in that. Not going to push my arm through it
but that may be a wishful thinking
 
@DaveRandom , seems like the problem was that i had to increase the wait_timeout more, i had 3 loops each with 60 seconds delay,yet the value was only of 120 .... im ashamed it took me so long to figure that out... anyway thanks for ur help
 
2:14 PM
@J.Ende write program to peel banana
 
Wes
implements Peelable
 
:V
 
@DaveRandom @JoeWatkins I really want to get this in, but because of custom error handlers it could be considered a BC break.
 
@Wes @throws Skin
 
Wes
:D
 
2:20 PM
@kelunik yeh I saw the comment :-/
I'm really not a fan of a userland implementation for it, just for the sake of avoiding warnings
 
Wes
how do you call in english a fruit's outside layer? skin? no specific word for it? :B
 
skin
 
skin, yes
although citrus fruits are more complicated
 
@DaveRandom Chat said it didn't work and internet wasn't working properly, so didn't know whether it worked.
 
Wes
you guys have sometimes overabundance for some words, and lack of words for other words
:B
 
2:22 PM
@Wes skin or peel
 
@kelunik whether what worked, sorry?
 
or rind
 
@DaveRandom Sending the message.
 
@rol_dfa You know dah wai?
 
@kelunik oh right no, I meant that bukka commented on the PR saying basically that
 
Wes
2:23 PM
nice
 
I thought you had seen it
 
No, not yet.
 
@J.Ende I know how to peel a banananananana
 
He commented saying basically +1 master, probably not 7.1/7.2 because of warning -> exception conversions
 
@rol_dfa Peel_Banana();
or die("Banana too stronk!");
 
2:27 PM
@J.Ende
if var Banana = "Tomato"
{ echo: "Banana is a Tomato";
}
else
{
echo: "Banana is peeled";
}
 
var Banana = $banana ?
How do you open a Tomato?
 
@J.Ende no, var banana = $pineapple
on pizza
 
Can
Hello
I have many variable like this $results[0]->selling
Sometime array ellement reach 100 and i need to create array like this
$narray= array($results[1]->selling,$results[2]->selling,$results[3]->selling,......);
How can make this?
 
Just use $banana != $tomato
 
@Can array_column($results, 'selling'); should do it
 
2:32 PM
hmm found out my keyboard is a midi keyboard.. should hook it to the computer.. buth meh last time I did that is like 10 years ago.. cubase I think
 
@J.Ende $Banana == $Tomato?
 
Hello everyone, if I run $ php -r "phpinfo();" from the command line, will I get the server config or the CLI config ?
@RonniSkansing I always thought it was qbase
/me learns
 
you would get the cli config
Just remember the name, it had some awesome plugins or whatever or different piano sounds and etc
I need to find something like that
 
think it says something like 'Server API => Command Line INterface"
 
@RonniSkansing Get kontakt
 
2:40 PM
thanks @PeeHaa
 
@code-kobold ah so that's how you know
 
gonna try out the demo, it was exactly something like that I was looking for
 
@code-kobold it also says which configuration file it is loading, so you are right : Loaded Configuration File => /etc/php5/cli/php.ini
 
and yea have to find my usb connector thingy somewhere =)
 
/me is having a lookg at the php5query command
I don't know what's sapi
 
Can
2:44 PM
Array
(
[0] => stdClass Object
(
[selling] => 4.0107
[update_date] => 1522271815
)

[1] => stdClass Object
(
[selling] => 4.0124
[update_date] => 1522271876
)
How can i move and take"selling" ellement and make like array this $array = array(selling,selling,.....)
 
Firstly how on earth did you end up with stdClass objects?
 
I am so sorry, I'll see myself out.
 
Do I get a kiss if I say PHP is bad either ?
 
Wes
are you flirting with us
 
@kelunik ctx?
 
2:49 PM
/me pouts
#nohomo
 
Wes
i need coffee
 
Can
ok fixed. how can i get only selling data as array

Array ( [0] => Array ( [selling] => 4.0107 [update_date] => 1522271815 ) [1] => Array ( [selling] => 4.0124 [update_date] => 1522271876 )
 
27 mins ago, by pmmaga
@Can array_column($results, 'selling'); should do it
 
Can
@PeeHaa thank you <3
 
ಠ_ಠ
 
Wes
3:01 PM
ha
 
lol
 
xD
 
@pmmaga Don't be jelly that I got the solution and not you
:P
 
always one step ahead :P
 
:D
<3
 
Can
3:03 PM
@pmmaga thank you too <3<3
 
:D
 
Instead of implementing ArrayAccess in internals you can just add method to the handlers, right?
You won't officially be an "instanceof" ArrayAccess but all the operations work, yes?
 
Wes
yes @LeviMorrison
 
3:21 PM
evening room.
 
Wes
@LeviMorrison don't know what you are doing with that, but remember that $obj["123"] is always transformed to $obj[123]
 
@Wes Didn't we file and fix that bug already? /cc @NikiC
 
Wes
nope
 
I distinctly remember Andrea bringing it up.
 
Wes
afaik andrea tried but couldn't do it
 
3:35 PM
@LeviMorrison not fixed yet
there's a pr outstanding that I think I was supposed to review
 
Now that we have an optimizer in opcache can the optimization be pushed to that?
If it can determine if it is an array then do it; if it cannot be determined or is determined to be something else then don't do it.
 
@tereško Helped but I didn't end up doing it exactly like that.
 
I know
 
@Jimbo Also seems vehemently against that type of dir structure.
Also morning.
 
3:54 PM
Seems we got rid of zend_objects_get_address?
I can't find its definition through LXR anyway.
 
Can
@PeeHaa Is it possible to get only 'selling' elements which 'update_date' bigger than 1522312156 ?
 
Wes
so depressing when you finished cleaning and sun at the right angle evidences all the dust you didn't clean
 
4:35 PM
Hooray! I got my first office.
 
congratz
 
@Allenph gratz :)
 
what is the cheapest form of caching for db queries you can use, eg, filesystem, db table (where you query the cached table), or redis, memcache, or ???
eg should u cache to file system and pay for more space
or is the db cache the cheaper
or maybe the magical mecache or redises
 
Wes
in memory is obviously faster
 
Could someone review this for PHP 7.3? github.com/php/php-src/pull/2684 /cc @NikiC @bwoebi @JoeWatkins
 
4:43 PM
faster but what would end up amazon charging u more for, caching to a bucket perhaps is that a thing, or just db queries, i guess i have to do math
maybe google is the answer :D
 
Yeah. In memory is definitely faster. You could potentially use some kind of NoSQL trickery on the file-system but it would be complicated and probably not a ton faster. MySQL is good at being a database. :p
 
Wes
mysql is shit in many ways but you can't say it's slow... if used correctly obvs
 
but what about for just large data quantities permanent caching,
i dont think memory caching is answer
 
@LeviMorrison lgtm
ship it ...
 
posted on March 29, 2018 by CommitStrip

 
4:51 PM
don't forget about upgrading note ...
 
@JoeWatkins I don't think I can do pulls stuff; if I can nobody ever showed me how ^_^
 
goto qa.php.net/pulls, then php-src, then find the pr, then show pull instructions, then do the thing, then update, the leave a comment and mark closed ...
afaik anyone with karma can do it ...
 
I don't use the instructions anymore ...
wget -O - -q githuburl.patch | git am
then edit UPGRADING and do git add UPGRADING and git commit --amend so it's all one commit ...
oh and you'll need to rebase to squash it before upgrading change ...
so git am, then git rebase -i origin/master and squash everything into first commit ... then do upgrading ...
after all that, use the qa interface to mark closed, bad at detecting stuff ... and must leave comment ... "Merged hash\n\nThanks." is fine ...
 
4:59 PM
nice
 
Wes
old
 
but gold
 
@Wes @FlorianMargaine i.redd.it/p2cw0xsql85z.png
 
5:12 PM
@rlemon Now thats my kind of fidget spinner.
 
6:06 PM
~~~strike~~~
~~strike~~
--strike--
strike
 
:-)
 
I got there eventually ...
----strike----
 
Shouldn't 2 work, 3 is a bit too much
 
strike
 
I dunno ...
this is the problem when you diverge from a spec ... how to implement that ...
Concievably, someone might format text -- like -- this -- as -- part -- of -- a -- warning -- maybe ...
 
6:13 PM
!!xkcd standards
 
Is there a way to autogenerate getters and setters in PHPStorm and then add the types yourself @Wes?
 
Wes
not that i know of
 
Pretty big waste of time, but necessary.
 
Anyone have a recommendation for a VNC client? Coworkers use TigerVNC, and I was going to download that, but wasn't sure if there was something better.
@Danack how the hell
 
6:20 PM
strike
@Tiffany ^
 
strike
oooh
 
6:37 PM
^^super^^
~~sub~~
++ins++
--del--
looks rational to me, github disagrees ...
can't someone else do the php stuff ...
it's too tedious ... for a c programmer ...
 
@JoeWatkins I think it's because of the squashing during rebase.
That's why it's bad at detecting the content being merged.
 
@JoeWatkins Like what? Maybe I can help
 
6:52 PM
Hey guys. One question, is SPL Stack asynchronous?
I'll give a little background on why I ask this question, that might be useful
I'm importing a JSON with lots of data and lots of images. I would like to add the images to a queue that won't stuck the data from being processed.
or SPL Queue
 
so I have kind of a problem, and I'm almost positive it's my fault and I'm just going to have to deal with it, but no harm in asking, right?
I have a git repo, I've made several changes between now and my last commit. So the files have been unstaged this whole time. The last change I made, I want to remove. Is that possible? Maybe using "ignore changes on this file"?
 
@LucasBustamante nothing in PHP core is asynchronous. PHP is a single threaded language (by default.)
 
@LucasBustamante That's not the kind of queue you think it is
 
@Tiffany Are those changes committed and push to remote?
 
@mega6382 no
It's been like a week since I've made a commit :S
 
6:58 PM
@Tiffany Try force pull
 
there are changes that I don't want to lose though
basically just want to discard some of them?
 
Allright, I'll look into it. Thanks guys.
 
I don't commit every time I make a change...
 

« first day (2721 days earlier)      last day (2227 days later) »