« first day (2175 days earlier)      last day (2764 days later) » 

9:00 PM
@Wes what does that mean?
 
Wes
allow only 0. being silently casted to 0
 
Anonymous
@PeeHaa lol ok, thnx :P
 
Wes
and reindexed if needed
 
@Wes I don't think strict types allow that
they allow int to float but not float to int
 
Wes
i don't even know how strict_types work as i don't do that shit
 
9:02 PM
@PeeHaa lol, is this related to WP? — xYuri 13 mins ago
 
@Wes strict types are not shit
 
Wes
so hard writing 0. eh :P
 
@PeeHaa this is wordpress, is this a wordpress problem? — Ben 7 mins ago
that's just fantastic
 
:P
 
Wes
@bwoebi i meant i never cared about types coercion nor i remember how strict_types work as i just pass the correct type every time and never encountered errors
 
9:04 PM
@Wes yeah, actual bad values are very rare for me too.
 
Wes
[0,1,2,...[true => 1]] @NikiC so this warnings
[true => 1] but this doesn't
with the first being the output of an iterator
 
Wes
i think each "group" should be normalized as it was a temporary array, [0,1,2,...[1 => 1]]
and consequently become [0,1,2,1]
 
@PeeHaa just in case you forgot why you stopped clicking @PeeHaa's dumpert links
5
 
wow, 17 seconds for dumpert to load
 
9:08 PM
:P
@PaulCrovella Tbf I could be sharing liveleak things so it's not that bad
 
Wes
i'm trying again with hopefully better words:
$i = (function(){ yield true => 4; yield false => 5; })();
is first normalized as it was [1 => 4, 0 => 5]
then appended
[0,1,2,3,...$i]
producing
[0,1,2,3,4,5]
bob ^ paul ^ peehoo ^
same goes with floats
 
!!should I have tea or liquor
 
You should liquor.
 
giggity
 
@PeeHaa What's liveleak?
@Wes … uh … is that appending??
I expected it to overwrite it
giving [5,4,2,3] ?
 
Wes
9:21 PM
integer indexes get reindexed
 
@bwoebi wat?
 
@PeeHaa Yeah, what's a liveleak?
 
Wes
you talking of the specific case of true false key or any integer key?
 
Not sure if just gotten internet or nanny software installed :-)
 
this looks awesome
 
Wes
9:23 PM
bob? it's the same behavior of array_merge, except it works with any iterable
 
@Wes no, I expected it to work like the + operator
@Wes … oh array_merge… mhm
 
@Wes I have no idea what the background of this is or what problem it's trying to solve. Sorry.
 
@PeeHaa ??
 
Wes
@PaulCrovella question was, what to do with iterators yielding booleans and floats as keys (types that currently get coerced to int)
 
@Wes coerce until general behavior changes
 
9:25 PM
@Wes no, I mean the whole feature. not just this edge case
 
@bwoebi liveleak.com the thing is somewhat known :P
 
Ugh @NikiC … how do I check for EG(error_zval) in zend_hash.h without getting a buttload of errors due to messed up include order in tons of files? :x
 
@NikiC Is Z_TYPE_P(zv) == IS_ERROR a viable alternative?
> Man gets penis stuck in wedding ring for two days Files: 1 featured
Wife wanted him to wear wedding ring to prove love and loyalty to marriage.
@PeeHaa … why … did you even mention it @PeeHaa -.-
 
@bwoebi i'd think so
 
9:29 PM
okay, just wasn't sure
 
Wes
$i = (function(){ yield false => 666; yield true => 999; })();
[0,1,2,3,...$i] === [666, 999, 2, 3]
[0,1,2,3,...$i] === [0, 1, 2, 3 666, 999] // imo it's definitely this
 
@bwoebi some videos seriously NSFL btw...
 
@Danack sometimes I wonder what NSFW/NSFL really means … I mean, there's a bunch of shit you wouldn't really need to have seen … but it's not exactly traumatizing…
 
@Wes do the same thing with keys that arg unpacking does - either drop them and reindex or bail if they're strings
 
Wes
it's different, keys are lost there
 
9:35 PM
yes, as I said - drop them
 
Wes
ok, will think about it and update the rfc
where do i find all the array key coercion rules? i think there's more than that, like integer strings get converted to int and so on
 
Who here browses php.net on mobile?
 
@LeviMorrison I do at times
 
Wes
i do when number two :B
 
9:37 PM
Improvement or nah?
 
1 sec
 
@LeviMorrison coding PHP on a ssh session on iPhone <3
(Uh, I do this only really for urgent fixes though…)
 
Wes
it's very much ok, i only dislike the endless page with the menu at the bottom and the comments even lower
 
@Wes basically treat [0,1,2,3,...$i] as array_push([0,1,2,3,], ...$i)
 
@LeviMorrison is it expanded by default?
 
9:38 PM
@PeeHaa Yes: the click menu thing is completely gone.
 
hmmmm. I like the view better than what it currently is, but not sure about having the menu always taking up space on all pages
 
Wes
@PaulCrovella if you mean not counting string keys, yes
 
Alright, here is another page:
 
Wes
but actually also that behaviour wouldn't be too bad
aw
 
What do you think? /cc @PeeHaa @bwoebi
 
9:41 PM
@Wes including its behavior with string keys.. just cut all inconsistency and nuance out of the picture
 
Wes
you are making sense @PaulCrovella
@NikiC opinions?
> [0,1,2,3,...$i] being the equivalent of array_push([0,1,2,3,], ...$i)
 
@LeviMorrison The live version please
 
@LeviMorrison I like everythign of dev, but with a default collapsed menu
 
Okay. I'll work on it.
 
dev version header is way too big and navigating to left/right (i.e. the « … » menues) is absolutely not helpful @LeviMorrison
I mean, I search in a list what I could need, I don't want to go through a hundred breadcrumb clicks
 
Anonymous
9:49 PM
Noite all see you tomorrow o/
 
Wes
because if one wants to keep the keys, they can always use $arr1 + $arr2 + $arr3
while ... would be purely positional
 
!!> echo 1 / 998.001;
 
Wes
why do floats even exist
 
Uh @DaveRandom I just had that epiphany … I perhaps need an image of you to recognize you at all at airport?^^
 
9:52 PM
/cc @bwoebi @PeeHaa
 
@bwoebi what kind of image?
 
@Wes they're smaller than doubles!
 
@bwoebi you should each print out masks of your avatars here and wear them
 
@LeviMorrison better, though I still think these « stpbrk strrchr » are useless
@PaulCrovella lol…
 
Wes
:P
@LeviMorrison why are you doing this? :P php.net is not too bad now....
 
9:53 PM
@FlorianMargaine of his face I'm going to see tomorrow…
 
@Wes I broke this section after fixing the other stuff :D
So I am experimenting since I have to change it anyway.
 
Wes
:P
classic css
 
@LeviMorrison works for me
@bwoebi Haven't you seen his (semi) nudes yet?
 
@PeeHaa no :-P
 
Just look for a guy with a skirt
 
Anonymous
9:56 PM
@bwoebi here you go, you should be able to spot him in the airport now i.stack.imgur.com/ZGMaX.jpg
 
that eye shadow is not his color
 
@JayIsTooCommon He'll be sober by then… That's maybe drunk Chris :-P
 
Anonymous
Oh you want sober Chris, 2 seconds
 
@JayIsTooCommon this is starting to get creepy
 
9:58 PM
'starting'
 
Anonymous
:D Yes, I'm concerned about meeting theze people too. No @PaulCrovella they're all in the same post :3
 
Still need to fix sticky-header too.
 
@Wes definitely no
 
tbh I'm no longer sure if the feature makes sense
 
Wes
10:00 PM
ahahaha
 
I've been practicing my talk....I might get some of those printed up for people to wave...
 
> Hello Google Apps Customer,
We created Google Apps to help people everywhere work and innovate together, so that your organization can move faster and achieve more. Today, we're introducing a new name that better reflects this mission: G Suite.
 
Anonymous
How you feeling about it @Danack?
 
dafuq is the point of this
 
Good actually. Rather than worrying about adding more slides, I'm just going to focus at speaking about about 50% of the speed that I've done this talk before.
 
10:02 PM
@Danack That U is bad. you need a smaller U.
 
Anonymous
@Danack looking forward to it :) - and if you hit a wall at any point, give one of us a signal and we'll cause a scene - start a fight or something ;)
 
hitting a wall isn't the problem....just not always wanting to talk faster and faster due to adrenaline is the problem...
@PaulCrovella There probably is a decent reason to provide a single thing that works as opposed to several discrete things that kind of work. But that name.
 
@Danack Wes says you are the maintainer of the Imagick extension is that right? I'm trying to solve this weird error message that I'm getting "JPEG parameter struct mismatch: library thinks size is 464, caller expects 472", any idea what could be causing it?
 
Anonymous
mm, I'm sure you'll nail it :) gotta shoot, noite
 
My code is really basic but let me know if you want it. It works fine locally but when I deploy it to Google App Engine I get the error.
 
10:07 PM
@joshhunt that is correct, where are you getting that? And how did you install ImageMagick/Imagick.
oh......google app.
Do you have an example image that does that, and is it for all images?
 
or is it G Suite Engine now
 
seems to do it for all images that I've tested with but I can post an example if you want one?
Code is:
$imagick = new Imagick();
$imagick->readImageBlob(file_get_contents($localImagePath));
because GAE won't let me load it the normal way: https://code.google.com/p/googleappengine/issues/detail?id=12271
 
Anonymous
@PaulCrovella heh just got that email, what a waste of time
 
@joshhunt nah - please just open a ticket on Google Apps wherever they allow you to open tickets. Feel free to ping me with a link to that.....the short version is that the compile / linking has gone wrong.
It's not anything you're doing wrong, and there's almost certainly nothing I can do to fix it - it's something that needs to be investigated on the box by a google person.
 
oh right :/ thanks for your help :D
 
10:12 PM
Scroll to the last message for an example - imagemagick.org/discourse-server/viewtopic.php?t=24943
@joshhunt I don't know much about google app engine - if you've got another extension loaded that is also going to be loading a jpg library, try disabling that...probably won't do anything but maybe worth a try.
 
Fatal error: Uncaught HashCollisionError: Too many collisions in array in /Users/Bob/php-src-X/s:30
Stack trace:
#0 [internal function]: SplObjectStorage->unserialize('x:i:100000;O:8:...')
#1 /Users/Bob/php-src-X/s(30): unserialize('C:16:"NewObject...')
#2 {main}

Next UnexpectedValueException: Error at offset 26957 of 2888909 bytes in /Users/Bob/php-src-X/s:30
Stack trace:
#0 [internal function]: SplObjectStorage->unserialize('x:i:100000;O:8:...')
#1 /Users/Bob/php-src-X/s(30): unserialize('C:16:"NewObject...')
^ @NikiC Is this fine or shall I work out to directly throw the HashColiisionError?
 
I'm not 100% sure how it works but Imagick is the only extension I have "enabled" in my test. GAE controls all the extensions so you can't add/remove them.
 
@bwoebi I think it's fine
 
@NikiC On a related note, why is the HashCollisionError first in the message?
It reads like I did not catch the HashCollisionError in the last instance
while the UnexpectedValueException one was the one I should catch
I.e. "Uncaught HashCollisionError" = "You should have caught the HashCollisionError"
I've spent like one minute finding a typo in "} catch (HashCollisionError $e) {" until noticing it's actually not what's being thrown…
 
10:25 PM
That moment when you try to be a singleton but you have an evil twin 3v4l.org/glRkc
 
@Wes I'm having trouble getting something to shrink beyond a certain points; any ideas?
It has flex: 3 1 0 and the other item has flex: 1 1 0
 
Wes
can you set up a jsfiddle?
anyway, you almost never want flex-basis to be set to other than "auto", eg flex: 1 1 auto, flex: 3 1 auto;
 
@Wes No; my piddling results in properly shrinking stuff :D
 
Wes
that's how you win at css :D
 
!!uptime
 
10:33 PM
@PeeHaa I have been running for 47 minutes and 9 seconds, since 2016-09-29 21:46:26
 
Hmm.
Mostly things work.
But in the 800-900px range it doesn't shrink properly
 
AAAAAAH
PHP is whitespace sensitive
$foo = <<<BAR
BAR;
// syntax error if there's a whitespace behind the semicolon
 
lol
 
@bwoebi or in front of BAR;
 
so, @Shafizadeh, how was the interview ?
 
10:41 PM
@tereško (thx God) it went perfect :-)
 
@PaulCrovella in front is somewhat understandable, as it's a requirement to have BAR; immediately after a newline
but trailing…
ugh.
 
:/
 
they told me you have accepted in the first step of interview .. now they want to test me by a practical exam
that practical exam is day after tomorrow
 
what were they asking in the interview?
 
@bwoebi that's like saying it's understandable as it's a requirement to have BAR; on it's own line without trailing space
 
10:45 PM
@PaulCrovella It's understandable as everything up to \nBAR is part of the string
@NikiC updated the PR
 
@bwoebi It's understandable as everything up to \nBAR;\n is part of the string
 
@PaulCrovella except that it isn't
 
Wes
@LeviMorrison toptip, except one very very single use case you hardly would hit anyway, "align-items" is completely useless and redundant with "align-self". there, i just made you flexbox a property simpler :P
 
i.e. \nBAR\n."foo"; is just as valid @PaulCrovella
 
they have asked three kind of questions:
1. my personal information (Name, Age, University degree and etc)
2. my ethics (being fast at work, being punctual) and having teamwork spirit (plus my my ideas and policy about the future of a website)
3. My PHP and MySQL skills
 
10:47 PM
There's a weird rule for just allowing semicolons on same line @PaulCrovella
 
@Shafizadeh I would take anyone with working knowledge of git over a person with "teamwork spirit"
what were they asking about the skills?
 
@bwoebi ah, right. still doesn't excuse the leading whitespace issue, imo.
 
@tereško they wanted to see some of my work samples .. I Showed them
 
btw, where do you keep your code?
on bitbucket?
 
On my personal laptop
@tereško you know why they've chosen me between 6 other people?
 
10:51 PM
why?
 
Because I constantly talk about google, stackoverflow, facebook .. they told me, that's exactly what we need, a person with big thinking
 
heh
 
I'm not sure "big thinking" is what I meant
 
sounds like something that marketing department comes up with
but I am kinda serious about that bitbucket thing
 
what's bitbucket? Is that something like github?
@tereško ah , lemme check
 
10:54 PM
it lets you have 5 free private git repositories
(private ones are not visible to others)
 
working with it is hard?
 
same as with github
 
so why not github? What's the benefit of it than github ?
 
on github 1 private repository cost $5/mo
it's really cool if everything you make is opensource
 
oh .. I see
 
10:56 PM
@tereško you get unlimited free private repos, the pricing is for the size of the group (free tier is 5 users who have access to the private repos)
 
oh
the limit was 5 users in a team (for private repositories)
my mistake
bottom line is this: learn git
and use bitbucket for "secret code" and github for "opensource code"
 
now I guess I have to learn about git and be ready for the next practical exam
How many time should I spend to learn git @tereško ?
@tereško ok I will learn it .. how many time do I need?
 
@Shafizadeh read this git-scm.com/book/en/v2
 
to get the basics, you will probably need a day or two
right now focus on your practical exam
 
shit .. there isn't any Persian source of it :-((
@tereško I guess I need to know about git for being good at that practical exam .. because they says we work all together ... I think it means I need to know git (or at least something similar)
 
11:01 PM
!!meme one does not simply learn git
 
@Shafizadeh you dont need it for the exam
unless it was specified in the job position advertisment
 
well no, they didn't mentioned it by now
but I guess knowing that can be a "plus" for me :-)
 
though, I would recommend you ask them what "version control system" they are using, because you will need to learn it
 
I will start learning right know
@tereško what do you mean "version control system"? Do you mean framework?
 
dont you need to prepare for the practical exam?
 
11:04 PM
@tereško I'm ready for the practical exam :-) I can write any php code you want now
 
:P
version control systems are tools
 
Like what exactly? may you please give me an example?
 
the popular ones are: git, svn (or "subversion"), cvs and mercurial
 
@NikiC I feel like Dmitry only read that patch superficially :-(
 
@tereško ah
 
11:06 PM
@Shafizadeh read the link that @PaulCrovella gave you
the first chapter actually explains what version control is
 
reading
one more thing @tereško, I have just some problems in configuring a vps. Do you will they ask of it in the practical exam?
 
nope
 
I hope so
 
@Ekin cpt SteamWatch reporting for duty. apparently there was no mail, but it seems on sale right now!
 
@Shafizadeh at least 90% of developers I know are absolutely clueless at configuring a server
maybe even 95%
 
11:08 PM
i have a question about wordpress
 
@FélixGagnon-Grenier \o/ awesome
thanks a lot
 
@tereško oh .. so I think knowing this gives a programmer lots of grandeur
I have to learn it too
 
God, why I'm starting too late :-(
 
most of people start late
... except @NikiC
that asshole became php core contributor when he was 17
:(
 
11:11 PM
yeah...
 
fuck @NikiC
 
I'm not sure I understand why the static call works. Can anyone give me a hint? 3v4l.org/glRkc
 
@NikiC … I don't want to argue… I mean … setting flags for dangerous hashtables? All HashTables the user can ever interact with are dangerous… and a few more. … The ops are potentially dangerous, not the hts … hash_update_exception is dtor'ing the value => no leaks… ; UGH. I feel like he doesn't have understand anything :-(
 
@tereško wow .. good for him
 
dat @bwoebi is not half bad either
 
11:13 PM
Hi guys, I have a question. I don't know anything about regex, so, how do I change my /?page=2 to /2/ ? Thanks
 
@tereško yeah… I was 17 too when I started...
 
I know I have to use my htaccess, but I don't which should be the regex
 
@PaulCrovella thx for the link
 
@pmmaga because EvilTwin has access to the constructor defined in almostSingleton
 
@PaulCrovella yup, but why only the static method?
 
11:16 PM
I'm not sure what you mean
 
@tereško each time I think back, it feels for me like I'm involved for 4-5 or more years … while it's really only like 3 years…
 
@nanilab don't parse URL in .htaccess
instead use something like this in the htaccess file
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
and do the URL parsing in the PHP side
 
thanks!
 
@PaulCrovella the static call can call the constructor, however the normal call throws a fatal
 
@nanilab do var_dump($_SERVER) in the index file and you will see what you have to work with. Most likely $_SERVER['REQUEST_URI']
 
11:17 PM
@pmmaga it's not the $et->getGoodTwin(); throwing the fatal, it's your $et = new EvilTwin();
 
ah! thanks!
 
@tereško by the way, I will buy a vps for my website next month, do you help me to configure it? Like what we did for FreeBSD
 
@tereško thank you
 
@Shafizadeh I can try to
 
thx
 
11:19 PM
@tereško but compare that to @Andrea … she was even younger than I or Nikita were when we started when she removed the GUIDs!
 
at least I will be able to tell you what you have to google for
@bwoebi ok ... so to sum it all up
 
@tereško yes this is not bad .. but supporting like last time is perfect :-)
 
@bwoebi, @NikiC and @Andrea are all assholes - you make me feel old
 
exactly <3
@tereško You're not senile yet, thus shut up :-P
 
.. there is that
 
11:23 PM
I would have gone for the "So PHP is broken repaired by teenagers? [SIC]" sum up ;)
 
@FélixGagnon-Grenier heh, we're all in our twenties now!
 
Wes
aaaaand jsfiddle crashed. lost everything. can't even copy text to clipboard
what a bad idea writing code there
 
@bwoebi yeah the setting flags thing doesn't make sense to me, it doesn't really solve anything
 
@NikiC I'm off for the night; I hope I have missed no issues in the patch.
@NikiC yeah, the flags are on _zend_hash_add_or_update_i …
@NikiC May you reply?
 
11:38 PM
bah, looks like google randomly picks one of the three languages I speak for each mail
 
I'm happy when google thinks I speak english.
 
11:51 PM
heh, a friend is improvising on fb live
first time I'm happy that thing exists
 

« first day (2175 days earlier)      last day (2764 days later) »