« first day (2233 days earlier)      last day (2940 days later) » 

Wes
Wes
00:02
i keep inverting $expected with $actual in tests. just because things aren't messed up enough -__-
@bwoebi question mark placement isn't arbitrary...
@NikiC I've read Levi actually complaining on no-one complaining about it…
@NikiC That wasn't an argument back then though?
@bwoebi yes
00:10
Also, we don't want generics, I thought that were clear? :-D
Anyway, you may be right and I misremembering…
Wes
Wes
@bwoebi we?
@Wes We as in every PHP developer ever except one single person.
Wes
Wes
it's the other way around i think :B
@Wes Royal we
Wes
Wes
:B
til "royal we"
00:15
@Wes Stop joking, just ask Stas!
Wes
Wes
stas'll agree!
:B
i wish phpunit didn't mess with the output of the tests...
i knew i was an imbecile, but this is the ultimate proof
function newAlike($elements){
        return $this->new($elements = []);
    }
was supposed to be:
function newAlike($elements = []){
        return $this->new($elements);
    }
00:31
@Wes I was first like: "you mean == ?!"
Wes
Wes
nope, that strangely doesn't happen frequently :B
 
4 hours later…
04:11
Morning
@Linus morning
O/
too much silence today...
it's 5:23 at my place :)
it's dark aoutside and windy
nothing special
04:28
:) its 10 here and I accidentally took 3 hrs nap
04:39
I think morning is in Moscow, Turkey and Iraq right now
05:13
We also have morning here :p
05:36
hi does any one aware of HTTP2 protocol? in this how long the connection will be remained ? when it'll be closed ?
06:17
posted on November 26, 2016

New Cyanide and Happiness Comic

 
2 hours later…
08:10
o/
\o
08:26
Have a nice weekend!
Can you tell me why the result are different between PHP 5 and PHP 7?
http://phpio.net/s/1bpu
08:58
cuz you using array_filter? use array_map -> 3v4l.org/G6nUs
09:14
@Stricted But why PHP 5 still works fine?
maybe they removed that you can modify the value? would make sense, if you want modify the values use array_map not filter
seems like a bug to me that it works in php5
Don't modify parameters to callbacks for array_map, array_filter.
use foreach
function make_uppercase($word) {
    return strtoupper($word);
}
or do this
array_filter expects a boolean if I'm correct, not a transformation.
10:11
...
10:51
@ɹɐqʞɐzoɹǝɟ timing out connections is at the discretion of both endpoints. It's not specified in the protocol.
I.e. the TCP FIN frame or a GOAWAY settings frame will both indicate that the connection was closed, but they won't tell you that it is due to a timeout (except for the very specific case of SETTINGS_TIMEOUT [see RFC 7540])
11:11
a) check against null before dereferencing and b) this is the PHP room…
11:32
i get it's not a php room. do you mind showing me how sir ? @bwoebi
@zouza The [0]
it's still web related
Sir you are a genius Thank you
@bwoebi ^
12:12
@bwoebi thanks for your reply, does the browser sends this goaway packet after the data is loaded?
@ɹɐqʞɐzoɹǝɟ It may or may not.
Morgeing
there is a CANCEL error code, which is to be used then… but don't rely on that @ɹɐqʞɐzoɹǝɟ
@PeeHaa morning o/
Morning11
12:25
yo linus
ekn
still alive
Aye :-)
:P
I got the job \o/
Been quite busy cause of that
Thank you
12:31
@Ekin Gratz! \o/
Thanks! Btw the location is... all of them
So I will be traveling :-)
No need to pick one anymore... which is a relief.
Anyway I will be back later to test the reminder and hopefully push the latest stuff to the branch. Laters for now o/
@PeeHaa \o
Events which propagate through a chain which can be registered anywhere and be prevented propagation any time by the previous callback are a horrible invention…
12:57
!!dad
Why did the scarecrow win an award? Because he was outstanding in his field
@bwoebi why?
14:24
evening room
14:39
@littlepootis because it makes it hard to track down where issues come from, and behavior is order-dependent then…
14:52
@bwoebi Named callbacks help me track down issues, and behavior being order-dependent is.. kinda.. the point of that pattern.
@littlepootis Okay, you missed my point.
This issue I have is when the registering is delocalized
@JoeWatkins moinmoin
@littlepootis If needs it to be order dependent, you shall register all the handlers closely together
yes, you need to.
@JoeWatkins Just ordered two. :-)
Um, there's nothing you can do about that.
@JoeWatkins reminds me of hermes
@littlepootis Then you perhaps should try to avoid the pattern.
14:55
@bwoebi Do you want one of them?
@kelunik Good idea
@bwoebi Makes 24€ or so, 1,00 EUR = 1,026584159 USD currently. ^^
@kelunik Uh, election has had a much stronger effect than expected then…
5$ shipping is 3 to 5 days, dunno how long free shipping will take. ^^
@kelunik And yeah, 24€-26€ is fine
@kelunik I'm not in a hurry, could be nice to have tho
14:59
48,71 EUR = 50,00 USD. Sweden has 25% VAT. :o
hmpf. stars do not move quick enough in this place
we should have another winterbash
15:21
hey fellas select * from steps where pdf_link REGEXP '' , <= I want my regex to search for all values that don't end with numbers please
@PeeHaa each time I reread this, I lol very hard.
@zouza and what is your regex?
i dont know YET. i am trying to figure it out :/
I am pretty sure this is googlable
i did google it, but couldn't find quite the same requirements
something like "how to match values that don't with numbers"
15:23
i did find however something like ends with only letters which i guess could do it for me
also chances are you won't find exactly what you want. you will have to use your braqin and understand it :)
was just wondering if it was doable
it is assuredly doable. but you seem to expect to just copy and paste code
that's not what software development is about
yo i did ask for help not for a lecture :) . I will figure it out ,, thank you
yo I am a free person, what you ask for totally have no right to shape what people will answer
15:28
yo sure. Apologies :)
none needed ;)
@zouza regex101.com/r/DsZh4D/1 should get you started, if you still need it
@bwoebi @DaveRandom I'm still not sure whether SHA-1 should only be distrusted on PHP 7.2. It can kind of classified as a security bug.
@kelunik I'd honestly ask other people than us for opinion too, like Anthony or Scott
Also moinmoin @rdlowrey
@bwoebi Already pinged Scott some minutes ago.
good
15:37
I think I'll just announce it on list now.
fine
Wes
Wes
Fidel Castro is dead!
so presidential
15:53
@Wes This exclamative marker leaves a lot of room for interpretation :-D
@Wes Let's see. They're recounting votes. :P
@kelunik RFC looks good
@Wes that shit-face makes my blood boil. I'm counting the days till Cuba becomes a McDonalds.
Castro wasn't a good man, but at least he prevented that
@Ocramius Well, the other Castro isn't exactly dumb either.
But after that … no idea what will happen.
Yah, we'll see tho
Wes
Wes
castro wasn't too bad of a dictator
unlike other dictators afaik there were no mass killings, i think
and cuba was functioning fine, but then urss collapsed
16:05
@Wes not mass but still.
Wes
Wes
well, in combats, maybe?
#randomFindingsInWardrobe … an iPod my sister lost 5 years ago…
I've heard from relatively first-hand experience that living in cuba is pretty much really relax if you don't speak about politics
@bwoebi nice!
Wes
Wes
@bwoebi battery will be dead
@Wes Probably, yes
Wes
Wes
16:11
let me know if charges and keeps the charge :B curious to know..
yo wes, busy ?
Wes
Wes
@FélixGagnon-Grenier maybe now. i don't think it was like that say like 20/30 years ago
WOW ... I'm downloading with a very high speed (2mb/sec) right now .. what's happening? :-) Thanks God anyway ;-)
I doubt he has much to do with it ... too busy giving cancer to babies ...
wat^
lol Joe's name is Watkins.
16:23
@FélixGagnon-Grenier I don't get the joke…
oh that's why nobody finds this funny. I just realized, after saying "wat?", that the name starts with wat.
it's funny. isn't it?
@bwoebi I didn't know it even supposed to be a joke :-|
foreveralone.jpg
@FélixGagnon-Grenier ah :-D
16:24
@FélixGagnon-Grenier ah :-)
... ok retroactively I'll admit my sentence by itself is not even remotely close to being funny, or even puny.
@FélixGagnon-Grenier :P
@JoeWatkins holy shet. wow.
how rudefully truthy
I... totally never really considered this like that, but indeed, if someone would really create a world for souls to go learn about life before going back to hell or heaven depending on what they do there... what a maniac indeed
@PeeHaa heh. to this day, I vividly remember being frozen in front of my screen, wondering if nsa was live broadcasting myself to you
hehehehe
Wes
Wes
16:37
@JayIsTooCommon anything i'm downloading has broken audio
my guess is that is was broken on amazon as well :|
do you remember when amazon was basically a bankrupt company? imagine if you bought shares at that time
America: a tale of 2 screen caps https://t.co/WUiNztUKnZ
17:03
@Wes I need a background/bootsplash image ... fancy doing that, maybe ?
Wes
Wes
sure, for the blog?
no, for an rpi image I'm gonna distribute
I was thinking just a black and white elephants head, like that amp logo (but friendly)
Anyone have used amember ?
amember.com
unless you have a better idea, which you probably do ...
amember.com
17:06
@Wes I'm afk a while, I'm in no rush whatever ... and thanks muchly ...
Wes
Wes
can you make me a screenshot or something? so that i know the dimensions and how it will be used?
No i am not bot
i am mobile app developer and want help for one plugin
17:35
@tereško found the pc elitist
TBH, I am currently scrolling through my wishlist on steam, deciding what should I buy
I might pick up "Dungeon of the Endless"
17:57
@Wes there's nothing in the screenshot yet, just a black screen :)
1824x984 is size ...
Wes
Wes
is it a boot screen or something :B need more information..
What's the meaning of "good game"? does it mean either "I hope you have a good game in future" or "the game we played was good" ?
Wes
Wes
the latter @Shafizadeh
Wes
Wes
@kelunik what was the problem with actual full variance again?
18:05
@Wes yeah, boot splash image, and then will become background image, momentarily before an application takes the whole screen
@Wes We can't verify it on compile time, as a type declaration shouldn't invoke autoloading.
Wes
Wes
hum, does that mean it won't happen?
and, shouldn't invoke autoloading: why not?
@Wes Not sure to be honest. /cc @LeviMorrison
Wes
Wes
18:32
something circular for sure @kelunik
@Wes Nowhere in our language to we require autoloading for a feature to work.
This was the reason covariant return types were removed from the return type RFC.
Wes
Wes
not require, just invoke the autoloader if needed?
Now, with that said, the RFC probably would have passed but as implementors we were not comfortable with it.
@Wes No. There are cases where it must be invoked.
There are cases where it is impossible to write it any other way.
Wes
Wes
what if code is opcached?
It doesn't matter.
Wes
Wes
18:40
when i do new Foo() and Foo.php is not loaded and Foo extends Baz, doesn't php require Baz.php?
how is that different?
You can just include Baz.php yourself to get around that.
I've written an example a million times for this, so here goes;
Wes
Wes
i remember you did but i forgot :B
class A {
    function method(): X;
}

class B extends A {
    function method(): Y;
}
At first it looks like you can just include X and Y first, right?
But consider a slightly adjusted case:
class A {
    function method(): B;
}

class B extends A {
    function method(): C;
}

class C extends B {}
There is no way to move B or C earlier such that it works
Wes
Wes
yeah you need to autoload all the things and only after that you can do the "compile time checks"
Now, this can be fixed.
You have to add an additional pass.
You register all the symbols and their signatures and relationships in one pass and then verify the semantics in a later pass.
Given the short time frame for return types RFC that was not doable.
It would need performance tests and other things to make sure it doesn't completely ruin performance, etc.
Wes
Wes
18:46
we should have that. i don't think it is so important for arguments, but variance on return types is a very common thing to have
but on the other hand, it's very rare compared to no variance
if it's something that can be implemented easily it would be nice to have it but in complete honestly it's not that important
it just feels annoying still having this incomplete type system, i guess
 
1 hour later…
20:20
Hello, I created a single page php script and I have a long running task there. I wanted to ajax that task by asking the same script for a result, but it doesn't return an answer while the long running task is working, how can I make it work?
<?php
<?php
if(*request for ajax response*) { return response }
else { * start the long running task * }
?>
html here with js (ajax calls to this same page)
You mean the request is stuck while the other script is running?
yep
Probably because of the session lock
I should add that the long running task uses sessions to indicate the progress, and the response for the
!!docs session_write
20:25
exactly
[ session_register() ] Register one or more global variables with the current session
so I use the sessions_close after each time I write to the session?
thanks!!!!
<?php
if(*request for ajax response*) { return response }
else {
    session_write_close();
    * start the long running task *
}
?>
it worked!
20:28
\o/
wait, but I pass the progress via sessions
now it's stuck in the initial thing I put in the session
stuck with*
oh you actually need the session
Can I suggest another approach?
yeah sure
I am reading about some
Move the long running task to a background worker instead
elaborate?
20:35
What does the process do?
unzips a big file
I put a "session" log function between zip_read calls
it takes about 15 seconds to unzip on my machine
I want it to work on old php versions too
I would let the OS unzip it I think. And maybe poll to check if it is finished
because i am not making this only for myself
I am not sure i'll have shell_exec in other machines
ah fair enough
yeah, I know it sucks
what would you recommend? I read that I can flush more scripts to the user with buffering or someting like that, use shared_memory or write to a file
they all seem pretty bad thou
20:38
not sure tbh. long running things and crappy hosts are going to be a pain one way or another i think
of the 3 possibilities what would you do?
Not reporting progress and just wait till everything is finished
haha lol
I was asked to do that shit :(
I hate this shit app
Asked by whom?
clients
20:43
I hate those people :P
you don't know how much my friend
thanks anyhow
:-)
I'll think about something
Yeah sorry I couldn't be more help. Maybe somebody wants to jump in once they read it
yeah, I'll stay for sometime
Wes
Wes
20:59
@JayIsTooCommon hammond? my trousers are falling down xD
My ears were burning. :)
21:44
@PeeHaa, I found my solution:
function update_progress($progress) {
session_start();
$_SESSION['ajax_progress'] = '"' . $progress . '"';
session_write_close();
}
I just can't use sessions other than that
so I won't send them twice
cya later guys
thanks for the help
22:00
@AaronHall You should get some cream for that, or maybe some creme, not sure
22:18
:)
@funerr nice
 
1 hour later…
Wes
Wes
23:44
knock knock
23:55
Who's there?
Jessie the interrupting cow.
MOO!
lol

« first day (2233 days earlier)      last day (2940 days later) »