« first day (2083 days earlier)      last day (2862 days later) » 

4:00 PM
@JonathanLafleur: What exactly does the row say that you're getting this information from?
 
@MarkWeiman this answer ( askubuntu.com/questions/757331/… ) seem to find the problem but can't figure how to fix it.
 
@JonathanLafleur: I just checked on my server (info.markzz.com/test.php) and it makes no mention of what version of mysql is running.
 
@MarkWeiman you might wish to remove that from there asap as fucking possible :p
 
hi guys! I am looking for a library to parse information about the client (like browser name, version, operating system etc). I found something a while ago, but I cannot find it anymore. Any good ideas?
 
@FélixGagnon-Grenier: Don't worry, I will, I'm just showing an example.
 
Wes
4:05 PM
i miss those days when i just produced code like crazy without worrying of every single thing i write
 
@MarkWeiman you are using Mysql 5.0.12-dev
 
Gon
> The good ol' days!
 
@Wes see the bright side: you became better
 
Folks, can you tell what is this ? "Indirect modification of overloaded property"
 
Wes
4:06 PM
eh, not really, i was way more productive back then
 
@JonathanLafleur: No, that's the client version, not the server. My server is running MariaDB 10.1.14.
 
Tereškoo?!
 
@MarkWeiman okay, so it's not about the actual version running then, i'll make another try then
 
@tereško
 
@MarkWeiman you are right, thank you man !
 
Anonymous
4:09 PM
@animaacija let me guess you are tying to assign value to functions/classes with an array? Or something like that
 
@FélixGagnon-Grenier: And like that, it's gone.
 
im in array
 
Anonymous
@animaacija whaaaaat
 
i think my english was not well enough .. the error message might be selfexplanatory ..
and google has no answer for simple question like: "meaning of Indirect modification of overloaded property"
@samayo you know what means indirect modification of overloaded (how's even that?) property
 
Gon
4:11 PM
!!? Indirect modification of overloaded property php
 
Search for "Indirect modification of overloaded property php" (https://www.google.com/search?q=Indirect+modification+of+overloaded+property+php&lr=lang_en)
• magic methods - PHP - Indirect modification of ov… - I know this question has been asked several times, but none of them … Nice you gave me something t… (http://stackoverflow.com/questions/10454779/php-indirect-modification-of-overloaded-property)
• php - Getting "Indirect modification of overloade… - I know that this is now quite an old topic, but it is something that I encountered myself for the… (http://stackoverflow.com/questions
 
Gon
@animaacija ^
 
Anonymous
You are using external arrays to modify class properties
 
1) i built array ... some references and and tried to modify smth.

@Jeeves thanks ill have a read
 
@animaacija You're welcome!
 
Anonymous
4:12 PM
Hehe
 
@jeeves
i was there ... are you human ? ^o)
 
Anonymous
@Jeeves are you a human?
 
hehe
cool script :)
 
Anonymous
Damn you @PeeHaa of all the things you added you couldn't add a response to that?
 
!!is Jeeves human
 
4:14 PM
God, yes!
 
openai.com
 
@Gon strireplace ;)
 
Anonymous
Better do it with @
 
@samayo I thought I did :(
 
Gon
4:18 PM
@PeeHaa ??
 
!!docs strireplace
 
[ str_ireplace() ] Case-insensitive version of str_replace().
 
Gon
ohohoohoh
 
@PeeHaa you know. Can you put in human language that error message i got?
 
Oh @staabm already commented <3
 
4:19 PM
@PeeHaa bot is cool
 
@animaacija What error message?
@animaacija We like @Jeeves :)
 
!!docs indirect modification of overloaded (how's even that?) property
 
[ ReflectionProperty ] The ReflectionProperty class reports information about classes properties.
 
We can "hard code tweak" those. finding stuff people yell at him is kinda hard :)
 
Anonymous
I could help, but k may end up asking you more questions on how to get it working, api..
 
4:24 PM
@Gon Probably easy to break, but my brain doesn't work anymore atm. So lets deploy and see if/when it fails
 
is Adam cognitive?
 
Gon
k.... :P
 
Jay
a question:
 
!!should I procrastinate or work on my project?
 
4:26 PM
You should work on my project.
 
hmmmm?
 
!!toss a coin
 
!!flip a table
 
=/ not a bot command
 
@PeeHaa Drink heavily while writing Jeeves
 
4:26 PM
HA!
 
Gon
cough, cough
 
hahahaha lol
forgot to pull right? :P
 
Gon
maybe? :/
 
> my brain doesn't work anymore atm
 
Gon
EAT A PIZZA! PIZZA is the answer to everything...
 
4:28 PM
I need some assistance with a ZF2 issue I'm having... anybody can help me with ZF2?
 
Gon
#Fail
 
@JoeGreen Sorry. We're all on ZF3 now. Or PSR 27. I forgot which
 
smells like a crash to me
 
Jay
I have three percentages. 65.66 - 98.88 - 78.67. How can I work out the average percentage?
 
@PeeHaa Well, he was hiding under the table you flipped
 
4:29 PM
To sleep well is key to success // Albert
 
@Jay Using array_sum and count
 
@Machavity psr-7?
 
@JoeGreen I'm messing with ya. We don't really use frameworks in here
 
ok cool
I've just inherited a massive ZF2 app
 
@JoeGreen My condolences
 
4:31 PM
!!should I stay or should I go now?
 
You should stay.
 
Gon
@PeeHaa you needed to tweak anything?
 
thanks bud
 
I tried to write a project in ZF1. Had to bin the whole thing and start over
 
hmmm might have been cache?
 
Gon
4:32 PM
oh...
 
\o/
 
its painful
 
Gon
\o/
 
ive used a few zend components in the past, Form is decent
but the framework is just....
 
Gon
I want Union Types!!
 
4:32 PM
12 messages moved to bin
 
a clusterfuck
 
@JoeGreen Really? I still have nightmares having to work with that forms things. Might have been ZF1 though
 
ZF2 is ZF1, but with autoloading classes so you don't get stupid long class names like Zend_Search_Lucene_Document_Xlsx
 
Yeah. I did zf1
 
!!should Jeeves work reliably or work in a frustratingly intermittent, undebuggable seemingly random way?
 
4:34 PM
@Jeeves should work reliably.
7
 
I cant figure out how to change the "recommended" project structure
 
Wes
how to not run optional checks in production:
assert((function(){ many checks here; return $result; })());
if(App::DEBUG){ many checks here; }
which would you use?
 
Gon
I'm trying to integrate twig in the server... twig api is really nice!
@Jeeves +1
 
@Jeeves He's a good bot. Definitely, definitely a good bot
 
Jay
4:35 PM
@NikiC its not working :(
 
Are you paying it enough?
 
the service container spaghetti in Zend is driving me crazy
 
@PeeHaa you restarted Jeeves here?
 
@DaveRandom It does pinning right after retsrat
 
Maybe the auto-unpin doesn't generate the same kind of event
 
4:36 PM
retsrat too, but I meant restart I think
 
oh yeh I need to give you my ssh key, moment
can I give you two?
 
Yes I think you can.
 
oh I can just add the other myself actually
moment
 
Sure. Will be doing some cooking. brb
 
in the nude?
Cooking isn't cooking unless you are cooking in the nude
 
4:39 PM
Will try and report back
 
@DaveRandom Only if it's not bacon
 
hey
how to read audio file in json request in php
?
 
@ShaileshLimbadiya what is a json request ?
 
what is a php?
 
user can send me audio file in request but i don't know how to read that file?
 
4:44 PM
processable hyper text processor
 
means this my first time to ready audio file
if you know any demo then please tell me
 
what is the file format ... first ?
midi, mp3 ogg flac?
 
with that >>> wikipeda :D
 
4:46 PM
file_put_contents, then open in vlc ;)
@Jeeves am i right ?
 
!!docs file_put_contents
 
[ file_put_contents() ] Write a string to a file
 
you have any demo code link then please send me
 
Aside from a patch does anyone see anything that might be missing from this RFC?
 
because it first time to do this type of things ?
 
4:49 PM
@ShaileshLimbadiya send me an ssh access, ill fix code for ya ;)
!!docs ssh
 
[ ssh2_sftp_rename() ] Rename a remote file
 
sorry but it's not possible because it live project and i have no right for that
 
No need to sorry, just because you are sane
 
@ShaileshLimbadiya ...wrapped in JSON?
where does JSON come into it?
JSON is not suitable for exchanging binary data
Unless your binary data happens to be valid UTF-8 or you literally have bandwidth to burn
 
user just send to me a audio file url not more
 
4:55 PM
file put contents
that's it!
 
if possible then please provide some code
 
$a=file_get_contents('https://google.com?down=asd');
file_put_contents('/tmp/a.mp4', $a);
 
@DaveRandom there is binary json, MsgPack. That is really nice IMO. I wanted to use it for websockets messages, but not all browsers support binary messages yet
 
Gon
Night o/
See y'all lata'
 
4:59 PM
$src = fopen('http://whatever.com/file.mp3', 'r');
$dst = fopen('/path/to/local/file.mp3', 'w');
stream_copy_to_stream($src, $dst);
fclose($src);
fclose($dst);
 
Hi, everyone can help me with Onesignal?
 
@Victor this is not JSON, it's a binary message format (and ASN.1 impls are better than it IMHO)
 
@Wes ahahahahahahahaha
it is nice
 
@DaveRandom Well yeah that's not json, you're right, but it really looks like json actually. I haven't seen asn1
 
ASN.1 makes me twitch :(
 
5:03 PM
Guys, I'm looking for a job (remote/freelance/contractor). I can do Back-end development and DevOps Engineering...
This is my LinkedIn: linkedin.com/in/adililhan
 
@Leigh It's fine once you get used to it
 
Have you tried SO Careers? @Adil
or any of the many remote working sites out there
 
@Leigh not yet
let me see SO Careers
 
glad to see you're leaving Comodo...
 
Wes
@AdilIlhan a bit too dark..., but i couldn't not do it :P
 
5:05 PM
because they're dicks
 
@AdilIlhan very nice jobs history!
 
@Leigh I can't talk :)
@Victor thank you :)
 
letsencrypt.org/2016/06/23/defending-our-brand.html <-- this does the talking, for example
 
yes i know the matter
 
I see you do postgresql
 
5:07 PM
Hi, everyone can help me with Onesignal?
 
@animaacija what?
I'm still stuck at work
 
@Victor yes, i used to use Postgresql with zf2 and doctrine 2
 
@Andreaphp You probably want to make your question more specific, I doubt anyone here knows/cares about Onesignal
 
I think I will switch from MySQL very soon
 
5:08 PM
also i administered it on live system @Victor
why?
 
because compared to pg, MySQL is like sitting in a Lada next to a Rolls-Royce at some traffic lights?
 
@AdilIlhan also, did you look at the starred message, some guy is looking for a PHP dev
maybe they'll consider remote
 
@lei
 
Or maybe you'd consider moving to Berlin :)
 
5:11 PM
Tried to code something in php, but the formula on the site says "= 0.8 ± .367546 "
anyone know what that is or how to calculate "= 0.8 ± .367546 " ?
 
@leigh onesignal is a cgm ( Google Cloud Messaging ) for send notification. I have a problem with stacking notification, the newest replace the previus.
 
@Chris6657456456 Perhaps something like ($i < 0.8 + 0.367546) || ($i > 0.8 - 0.367546)
 
news.php.net/php.internals/94326 so tempted to respond with the EU referendum results
 
@Leigh Don't think that is it, the answer is supposed to be "= (.0325,.7675)."
 
@Leigh yeah, i sent a cv them. no answer, though :)
 
5:14 PM
I am trying to get the lower and upper significance of 95%
Here is the entire thing: b2 ± t_.025(3) × se(b2)
= 0.8 ± TINV(0.05, 3) × 0.11547
= 0.8 ± 3.182 × 0.11547
= 0.8 ± .367546
= (.0325,.7675).
 
what is this, matlab, or R or something?
 
regression analysis
 
could you please help me? if you use twitter then could you please retweet my tweet? :)
I'm looking for a #Remote/#Contractor/#Freelance job. Some skills: #php, #mysql, #aws, #nosql, #psql My LinkedIn: https://www.linkedin.com/in/adililhan
2
 
I got every number figured out but this 95% thing
 
@AdilIlhan ping @sbi
(which I have just done)
 
5:16 PM
@Chris6657456456 I guess I don't understand what ± is doing there, I thought it was +/-
 
Yeah I also dont get that symbol, its throwing me off
 
Anonymous
@AdilIlhan can you also include me? I've been looking for a job since 2012
 
@DaveRandom thank you
i sent a cv @sbi fyi :)
@samayo how old are you?
 
@AdilIlhan the first disadvantage that came up was that MySQL does not support WITH; after that, PostgreSQL seems much better from waht people say
 
@Victor the learning curve of PostgreSQL's configuration and its server side managements are harder than MySQL
so that's why, most of companies need to a PostgreSQL admin
 
5:24 PM
I can't say that I am a MySQL expert, so...
 
but there is no much MySQL admin
 
@JoeWatkins So in PHP 7 you don't actually need to load uopz as a zend_extension, is that right? I was a little confused since in the docs you mention it should be loaded as a zend_extension.
 
Anonymous
@AdilIlhan old enough to run for office
 
@Chris6657456456 [0.8 * 0.05, 0.8 * 0.95]; // close enough :)
 
lol :P This needs to be exact
 
5:29 PM
@AdilIlhan mostly you just try to contain the fire and prevent it from setting the surrounding systems alight. Also you may need someone to respond to all the support emails, but you can just set up an auto-responder to reply with ¯_(ツ)_/¯ if you can't afford that
 
you have the original excel formulas, can't you look for a better explanation of what the functions there are doing?
 
@DaveRandom ¯_(ツ)_/¯
:)
 
@DaveRandom Do it
 
6:02 PM
hastebin.com/bacezojuke.php this script runs fine except that when the image is called through html it does not draw the IP on the canvas, any ideas why?
 
Hi Guys :-)
 
I today accidentally washed my elePHPant ^^
It left the washing machine unharmed :-D
 
lol
nvm its working
im retarded
dont mind me
 
@bwoebi that's one way to write clean code ;p
 
@FélixGagnon-Grenier hehe
 
6:33 PM
@NikiC How the hell do I reliably detect a rehash? :-(
I guess, when the position of the last element of the array changed inside arData or arData pointer changed, it has been rehashed
 
7:15 PM
hi all o/
@Wes remember you said that you would love to see feature to have weak reference observers notified before original dtor called? I answered that it's less likely, but I was wrong, it's not so hard to implement, I need just to call observers before original_handlers->dtor_obj(object); invocation. Sure, referent object refcount increment at that observers will have the same effect as refcount increment in referent obj dtor.
At this time it's not clear for me how end-user API to add pre and post destruction observers should looks like. I'm open for suggestions.
 
7:31 PM
@NikiC may I ask you to look at this question, stackoverflow.com/q/38087189 ? I am curious myself, why different buffering modes for the regular query and a prepared one?
 
@YourCommonSense Sorry, mysql isn't really my forte
I know barely anything about the implement, yet why it was done the way it is
 
This is weird...

!empty($_GET["lang"]))
{
echo $GET["lang"] // array(0) { }
}
Why is that?
Forgot the semicolon
and if...
 
Anonymous
\o/
 
@NikiC Ok, thanks anyway. Suppose it's just legacy issue.
 
Anonymous
Evemong
 
7:45 PM
> echo $GET["lang"] // array(0) { }
that is false ^
 
I see
 
@NikiC can you please suggest under which circumstances and why obj->handlers->dtor_obj can be NULL?
 
@pinepain if an extension doesn't define it
in php-src I think that everything has it
 
yes, everything is ok in src, i just saw that if (obj->handlers->dtor_obj) conditions and don't think i understand what are the reasons to set it to NULL.
by default dtor_obj is zend_objects_destroy_object(), afaik
 
eveniņg
 
7:51 PM
\o
 
\o/
 
@NikiC so setting it no null will disable __destruct() userland method calling on such class instances and it childreb instances
is my suggestions valid?
 
@pinepain yes, though it will also have other side-effects
in rare cases dtor_obj is actually overwritten
for example generators do that
so if you null it out you prevent finally to be executed
 
I'm aware of dtor_obj can be overwritten (though, have never a need to do that). finally?
In my case I discover that in a weakref object i do not cover a case when dtor_obj is nullable, which after reading gc sources looks wrong to me and I try to figure out real cases when dtor_obj can be null.
ah, nevermind, I got what finally did you mention function, gen () { try {yield;} finally {yield} }
 
8:13 PM
I'm getting a bunch of the following warnings and others when trying to run pecl install libsodium with PHP 7, any ideas?
Warning: Invalid argument supplied for foreach() in Command.php on line 249
 
Anonymous
@PeeHaa you haven't returned since cooking (potentially in the nude)... Did it go badly?
 
8:40 PM
@NikiC what are potential side-effects of inheriting classe with final modifier from extension?
 
@pinepain Depends on what you do then
 
my use case is proxy class
 
what does that mean?
 
a class that have the same signature as proxied one but allows to swap targets (if necessary) or lazy-initialize target or whatever user want to do, e.g. override some methods (at this point it looks dangerous for me to do this for final classes)
 
Anonymous
8:44 PM
Ha
 
$maxLines = '20';
things like that start to irritate me ^
 
@pinepain I assume that while you extend the class you override all object handlers?
 
sth like ocramius did in his proxy manager, but on extension level and without code generations
yes
i have proxies wip for now, afair, there was some problem with some magic method(s) overriden
 
assuming signatures are compatible, I don't think anything bad would happen
And if you do override all handlers, then your methods should even be called, I think
What's the problem with magic methods you had?
 
after reading php-src i also think so, but isn't it too hacky or so
i don't clearly remember, let me look on that branch
hm, can't recall it, maybe something with _zend_class_entry.__debugInfo and zend_object_handlers.get_debug_info inconsistency, but not sure
i did that in mid Jan
yeah, see chat.stackoverflow.com/transcript/11?m=28004551#28004551 (i used to zaq nickname that time)
 
8:53 PM
#nhlhockey shiiiit.... subban vs weber. what a win
 
@pinepain If you override a handler, the handler is responsible for replicating the original behavior if necessary
This is one of the big reasons to make a class final, because properly supporting people to override offsetGet() etc is a huge PITA
For __debugInfo in particular, this method was added after the get_debug_info handler is already in heavy use, and none of the code was adjusted for it :)
 
i noted that ;)
I guess it was one of the reasons I gave up on extension-level proxies generation (and not even mention final class inheriting magic).
 
As you know, when you want to ask a new question on stackoverflow, it just lets you to ask 6 questions per day, 50 question per month and etc .. Now I want to know it checks which day? which month? I mean last day, last month etc? or any day, any month etc ?
 
@Shafizadeh if (count($questionsWithinLast24Hours) > 6) { echo "usuck"; }
 
@Shafizadeh tbh, I didn't know.
 

« first day (2083 days earlier)      last day (2862 days later) »