« first day (2204 days earlier)      last day (2748 days later) » 

5:00 PM
What PHP version are you running?
oh right 7 ?
 
PHP 5.6.27 (cli) (built: Oct 14 2016 10:23:05)
 
!!? OOM php
 
Search for "OOM php" (https://www.google.com/search?q=OOM+php&lr=lang_en)
• How to fix the OOM killer crashes under Linux | h… - 17 jun. 2010 - As result the OOM killer will be invoked and will kill that process: … [378878.35685… (https://www.hskupin.info/2010/06/17/how-to-fix-the-oom-killer-crashe-under-linux/)
• nginx - php-fpm invokes oom-killer - Server Fault - 27 dec. 2011 - I'm seeing an issue where PHP-FPM works perfectly for a few days, and then decides t… (http://serverfault.com/questions/344525/php-fpm-invokes-oom-killer)
 
Hmm looks like OOM indeed means actual RAM
 
php is weird
3
it indeed is
 
Anonymous
5:05 PM
I still can't get over your display picture..
 
Anonymous
Creepy shit.
 
aww
 
I.... have no idea @IlyaChase
 
Anonymous
@Wes archer has out done you.. his is the most disturbing up to now
 
5:06 PM
Only thing left is making wild guesses that your memory is broken or just default to blaming opcache
But that's based on nothing :P
Does it always fail at exactly 30,75MB?
 
Anonymous
!!uptime
 
@JayIsTooCommon I have been running for 21 hours, 26 minutes and 2 seconds, since 2016-10-27 19:41:12
 
Anonymous
!!wotd
 
ensorcell: to bewitch.
 
// Example from our actual codebase (with names modified to make sense)
$groups_to_check = ['standard', 'part-time employee', 'full-time employee'];
$group_membership = []; // actually comes from an API call

Algorithm\any(($group) => isset($group_membership[$group]), $groups_to_check);
 
5:08 PM
@Jeeves Except when @bwoebi is running gdb :P
 
:P
 
// Currently:
Algorithm\any(function($group) use($group_membership) {
    return isset($group_membership[$group]);
}, $groups_to_check);

// Or:
Algorithm\any(
    function($group) use($group_membership) {
        return isset($group_membership[$group]);
    },
    $groups_to_check
);
This is definitely better:
Algorithm\any(($group) => isset($group_membership[$group]), $groups_to_check)
I could probably write it with array key diffs and stuff, but this was how it was written.
 
FWIW the person I would have asked @IlyaChase already seem to have answered it stackoverflow.com/a/8808698/508666
 
Hi Guys, i have this code
 
#idonteven
 
5:19 PM
i wanted to get the last array values inside Place index in the whole array
 
What's that json thing at the top?
 
that's the json that i decode in $user .
$count give me 2,
in above case
2ndly i wanted to loop over the array inside Place index, not the whole array.
in above code, i tried to access the last array of Place index, but it returns me empty.
 
Could you put it up on a gist? I cannot read that unformatted wall after drinking the entire afternoon
 
tnx
1 message moved to bin
Let me grab a beer. 1 sec
 
5:27 PM
the weekended
 
That looks like it ended already for you. Which is a scary thought
ok @mtaqi what is the expected output?
The last label+link combo? The links?
 
yes.
 
worse than the week ending is it feeling so wintery all of a sudden ...
@PeeHaa fix it
 
@mtaqi Which one? The first thing or the second thing?
:)
@JoeWatkins It is right? So early so dark outside
 
with lable cde
 
5:31 PM
@PeeHaa it's totally terrible ... I think we fix the clocks soon so will be darker earlier still
 
oh right. think that's this weekend even
 
@PeeHaa, initially, i wanted to loop over the whole array inside Place index,
 
!!docs end
 
[ end() ] Set the internal pointer of an array to its last element
 
$lastPlace = end($user['additional']['Place']);
var_dump($lastPlace);
 
5:33 PM
Or what if i wanted to loop over to print each label inside the Place array only.
 
I think ^ that is what you want
In that case you can just foreach over user['additional']['Place']
 
guys
is some one aws interested in my problem
it is actually went out of memory phusically ;D
memory leak in phpQuery
I should use phpQuery::unloadDocuments() in loops to free memory
 
You said you had 70% mem free?
 
@PeeHaa I got null at $lastPlace = end($user['additional']['Place']);
var_dump($lastPlace);
and also Null on this too foreach($user['additional']['Place'] as $groupName)
{
var_dump($groupName);
}
 
Yes I did said, I mistaken
Checked one more time and it was an issue
 
5:43 PM
Sorry I missed a level
 
guys, I have a weird question, from 1 to 10 how do you rate my english? ;D
 
evening everyones
 
@IlyaChase Maybe a 7. Mostly just simple grammatical mistakes
 
English
 
:D
 
5:47 PM
\o
 
@tereško hey o/
 
thanks ;P
 
I would go with 6
 
Good thing it's not 3 :))
 
you suck at using tenses .. ya know ... past, present, that type of shit
also acute lack of commas
 
5:49 PM
thanks for response
appriciate it
 
will work on this
 
\o @Madara long time no see
 
@Archer You're Archer now?
 
I am ...
:p
 
5:50 PM
I might have to use my trademark Display Name Tracker (patent pending)
 
lol :B
 
#user-4332216 .username:after { content: '(a.k.a. Saitama)'; }
 
Today when I was at the supermarket, the electronic cashier asked me how many bags I had used so it could at a charge for each one to my bill. I hadn't used any, but considered whether it would be right to say I had, given that I had gone my whole life without paying for carrier bags until recently ...
 
@MadaraUchiha wow!!! that ** is** noice...
 
5:52 PM
I have it for @Wes
 
@Machavity omg, the are exposing the methods used by evil russian hackers, who hacked DNC voter regs
 
From the time he was switching display names like socks :P
 
... probably @IlyaChase is one of those evil hackers
 
@tereško Yeah. Teh hax are yuuuge
 
Oct 24 at 10:02, by Wes
@Archer but you change avatars and nicks like socks, can't do it :B
 
5:53 PM
"This easily avoidable mistake continues to put our finances at risk."
I stopped reading after that
@Archer lol
@tereško Wasn't he 4chan?
 
@MadaraUchiha no, 4chan was the hacker that worked with GamerGate terrorists
 
I started watching Rick and Morty today \o/
 
@tereško Ah, right, right
Golden :D
 
:D
 
20 hours ago, by PeeHaa
"Hackers are crippling the websites of companies using the latest in Advanced SQL Injection techniques" https://t.co/pYiN491jT8
 
5:55 PM
@salathe \o/
 
@MadaraUchiha those people dont even understand how internet (and tides) work
 
@tereško You know? I could forgive mistaking 4chan for a person
 
Dickpics go in, dickpics come out. You can't explain that.
 
But the password app and the changing the S to a $, well
 
every gif is destined to gif bin...
s/gif bin/orphan's gif
 
5:59 PM
@MadaraUchiha Link to original CNN clip? Or is that a parody remake?
 
@kelunik sorry @kelunik I forgot to upvote the phpstorm thing you shared and now I forgot the link. I can haz link again please?
 
how do you define a constructor for a class in js, again?
 
@AwalGarg sadly, it is real
 
@Archer class Whatever { constructor() { whatever } }
 
6:01 PM
@MadaraUchiha got it... thanks!
 
The old fashioned way is
function Whatever() {
  // put stuff on this. for properties
}

Whatever.prototype.method = function() { /* method */ }

var we = new Whatever();
 
@Archer ES6? or older?
 
gonna use ES6 anyways...
 
Node 7 is out \o/
 
@tereško ^(2 step further)
 
6:02 PM
With 99% ES2015 support
 
sorry for the pings
 
.. you don't say
 
@Archer The general convention is ^ for one message up ^^ for 2, and so on
 
@MadaraUchiha TIL
:)
 
Like Git
 
6:04 PM
or ^2
 
@MadaraUchiha nice. They forgot to introduce Mr. Reddit and his vicious HackTheWorld app though.
 
@PeeHaa It's fixed already. \o/
 
@kelunik oh wow. \o/
 
those are the people who have no idea how any of the technology works, and when the see people who understand it, they see them as mentally deficient
which is kinda funny, because their lives figuratively and literally depend on said technologies
 
@tereško I am more intrigued about how they don't have anyone knowledgeable reviewing things they say? Or maybe someone does raise flags and they treat them as mentally deficient too?
 
6:15 PM
how do you access a const in a class like: class Foo { const BAR = [...]; quxMethod() { /* access BAR */} } ?
 
@AwalGarg Because reporting it quickly is more important than reporting it correctly.
 
@AwalGarg that guy there was the "technology analyst"
 
@Archer In JS?
 
yep
 
44
Q: Declaring static constants in ES6 classes?

JVerstryI want to implement constants in a class, because that's where it makes sense to locate them in the code. So far, I have been implementing the following workaround with static methods: class MyClass { static constant1() { return 33; } static constant2() { return 2; } // ... } I kn...

Remember that there still isn't a concept of a class in JavaScript
 
6:16 PM
that's....
 
It's still only syntactic sugar around prototypal inheritence
 
@MadaraUchiha @tereško lol fair enough
 
got it...
thanks !
 
You're welcome
 
@MadaraUchiha Not well supported yet either
 
6:17 PM
@Machavity Classes?
They're pretty well supported
 
meant the Class syntax. Not gonna be able to switch mainstream stuff for a while
 
@Machavity Sure you can
 
who the fuck thought that making real world Soylent was a good idea: latimes.com/business/technology/…
 
Even if it's not supported (and it is pretty well supported), you can use a compiler to lower the language level
Right, home made pizza time <3
bbl
 
\o
 
6:27 PM
What's the status of debugging jeeves/amp @bwoebi?
 
Hello World! :)
 
@JoeWatkins "PASS Test size/point [tests/001.phpt] " got it working on travis-ci :D
 
Ah ty
 
7:02 PM
◇/
 
\o
@Ekin How's life over there?
 
em, druuuunk, a bit floating
 
:P
 
That's not even Thé right answer
 
ok, a technical question
what the best scene team ATM for movies?
YIFY/YTS is dead .. so .. options
 
7:09 PM
No idea. I just open my mediacenter thing and click play on a random torrent :P
 
yeah, well, I have fallen out of loop in past few years
 
Anonymous
@tereško putlocker?
 
Hey @brzuchal - so.........do you have any strong feelings about 7.2 or 8 for the object RFC ?
 
Anonymous
Though that's streaming
 
@JayIsTooCommon not an option here
 
Anonymous
7:10 PM
Ah :/
 
@Danack I hope the voting will approve the idea.
 
I need to know it as well..
 
also, I hope I dont have to explain what "scene" is
 
If it does I my have wings to arrange more time for contributing another fwatures.
 
And here I thought @DaveRandom's commit messages were useless github.com/WhatCD/Gazelle/commits/master
 
7:13 PM
@brzuchal for which version? btw I'm going to move the RFC to the 'under discussion' status.
 
I think 7.2
I was thinking about switching it but am on mobile whole day without access to my yoga
So I would be glad if you would like to switch it. THX
@Danack do you know any other RFC's pending for discussion targeting next versions?
 
I always liked watching those RFC's, votings, rejectings. Watching how PHP is changing becames quite exciting last time. It may be weird but I am also weird.
 
@brzuchal there are probably others, but I can only think of my two wiki.php.net/rfc/consistent_callables (likely to pass) and gist.github.com/Danack/5ae0b1b1ce30a0d785dd (not as likely to pass).
@brzuchal I don't think I have strong feelings about whether the object typehint should target 7.2 or 8, but I can understand that some people could, particularly if it breaks their code. If you put the targeted version as a voting option, it would almost certainly be 8 that is chosen, but that also probably makes it more likely that the RFC is accepted.
/"everything is a tradeoff" ™
 
@kelunik HHVM is broken? What?
 
7:25 PM
@LeviMorrison Using sudo doesn't use the right PHP binary, but HHVM.
 
Didn't get why there's a unexpected yield at first.
 
It would mean community will have to wait for a cery long time for it ;(
@Danack I like your RFC'S I would vote for them :)
 
Do I need to add "limit 1" for a query that has where id = ".$idnumber."
 
@canertaşdemir No. ID should be your primary key and thus be unique.
 
7:33 PM
Not if id is unique and primary key
 
CREATE TABLE nerden(
id INT NOT NULL AUTO_INCREMENT,
PRIMARY KEY(id),
do I need to click "Unique" ?
 
No. It's already a unique key
 
how can I understand that a row is alreasy a unique key ?
 
PRIMARY KEY(id)
 
morning
 
7:39 PM
Primary equals with unique
 
@brzuchal they aren't equal ... Primary has some more properties. But yes, a Primary column is also unique.
 
s/column/key
 
U right. I've generalized
 
Thanks guys
 
primary key can be defined using multiple columns
 
7:44 PM
@tereško do you mean multiple columns (in the same table) can primary? if yes, then you are wrong
 
Also, night all o/
 
@Shafizadeh no, a primary key can be defined using multiple columns: PRIMARY KEY(userId, groupID)
 
Ah ... you mean composite indexes .. then yeah, that's correct
 
yes, those
 
@tereško great avatar btw :-)
 
7:49 PM
blame @Wes
it's for Halloween
 
why blame ..! that's nice :-)
also when was Halloween?
 
it will be, in 3 days
it's 28th October now, Halloween is on 31th October
 
I see
 
(I think it's 29th in your time zone .. and, yes, I know you are using a different calendar)
 
You know, honestly the idea of editing your avatar was in my mind .. I wanted do something like what Wes did :-) (since I love to work on the face of people by photoshop)
 
8:12 PM
it's an ancient photo anyway (I think it's almost 8 years old now) - I probably should update it
 
8:26 PM
yo
 
8:49 PM
@NikiC Well, in particular this case … It's the most common one. Though sometimes (per example) you just set IAP to have a later function call able to just current() and pick up where the last one left. … I've seen people doing unnecessary things like $do = false; foreach ($array as $k => $v) { if ($do = $do || $k == $lastKey) { /* do */ } } and similar horrible O(n) stories…
 
@bwoebi If you need an array iterator, use ArrayIterator.
 
@NikiC arrayIterator is not mutable
 
@bwoebi it isn't?
pretty sure it is mutable
 
Oh
hmm
I must admit I've never used it ;-D
 
Me neither (well, outside of the obvious usage of getting an iterator ^^). But then again I never used the IAP functions
 
8:53 PM
Yeah, in that case IAP is unnecessary :-D
ArrayIterator solves indeed everything I'd need IAP for
@NikiC There's one thing I do really often on arrays, that's removing and reading the first element … but not with array_splice() as this reindexes…
This should cover most usages of key/reset/end/current for me
 
you mean array_shift?
we totally need array_shift without reindexing
 
@NikiC same… array_shift is just a splice on a single element at start
 
then you could use arrays as (more or less) efficient queue's without jumping through hoops
 
@NikiC exactly
 
array_... shift_no_reindex?
 
8:58 PM
the way arrays work it would effectively implement a ringbuffer for the queue, right?
because of the mask wraparound
 
@NikiC where's a wraparound there?
 
@LeviMorrison array_shift($array, false) :P
 
@NikiC ugh :-P (but it'd be typical PHP ^^)
 
@bwoebi tbh I'd prefer that over extra function
 
8:59 PM
array_queue_pop?
 
having array_shift_no_reindex would be so unusual
 
@NikiC I don't disagree actually
 
@bwoebi nevermind, I was confused
 
@NikiC but a ring buffer woud be awesome ^^
 
drunk people, think they are funny
 
@tereško well… it was a bit amusing and facepalm-worthy at the same time
 
I didn't see the "amusing" part
 
@tereško "It's so stupid I was amused a little"
 
doesnt work on me
the again, it would explain why I cant stand Adam Sandler movies
 
9:08 PM
@tereško Yeah, I haven't seen enough such shit to not be amused anymore
 
9:31 PM
I've got a new avatar LOL
 
I work at a community college, and we have a Halloween community event where the public can come to different departments and get candy. I'm in my office, and I watch two t-rexes run by...
 
10:13 PM
@PeeHaa curent status: tired, will do tomorrow
 
10:51 PM
PHP's new logo?
 
Quick question: the PCNTL extension is still UNIX-only, right? Meaning that the async signal handling of PHP 7.1 is not available on Windows, correct?
 
11:09 PM
seems so
github.com/php/php-src/tree/master/ext/pcntl atleast there is no config.w32
 

« first day (2204 days earlier)      last day (2748 days later) »