« first day (2613 days earlier)      last day (2328 days later) » 

3:17 PM
sup brotards
 
homework :'(
 
@FélixGagnon-Grenier nuffin. I'ma go home now!
 
!!should @Gordon go home or do some moar work?
 
@‌Gordon should go home.
 
3:22 PM
@Jeeves thanks
 
no, baka-@Jeeves, you were supposed to say the latter
 
Morning.
 
@Gordon You're welcome!
 
3:22 PM
\o
 
$ php -r 'class Foo { const A = [self::B]; const B = [self::A]; } var_dump(Foo::A);'
PHP Fatal error:  Uncaught Error: Cannot declare self-referencing constant 'self::A' in Command line code:1
Stack trace:
#0 {main}
  thrown in Command line code on line 1
:(
 
well, what did you expect? :P
 
I was hoping it might work because lazy evaluation…
 
I thought about another implementation strategy for parameter type contravariance and return type covariance whilst in the shower this morning.
There is a case I need to check, though.
 
Wes
generics or regular types?
 
3:31 PM
I think sub-types will get checked for correctness before the main class will o.O
Regular types.
 
Wes
oh that would be amazing to have
especially because php 7 broke phpstorm -__-
class A{ function bar(): A{} }
class B extends A{
    /** @return B */ // <- ignored now -__-
    function bar(): A{}
}
if you remove the type declarations it does work tho
class A{
    /** @return A */
    function bar(){}
}
class B extends A{
    /** @return B */
    function bar(){}
}
 
Do you mean it doesn't work for autocompletion?
 
Wes
yeah @return B is totally obfuscated by : A
 
@Wes In general it makes sense to trust code over comments, though.
 
Wes
it should compute A|B at least
 
3:38 PM
 
Wes
aka B, since B extends A
@mickadoo version?
 
2017.3
 
Wes
well good to hear, i have 2017.1. upgrading is scary :B
 
They made it a lot easier recently, with the click-to-update system instead of downloading a whole new tar
 
@mickadoo Not on Linux. Tar every time.
 
3:42 PM
Really, I got click to update for the most recent ones
Maybe they were just patch updates
 
I didn't :/
 
going from 2017.x to the next one requires redownload, 2017.x.x to the next one is from inside the ide, in my experience
 
> If you skip or ignore a patch, you will lose the ability to apply the subsequent patches. As a result, when a new PhpStorm version is released, you will see a dialog box prompting you to download and install it:
 
Guess I don't update enough?
 
Wes
@mickadoo can you try this please youtrack.jetbrains.com/issue/WI-39168
they changed the date again lol
12.12.2017 approximately between 09.00 and 18.00
notice "approximately between" #protrolling
 
3:51 PM
@wes I get the same result documented on that page
 
Wes
also return type does not match?
 
yep, the return type in the interface is ignored
 
Wes
nice, thanks
 
\o/
have you watched Sherlock Holmes, the series @tereško?
 
3:54 PM
which one?
 
there are more than one? the one whose fourth season was just out
oh, the one on Netflix
 
@Wes not sure, but is your @inheritDoc actually doing anything? interface A which it implements has no doc
 
I have seen the first two seasons, I think
it was ok, but I lost interest between the seasons
 
Wes
@pmmaga back in the day inheritdoc served a purpose, now not anymore i think, means that adding it or removing it doesn't change anything (afaik)
 
@pmmaga isn't it that it means "I haven't forgotten to document this, it just is the same as the parent".
 
Wes
3:57 PM
also that ^
that's why i use it
 
ahh ok ok :)
 
just today I learned that you can press - in JIRA.. yay
 
Foreach(users as user){

echo $user["name"]." HELLO";

}
 
!!sayf Parse error: syntax error, unexpected ')', expecting '[' in eww.php on line 1 %s / @M0ns1f
 
Parse error: syntax error, unexpected ')', expecting '[' in eww.php on line 1 @M0ns1f
 
4:11 PM
duh that's it. I'm bored of the office. /me finds home
 
\o
 
ugh... I like, just had my first coffee, am slowly starting to get productive, and people are already home? damn you, timezones
 
lol
I just got home about an hour ago, from work.
 
I have to work 10 hours for the next 3 days.I just got here. :p
But it's worth it for 12 consecutive days off son!
 
R11 Posture check.
 
4:21 PM
Don't worry @FélixGagnon-Grenier I got another 5 hours
 
that's my boy :)
 
My posture is actually okay for once.
 
Does he mean literal physical posture?
 
Later on is the R11 posterior check.
 
4:22 PM
:P
 
:P
 
it's interesting that we learn a lot of stuff in school, but things like breathing and standing (or being sit) are completely ignored in any and all levels of education, except those that have to do with proper posture / physical prowess.
 
Someone make a digital version. I'll take a 10% managers fee.
 
@kelunik Eeeeek sooory :P Cloning now
 
@Fabor there's assuredly an npm package for that. see you in 3 days
 
4:30 PM
@PeeHaa You quit yet?
@FélixGagnon-Grenier grumbles Got enough npm issues, well not npm but ghost/knex
 
@Fabor I wish you could see me now
I have a smoke in my mouth and just about to light it
 
@PeeHaa Your poor clothes/walls and much more.
 
yolo
@Fabor That's what a washingmachine / paint is for
 
Can't paint your lungs.
 
I can
 
4:32 PM
well, technically
 
I am actually doing that now
 
heh
 
:p
 
@PeeHaa are you dressed, apart from that cig?
 
How much is a pack anyway, and how quickly do you get through a pack?
 
4:33 PM
@FélixGagnon-Grenier I am :)
 
@Fabor you over-estimate your own dedication
 
@PeeHaa s'alright, all that paintstripper you drink surely solves that problem :P
 
@Fabor back in NL it's like 6.20
Not exactly sure how much it is here tbh
And a pack a day +/-
 
Where's here?
 
TR
 
4:34 PM
Ooh, kebab yet?
 
I actually did
Like a huuuuge plate of it
 
How was it?
So like nearly 2000 a year on cigarettes?
 
@Fabor Goooood
 
Better than NL?
 
... when did @Fabor become such a adult?
 
4:35 PM
@Fabor Never calculated. Monies has to roll though
@Fabor It was
But
 
@PeeHaa better not to calculate it. that'd make you stop for a few weeks
 
The best food I had here was at some steakhouse thing
Holy shit
meat everywhere
 
then, addiction would kick in, you'd start over again, and just be sad because now you know how much monies you are lighting on fire
 
@FélixGagnon-Grenier Meh. I would just spend it on other things
 
Yeah like rent
 
4:37 PM
.\vendor\bin\phpunit
PHPUnit 6.5.4 by Sebastian Bergmann and contributors.

Error:         No code coverage driver is available

...SSSSSSSSSSSSSSSSSSS............SSSSSSSSSS..................... 65 / 93 ( 69%)
.SSSSSSSSS.........SSSSSSSSS                                      93 / 93 (100%)

Time: 24.89 seconds, Memory: 4.00MB

OK, but incomplete, skipped, or risky tests!
Tests: 621, Assertions: 79, Skipped: 47.
@kelunik ^
 
2k you could donate to charity FWIW :P
 
Fuck charity
:-)
I would just spend it on drinks and food probably :D
 
Or invest it in something.
 
ooooh btw @Fabor portal coop is soo much fun
 
Yeah, really good right?
 
4:39 PM
it is
 
The single player is funny too.
But you have to play 1 first.
 
We got totally stuck at the tutorial though for like 30 mins
 
yes... but coop is incredible
 
Be honest @PeeHaa, which one of you solves more? :P
 
There was a glitch where both my door and Ekin's door should have opened, but it only opened hers
 
4:40 PM
the narrator robot is... so much fun
 
@Fabor glados keeps telling us orange is the best
 
@FélixGagnon-Grenier Stephen Merchant
 
:P
 
!!? Stephen Merchant
 
Search for "Stephen Merchant -site:w3schools.com" (https://www.google.com/search?q=Stephen+Merchant+-site%3Aw3schools.com&lr=lang_en)
• Stephen Merchant - Wikipedia - Stephen James Merchant (born 24 November 1974) is an English writer, director, radio presenter, com… (https://en.wikipedia.org/wiki/Stephen_Merchant)
• Stephen Merchant - IMDb - Stephen Merchant, Writer: The Office. Stephen Merchant was born on November 24, 1974 in Bristol, En… (http://www.imdb.com/name/nm0580351/)
• Stephen Merchant (@‌StephenMerchant) | Twitter - 1635 tweets • 215 photos/videos • 614K followers. "Final days
 
4:41 PM
I will let you think about which ones orange is
It's me
 
Wes
@LeviMorrison youtrack.jetbrains.com/issue/WI-39168 in case you want to add something
 
He is in the same clique as Ricky Gervaise, Karl Pilington etc.
 
Totally me
:P
 
@PeeHaa GLaDos isn't to be trusted though
 
Wes
4:41 PM
i think i should explain how variance for union works
 
@Fabor Totally trustworthy
Really
 
when I played, glados would say my pal was the best, even though I clearly solved all the puzzles, just to make me angry
totally worked. totally legit™
 
Must be a bug in your version
 
Yeah I totally carried my partner through 2
 
Mine is honest
 
4:42 PM
:P
 
@PeeHaa I'd really like to know why it works for you and me and why it doesn't work for @Wes and on AppVeyor.
 
@kelunik You have a appveyor linky of the fail?
Or ping @Wes
@Wes
 
Wes
@PeeHaa try running it several times
 
@Fabor LOL, I only just noticed that even though it's written 2017, the year is empty, even though it should be almost full.
 
@Wes Does the binary matter? phpdbg v php?
 
4:43 PM
it really drives the joke home
 
heh
 
Wes
it worked the first time. then started failing. also we tried with everything, php, phpdbg
 
kk running it again
What was the error?
 
@PeeHaa How much longer you there for?
 
@Fabor Start of jan
 
ty
 
Wes
PHP Warning: file_get_contents(): SSL: The operation completed successfully.
 
Ah nice long time then. Weather?
 
Wes
:shrug:
 
good morning
 
4:45 PM
@Fabor okish. Had some rain, but that's fiine in the weekend. Today was 17 and dry
\o/
 
@PeeHaa During your personal downtime then, complete Portal 1, it doesn't take too long tbh.
 
@Fabor Been there done that
 
You should see the speedrunners, jeebus.
 
@Orangepill o/
 
ftr, dark souls speed runs are scary
 
4:46 PM
What php version are you on @Wes?
 
Portal 1 WR - 7m 54s
 
Wes
7.2
 
k
Also lemme check whether I have openssl enabled
yep
hmmmm
 
Wes
does it work?
 
@Wes yep
Gonna try phpdbg
wait I think I am still on 7.1
Downloading 7.2 now
 
Wes
4:49 PM
can you check if you have thread safe php or not? i'm thread safe, my guess is that yours isn't @kelunik
 
well, it had been some time since the last gendered thread cluster fuck on meta meta.stackoverflow.com/questions/360482/…
 
> PHP 7.1.3 (cli) (built: Mar 14 2017 23:33:39) ( ZTS MSVC14 (Visual C++ 2015) x64 )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies
with Zend OPcache v7.1.3, Copyright (c) 1999-2017, by Zend Technologies
Gonna download 7.2 zts now
 
Wes
then no idea
 
> Essentially the opposite way around to how people normally edit things these days
People actually make edits like that?
@Wes You 32b or 64b?
 
Wes
64 obviously
 
4:52 PM
kk
 
You got a gaming capable laptop then @PeeHaa?
 
I have a 32bit build
 
@peehaa o/
 
@Fabor capableish
The laptop is fine to run games, but it has a heat problem
 
@Wes Yes, NTS.
 
5:01 PM
But I guess they all do
 
I jus wan play OW
 
7.2zts 64b works also fine for me
oooh wait
I think I have a fail now
7.2 zts 64b phpdbg second run
1) Amp\Parallel\Test\Context\ProcessTest::testInvalidScriptPath
Failed asserting that exception of type "Amp\Parallel\Context\ContextException" matches expected exception "\Amp\Parallel\Sync\PanicError". Message was: "The context stopped responding, potentially due to a fatal error or calling exit" at
D:\Web\amphp\parallel\lib\Sync\ChannelledStream.php:68
D:\Web\amphp\parallel\vendor\amphp\amp\lib\Coroutine.php:74
D:\Web\amphp\parallel\vendor\amphp\amp\lib\Internal\Placeholder.php:127
D:\Web\amphp\parallel\vendor\amphp\byte-stream\lib\ResourceInputStream.php:68
Not the one you were looking for though :P
 
Wes
try without phpdbg
 
@Wes Done that several times
Worked just fine
And now phpdbg works fine again too again
 
7.2 64b ZTS works also fine for me.
 
5:07 PM
@SaitamaSama BUT THE HOMEWERKS!!!!!
 
Wes
@PeeHaa thisis the same error i was getting tho
 
meh, I've completed em all :B
 
@Wes Oh
Nice
\o/
 
Wes
well one of the many
 
Is there a chance of some race condition in there @kelunik?.
 
5:08 PM
Yes, of course.
 
Cannot seem to reproduce it again now though :(
 
gud nite
 
phpdbg -qrr vendor/phpunit/phpunit/phpunit works fine, too, for me.
 
@mega6382 nite
おやすみ o/
 
@Wes Do you see any remaining processes as child processes of the shell after the failures in the task manager?
 
Wes
5:18 PM
@LeviMorrison can you add more info here please? youtrack.jetbrains.com/issue/WI-39168
@kelunik like, php.exe instanceS?
 
Yes
 
Wes
hold on
did i delete the folder? :B was it process or parallel?
 
parallel
 
Wes
@kelunik yes. i have infinite processwrappers and some php.exe
 
So a lot less process wrappers than php.exe's?
 
Wes
5:27 PM
i think they are open since yesterday :B
lemme terminate them all, and try again
@kelunik so, no errors but it's stuck at
Test 'Amp\Parallel\Test\Worker\ProcessPoolTest::testIsRunning' started
 
And which processes are alive?
 
Wes
and i have 8 processwrapper64 open, and 3 php.exe
 
@DaveRandom What could be the possible reason?
 
Wes
@kelunik ok now if i leave the processes open and rerun the test, i get the errors again
 
If you close them, it works fine?
 
Wes
5:37 PM
but if i terminate those process manually and run the test, it always hangs at testIsRunning
so if i have no process open, it hangs. if i don't close them i get the errors
 
^ @DaveRandom ideas?
 
Wes
5:54 PM
@kelunik please remind me why the object type declaration can't be used with variance?
 
@Wes Because future types might not be considered objects, such as enums.
 
Wes
that's why object is flawed :P another monstrosity we didn't need
thanks levi for the message
 
@bwoebi For the cases where we pass an out/inout parameter and also have a reference how do you feel about throwing an error?
In essence prohibit indexing into boxed types like references to arrays or objects?
 
6:09 PM
@LeviMorrison when do you want to throw that error? If the reference is only created after the inout parameter is passed, then we can't check this.
in this particular example it's created before, but consider global $arr; inside the function instead of use (&$arr)
 
@bwoebi Need to think through the details but you throw as early as you can detect it.
 
@LeviMorrison You can't really detect that at all without expensive tracking
After passing the inout param you hold the array (the hashtable, not the container variable) and the key. You do not know whether it's currently inside a reference or not.
unless, of course, you base the implementation on top of references, which resolves a whole lot of issues
But then the issue is also moot ;-)
 
@bwoebi I don't really know how global works; I always forget it is a thing.
 
@LeviMorrison it creates a reference to the $GLOBALS["varname"]
 
Does the variable have to be defined as a global?
 
6:23 PM
yes
but meh, we'll also have to prohibit objects then
 
@bwoebi Properties of objects, you mean?
 
6:39 PM
@LeviMorrison yes
 
Ultimately I think it's not worth having it too restrictive
Keep things simple without many exceptions when they don't work.
 
@bwoebi You mean you'd rather just use references when necessary?
 
@LeviMorrison under the hood, yes.
 
I was also thinking about variance today.
Typically out would mean you have a covaraiant parameter type.
inout would mean invariant.
in (implied) would mean contravariant.
I suppose people might want covariant parameters without reference stuff.
This is what I think @Wes was trying to convince me of a while ago but I just didn't understand his words.
 
Wes
6:47 PM
parameters or type parameters?
 
Either.
(out MyType $object) would mean a covariant type, so (out SubClassOfMyType $object) would be permitted when overriding it.
 
@mega6382 hey dude what's up
 
That does not mean we want reference like behavior.
 
Guys, I'm so close with a regex. I need between two values, PCRE. (?<=window.tokenName=[{]token:\")(.+?"). I want XXX out of window.tokenName={token:"XXX"}blahblahmoredata. HALP I just need to not capture that last " but match on it
 
Wes
not sure what's that :B but
interface Foo<
    $T1 is Foo+ // covariant, means it can be used only as return
    $T2 is Foo- // contravariant, can be used only as parameter type
    $T3 is Foo // invariant
>{
 
6:51 PM
Wes, you have the worst syntax ideas ever.
11
 
Wes
lol
you guys seem to focus only on that tho
interface ImmutableMap<out K, out C> where K isa Mixed, C isa Mixed
better?
 
Anyway, I get your point that you want to specify variance in type parameters.
What I'm talking about here with bwoebi is that out implies covariance and pass by reference in other languages.
 
Wes
sorry, can't compute. i didn't follow the discussion almost at all. why pass by reference?
the star of shame
 
Hey, it wasn't me!
 
Wes
:P
 
6:58 PM
hi
hw to sent whatsapp message from a website?
like while we place some order from a webite...
the whatsapp message should go to a particular mobile number
 
!!? hw to sent whatsapp message from a website?
 
Search for "hw to sent whatsapp message from a website? -site:w3schools.com" (https://www.google.com/search?q=hw+to+sent+whatsapp+message+from+a+website%3F+-site%3Aw3schools.com&lr=lang_en)
• How to send WhatsApp messages from a website | Wh… - I am assuming you didn't do any research before I write further. (Ignore if you know some points).… (https://www.quora.com/How-do-I-send-WhatsApp-messages-from-a-website)
• Is it possible to send a WhatsApp message from a… - Well, yes you can. You have 2 options for this: 1. Download and install blue stacks (its an android… (https://www.quora.com/Is-
3
 
we still like you @Wes :)
 
That's the royal "we"
 
7:09 PM
@James Nothing much, just trying to check, if email validation APIs are any good. What are you upto?
 
Wes
@LeviMorrison i've had an idea
$closure = (int $a, int $b) ══╗    ╔══> $a * b;
                              ╚════╝
assert($closure(5, 5) === 25);
 
I am developinga website so that users can place order from the website. once he/she places an order a whatsapp messages regarding the order will be sent to the site owner..
@jeeves
 
@astrosixer Because it loved you.
 
@astrosixer @Jeeves is a bot.
 
@mega6382 is a Girl.
 
7:12 PM
Damnit @mega6382 Why can't you let us enjoy this?
 
^
 
am asking whether this is possible?
@jeeves
 
@astrosixer Why don't you go ask Google?
 
He didn't get it so its OK.
 
@astrosixer Why should I tell you my name?
 
7:14 PM
/me puts popcorn in microwave
 
/me puts microwaves in popcorn wait
 
sorry guys ... i thought you guys will know.. thats why i asked here...
 
Jeeves might.
 
I bet someone in here knows what 2 x 4 is, but it's prudent to ask Google when you don't know something instead of bug the Gods.
 
heh
 
7:20 PM
@astrosixer Jeeves is just playing with you, he is really smart, if you ask nicely he will help you.
 
@jeeves I know you 're pretty smart ...
 
@astrosixer I did not.
 
You're tearing me apart Jeeves!
 
okay you were not playing with me then
actually i have a bloody project ....
 
@Fabor I know right? what a joker...
@Jeeves you should be careful
 
7:26 PM
@FélixGagnon-Grenier OKay I will, I won't say too much.
 
@fabor what's it tearing apart
?
 
@astrosixer Your question is easily answered by google.
 
okay, what's your point there?
 
@astrosixer Are you trolling us or something?
 
@mega6382 never
actually I should be asking this...
 
7:34 PM
@mega6382 Has that question ever been answered with a negative?
 
@astrosixer So if you can google and find your answer why don't you?
 
Because he wants us to implement it for him too.
@astrosixer Here you go
 
nite all
 
nite
@Allenph lol
 
7:37 PM
@Allenph not actually
any ideas will do..
am new in php
anyway thanks for your help
 
I don't understand why people do that. It seems like it would take more effort to find this room to find their answer.
 
Atleast @Jeeves played his role well.
 
@mega6382 SO what are you saying?
 
@Jeeves You know what I am saying.
 
@mega6382 No I don't.
 
7:44 PM
@Jeeves Than you are just dumb.
 
@mega6382 Same to you.
 
Fun fact: Computer programmers cease to exist when you are not looking.
 
7:57 PM
hmmm... is a timeout supposed to leave a log somewhere?
 
something old (1998 ... some of you were not born then)
 
it's amongst my personal top 5 soad songs
 

« first day (2613 days earlier)      last day (2328 days later) »