« first day (2615 days earlier)      last day (2349 days later) » 
04:00 - 13:0013:00 - 00:00

1:00 PM
@mega6382 I do now
@Leigh listening to it now, seems pretty good
 
@Leigh toska seems pretty good tbh :O
 
@Tiffany You should listen to it, you will not understand it, but you'll know it is good.
 
@Tiffany It's 75% of the band Dorje, so if you want some similar but with vocals, check them :)
 
@Tiffany Here is a good Coke Studio song open.spotify.com/track/2d31GzVrdWILC8ilW2ftxS
 
@Tiffany Another metal instrumental one for you: open.spotify.com/track/4IKsUyPuc5VXRIohpDLhMy
I could listen to that on repeat a few times :D
If you like it check the whole album (again all instrumental)
 
1:05 PM
@tereško Looks awesome right, I just put a pre-order down (not full cost, just to be one of the first once it comes out). Can't wait to see benchmarks on that
 
@Leigh heard of Pelican or Russian Circles?
 
nerp
Apparently I have "liked" The Creeper by Pelican
 
.. anyways, having music being played just for the sake of background noise and not for the sake of joy and feeling that music contradicts my understanding of it
 
@Leigh spotify:track:2SlfCTz9Wj0NB34C2zUUBn
 
@AlmaDo I always have a head-nod going when I'm being productive
 
1:08 PM
Am I the only who is confused by @Jimbo having changed his name to @James? Whenever I see this James dude, I think it's some annoying foreign little people dude
 
@Gordon err, no, it confuses me too
@Leigh spotify:track:4MuPLFHhzOwgfNBOJtmMf8
 
@Gordon So, thats what you think about the rest of us..
:(
 
@Gordon I told him to change it back, he got all tearful
 
I like spotify:album:7HPE1HUjvo2AIbbVhJ59Tn for focus
 
@Tiffany Cheers, queued up, but for now... lunchen
 
1:11 PM
@mega6382 no. just about @James
 
@Gordon neat
 
@Tiffany So, did you try my suggestion?
 
Note that the artist is wrong. It's Drøn not D-Ron. I told Spotify already but they are apparently a slow bunch
 
@mega6382 there's too much variety in Coke Studio, I'm in a picky mood right now.
 
@Tiffany no, I also shared a link to specific track open.spotify.com/track/2d31GzVrdWILC8ilW2ftxS
 
1:14 PM
@mega6382 ah, missed that
 
> Display name may only be changed once every 30 days; you may change again on Jan 3 '18 at 13:50
asshats
 
@mega6382 vocals :/
otherwise I like it
mind you, I'm not against vocals normally, just right now, vocals are distracting.
 
np
@Tiffany So, what are you working on?
 
Is that real?
 
1:27 PM
or is it just fantasy?
 
Caught in a landslide
 
no escape from reality
 
Open your eyes
 
Wes
look up to the sky and see
 
Take and arrow to your knee
 
1:40 PM
@Wes What happened to your standing desk? Are you still using it?
 
Wes
@PeeHaa i had to check the lyrics
@mega6382 yeah. i am using it now :B
 
biology = hatred
 
@Wes So, have you noticed any improvements due to it or not?
I ask because for a couple of days by the end of the day my back has been killing me.
 
@Wes :P
 
Wes
i get tired easily so i have to sit often. it's like doing exercise
and it certainly helped
 
1:48 PM
Well, good, I think I will get 1 too.
 
Wes
you need to get original and do stretching while standing. if you stay immobile it's just going to hurt :B
 
boy, the PV of fate/sn heaven's feel looks so epic
can't wait for it
 
o/
 
1:51 PM
 
Wes
 
ahahahahahaha
ufotable (one of the best animation studio) did a f-ing great job tho: streamable.com/ac1kw
 
@Wes That's Gaki No Tsukai
Same guys as "Silent Library"
 
@Gordon she's half Welsh, so in scenarios where normal people would say 'kid', she's more likely to say 'boyo'.
 
so... anyone know of a way to fake error_get_last() without the usual namespace hacks?
 
2:05 PM
o/
 
@Ocramius and presumably not with runkit?
 
No, but I just marked the test as @codeCoverageIgnore and stashed it away
hate it, but eh
 
Wes
@Ocramius trigger_error?
 
doesn't work with fatal-alike stuff
 
Wes
how so?can you put it in a 3v4l?
 
2:08 PM
 
Wes
can't you use E_USER_ERROR ?
 
I need to test against a range of captured errors
(writing an error handler)
 
Afternoon 11
 
Wes
no idea @Ocramius i doubt there is a way. maybe you could use uopz
 
Wes
2:16 PM
lol
@Fabor we have a tv show that is specific about japaneses doing crazy stuff
 
@Tiffany I would probably go with some light post-rock. Most likely "God is an Astronaut"
@Wes why would people subject themselves to shit like that? Is "seeing yourself on tv" actually valuable to a normal person?
 
Wes
japanese are really into these things, regardless of the publicity :B
 
that makes no fucking sense
 
2:33 PM
Eh, I like it. Just having fun.
 
2:44 PM
anyone know off the top of their head if assertEquals in PHPUnit will be true for arrays that have the same keys and values, but different order?
For the record....it appears to.
 
why shouldn't it? it's just how php works with ==
$ php -r 'var_dump(["x" => "foo", "y" => "bar"] == ["y" => "bar", "x" => "foo"]);'
bool(true)
order doesn't matter for it..
afaik phpunit just utilizes == for assertEquals
 
Hey, I am having issues trying to upload a video file to a Symfony endpoint. Images work fine and I can access them from the request, however when debugging a video I dont see it in the request at all.

I tried increasing file size limits in php.ini and Nginx config.

Any ideas?
 
Wes
3:03 PM
@Danack yes. same as php's ==
 
@JoeWatkins Almost certainly not.
 
^ literally first link in google
 
@AlmaDo yup
 
3:54 PM
in JavaScript - The Jocular Locker Room, 1 min ago, by Danack
Can anyone give me pointers on how to run automated checks to if any elements on a page have overflowed horizontally - aka testing that everything has reflowed/resized correctly to the screen size?
 
@Danack lots of custom jabbascript to be thrown at selenium, I suppose?
Don't know if JS has a way to verify overflow tho...
 
it might just be body.getBoundingClientRect()
 
Could you check the x prop & width of nodes so x > 0 and x + width < body width?
Anyone know names of alcohol with M H as initials? (order doesn't matter :p)
 
4:14 PM
good morning
 
Wes
@Danack more details?
 
@Danack Are you using some JS thing to do the resizing?
 
Wes
like, do you want to check if browsers are buggy? :B
 
evenin r11
 
4:23 PM
@Wes Presumably, if it's just CSS, there's no way of it overflowing, unless you've told it to.
 
@Wes We have a page. On it is a table/set of divs. It has text inside it. When the text is set to "asdijadjasjdpoasdpoasjdpoajspodapsodpoasjdopajodjapsodjpasojdpoajdpoasjdpoasjdp‌​oajspdojaspdjpasojdpaojjopadj" it pushes out the width of the table past the containing div.
 
@Wes I'm not sure how you would do it then. The alternative is having a completely separate object and creating the membership aggregate and some gift sender object all by it's lonesome and have some random "service" that connects the two?
 
And incidentally wider than the page.
 
Ahh
 
I wanted to automate it so that I can test all of the pages at various different sizes to check if the CSS is borked like that.
I'd like to do it by the page, rather than testing individual elements, as I don't want to have to customise the test by elements.
 
Wes
4:25 PM
then just table.offsetWidth > container.offsetWidth
in <container><table></table></container>
 
> I'd like to do it by the page, rather than testing individual elements, as I don't want to have to customise the test by elements.
 
Yeah. Something like that.
 
aka I don't want to have to update the test each time a table is added to the site.
 
Wes
var tables = document.querySelectorAll("table");
// loop :B
also <container> can be stretched out by the table. in that case you need to do this... wait
 
[].forEach.call(
  document.querySelectorAll('*'),
  function(el) {
    if (el.offsetWidth > docWidth) {
      console.log(el);
    }
  }
);
 
Wes
4:29 PM
you can't do that
unless you have sites without columns?
 
@Wes what do you mean by column in this context?
Also, I read your "you can't do that", in a tone of voice similar to:
 
Wes
@Danack the container. you wrote "docWidth" and i don't think you mean overflowing document.body's width
 
That is the full page - the table is off the edge of the viewport.
 
Wes
@Danack what i'm saying is, you want to check if the box overflowed the actual container, not the page
you want to check if the black overflowed the green, not if it overflowed the blue
makes sense?
 
yes.
 
Wes
4:37 PM
but before that, do you know there are alternatives, like word-wrap ?
 
@Wes yes, I know how to fix it for now - the test is there to catch the designers being ........ less than clever.
 
Wes
ok so the problem is @Danack there is no way to guess what is the container (the green one) you want to perform the test against
 
The context is at least one person just keeps forgetting to check how the page looks on a monitor that isn't 3000px across.
 
Wes
your table has likely dozens of parent elements
 
4:41 PM
@tereško the facepalming is real
@tereško do you think that a 40gb partition off the ssd drive would be enough to welcome arch?
 
Wes
for example you could check whether the closest ancestor of <table> that has an explicit "width" set, is forced by the table itself to overflow that width
but that could be a bogus test, i think
 
@FélixGagnon-Grenier only if you don't intend to install steam
 
Wes
although it probably works for most cases...
 
@tereško I would put the steam collection on the external drive
... oh I guess it'll have to be different from the windows steam collection
 
just get a 128GB SSD
they cost like $50 ... or 120 canadian pessos
 
4:44 PM
@Wes I'm not sure that we deliberately use any overflow.....it might be easier to setup the test to check every element doesn't overflow the parent, and then put in exceptions for where we do use it.
 
Wes
@Danack i'm trying to write something but imho it's not going to work :B
 
@mega6382 setting up shibboleth authentication for ezproxy, I was reading about claim rules earlier when I was looking for music.
@tereško the problem I've had with GIAA is that quite a few songs make me tired because they're too relaxing for me
 
const testElement = function (element) {
  const domRect = element.getBoundingClientRect(); // eslint-disable-line no-unused-vars
  if (domRect.left + domRect.width > window.innerWidth) {
    debugger; // eslint-disable-line no-debugger
  }
};

[].forEach.call(document.querySelectorAll('*'), testElement);
works for my immediate concern....
and i'll need to add code to test against the parents to find overflowing within a page.
 
Wes
i wrote something, then this happened
thanks again internet
nope, lost it -__-
 
5:07 PM
@Tiffany how about "Collapse Under The Empire"?
 
Wes
@Danack do you think you have enough use cases to test if the test works? [xzibit.jpg]
 
@Wes I have 2......make the screen wide enough for the screen to look fine, and the debugger isn't hit. Make it narrow enough, with the content going off, and the debugger line is hit. That's enough use cases to create a ticket for someone to implement it properly.
 
@NikiC Let's say & is required at the call site in the future. Which opcode would actually do that check?
 
Wes
i mean like responsive ui, on different pages? :B
 
@LeviMorrison The SEND_*_EX opcodes
 
5:11 PM
@NikiC the zend_function is already known at that stage?
 
@LeviMorrison yes
 
function foo(& $input) {
	$input = [];
}


function bar(callable $f) {
	$data = [1];
	$f($data);
}

bar();
function name: (null)
L1-14 {main}() /home/levijm/Projects/php-src/call-site.php - 0x7f79aca71460 + 5 ops
 L3    #0     NOP
 L8    #1     NOP
 L13   #2     INIT_FCALL              144                  "bar"
 L13   #3     DO_FCALL
 L14   #4     RETURN<-1>              1

function name: foo
L3-5 foo() /home/levijm/Projects/php-src/call-site.php - 0x7f79aca81000 + 3 ops
 L3    #0     RECV                    1                                         $input
 L4    #1     ASSIGN                  $input               array(0)
 
@Wes I always get mixed up between responsive and adaptive.....but yes, pretty much every page in the admin section of our site will be responsive and reflow to slightly different layouts, so testing that no screen breaks on any screen resolution by hand, would be a nightmare going forward. But to be clear, I want the test now because it's happened when making new pages too many times already.
 
Why does that use SEND_VAR_EX instead of SEND_REF, @NikiC?
oops, I mis-typed that
Forgot bar('foo'). It still uses SEND_VAR_EX because statically it doesn't know it needs to be by-ref, but can we hook into that somehow to error if it isn't &?
 
@wes Like - I've seen 3 elements this week that overflow very badly when the screen is made to be a normal laptop width.
 
5:35 PM
@LeviMorrison I must be missing context.... In both cases, even the dynamic dispatch, it knows it's calling bar() by the time you reach the SEND_VAR_EX opcode. So why wouldn't it be able to make that determination then?
 
How do you encode whether it was passed & explicitly?
I can't just check because we fatal :D
 
Wes
@Danack need to think of something else because that didn't work. i might have a solution
 
... I am somewhat angry. They delivered the 3d printer, on a night / weekend day, so the building was not open, so they shipped it back.
like, the first they a delivery company ships a thing on an hour where I have chances to be at home, I decide to give work's address.
 
@LeviMorrison EA?
 
@Sara I don't know what that means.
Oh, extended_attribute?
 
5:40 PM
Yeah
That spare int we have on opcodes
Set a flag in there during compile time
 
You can't tell from phpdbg if it's being used, can you?
 
SEND_VAR_EX<...>
The bit in the <...> is EA
 
Some opcodes use it already; do these?
 
The output you showed didn't use it, checking to see if it ever does...
 
Here's the actual context for me asking: reddit.com/r/PHP/comments/7jhh2l/…
 
5:42 PM
Woah, zend_compile_args() is a big mess, but no. It doesn't use EA
@LeviMorrison Uh... not seeing the connection, really...
 
Gracefully enabling new features with <?php8 ?> instead of declare() stuffs.
 
Also, unrelated, yes. I meant extended_value.... EA is an old name that I don't even think we use in the engine anymore (though it was essentially the same thing)
I'm not a fan of using open tags to differentiate syntax sets.
 
I'm not a fan of gracefully doing stuff like this. Just switch it over, hard and painful.
3
lol
But I think I'd prefer <?php8 ?> over declare()...
 
@LeviMorrison koaladestruction
 
@LeviMorrison <?phpainful
 
5:56 PM
@Sara I think EA was the same thing but for znodes
 
Wes
@Danack this is getting harder all the time. i get false positives because of the scrollbar's width :B
 
@FélixGagnon-Grenier What did you get? I need to replace mine. I ruined it by making PCB etching acid in the same room. :p
 
Wes
@Danack tried with something simpler. can you check if this works? jsfiddle.net/ojmgsfya
 
6:26 PM
@Allenph creality CR-10
 
@FélixGagnon-Grenier I was leaning that direction too. Maybe I'll just wait to see how your experience is.
 
if I ever get it...
 
@FélixGagnon-Grenier Right. You people get al your stuff from ice road truckers
 
actually, they delivered it, but apparently it was shipped back.
I am right now using all the anger management tricks I know to cope with this crucial problem
 
@LeviMorrison how about <?php="strict"
 
6:38 PM
@tereško What is it strict about?
 
types
 
@FélixGagnon-Grenier So you just lit one up? :P
 
tbh, I am looking forward to starting again
 
:-)
 
@FélixGagnon-Grenier Why don't you just gather up your sled dogs and go after it?
 
6:42 PM
as soon as I know where they shipped it back, you can be sure that's what I'll be doing
except, it's not dogs, I actually use bears
 
ehh .. @FélixGagnon-Grenier you live in such an oppressive and hateful country: youtube.com/watch?v=ZYxfWL1ZlDQ
 
damnit, if I listen to that, I will literally break stuff. I'll get to it when I'm... "calmer"
also,
 
6:56 PM
posted on December 13, 2017

New Cyanide and Happiness Comic

 
7:10 PM
Parallel #PHP can't get much simpler.
^ I hope you like that API.
 
Wes
parallel means, multithreading?
how is file_get_contents in there non blocking? :B
today i helped someone with teamviewer. you know that people hide pron in the strangest folder names? this guy didn't, not even minimally. boy there was pron all over the place. and clearly he didn't care that i looked at it. also classified by kinks ahah
 
parallism is not concurency
 
@Wes It's magic.
 
@Wes (obsessivist) who doesn't sort?
 
7:25 PM
why not just wait(all(array_map(parallel('file_get_contents'), [...])));
 
... ok. so, there is this trend, of naming packages like "cmake" and "cmake3" so that multiple concurrent versions can be installed, and allow people to support older versions, etc etc
 
@Wes this sounds more like one of the "I keep everything on desktop" people
 
however, what should I do when a library refers to the global "cmake" but I only have the "cmake3" binary visible from the path?
 
Wes
i just remembered AHAHAHAH youtube.com/watch?v=TtjRViNYzJs
 
is there a cli argument that can alias cmake to cmake3 for the execution of a specific command?
otherwise, should I rather alias cmake to cmake3 globally so that further use works?
 
7:27 PM
alias cmake=cmake3
 
Wes
@tereško correct
 
$(alias cmake=cmake3; blah...) I think works as well
 
ok. thanks!
 
@Wes that's a wide-spread disease. I couldn't even cure my younger brother of it. Though, I taught him to use at least two folders on D: drive: "downloads" and "music"
 
@ircmaxell You can do that as well.
@ircmaxell Actually, you currently can't, but I'll change that.
 
7:37 PM
hehehehehe
 
7:51 PM
How was yor day @Wes?
 
Wes
bigger than god
 
8:10 PM
lol
 
ThW
@kelunik looks nice, but it works only for cli doesn't it?
 
@ThW Works fine in all SAPIs as long as you have a CLI version in your path.
 
ThW
@kelunik oh, I will have to try that.
 
@kelunik In that code would responses be guaranteed to be in the same order as the input array?
 
@Orangepill Yes.
 
Wes
8:52 PM
damn i didn't think firefox could actually become a decent browser again
if it was so simple why didn't they make it sooner. they lost all their users
earlier*
 
@Wes It wasn't simple. They had to work years on it.
 
Wes
9:11 PM
is it made in rust?
the last decent firefox i remember was 3.0
3.5 was shit already
 
I never really undestood the browser obsession
Like, the new firefox is supposedly super fast
I've been using firefox for years, I never had performance problems, and I didn't notice anything particular in the new version
I don't know what people do with their browsers that they run into performance issues
 
@NikiC pr0n
I mean... loading all that flash stuff takes a toll on the scheduler
 
Is it that they just have shit laptop hardware, or that they don't have an ad blocker?
 
Probably both. Still, I also run firefox since 3.5 and didn't have major issues except for massively broken single page applications
err, "massively broken" is redundant in that sentence
 
Any suggestions for a good framework decoupled jwt authentication library?
 
ThW
9:25 PM
@NikiC it is, but more important for me it has much better touch support for the ui.
 
@Wes well ... Firefox Focus is good :D
 
ThW
amazing how good of an impression some triangles can give of an image screenshots.firefox.com/MU7feoMyq7xo5OAN/localhost
 
make a bigfoot
 
@Orangepill lcobucci/jwt - also because I got commit access, so it is obviously the best :P
 
ThW
the idea is to generate some small svg from an uploaded image, use this as a background for the actual image (with a data url). So that you do not get an empty area for the image to be loaded.
 
Wes
9:50 PM
@Danack has anybody ever tried to make a static auryn, with injected objects compiled in a php file... rather than using reflection and stuff?
 
@tereško lol
 
@Ocramius thank you sir.
 
it's a great xmas gift for that one dense "gamer" friend, that you might have
 
They should be allowed to do the loot box thing. It makes the children and idiots pay more for the game so it can be cheaper for everyone else.
 
it's not being cheaper
it's still the "new full price" game ($80) + you have loot boxes
 
10:08 PM
+ dlcs when you are really lucky
 
Regardless, I think people should be allowed to do what they want.
 
no, children should not be allowed to gamble for the same reason they should not be allowed to make sex-change operations
 
Shouldn't be up to the government to stop them from doing it. All that does is make it so when they find a way to skirt the laws they can justify it.
 
It should be
 
@Allenph but we don't live in a perfect world, where ever parent is knowledgeable enough to decide that
 
10:10 PM
There are a lot of stupid laws in all countries, but the gubernment actually does good sometimes
 
@PeeHaa No it doesn't. The government is just a gang with a successful legitimacy campaign.
 
he's an AnCap ..if you were not aware. @PeeHaa
 
@tereško That. Some people need to be protected against themselves. Then again you are from the USA where it's only your own problem because fuck people anyway
Yep
 
hey guys
 
@tereško Knowledge is irrelevant. It's not my fault, and I should therefore not be penalized.
 
10:12 PM
@Allenph you do not play games
you do not care if that practice is actively destroying games
 
@Allenph Where were you from in the US again?
 
I do play games. In fact I play a lot of EA games. I don't like the loot boxes either, but...I still think it's their product and the market has swayed them more than the government has anyway.
@PeeHaa Mormon land.
 
does anyone have any knowledge on graph isomorphism?
 
do you want every game to become pachinko machine, @Allenph
 
!!? pachinko machine
@Jeeves buddy?
 
10:14 PM
because that's what trans-national corporations with turn them into
 
!!reboot
 
@tereško The market is more effective than the government at solving that problem. It's government barrier to entry that prevents that mechanism from working in the first place.
 
@Allenph you can't have your AnCap utopia in a world, were corporations exist
 
@tereško We have never pretended that it would be a utopia. Just better.
The corporations you're talking about only exist because of the government in the first place. By that I mean the monopolistic ones.
 
which government ?
 
10:16 PM
Which ever.
 
so what is the solution, because I don't think you believe, that corporations would just miraculously vanish, if all governments stopped existing tomorrow
 
@tereško Agorism.
 
.. wait, so you do believe it
 
That's 100% not what Agorism is. And I think for certain sectors that might indeed happen, but certainly not all or even most.
 
so, the bottom line is, you think that these predatory practices should be allowed, because having gambling regulated by governments would make it harder to bring about your "better society"
ehh .. fuck it
 
10:25 PM
@tereško Nope. That's not what I mean at all. I think the market mechanism is more effective at preventing more of those predatory practices than the government is.
And that in such a case that those practices do happen (and they happen either way) it is on the shoulders of the inept rather than everyone.
 
citation needed
 
https://www.ibiblio.org/ml/libri/s/SmithA_WealthNations_p.pdf

Really good example in the repeal of the English corn laws in there.
 
that's not a research paper
 
I'm not going to cherry pick data for you.
 
how is yours better than mine?
 
10:29 PM
Read both and decide for yourself. Then I'd read some Keynes too while you're at it.
 
they are works of philosophy ... or hell ... works of rhetoric , with no application of scientific method
so, I say again: citation needed
 
@tereško Macro-economics is more philosophy than science.
 
great, but I want a country that is run on science
 
@tereško At first, I thought he said "If you base medicine on science, you kill people"
And though, "yup, works by design"
 
:D
 
11:01 PM
@tereško Obviously I agree, except for on the country thing...I just think that individuals and companies who actually do the work are better at making those educated decisions.

I'm not an idiot just because I disagree...I can't fit my entire philosophy into a chat...and it's probably not the best place to do that anyway.

Google it yourself or we can open another chat. :p
 
Wes
you know what's an impossible task? convincing people that BEM is a bad idea
 
@Wes the Board of Engineers Malaysia?
 
I knew what it was. xD
 
@tereško lol
instant idol
 
Wes
11:13 PM
Ok, but next time we’ll do a proper refactoring
looks like italian streets
 
11:37 PM
Path 260 character problem – #75679
 
Wes
I have so many /** @TODO @TBD */ that I just decided to do the other way around: /** @WORKS */ #programming #php
 
04:00 - 13:0013:00 - 00:00

« first day (2615 days earlier)      last day (2349 days later) »