« first day (2377 days earlier)      last day (2570 days later) » 

8:03 PM
Evening all, anyone any idea why in phpstorm the Ctrl+Shift+N quick find tool isn't listing my files anymore?? Came here as I'm sure it's something dumb I've pressed by accident :)
 
question... testing this on 3v4l vs running php -d vld.active=1 -d vld.execute=0 -d vld.dump_paths=1 -d vld.verbosity=3 -f bug74234.php shows me different opcodes... both are 7.1.0, can it be because I possibly have a more recent build of same version?
I don't see any jmpz, and just a single jmp
 
@Ekin most likely you have opcache loaded locally
 
correct
alright...
yep, that was it.. thanks
 
Wes
@PeeHaa i need some help. i need to create files for the tests. when phpunit is launched i'll create a folder that will be used to save said files. i can't avoid doing that as i'm generating php code programmatically and i need it to be evaluated as actual php (ie with require()) optionally when phpunit finishes running the tests i'll delete these files. problem is, how do i do that properly? how do i tell people that want to run the tests that a writable directory is required?
 
Cast and TypeHint do not have the expected behavior – #74476
 
Wes
8:07 PM
should i just write to the dir and i'm not supposed to care about the permissions errors?
 
@Wes one ugly way is checking for it and either skipping or failing tests if it fails
 
Wes
is it possible to specify custom phpunit's configs from command line?
 
Wes
that is an option though
31
A: Passing parameters to PHPUnit

PaoloOne way would be for you to inspect $argv and $argc. Something like: <?php require_once 'PHPUnit/Framework/TestCase.php'; class EnvironmentTest extends PHPUnit_Framework_TestCase { public function testHasParam() { global $argv, $argc; $this->assertGreaterThan(2, $ar...

 
@tereško biggest "WTF!" until now is that $scope thing. it seems someone thought that the good practice is to define everything as lambda functions, freezing the state everywhere
basically, if an element changes dynamically, tough luck, it's still as it was when declaring the function
 
8:18 PM
@FélixGagnon-Grenier actually the good practice is to avoid $scope whenever possible
 
I believe you would vomit on the script I see now
 
Anonymous
What is $scope?
 
well, what I did is make it all in ES2015, with webpack and modules
 
it's some kind of hybrid between a js script, a laravel controller and an html snippet
 
@samayo magical thin in AngularJS framework
 
Anonymous
8:20 PM
Ah, I know those ..
 
riiiiiiite
> BASIC QUALIFICATIONS

Technical Support EngineerTechnical Support EngineerTechnical Support EngineerTechnical Support EngineerTechnical Support EngineerTechnical Support EngineerTechnical Support EngineerTechnical Support EngineerTechnical Support EngineerTechnical Support Engineer
Technical Support EngineerTechnical Support Engineer
Technical Support Engineer
sounds legit ;)
 
friend linked it to me, I asked him if he thought he was qualified
 
I guess they're also hiring for QA ;)
 
Anonymous
@Tiffany how is Vbox going?
 
Wes
 
8:43 PM
If I have a public facing endpoint that needs to be accessible by only clicking a link, and simultaneously needs to provide identification of a model...it by nature cannot be truly secure, correct?
 
@samayo need to get php installed. Ran into problems trying to get php 7 installed, so I'm just going to go with the latest 5.x. I'm not entirely sure if I have the webserver set up right because I tried loading a plain index.html file, and I was still getting a server error.
 
Anonymous
Yeah. You need to configure Nginx properly. Specially the server{} directive.
 
Anonymous
 
starred because I probably will need to check it again later
probably won't mess with it until the weekend, depending on if I can get rid of this headache before then
 
Anonymous
Ok. Also you can find php7 package from webtatic ..
 
Anonymous
8:48 PM
good luck
 
cyberciti.biz/faq/… this was what I found
they had me add dotdeb
I thought I had it installed, but it didn't appear to. I couldn't find it in /etc/bin? or is it /etc?
I was trying to find a way to get it through apt-get but I may have to unpack it as a tar or something. Which I've never done, so will be a new experience for me.
like Linux in general is for me.
 
you mean where did the php binary go?
 
I suppose
I couldn't tell if it was installed or not
 
it says /usr/local/php7/bin/ - must be there if you followed it and it worked
 
I'll take note of that, because I likely won't remember it when it comes time to check. The VM is at home, I'm at work right now, and probably won't check until the weekend.
 
8:54 PM
0
Q: How to remove Google Drive Ubuntu?

user251223I made my biggest mistake of my life and installed google drive on Ubuntu. Now I cannot uninstall it anymore. - I uninstalled the google drive package: sudo apt-get remove grive-tools sudo apt-add-repository --remove ppa:thefanclub/grive-tools I deleted the all the accounts under Online Accou...

 
... I can think of one or 10 worse things you could have done, to be honest
 
Anonymous
@Tiffany webtatic is pretty simple, try it.
 
Anonymous
If not you can build php from the src
 
that requires compiling though, blah
but I suppose I could do it
added webtatic to my list of notes
 
Anonymous
Compiling is not a lovely experience. 5/10 time you will encounter errors and spend 30+ minutes scratching your head.
 
9:00 PM
I don't mean to sound unappreciative, btw. Head's just killing me right now. Been fighting this damn thing all day.
Aaaand it just got worse again. I'm going home.
 
@samayo using ports on freebsd, on the other hand, is completely pain free
 
Anonymous
@Tiffany You're working on something else now?
 
Anonymous
@FélixGagnon-Grenier ports?
 
@samayo The stuff with Virtualbox is a side project at home. I'm at work right now, which I don't get to play around in VMs.
 
@samayo freebsd "package manager"
 
9:02 PM
have a good night all
 
Anonymous
gn
 
I put quotes, because you still compile and have to configure stuff, but it is well maintained, and generally works™
nn
 
Anonymous
@FélixGagnon-Grenier How is that different from a package manager?
 
because you still compile and have to configure stuff, but it is well maintained, and generally works™
like, you don't port install php
normal make / clean / config routine
 
Anonymous
Ah. Compiling is almost always comes with some configuration error or two.
 
9:05 PM
well... in the (few) experiences I've had with freebsd, it doesn't.
it just... configures, compiles, installs and work.
I even felt like, proficient with compiling php (whereas it's obviously the work of the port maintainers)
 
honestly... I got to use just this to get up and running in a very short time just the last week
 
... hey that's a valuable snippet. totally bookmarking that, ta!
realizes how he never documents anything and how it would be a good idea to do so
 
Anonymous
@Ekin I like that. It must have taken a lot of effort to compile. I had the same thing, github.com/samayo/centopia but needs revision
 
didn't note down the nginx bit yet but all that part works just fine
hence I noted it down there
totally not much effort
I just keep forgetting the chmod +x most of the time :P
 
Anonymous
yeah, same here.
 
Anonymous
9:13 PM
You can just make it a bash script and it would help the lazy ones like me
 
I had one
but needs update
that also has pgsql, apcu and pthreads too, but last time I tried I couldn't get pthreads right away, need to update at some point...
 
Anonymous
Yeah, you just need to update it. I had the same issue with mine. I thought my script would work everytime I run it, but once in a while something breaks ... :/
 
Anonymous
You probably need to add a swap script.
 
Anonymous
PHP won't build on machines with 512 RAM unless you create swap file
 
good morning
 
Anonymous
9:17 PM
\o
 
o/
 
\o/
 
Anonymous
//o
 
9:20 PM
Anyone know of a code gen tool to create VO's from XSD files outside of a SOAP/WSDL context?
 
@NikiC Do you think you'll get around to refactoring the token stream stuff in the next few weeks? If not do you think you could define what you are interested in happening enough for someone else to do it?
We're not very happy with existing formatting tools for PHP :(
Unrelated: I fixed the SVG version of the PHP logo to scale properly (you may need to force refresh or clear cache).
 
9:35 PM
@LeviMorrison TBH I think you're much better off patching php-cs-fixer (ever fork or upstream)
I don't think you appreciate the complexity that goes into a code reformatter
though I do find it weird that they don't support tab indentation
Wasn't there also another CS fixing tool?
 
I do appreciate the complexity and we may just fork another project. We'd rather just write "plugins" for a "formatting framework" but thus far nothing configures this...
@NikiC There are a few different ones, none of them very robust and usually too opinionated.
I'm fine with opinionated tools; the trouble is there doesn't seem to be a good framework to build your own opinionated tool on.
The php-cs-fixer folks don't seem interested in supporting anything outside of PSR's though... not good for collaboration.
There are a few decent looking sniffers that just complain about code style and don't fix it.
 
@LeviMorrison I've worked with a few of those... don't know about the decent looking though :p
 
Sniffers would be okay on new projects but I don't really want to manually fix a large existing codebase.
 
10:13 PM
anyone know what these types of images are called agmstudio.io/themes/material-style/1.3.2/assets/img/demo/m4.png
 
porn?
 
hahaha... No
 
Can you elaborate on which specific property of the image you mean?
 
Like clipart etc... I want to search for similar pictures of other objects
 
You just said what it was called though
I would look for "Flat Vector"
 
10:15 PM
Yes! Thanks
 
oooh you just reminded me there's new Archer
 
:D
I think I just broke my toe
Or moreso my dog just broke my toe
 
your dog is called moreso?
 
haha, no
 
Funniest thing happened to me... I used MS Edge today - I liked it.
 
10:23 PM
Is it good?
 
I prefer it to Chrome and Firefox so far... Unless, MS has hidden some crap in it somewhere
 
Interesting
 
11:01 PM
I just leveled up my "god damn it that's not a terminal window"-fu by posting git status on Facebook :-/
 
Hahahaha
 
Anonymous
Evemong
 
11:19 PM
o/
lol
 
11:50 PM
@DaveRandom noob, don't even have aliases?
 
...for git status?
even I am not lazy enough to alias that...
 
@DaveRandom git s for life
 
It would take my fingers so long to learn that at this point
 

« first day (2377 days earlier)      last day (2570 days later) »