« first day (2477 days earlier)      last day (2471 days later) » 

4:00 PM
same here... ive stopped playing competitive as well... just hang around in qp and arcade thats all, and oh, widow duels
the toxicity just gets worse as you start to climb up the ranks
 
I played a lot of medic, soldier and engineer in TF2. I like Mercy, but I want to do something other than support. But support may be where my strengths lie.
I know ... what'shername, the Egyptian lady is like soldier, and I had fun with her, but not very good with her.
 
you can play lucio... he's a fun support... wallriding and booping people right and left :P
 
I tried lucio and I sucked :P
 
@Tiffany that would be pharah i guess :D
 
yeah, that's her
 
4:03 PM
Lucio + Controller = profit
 
I love the voice actors though
like one of the reasons that makes me wanna play
 
i like the Japanese that genji and hanzo speak... and I constantly spam 'mada, mada' when playing genji
anyways, gtg, gotta study for some tests I have tomorrow :P
 
924
Q: How do I get PHP errors to display?

AbsI have checked my PHP ini file and display errors is set and also error reporting is E_ALL. I have restarted my Apache web server. I have even put these lines at the top of my script, and it doesn't even catch simple parse errors. For example, I declare variables with a "$" and I don't close sta...

stop trying to guess what errors are....
 
Certain floats * 100 type cast to int value one less then they should be – #75004
 
@Jeeves this shit again Jeeves?
 
4:13 PM
@Danack See you can't be sarcastic without me hearing you and as there is no way that will ever happen it just makes you look confused.
 
...............................wat.
 
evening room
 
here be dragons
 
Anonymous
@NikiC nightmare
 
4:25 PM
Is $_GET the only way to access the query string?
I don't like how I'm doing something, but I'm not sure how to do it better
 
Anonymous
There is filter_input(INPUT_GET) also
 
@NikiC fair translation, thanks
 
and I'm thinking I need to put this in another file too because I copy/pasted some code
 
@Danack dat déjàvu
 
@Tiffany $_REQUEST too
 
Anonymous
4:30 PM
You can create a wrapper class for the super global .. @Tiffany
 
I need to learn what a wrapper class is, and I'm trying to avoid making this into something big since it's a relatively simple script.
e.g. I didn't write a controller for this because I feel even that's overboard.
 
@Tiffany Learn/Use Twig
 
@FlorianMargaine did you see your DM?
would like to burn that off server asap
 
@Fabor I've used Twig a bit from Patrick's tutorial, but integrating it into this codebase would be a challenge. Though I guess I wouldn't need to integrate it immediately, I could utilize it from here on and refactor code as time permits...
@Fabor I'm guessing you mean where I have the same HTML in two different spots, or my initial question, or something else?
 
4:52 PM
@Tiffany the part where you are manually echo-ing the php vars
 
@FélixGagnon-Grenier fair enough, thanks
 
this ^ leaves plenty to be desired, as it's now "locked" on only $get, but you get the idea, I think
 
I'm just trying to think of where I can put the class so I can use it.
I'm trying to keep things as close to the code base as possible so that stuff makes sense if I come back to it.
 
evening, bitches
 
4:59 PM
@JoeWatkins sup sucker
should I create a folder for some loosely coupled generic helper classes?
 
quietly w00ting by myself, because friday ...
 
o/
 
@Tiffany definitely not, it's Friday ...
oh oh ... also ... I hate that term ...
 
helper classes?
 
yes
 
5:01 PM
I have next week off :D I'm not going to be implementing anything until I get back, but I want to get stuff prepared
 
@JoeWatkins \o
 
helper classes tends to mean "code that I couldn't be bothered to write properly" ... you should not need "helper" classes, everything should be a well defined part of something else ...
 
reminds me, I need to send out an email to the entire organization requesting suggestions... and all next week when they send suggestions, they're going to get an automatic reply saying I'm out of office.
@JoeWatkins I dunno where else to put a wrapper class
 
then you are not finished abstracting whatever it is you are abstracting
 
except the same folder everything else is in, but that's not how things are organized
 
5:05 PM
 
.
 
Jul 25 at 13:13, by Kaori
Jan 25 at 9:38, by Trucy
1 min ago, by Gordon
51 secs ago, by Joe Watkins
21 secs ago, by Dejan Marjanovic
C-C-C-COMBO BREAKER
 
I think it was Dan who got pretty far nesting friday mesages
 
5:08 PM
I should have just done !!friday
 
wait... i got a brilliant idea
brb
 
takes a few steps back from the screen
 
!!what's for lunch
 
I'm not even going to wait ...
 
@Jeeves what's for lunch?
 
5:10 PM
@Tiffany I don't know. What are you making?
 
@Jeeves I don't know
 
@Tiffany Ok.What's your favorite MGMT song?
 
@Jeeves I'm making elephant stew
 
@JoeWatkins You make music? What do you know?
 
@Jeeves you're a fucking idiot
 
5:11 PM
@JoeWatkins What's with the double r?
 
18 secs ago, by Joe Watkins
@Jeeves you're a fucking idiot
 
@Tiffany You don't know the first thing about Internet speak.
 
@Tiffany if you have something like a psr compliant file hierarchy, you may put somewhere like src/Model/Value/InputWrapper (with the corresponding namespace Model\Value\InputWrapper). I'm not sure if that is accepted or appreciated around here, but I like having such stuff in a common "value" group.
 
@FélixGagnon-Grenier I guess I could do that. I don't think it's PSR-compliant, but it's not too far off.
 
@JoeWatkins lol
 
5:13 PM
However, you may rapidly start using a Request object, which would obsolete such a wrapper. Most implementations have built in getter methods for super globals
 
you can't do any of that ... it's Friday ...
 
also that ;)
 
I'm still at work though ;_;
 
you are programming wrong
 
@JoeWatkins story of my life
 
5:15 PM
all of the great ideas I ever had on Friday needed to be rewritten or thrown in the bin on Monday ...
@Kaori congrats, you have won the internet ...
 
ikr
 
One thing i've learned is to not program with a headache, and one is building up still.
 
there's probably nothing special about Friday ... if you worked for a day and had two days off as a normal schedule, probably you would throw most stuff in the bin ...
 
@Kaori that's a creative way of fishing for upvotes, gj
 
Hey! Why you should use "func_get_args()" I can't see a need for it or a benefit. Can someone give me an answer? Would be happy
 
5:30 PM
@FélixGagnon-Grenier well that message actually contained chat.stackoverflow.com/transcript/message/38377283#38377283
wait
it was supposed to be stackoverfiow.com
no, no. no no no... i might have just fucked up everything
 
@Kaori the universe will explode in 10...9...8...
 
@Kaori You're welcome
 
5:44 PM
One for @Gordon
 
any laravel/lumen expert here? :)
Will appreciate if you could look at my problem
 
Oct 25 '16 at 7:43, by Gordon
ah laravel… we dont do laravel in here
 
@Kaori oooooohhhh!!!!!!!
:)
 
@FélixGagnon-Grenier sorry :(
 
> Target [Laravel\Socialite\Contracts\Factory] is not instantiable.
 
5:52 PM
btw... when did that get deleted?
@MadaraUchiha :(
 
@Kaori I fixed the original though
You can post it again if you want
 
:)
 
dat stereo tho
 
5:56 PM
here it is... drum roll
in Area 51, 2 mins ago, by Kaori
1 min ago, by Kaori
56 secs ago, by Kaori
49 secs ago, by Kaori
42 secs ago, by Kaori
37 secs ago, by Kaori
31 secs ago, by Kaori
24 secs ago, by Kaori
19 secs ago, by Kaori
 
there you go :)
 
\o/
 
6:09 PM
nite all have a great Saturday...
 
o/
 
6:26 PM
 
@tereško I can live on a stock cooler until one arrives from the UK in 4 weeks.
 
6:50 PM
I am not sure what to think of include based apps. (actually, no, I know I have some kind of mild hate for it, but wonder if it's warranted). I am looking at kanboard, an open source kanban board (really) which is based on includes in the first few top levels files I've looked at. Was it like, the way to do apps when people were not aware of / had no access to DIC's? Is it actually not so bad and I am only being sassy?
are there even any moderately huge open source php projects that rely on DIC's, or an event loop, or an actual oop architecture?
 
@FélixGagnon-Grenier possibly not. The thing is that it's much easier to make plugins when you just hack them in with either static functions or other standardised ways of "this is how to get your plugin" run. Using a DIC kind of requires editing a bootstrap layer....which most frameworks hide away.
 
7:12 PM
Dependency Injection Container?
 
it's a really bad acronym
 
it really is
 
especially when someone from management attempts to use it
 
7:13 PM
lol. thankfully none of my management people have any idea about that
 
I work with someone who goes by Dick
 
that infamous name
I never really realized some people are actually named like that
 
I'm fairly certain it's not his real name, but it's what he prefers. To be fair, he's an older guy...
 
I work with a lot of "ethnic russians"
their "short name" often sound nothing like their "full names"
 
oh boy
 
7:15 PM
I'm not sure if , but today I successfully convinced the client to use an issue tracker, that we needed a specification and that they should actually be testing the features.
 
can't be worse than an Indian company giving out Americanized names so that they're easier to pronounce.
I feel bad for the employees of this vendor
 
@FélixGagnon-Grenier issue tracking will give them sense of control ... spec is overrated ... feature testing is a common practice
 
@tereško spec is my last (and first) line of defense against ever changing requirements, and documenting all the shit they say
 
@FélixGagnon-Grenier I would go with a strict spec for MVP, and then go something agile-like for the rest of project's lifetime
 
they also agreed that for me to do something, they had to 1) document what the site is in reality 2) describe what it is that they want instead 2) make a ticket describing what to change
 
7:19 PM
@Tiffany it's an unwritten rule that, when Latvians visit an Asian country, we just refuse to use their "western names". And then we attempt to teach them how to pronounce "glāzšķūņu rūķīši" or "šaursliežu dzelzsceļš"
 
@tereško yeah, both parties are understanding that stuff will change. we more or less documented, and started an agreement, on how we will manage the stuff
s/stuff/changes. instead of just "let's do whatever"
 
@tereško I wish I could, but their display names and account names use the Americanized name and I have no clue what their real name is, unless they use it in a ticket, which a couple techs do.
 
yeah, that's an option only when you are in same physical location
 
they probably just got sick of us butchering their names :X
 
... that's about how I feel about 99% of code that I see from there ..
 
7:25 PM
rofl
 
7:55 PM
@FélixGagnon-Grenier can I star this to keep for future reference or do you plan to delete it soon?
 
thanks
probably won't be able to do anything with it until August 7th :D
 
:)
ping me if you do implement something based on it
it have some flaws, that I wouldn't want to pass around. actually, I should just make it better now
 
:P
I'm looking for a day spa to potentially go to next week and holy fuck these websites are terrible.
 
insta close
flash.....
 
8:01 PM
yup
though, bad websites are how I get potential clients >.>
 
there's a lady I help with her website, she does a lot of skincare stuff. I work on her website (basic maintenance and stuff) and she gives me free waxing/facials
 
Back, sack and crack.
 
waxing a man's junk just sounds horribly painful for a guy
 
8:11 PM
Manscaping is good enough.
 
well ... shit
Model\Mapper\ConversationCollectionParticipantCollection
 
-_-
 
Congrats, you've gone enterprise
 
I need a better name for this many-to-many mapper
 
8:13 PM
John (™ @Danack's)
 
Model/Mapper/YoDawgManyMapper
FTR backslack is on the other keyboard, CBA to reach over.
 
.. you could have copied from my string ..
 
ConversationsToParticipants ?
 
I was too lazy for that too
 
well ... there are multiple ones
I would go with ParticipantsForConverations
but it still sounds terrible
 
8:18 PM
ParticipantConversationCollection
hellifIknow
 
@Tiffany sure, but you also would have to wax "the entire guy" ... otherwise you end up with a poodel
 
@tereško oh god I'm giggling so hard at my desk right now... just the mental imagery...
 
ConversationConversatorConversion
 
@tereško also if you care, it's poodle. If you don't, then just ignore this.
 
8:22 PM
that explains why my spellchecker was annoyed
 
evenings
anyone can give some hints on upgrading PHPUnit from 4.x to 5.x and having a lot of tests with getMock which has been (finally) deprecated?
As this is a shared library I fear that some devs can't keep up with the changes and I'm looking for some interim state. We need the upgrade b/c all systems are PHP 7.1 now and we want to benefit from return types and the older mock-builder does not know about these.
I'm willing to enforce the change but I would like to know if someone has some experience with that.
 
> The PHPUnit\Framework\TestCase::getMock() method has been deprecated. Please use PHPUnit\Framework\TestCase::createMock() or PHPUnit\Framework\TestCase::getMockBuilder() instead.
@hakre isn't this just a big search and replace?
 
ThW
8:37 PM
@hakre add you own getMock() on a TestCase child class and use that.
 
@Danack s///: AFAIK there can be more than one argument, which needs gardening.
 
@ThW Perhaps most practical, there is some kind of extends extends extends extends extends loving in that code-base, it should apply to the tests, too.
 
Hey people.
I heard of ionCube, etc.
What would be a good encoding software for PHP code?
Also, what are the pros/cons of using such a software.
 
You should try to unhear about it now
 
8:40 PM
@NikiC Why? :p
(This is for a server which people will try their best to hack, and is an additional layer of security to the source code).
Note that their target is the source code.
 
@ThW Wow, nice as always :) - Is it okay to copy proprietary otherwise I'll let someone do a clean-room rewrite (in this case).
 
@HassanAlthaf what is so important to hide in your code?
 
ThW
@hakre feel free
 
@ThW super-cool. thanks.
 
8:42 PM
I mean... it's not (afaik) like you are classified army software or something
 
@FélixGagnon-Grenier I don't know. Client requirements.
Btw, for this private server community,
 
@ThW which idea that is?
 
The GameCP that I wrote for him has features no other thing has ever done.
And he wants to protect those from others.
 
ThW
@hakre Iterators for XMLReader
 
(He was hacked a few years ago)
 
ThW
8:46 PM
I extended XMLReader first, so it works a little different.
 
@ThW Yes for reader iterators are very nice. I still have a bug for combined XML documents parser, for really huge files my PoC works but I think the buffering has issues.
 
@HassanAlthaf that must be one hell of a feature, if implementing it would be long enough to warrant trying to hack someone instead
 
@FélixGagnon-Grenier Well. It's a unique idea, and not a lot of people know how to do it. (What do you expect from us amateurs?)
 
@ThW In a library you have to map :-) ... however can't you solve it with aggregation? I find so many cases right now where extending bites.
 
ThW
You have some generic merger?
 
8:48 PM
And this guy wants to not make his investment go to waste.
There's these people who hack such software and release it for free for everyone.
He clearly would not like that happening after he paid a decent sum for it.
 
@ThW I have some kind of stream wrapper (or similiar) which allows to read from a file which contains sequentially arranged XML Docs one after the other.
 
ThW
@hakre It extends and fixes the XMLReader/XMLWriter classes
 
@HassanAlthaf I understand, thanks for the clarifications :)
 
@FélixGagnon-Grenier Hehe. Basically, I too thing it is dumb.
*think.
Any decent programmer who has experience with PHP can code that out.
 
@ThW Most often needed, yes, I can understand that. Perhaps a decorator is more flexible but there aren't any interfaces in core for XMLReader/Writer.
 
8:50 PM
But you can't do shit if the client wants it. :P
 
ThW
@hakre The namespace handling for XMLWriter is in separate classes
 
Would be cool if PHP would support to "implement" the interface of a core class as an interface.
 
ThW
yeah - PDO would be a prime example for that
 
@hakre Omg yessss
 
8:52 PM
I dunno how much magic that would impose which is dangerous, but ...
 
He was hacked aye? #1 Hacking method? Phishing.
 
@Fabor He was hacked before he went live.
 
Evenin'
 
Few days ago, his design and a lot of graphics got leaked.
Which he himself accident lost a few months ago.
*accidently.
 
And does he know how he got hacked ?
 
8:53 PM
The thing is,
He didn't have the files on his computer or did not even possess them till a few months ago.
They were like over 2 years old. He told me he had them since 2013
His private server for a game called "RF Online" is apparently a huge deal for a lot of players.
 
Anonymous
man I hate voting without knowing anything about the candidates ...
 
Anonymous
Who are you guys voting for?
 
Trump
 
ThW
@hakre do you have a usage example for the merger? I can not imagine an API that is less complex then directly using an XMLReader iterator and XMLWriter.
 
@samayo The oldest guy in the community.
 
8:55 PM
@samayo well, there was a lengthy period in which you had the chance to read their nomination posts and answesr
 
@HassanAlthaf you can edit your messages for a couple minutes after posting them. either via pressing arrow up for the most recent message or via the menu available on the message
 
it's still not too late, actually, you can switch tabs in the election page.
Andy's answers are objectively quite level headed
 
Anonymous
@Fabor Speaking of Trump, I'm actually disappointed not to read "Make Stackoverflow great Again" from any of the candidates. I would vote for that guy
 
@PaulCrovella Oh, I was not aware. Thanks a lot buddy. :P
 
heh
 
8:56 PM
@samayo dude
 
Anonymous
@FélixGagnon-Grenier You mean those things are actually reliable ?
 
yes.,..
it's really not a democratic "I promise that during campaign" stuff
 
You can actually edit a message after it gets starred too. 2 minutes to make the most of it.
 
having read from andy over the years, I can be faithful that what he says is actually how he acts
 
Anonymous
Andy it is then.
 
8:57 PM
most of the other nominees I also know from near or far, and could choose the two first candidates pretty easily
 
@ThW It's not a merger, here I got the example: github.com/hakre/XMLReaderIterator/blob/wrapper-test/examples/… (has known bugs) - for rewriting I think this is also in that old code.I have as well IIRC one iterator for reading and one for writing and then just combine the two (the writer is decorating the reader and you can command writing while iterating the reader).
 
ThW
hmm maybe I should implement a method like XMLWriter->writeNode($node)
that would allow to copy nodes from an XMLReader::expand() or use the FluentDOM\Creator
 
This can be handy. And if it works also a generic write routine that just does the best on what is passed into it ^^ - perhaps not.
If that could do namespace rewriting on the fly would be super-cool, but perhaps that's far over the top.
Fragment based namespace rewriting in context of the current state.
 
ThW
@hakre I have that for DOM
 
I know, AFAIK you're the only one who did this in the PHP world.
But back to my idea about extracting interfaces on-the-fly in a dynamic language like PHP, wouldn't this add some more strictness? Maybe something like implements interface (of) ClassName ? /cc @NikiC
 
ThW
9:10 PM
It should not be that difficult to implement that for a node (instead of a document) and allow for something like $writer->writeNode($transformer($reader->expand()));
 
hmmm
 
@ThW Looks nice. The transformer can deal with the fragment read that way
 
"Midnight, Texas" might end up a good series
 
ThW
Yeah, I think XMLWriter::writeNode() has a lot of potential, it is the missing opposite of XMLReader::expand()
 
> A haven for vampires, witches, psychics, hit men and others with extraordinary backgrounds
Urm... I get bored too easily when there are vampires in the story
 
9:19 PM
@tereško Will check about availability of things today. We're screwed for cooling. Doesn't have to be water though. So there is that, otherwise wait it out and turn the AC way down :P
 
@Ekin afaik, there is only one
 
@Ekin Yeah, no one loved the whole Vampirism curse in Skyrm either.
Also TIL @Ekin is team Jacob
 
ThW
@hakre maybe I should call it XMLWriter::collapse() :-)
 
Who's jacob... One vampire might not end up that bad
Oh... I know who is... :P that's a nope
 
@FélixGagnon-Grenier this might be useful for you: dbglass.web-pal.com
 
9:25 PM
/me goes back to the 100
 
is it any good?
I saw like first 4 episodes and forgot about it
 
I liked
Though it gets annoying time to time
 
I read the description and passed.
I tried out "American Gods" too, I like the director (Same from Hannibal) but I dunno... easy to binge but once you stop you find it hard to pick up again
@Ekin heh. It's a good thing you didn't get the reference straight away.
 
Stepping away from TV I am will again pitch that you need to read the Kingkiller Chronicle :P
 
9:34 PM
@ThW Merge all the things phew - azlyrics.com/lyrics/daftpunk/technologic.html :)
Can someone please bring back cinema? These streams are all fine and finer as such, but what I miss with series is the actual work. You watch an episode and then comes the next (or not). It's some kind of consumption thing I guess.
Moar iteration pls :)
 
Netflix series/movies are decent
 
Yes these are, also on the other streaming sites.
Most often better than the movies they stream nowadays.
 
We are seeing movie stars transitioning more to series now
 
10:09 PM
Hey guys do we have the spread feature like on ES6 on PHP?
The "..." operator in ES6.
 
1
Q: Divide array into separate variables and pass it to function

user99999I have the following class: class Foo { public function __construct($id, $name, $value) {} } I want to initialize this class using variables from an array, like: $arr = array(1, 'some name', 'some value'); $fooObj = new Foo($arr); It should work like a spread operator from ES6 in javascri...

 
heh
 
@HassanAlthaf since 5.6, ref wiki.php.net/rfc/argument_unpacking , php.net/manual/en/… - is it that in ES6 ?
 
\o
 
10:16 PM
@WesStark Name it Pulp and store its class name into Pulp::Fiction baby :) Makes a good look in a service container btw.
... works great with type-hinting btw. Never asking again if an iterable is of strings, only again.
hi @sara
 
Not yet... but if my dealer shows up...
 
How would I go about testing Jeeves on my computer?
 
good morning
whoever thought inflection based dynamic dispatch was a good idea needs to be shot
 
10:33 PM
what language?
 
php
 
i thought you were referring to method overloading
what's that?
 
$this->$method($arguments) where method is arrived at by a convoluted system of inflection...
 
:B
i use it sometimes... i know i shouldn't
 
So when you want to know who calls myMethodName you have to not look through code for calls to myMethodName but look through yaml files for my-method-name or my_method_name or myMethodName keys and parse through the files that consume those yaml files
 
10:39 PM
ahaha
debugger maybe?
 
@Orangepill if that's not a code, that is use only at bootstrap, for dispatching the router's result ..
wait no ..
that would not contain $this
 
ThW
@hakre I need to add tests, but that should be it: github.com/FluentDOM/FluentDOM/commit/…
 
@ThW before tests: default case is missing in that switch statement and perhaps as this is DOMNode, I think you can do an integer comparison against DOMNode::$nodeType.
 
ThW
hmm
 
I like the recursion call...
 
10:49 PM
@teresko The yaml files are spec files for a pdf layout engine ... the yaml files themself are 2000-5000 lines apiece
 
ugh
 
ThW
tomorrow, n8
 
@ThW night, tomorrow I'll be in Bonn btw.
 
@Orangepill somehow I suspect, that the success rate for making "PDF Builders" is even lower, than the one for "Form Builders"
 
woke up with headache. not good
 
10:54 PM
@ThW And if I may add another idea: ::collapse($node->childNodes).
 
ThW
and accepting node lists
 
jup :) - I'm at the former Cuban Embassy, public open is at 1500. You can find me making Churros :)
nite
 
Anonymous
11:11 PM
If I need travisCI to install phpunit before running tests, should I do - composer install --dev or just pass phpunit instead?
 
Anonymous
!!wotd
 
ballon: the lightness and grace of movement that make a dancer appear buoyant.
 

« first day (2477 days earlier)      last day (2471 days later) »