#dev 2017-02-07

2017-02-07 UTC
#
GWG
I have another idea I need to bounce off of someone.
acegiak and KevinMarks_ joined the channel
#
KevinMarks_
Bounce away
KevinMarks, KevinMarks_, loicm and pfefferle joined the channel
#
pfefferle
good morninh
#
Loqi
*yawn*
loicm joined the channel
#
petermolnar
aaronpk, or anyone else with deep GPS-related service knowledge: is anyone aware of a relatively easy (either api calls or offline database) that could give me altitude information for lat/lon positions?
#
mindB
Mapquest has a fairly simple elevation api, too, if I remember correctly.
marcthiele joined the channel
#
GWG
Morning
#
Loqi
good morning!
[acegiak_net], loicm, marcthie_, KevinMarks, sandro_, [cleverdevil], Zegnat, gmack and tantek joined the channel
#
tantek
whoa I just got a "503 Service Unavailable / No server is available to handle this request." from somewhere in the middle of my admin page
#
tantek
and it's not obvious to me where its coming from. huh
#
tantek
like this is injected into the middle of my markup, not by any of my code (I have no code that explicitly generates this) "<html><body><h1>503 Service Unavailable</h1> No server is available to handle this request.</body></html>""
#
tantek
this will take some interesting PHP debugging
#
tantek
and I have text that my code generated both before and after that
#
tantek
it was intermittent apparently, and is gone now
#
tantek
like is there a PHP function that can error out by writing that to the output buffer?!?
#
tantek
what is particularly odd is that at that point in my code, there shouldn't be anything that is making an HTTP request.
#
aaronpk
that’s happened to me when there have been certain syntax errors
#
aaronpk
i don’t know exactly what kind, but sometimes it’s so bad that php doesn’t even get a chance to output an error message
#
tantek
syntax errors in what?
#
aaronpk
in my php code
#
tantek
ok so it is PHP that is doing it (the markup looked suspiciously like a PHP default bail / error message)
#
aaronpk
well that error message and html is coming from the web server itself
#
aaronpk
because it can’t run the php code for some reason
#
tantek
like another PHP file perhaps?
#
tantek
like it just had trouble loading another .php file from the current one?
#
aaronpk
usually there’s an html file on disk that the web server uses to serve the message when it encounters that error
#
tantek
yeah I'm just wondering what in code triggered it
#
tantek
in *my code
#
aaronpk
could also be nothing to do with your code. that error also means there are no backend processes to handle the request, such as when the server gets too many requests and all the php processes are busy
#
tantek
ah ok
#
tantek
yay shared server!
#
tantek
(could be nothing to do with my "server" as it were)
#
tantek
(since it's shared)
#
tantek
oh well, I've made a note of the conditions in case it happens again. I wonder if this is an excuse to "compile" your PHP for an "app" into a single file ;)
#
aaronpk
that wouldn’t really make a difference
#
aaronpk
if you want to start thinking about that kind of optimization, then just use APC
#
petermolnar
APC? above php5.6 you have the built-in optimizer
#
aaronpk
ooh? i have not been paying attention to the 5.6+ stuff
#
petermolnar
you should, php7 is indeed _much_ faster
#
petermolnar
Zend Opcache
#
aaronpk
is it turned on by default in 5.5 or just shipped with 5.5?
KevinMarks joined the channel
#
petermolnar
shipped w/ 5.5, that's why I had a hard time trying to use apc
#
petermolnar
but unlike apc, opcache doesn't have a user-entry part, it's essentially bytecode cache only, APCu is there for the memcache-like user-data option
#
petermolnar
there is PECL version for 5.2->5.4
#
petermolnar
from 5.5, it's bundled
tantek joined the channel