« first day (2833 days earlier)      last day (2115 days later) » 
00:00 - 19:0019:00 - 00:00

Wes
12:13 AM
@Tiffany is it me or this guy cannot pronounce words? youtube.com/watch?v=ctbdjzAH3zA
maybe he's not even english
 
 
1 hour later…
1:29 AM
hellooo any body home?
 
1:59 AM
Hi all :)
Interesting to see 2 our of the bunch here talking about object comparison: reddit.com/r/PHP/comments/8zuq7e/…
 
2:17 AM
@rtheunissen could you help me understand why echoing a line of html in php before your actual html in the same script would throw everything in html <head></head> into the <body></body> tag?
 
I think that's just the nature of how browsers interpret the HTML
 
okay taught i was doing something wrong, but this action does have an effect on the relatively positioned blocks in the html
for instance it throws my footer off position
@rtheunissen is there a walk around to this or should i just remove the relative positioning of the footer?
 
Footer should be fine. What are you echoing above the head?
 
2:40 AM
posted on July 18, 2018

New Cyanide and Happiness Comic

 
3:17 AM
@bwoebi This is not even close to final-draft quality, but here you go: wiki.php.net/rfc/…
It's not fully implemented either, so the approach my fail.
Thus far I've been working on supporting variance when all the relevant info is already present in the type tree and therefore doesn't need runtime checks.
Needs some code restructuring to work properly though, and that's been slow work.
 
4:10 AM
Night all
 
4:21 AM
@StatikStasis nite
mornin all
 
4:45 AM
@LeviMorrison thanks - checking it out
 
4:58 AM
@LeviMorrison Where exactly is "last type definition"? Note that you know only at runtime where that last class is (two different definitions of it may be e.g. inlined in an if block and included in an else block). Also currently it's possible to use methods / instances of that class before all its referenced types are loaded. This should still be possible (in particular in the single file example where the classes are not early bound).
 
An if/else block breaks the group as those are not declaration statements.
 
Hm.
 
This new autoload / delay behavior only comes into play if the type actually invokes the necessary variance rules.
 
Not sure about it, feels quite limited
 
Given how we compile our source code and how opache works I'm not sure it can be made too much better.
@bwoebi Any particular thing in particular that feels limited?
Also, do we have a documented place where things get early bound and not?
 
5:10 AM
You have to account for scenarios where there are two classes in one file and one in another file : now the verification of the first class triggers the autoloading of the second file. That class in the second file references the second class in the first file via typehint. Now the class cannot be verified where it should because the second class in the first file isn't declared yet
@LeviMorrison not really, look it up in compiler, something like zend_do_early_binding()
 
@bwoebi This is why verification is delayed: the class gets declared so it is in the symtable. It might be invalid: the verification will discover it later.
class A {}
class B {}
// load C ; A and B will be in symtable, unverified
// verify A and B
 
Ah, right
 
Also note that because of autoloading we can theoretically run totally arbitrary code with it unverified.
This is partly why I'd like to see "packages" that only allow declaration statements, and are loaded via paths and do not execute PHP code to do so.
I was initially worried about this but Nikita says it's already possible today, though I forgot the details.
 
@LeviMorrison which has certain disadvantages, like not being easily able to conditionally (extension loaded, php version check, constant, ...) include different class definitions
 
Yes, there are certainly trade-offs.
In this case you make packages for the variants and then you create a bootstrap script (which is not a package) that includes the relevant packages.
That's uncomfortable in cases where there's some tiny little thing that depends on something, though.
If optimizer is put in core then you can ensure all the top-level code contains declaration statements or constant expressions, though ^_^
 
5:27 AM
If you're designing a monthly recurring subscription. Let's assume its $30 every month. Would you collect the amount depending on the number of days in that month like 29,30 or 31 days. Or do you consider each month to be 30.41 days?
How is it generally calculated?
How subscriptions services like Netflix, Hulu ...etc does it. I assume 30.41 days is the correct approach.
 
@Levi I think your proposal is not that bad :-)
 
@bwoebi Sorry, which proposal? :-)
 
5:53 AM
Segmentation fault when using output_add_rewrite_var#76643
 
Hi all! please, make me understand the basics of RESTful api concept. I have searched everywhere, but I can't find something clear. For now, as I understond, REST is about portavility, server is responding with JSON, which is polymorph language, meaning you can easy plug any language GUI to it. Also in REST you let the duty of rendering (like php echo) to local machine. Server is delivering the datas and don't care about more, he is reasting in that way. Ihat any accured? TY!
 
6:15 AM
@DaveRandom ping
 
6:40 AM
also:
REST => https://www.ics.uci.edu/~fielding/pubs/dissertation/top.htm
RESTful => any pragmatic derivation of the above
 
morns
@Tiffany lol, man, that is truly hilarious
 
Should I ever have a cat again, I'll name it Vishnu Jesus Ahmed Buddha I.
My mum actually has a cat named Shiva. She does destroy quite a lot. So the name is apt.
 
@Gordon yeah, that seems like a good name for cat
 
@JoeWatkins hey, you around for half an hr or so? Just woke up, need to shower ext
 
sure
 
6:55 AM
Cool, ping you shortly :-)
 
7:14 AM
@LeviMorrison the suggestion how to handle verification
 
7:40 AM
morning ...
 
\o
 
8:00 AM
hoity-toity assuming airs; pretentious; haughty.
the chinese describe was error – #76644
 
@JoeWatkins sorry, so, I'm running into some issues caused by this mechanism github.com/krakjoe/apcu/blob/master/tests/server_test.inc#L26, specifically we use TEST_PHP_ARGS to pass args to run-tests.php, and when they are all passed through verbatim to php CLI like that it causes test failures because php basically just dumps help and exits
This approach of using that var to pass run-tests.php args seems to be valid, at least in the sense that I have seen other people do it
did you actually write that script or is it copypasta from somewhere else?
based on this, it doesn't seem (to me) to be a safe assumption that TEST_PHP_ARGS will always contain only options that valid for the CLI
Basically, if I were to write up a patch that makes that script parse out -c, -n and -d (which afaict are the only relevant options), does that sound sensible to you?
 
8:21 AM
Hello,
Is it a good approach to add monolog or some other login system to my expectations?
 
@DaveRandom yeah, it was just copied verbatim from the apc test suite ... so long as the tests run, doesn't matter how you change it ... never really read it ...
 
@DaAmidza Monolog is defacto standard for logging (not login; that's sth different). not sure what you mean by expectations.
 
user9059272
Hi
 
user9059272
How can I access the PHPRC environment variable?
 
user9059272
I tired var_dump($_ENV['PHPRC']);
 
user9059272
8:26 AM
and the result I received is
 
user9059272
Notice: Undefined index: PHPRC on line 2
NULL
 
@Gordon So I taught to avoid to call every time monolog in my mapper where I have a try..catch and to call my custom exception which will have monolog integrated. Not sure if it's a good approach tho.What would be your advice for this?
 
@DaAmidza sorry, I have a hard time understanding what you are saying.
 
@Gordon sorry for my bad explanation. Anyway I want to write a custom exception handler and within that exception handler to have monolog where it will log my SQL errors if they occur.
I'm not sure if it's a good approach.
 
@DaAmidza nothing wrong with that imo
 
8:33 AM
@Gordon would you go with this approach or do something different?
 
@DaAmidza sounds good to me.
 
@Gordon cool thanks for the help
 
you're welcome
 
@JoeWatkins kk, will PR later today, ty
 
moin o/
 
8:44 AM
31
Q: Your handling of security reports is disappointing

ArminiusI'm trying to get a security vulnerability on a StackExchange domain fixed for about 8 months, but the lack of progress and communication is frustrating. Unfortunately, asking for status updates repeatedly and offering further details if needed didn't get me anywhere. Timeline 2017-11-20 Repor...

@SerialKisser have you tried getenv('PHPRC'); or just getenv(); ?
 
user9059272
@HamZa : No, let me try it now
 
user9059272
@HamZa : Upon executing the code echo getenv('PHPRC'); I got the output as \xampp\php
 
user9059272
@HamZa : When I tried to execute print_r(getenv()); I got the output as
 
@SerialKisser delete this message, too muchpersonal info
 
user9059272
In the output of code print_r(getenv()); I couldn't see the index 'PHPRC' for any of the array element which I was expecting to see
 
user9059272
8:51 AM
Why so?
 
@SerialKisser No idea, but if getenv('PHPRC'); works then your problem is solved. I'm not in the mood to read the php C source
^ :_)
 
Wes
9:32 AM
\o
 
o/
 
Wes
my phone just took a picture all by itself
i mean with the shutter sound and everything
user image
3
 
9:51 AM
LOL
 
how to create auto postback selectbox(dropdown) without refreshing the page in php?
 
auto postback selectbox(dropdown). you say that as if it was a thing or actual technical term everyone would understand right away
maybe it is and I am just old
but I call gibberish
my assumption though is that you want to do an http request when someone selects something in a selectbox. if so, register an event handler for the selectbox and then execute the http request in the handler. that's not even special for a selectbox, but pretty much how all these dynamics on a webpage work. register a handler that fires off some js when triggered.
 
10:10 AM
may i use ajax?
 
@hearthacker I believe that's what he meant
 
Can you show me some example?
get data from db and want to display it based on select box values without refreshing page?
 
Impossible to determine correct auto pre/append file syntax. – #76645
 
10:28 AM
Hi
Any One help for this warning message: stackoverflow.com/questions/51419970/…
 
@hearthacker I don't see why you would have problems finding examples for this. Event Handlers are fundamental JS, as are Ajax (or Websocket nowadays) requests
on a side note, I deliberately phrased this in a way that would allow me to say I meant wouldn't. You should always form your sentences like this.
 
lol
 
sorry
 
11:03 AM
o/
 
\o
 
morning
 
yo tiff
 
morning @Tiffany
Stupid question I have this error Notice: Undefined index: image in this line echo "<img src='images/".$row['image']."' >"; which indicates I should initializes the $row['image'] variable how to initialize it?
 
probably if you don't have an image you don't even want to add the <img> tag at all?
 
11:12 AM
I want to upload image and insert it into mysql
@pmmaga
 
the names of your columns seem to be Store_Name and Store_Image, what do you expect $row['image'] to be?
 
hmmm
 
a couple other considerations: you should really ignore the name that the user supplies and create your own name for the file. And you are storing the image path to the DB before knowing if the move_uploaded_file will be successful
 
Really I don't understand @pmmaga
 
@Webdev Anyway, first of all, if that is literally a file in your codebase then you should know that it violates psr-1
 
11:26 AM
@pmmaga Now I understand the first consideration
 
@Webdev you need to have an if-then to check to see that the file uploaded successfully before inserting the path into the database
 
@Tiffany If I understand you the file moved successfully (I am working on localhost)
 
@Webdev sure, but add that check in the code too
 
@mega6382 where
Now I change the code to the following kopy.io/nCQgt but I get errors
Notice: Undefined index: Store_Name in C:\xampp\htdocs\www\Mall\Newitems.php on line 13

Notice: Undefined index: Store_Image in C:\xampp\htdocs\www\Mall\Newitems.php on line 15

Warning: move_uploaded_file(): The second argument to copy() function cannot be a directory in C:\xampp\htdocs\www\Mall\Newitems.php on line 24

Warning: move_uploaded_file(): Unable to move 'C:\xampp\tmp\phpB8D8.tmp' to 'images/' in C:\xampp\htdocs\www\Mall\Newitems.php on line 24
 
Wes
@kelunik if you are around i'm about compile
 
11:44 AM
@Webdev what is wrong with you? $_FILES and $_POST are coming from <form> and there is no field in your with name Store_Name or Store_Image
 
@mega6382 $_FILES and $_POST should be under <form> ?
o/
I should change this line to what $image = $_FILES['image']['name']; if my filed in db called Store_Name?
 
Anyone here have experience with being asked to refactor a legacy file?
 
12:00 PM
@DemCodeLines basically every offer by a recruiter is exactly that to some lesser or greater extent
 
Forget legacy file, think legacy codebase
 
and it doesnt get better when the previous developer was @Jimbo because he doesn't like Laravel
 
Well, I have a file where one function inside it specifically need to be broken down, it's almost 6000 lines long
As a result, it's untestable and a bit too complicated
 
@DemCodeLines it's not untestable
you can test what it currently does
 
Wes
god what a pain in the butt the command line. what the hell is wrong with linux people
 
12:03 PM
@Wes huh?
 
Wes
--e=""--X -V /X
its insane
 
that's on odd mix of linux and windows option-styles
 
it basically goes like this: accepts a string, does some validation, then inserts some of the calculated data into a sql table, again does more validation, again inserts and repeats this for about 10 different tables
 
@DemCodeLines so you'll need an integration test that uses a mock database and then compares what ends up there
 
@DemCodeLines I'm working on refactoring a legacy codebase built on 5.3
Updating it to work on 7.2
But at least it isn't one giant function. Codebase is broken out, but poorly
It's built on top of a god object
 
12:18 PM
I know this is not right group to ask this question.But I have to ask here. what is the exact difference primary key , candidate key and unique key. I search google but no answer satisfy me.
 
That helps @Gordon , it's currently a great example of spaghetti code, I guess adding basic workflow unit tests to make sure that everything that could happen is covered by the test and then changing the function would be better
 
@Exception A quick google search yielded this, with multiple answers that together might helpful for you.
 
@DemCodeLines if you're interested, there's a book on working with legacy code bases. I haven't bought it yet, but from reviews I've read, it's pretty good.
Working Effectively with Legacy Code by Michael Feathers
Pricy though :/
 
@Exception Here goes, All primary keys are candidate keys and all candidate keys are unique keys.
 
12:25 PM
Morning
 
@DaveRandom lol
 
@mega6382 Not quite =p I've just been busy.
very busy
 
@StatikStasis hmm, I refuse to believe you
:P
 
I know da php
 
Wes
i did nmake snap and i wish i know where the snap was saved. i searched the disk and i can't find it
 
12:31 PM
@Wes /snap/bin
 
he's probably using windows
 
Wes
E:\php-sdk\phpmaster\vc15\x64\php-src\php-sdk\phpmaster\vc15\x64\Release_TS
 
wait. why did you nmake it?
 
Wes
found it
 
utorrent has ads now... is there alternative torrent client without ads?
utorrent has become all mainstream D:
 
12:43 PM
utorrent has always had ads
But they are usually not intrusive, just banners on the top or bottom
 
I don't remember them... but maybe they were subtler then
 
I remember there being a chromium based browser that had builtin torrent client, that didn't have any ads
torchbrowser
 
Wes
always puzzles me finding out that mbstring is disabled by default. i mean i get it sux but that's the best we have
 
@Tiffany also there is qBittorrent, I've never used it but it supposedly doesn't have ads.
 
why the hell does debian include cakephp in its web server package... lol
sorry, the chatbox has becoming my complaint box
 
Wes
12:55 PM
@kelunik stuck here gist.github.com/Netmosfera/29db9abdfcdad02e905c875d13f08526 cursor blinking and not proceeding
 
@Tiffany don't worry, its everyone's complaint box. :B
 
Wes
@kelunik if i comment that test out, everything works gist.github.com/Netmosfera/d4b2bad4d9dfc918611b35fdfd36d4e6
 
@Tiffany where in my code I have to check that the file uploaded successfully
 
@Webdev you are already doing that, but just too late. Look at your own code for a bit and these things should be clear
 
1:10 PM
@Webdev have you read about prepared statements?
 
No
 
user9059272
Hi all
 
this is a nono you should use prepared statements instead
 
user9059272
To scan the configuration INI files on a per-directory basis(in my case '.htaccess files') by PHP is it necessary to run PHP on CLI with the '--with-config-file-scan-dir' option and then by overriding at run time by setting the 'PHP_INI_SCAN_DIR' environment variable?
 
user9059272
or do they get scan by PHP automatically?
 
1:11 PM
 
@SerialKisser php doesn't read .htaccess files. Apache does
 
user9059272
@pmmaga : .htaccess files are of Apache module but we can set PHP directives in it and those directive values are read by PHP.
 
@SerialKisser yes, but technically, it's still up to apache to provide those to php
 
@Tiffany I think php developers nowadays work with preparedstatements
 
@Webdev yeah, and you should too
 
user9059272
1:16 PM
@pmmaga : Have you understood my concern?
 
@SerialKisser I did, and I'm trying to explain why htaccess won't affect your CLI
 
user9059272
@pmmaga : I'm waiting for your explanation but what is the answer of my question? It should be either 'YES' or 'NO' only...
 
@SerialKisser what is wrong with you?
 
user9059272
@mega6382 : Nothing, I just asked the doubt I have.
 
@SerialKisser And he has answered, that the .htaccess files will not have any affect on php running in cli. Meaning that PHP cli will not scan for .htaccess files.
 
user9059272
1:22 PM
@mega6382 : Then when do I need to scan directories for the configuration INI files on a per-directory basis(in my case '.htaccess files')?
 
Hello,
I get the following problem when I deploy my app "parameter must be an array or an object that implements countable".I run the project on a local machine with PHP 7.2.1 but when I put I containerize it and put it on kuberentes i get that error.The docker file has PHP 7.2.4
Any idea how to solve it?
 
user9059272
@mega6382 I'm asking my doubt on the basis of text from the manual at secure.php.net/manual/en/…
 
@Webdev you're using mysqli_real_escape_string in your code, which is unnecessary with prepared statements
 
hey guys does anyone know how to work with WSO2 IS? i'm trying to get request path authentication and i think i'm very close to getting it
but i have problem where i don't know how to create like a link or curl request to bypass the IS sign-in page
that's the main reason why i'm doing request path authentication, it's to skip the annoying WSO2 IS sign-in page if the user is already logged into the system
right now i've been able to authorize the sectoken for that sign-in page and it works but i don't know how to pass the username/password for the login page within the URL
 
@DaAmidza that depends entirely on what you are doing on the line where you get that error
 
1:27 PM
someone told me it was localhost:9443/samlsso?SAMLRequest=<SAMLRequest>&sectoken=<SEC TOKEN>
 
It's in a simple for loop
 
but i'm not sure what goes in for <SAMLRequest>
 
user9059272
1:38 PM
@pmmaga : You can see the text on manual pages secure.php.net/manual/en/… and secure.php.net/manual/en/…
 
user9059272
@pmmaga : There it has been clearly mentioned that PHP scans the configuration INI files on a per-directory basis(in my case '.htaccess files').
 
> It is possible to configure PHP to scan for .ini files in a directory after reading php.ini
 
user9059272
@pmmaga : There has not been written that Apache reads or scans the configuration INI files on a per-directory basis(in my case '.htaccess files').
 
is .htaccess an .ini file?
 
user9059272
@pmmaga : Yes, in case of Apache it is. Actually it is an .user.ini-style INI file
 
1:41 PM
@SerialKisser great, but the link you sent me is about PHP ini files
 
user9059272
@mega6382 : What happened? Have you read the manual text on the manual pages secure.php.net/manual/en/… and secure.php.net/manual/en/…?
 
user9059272
@pmmaga : It's about the configuration INI files on a per-directory basis i.e. .user.ini-style INI files
 
@SerialKisser nothing, I am just busy with my own work
 
user9059272
@mega6382 : Ok, Whenever you will get time please do read them. Then you will come to know what I'm asking.
 
user9059272
I've still not got the answer as 'Yes' or 'No' for my question :
 
user9059272
1:44 PM
To scan the configuration INI files on a per-directory basis(in my case '.htaccess files') by PHP is it necessary to run PHP on CLI with the '--with-config-file-scan-dir' option and then by overriding at run time by setting the 'PHP_INI_SCAN_DIR' environment variable?
Or do they get scan by PHP automatically?
 
42
 
2:01 PM
anyone?
 
@SaltySea it may be worth it to ask on the main site
 
ah screw it okay
 
2:19 PM
@bwoebi Thanks ^_^
 
language fails – #76646
 
@FélixGagnon-Grenier Happy Prebeccaday!
 
2:39 PM
Update: It turns out the cannon has a motorized base, and can make holes just fine using the barrel itself as a battering ram. But due to design constraints it won't work without a projectile loaded in, so we still need those drills.
2
 
Wes
3:01 PM
 
@ircmaxell "Update: It turns out the cannon has a motorized base, and can make holes just fine using the barrel itself as a battering ram. But due to design constraints it won't work without a projectile loaded in, so we still need those drills."
The alt text is almost as good as the comic.
 
PDO's query parser should warn with multiple named parameters – #76647
 
@Ocramius I just went through extremely defensive php, slow clap
 
Wes
3:22 PM
Something I read: "PHP is like Borg in Star Trek - it adds the skills of others to its own to achieve perfection" :)
 
@rtheunissen is that the talk he did?
 
Yeah must be, just came across the slides for it.
 
Did you attend it or just checked the slides?
Wait, you're in NZ not EU
Sorry, used to like 75% of the chat in EU/UK
Lol, I wish I could hear the commentary for the introductory slides. I can imagine it in my head.
 
@Tiffany video this is more recent
 
Wes
marco gave that talk also on mars, i reckon :B
 
3:35 PM
I want to upload an image and insert it into mysql I am trying a new code but I get File upload failed please try again kopy.io/7WfmG
 
@pmmaga thanks
 
"I am not gonna explode or something, I am harmless" ~ @Ocramius
You probably won't explode, but you are definitely not harmless, :P
 
He's also Gandalphp
 
@Ocramius is just as harmless as an exploding supervulcano - be on another planet and you're fine.
3
 
4:19 PM
hi everyone.... just a quick question is there any way that i could implement a java application in a website ?
 
@Smple_V In the sense of an applet? Nobody does that anymore.
 
Wes
also it's not possible anymore. maybe in msie. for sure not chrome and firefox?
 
@Wes there is a service that I have to use that because of that has an alert that reads: Please use Chrome up to x.y.z or firefox up to a.b.c or ie from version 9
 
Wes
horrible :D
 
government stuff ¯\_(ツ)_/¯
 
4:30 PM
@NikiC @Wes thanks for the prompt response so whats the best possible senario to implement the application. The application is a video transcription tool where a user inserts a video into that application so that the user can see individual frames and write in a text editior and after the video is finished the application saves the data in a text file
 
@Smple_V Either using JavaScript, or by not making it a website
 
Wes
can do that with html5 and javascript nowadays
 
4:52 PM
@pmmaga our ERP used to be built in Java used in a browser. it was horrible.
I think it's still technically built in Java, but feeds to a front-end interface
It's a fucking mess though...
 
@Tiffany at least I wouldn't have to come to windows just for this :P
 
the old version of the ERP... I think it was only supported on Windows officially
another university/college might've gotten it to work on Mac or Linux, but the vendor wouldn't provide support in those scenarios
 
5:10 PM
Going back to an old question.

Why would a query time out the first try, but the immediate second try with a *different* value (like searching a different first_name) only take seconds?
 
@Fabor only when you change the parameters of a query or a second totally unrelated query is also fast?
 
Hi guys :)
 
@pmmaga Change params. So same query but looking for a new persons name.
Even if I go back to the original name it's fast again
 
@Fabor depends a lot on the DB, but I guess it can be related to the fact that first time it has to come up to an execution plan and for the second query this will be reused
 
How long do execution plans remain?
 
5:19 PM
@Fabor no idea, probably configurable somewhere
 
5:40 PM
is there a tutorial article that goes into pretty thorough depth of setting up a development environment using Virtualbox and Linux for PHP development? (as in writing applications in PHP, not developing PHP)?
I ask because I have a tutorial I started a year ago. Originally, I intended it as a rough cheatsheet for myself since I would spend like two weeks working on a VM, then six weeks would go by, and I'd scrap it and start over (multiple times). The tutorial slowly grew to include my trial and error, and tips people have given me or that I've found while troubleshooting to make it easier for me on future attempts. I'm debating on cleaning it up and making it a tutorial for other people to use.
 
@Tiffany I just installed VirtualBox and Vagrant then used puphpet.com to create a configuration. CD to the unzipped folder and "vagrant up".
 
lol :P
I like vagrant, but I get a certain amount of satisfaction of building the VM myself from scratch that I don't with vagrant
the tutorial I wrote was originally intended to set a dev VM up to use with Patrick's No Framework tutorial, since his tutorial wouldn't work with basically any vagrantbox I tried
so, my tutorial has a specific use case, but wondering if I could tailor it more towards a general purpose PHP dev VM, and if it's worth even doing it, specifically if another tutorial like it already exists, or as you said... using something like vagrant to do it for the person
okay, looking at puphpet now, and this is pretty sweet... why haven't I seen this before
 
Why not learn to build your own vagrant scripts then? Ah right, there you go :p
 
@Fabor I guess in part... doing it all from scratch is a learning experience?
 
I mean, it becomes less about scratch at a point and more about autonomy.
 
5:55 PM
I have a better idea of what my VM has because I've set it up myself, instead of using something automated. However, automation has a purpose: getting an environment up quickly, and I don't want to replace that.
 
You could just tick less stuff for the puphpet to install and do it manually too. But handling all the VM network stuff, bridging etc... not so fun IMO :P
synced folders etc
 
I kind of see it like... if you don't care what's required to set it all up, and just want to use something premade, then do it. If you want to experience setting stuff up manually at least once, then why not?
@Fabor it's not that hard though...
at least in my experience... I suppose if someone's network is set up differently than mine, they could encounter entirely different issues than I have, but the instructions I've been given by others on getting the port forwarding and folder sharing set up have been straightforward and easy
@Fabor I dunno, I know I sound like I've already made up my mind, but I haven't. I'm just supplying reasons why I think it might be a good idea to share with others, but I'm honestly not sure if they're good enough reasons.
 
Nothing wrong with the hard way :)
Learn it, then automate it.
Maybe start looking in to things like Ansible, Packer, Terraform, Jenkins
 
Wes
\o
 
yar, that's my thought too... learn it the hard way first so that a better understanding of how Linux and VMs work is in place, then go the automated route, and possibly able to better troubleshoot issues down the line? I'm also reminded of what someone said to me here a while back. That even though I may not think I have anything to offer for others to learn, there's always someone who's less experienced than me, and could find use in what I've wrote (though I think that's subjective...)
¯\_(ツ)_/¯
Well this is just peachy... power went out
 
6:17 PM
@pmmaga With execution plans on first run would it really create a difference of 50+ seconds?
Just an example right now I search for "John" and it took Time: 18536.63 ms. Changed to Steve and Time: 374.15 ms. Back to John Time: 222.57 ms
 
Wes
@NikiC remember that phpstorm autocompleted to weird stuff, like "Exc" would autocomplete to some weird phpunit dev dependency. do you know if that changed in newer phpstorm versions? :B
 
@Fabor that sounds unlikely indeed. another (remote) possibility would be that it is about establishing the connection to the DB? That's why I asked about a completely different query. So I'd suggest you now run a completely different query at the start, and then run the one that took the 18 seconds.
 
It's not the first query on the page.
 
@Fabor uff.. then the execution plan is my only idea... :/
try running an explain on the query and see if that also takes a really long time?
 
6:34 PM
I'll have to wait a bit first but will try
 
@Wes don't know
 
@Wes generally choosing the right autocomplete is a sure guard against this
But yes, lately the un-namespaced Exc has scored higher in the list
 
Wes
the right autocomplete?
 
are you not talking about autocompletion in phpstorm? like, the dialog that opens and suggests stuff when you type?
 
Wes
yes
 
6:37 PM
me too.
you have to choose the right type from the list
 
Wes
yes but what you'd expect to get is at least the thing ordered alphabetically and the first in the list selected. so for example you could get used to write the same thing over and over and always have it completed to the same fqn... but it didn't do that. the highlighted item was always random
for example in css i write "fo" i expect "font:" to be autocompleted, instead the item selected by default is "font-variant-east-asian"
which is weird as hell
 
@Wes lol
I'm sure you use that CSS property all the time :P
 
Wes
makes no sense
 
you realize font is a four letter word?
like, moving around took you 2047% more time
... but yeah, I'm only being an arse, I guess sometimes it's strange
 
@Wes I never use font, just the more specific ones :-P
 
6:51 PM
the point being, you spoke about Exception, and \Exception is indeed one of the top choices in my case on autocompletion
 
Wes
for me "Exce" always autocompletes to something weird
@FélixGagnon-Grenier more infrequent than unique taste twitter.com/WesNetmo/status/1020012348537483264
it's actually quail eggs
they taste funny :B
 
Concerning data analytics and charts: what library do you guys prefer? D3.js comes up a lot but I wanted to see if you guys recommended anything else? I'm wanting to basically have some drop boxes that allow you to change the chart you're looking at (sales, sell-thru, avg price, etc.) and then be able to select which time frame I want data for...
(static choices such as past 30 days, 6 months, 1 year) and I might allow them to select which "stores" to look at so that they can compare two specific stores rather than all stores. All data would of course come from database. A lot of extra details- just curious of libraries you may suggest.
 
00:00 - 19:0019:00 - 00:00

« first day (2833 days earlier)      last day (2115 days later) »