« first day (2312 days earlier)      last day (2622 days later) » 

12:04 AM
@Danack Not sure exactly.
 
@JayIsTooCommon Sorry I didn't review it :-/
 
12:19 AM
> # systemctl
Failed to connect to bus: No such file or directory
 
there is a significant difference between "beer" and "bear"
 
anyone to help to get xdebug to run on xampp ?
I only see a m breakpoint in the right panel
but it does not seem to run
I have php_xdebug-2.5.0-7.0-vc14-nts-x86_64 in xampp/php/ext
i run PHP 7.0.13
my php.ini is like :
zend_extension = "C:\xampp\php\ext\php_xdebug-2.5.0-7.0-vc14-nts-x86_64.dll"
xdebug.profiler_append = 0
xdebug.profiler_enable = 0
xdebug.profiler_enable_trigger = 0
xdebug.profiler_output_dir = "C:\xampp\tmp"
xdebug.profiler_output_name = "xdebug_profile.%R::%u"
xdebug.remote_enable = 1
xdebug.remote_handler = "dbgp"
xdebug.remote_host = 127.0.0.1
xdebug.remote_port = 9000
xdebug.trace_output_dir = "C:\xampp\tmp"
 
Anonymous
@DaveRandom no worries, I should have done a better job :p I'll put more thought into the next command / plugin
 
and I added in both sublime project settting and sublime xdebug setting:
"settings": {"xdebug": {   "url": "http://127.0.0.1/",}}}
 
12:35 AM
@JayIsTooCommon That architecture is hideously complicated (although necessarily so), it's easy to miss stuff like that
One thing I will say though is that having to make public methods that are for internal use is an alarm bell for me
not that I don't do that sort of thing all the freaking time, of course
And my refactor is already pissing me off, I injected a stateful internal VO (PendingMessage) into an entity (PostedMessage)
Probably needs some kind of wrapper VO but I couldn't be bothered thinking about it any more
@Olivvv if you do phpinfo() does xdebug show up?
Also, did you restart apache after you modified php.ini?
Hey @Danack you any good at sed?
oh nvm
thanks rubber ducky :-P
 
12:53 AM
@DaveRandom after going to command line and restarting it, it told me it could not load the xdebug file (what xampp did not say). So I used phpinfo() in the xdebug.org/wizard.php and it gave me the correct file. Now I seem to have some data, so I guess it is working.
thanks
 
:-)
 
1:34 AM
@DaveRandom trick question, no-one is good at sed.
Also, holy shit:
Immediate evacuation of Oroville, CA ordered due to potential flood: "This in NOT A Drill. This in NOT A Drill. Thiā€¦ https://twitter.com/i/web/status/830945530389749761
 
California be like "omg we need water no wait not that much water and not there"
 
I'm happy to have the water, but it has caused a lot of damage. After years of drought and wildfires the soil isn't holding together so well.
fortunately the problem in oroville is "just" the aux spillway.. if the dam itself was in danger way more people would be way more fucked
 
Apparently that might have been a factor in the problems with the spillways at that dam. One theory is the soil has dried out so much is contracted away from the concrete underneath.
 
some live heliocopter footage facebook.com/KCRA3/videos/vb.115763581513/10155026580966514/… (sorry for the facebook link, it's the only one i've seen)
 
1:49 AM
Hello
 
Hello, I am Galstaff.
 
holly shit
that's a lot of water
 
What's everyone up to?
 
watching fb live now ..
 
They have facebook livemap
allows you to browse all the people using live.
 
2:26 AM
Does anyone know why the hell a file under VC would not be getting cloned when the rest of the repo is? A git status says the branch is up to date with origin, the server clones from origin but the file does not get copied to the server.
 
@ibanore .gitignore?
 
@Sherif The file is tracked. I do a git --stat and it was added two commits ago. The two other files it was committed with get cloned
It's so weird and has cost me about 2 hours
When I check the repo in bitbucket the file is there
On the same branch I clone from
 
Did you check out the right branch then?
I'm not sure how you arrived at the conclusion that it isn't being copied if it shows up in bitbucket.
Also, what is git --stat? Never heard of that before.
Nor do I see it in the documentation.
Or do you mean git diff --stat?
 
Sorry I meant git log --stat
I'm beginning to think it has something to do with Symfonys script it runs after a composer install
 
I see. So you pushed to the remote origin, it shows up there, and then you try to clone from the remote origin again and it's not there?
 
2:37 AM
I have a feeling it deletes my file in the /web directory
 
Is that it?
 
Yeah
This one file
 
Oh, symfony...
 
The other two or three files that were committed with this file get cloned! It is driving me insane
Symfony and it's more than annoying post scripts it runs after a composer install. I have a feeling that has to be the culprit
It wouldn't be the first time it caused me hours of pain
Hmmm there is a method defineDirectoryStructure() which is in the same class that all the methods which get called after a composer install
This has to be it
 
I don't think /web is even a directory in the symfony git repository.
 
2:41 AM
All Symfony standard editions have the /web directory
With about 4 or 5 files in it
 
And symfony's repository has vendor/ in .gitignore so...
@ibanore That maybe so, but it must come from the installer, because when I look at their git repository on github I see no directory called /web.
 
Ah, that's a different repository than the one I was looking at.
/web/bundles/ is in that .gitignore. It's not there is it?
 
What I have in the /web is another file like app.php and app_dev.php. It is an app_alpha.php which allows me to load the site in an alpha environment like site.com/app_alpha.php/some-page etc. I think after a composer install Symfonys post scripts it runs re makes this /web dir and that's how my file gets deleted
Wow
I found it
Holy shit
Have you ever used the tool Deployer for deploying stuff? This is my first time
It was a Deployer thing
 
No, never heard of it before.
 
2:48 AM
In it's base config for Deploying a Symfony app it has a config value "clear_paths" set to web/app_*.php which deletes my web/app_alpha.php file
Sometimes I hate computers
 
Stop using shady deployment tools man. Stick with something more tried and true.
 
This is why you can never give an accurate estimation on a delivery time to a client. You can never foresee these things that end up taking hours and hours to solve only to find out it was a tiny thing.
This is a trusted enough tool I think. deployer.org Beside this problem I could deploy to the server and run all the task straight away
 
Sounds strange that your deployment tool likes to make such arbitrary decisions on your behalf. I can't imagine Ansible would wish to just arbitrarily delete files for me.
If I tell Ansible to deploy a repo, I don't expect it to also start modifying that repo on my behalf :)
 
The thing is I didn't have to use the pre define Symfony deployment tasks but I did. I can see why it did it because in a deployed Symfony app you usually should only have one web/app.php file which is the front controller and loads the application up in production environment. It is to make sure the app_dev.php file does not get deployed which allows you to load the application up in dev environment by going to site.com/app_dev.php/some-page
 
I see.
But then that only calls into question why on earth Symfony doesn't have a saner way of configuring your environment for production or dev?
Then again, I don't use Symfony much, so I wouldn't know.
 
2:54 AM
I'm interested to know how you load your application up over HTTP in different environments
I do like Symfonys way and it was the Deployment tool at fault this time for all these hours of pain
And my fault for looking at the Deployment tool last
 
I don't know much about Symfony, but plenty of frameworks just make the environment configurable. I hate to use Laravel as an example for anything, but you can change the environment there, switching between dev and production, and use middleware to mediate based on environment configuration.
I'm sure the same should be possible in Symfony.
 
cough webpack does that well
 
Changing physical files in the repo to change environments just seems rather arduous to me.
Also likely highly faulty, because I separate config files into a separate repo in order to make deployment between environments simpler.
 
With Symfony on the CLI you can execute your command and supply the environment you want it to run in. If you want to load the application over HTTP in a different environment you just add a new /web/app_{env}.php file
 
I can always deploy from the same code base, but not have to redeploy configs along with it.
@ibanore Right, that just seems silly to me.
Why can't I just let the Middleware decide how to deal with the environment on my behalf and not have to worry about creating new front controllers?
Now I need a separate front controller for production, QA, and dev?
yuckh
 
2:59 AM
But how do you tell the middleware which environment you want? Do you send a special HTTP header with the request?
 
No, it's in the config file.
If you keep a separate configuration repository anyway, which you should, you never have to worry about accidentally deploying development code to production or vice versa.
 
But lets say I have environments prod, dev, alpha, beta, test. When I send a HTTP request to site.com how do I load it up in a dev or test environment?
 
It's always the same code, the framework just knows how to deal with the different environments based on the loaded config.
@ibanore By changing the config file.
If your config has $environment = "dev" or whatever, then the Middleware should be able to read that from the loaded config file and act accordingly.
However you framework does it.
 
But then say I'm developing locally in a dev environment but need to run tests on the same machine. I need to run some functional tests on a HTTP API. How do I send requests to that API loading the test environment?
With Symfony I'd go to site.com/app_test.php/some/endpoint
 
Change the config file before you run the tests?
 
3:05 AM
hear the sound of badassedness... from a string quartet. youtube.com/watch?v=MK-FPTIpBeQ
 
You seem to be overthinking this. If the config says the environment should be dev, the code should operate under that assumption. If the config says the environment should be prod, the code should operate under that assumption. But to suggest that the user should operate differently based on the environment is just a silly onus to place on the user.
 
That seems more annoying to me. I like having my clear site.com/app_dev.php when I want to run in dev environment and site.com/app_test.php/ Now I never need to mess with config files when I want to load up a new environment over HTTP
 
You shouldn't have to mess with config files anyway if you're keeping the configs in a separate repo.
That way you only deploy the prod config to prod once and the dev config to dev once and you can continue updating both environment with the same code base without ever having to worry about changing configs.
 
But when you change environment you change the config file to specify the environment correct?
 
Correct, but why would you change environments?
It's not as though you one day suddenly decide to change your production server into a dev server or your dev server into production, do you?
> I'm gonna start running the site from my laptop now...
 
3:08 AM
@Sherif Depends if it is automated ^_^
 
I find a simple config.ini file, in the repo, ignored by git, with a fallback on config.default.ini very useful
 
The dev and test are a good example I think. When you are locally developing obviously the dev environment is what you will be in most of the time but you will also need to load it in a test environment to run tests which uses a different DB etc
 
@LeviMorrison I don't follow
 
Dev servers may move to production if a production server goes down.
 
@ibanore Not sure how test environment is different from dev environment, but the fact that you have a different environment probably means you should have a different VM for that.
@LeviMorrison Oh that sounds lovely.
"Production is down. Let's switch everyone to dev"
Can't see anything going wrong there.
 
3:10 AM
Maybe you aren't used to things failing routinely?
Of course we automate failover.
 
No, I'm very used to that. However, I use an actual provisioning and deployment tool that can deal with provisioning new production boxes. I don't just switch to dev.
 
We don't "just switch to dev"
 
@Sherif But I'm talking about locally you will be in a dev environment obviously and surely a test environment too. The test environment has different config. It uses a separate DB since it needs to load fixtures before integration and functional tests and purge the database repeatedly, it disables sending emails etc
 
Well, that's what you said.
 
No, that's not.
I said dev servers may move to production if a production goes down.
 
3:12 AM
2 mins ago, by Levi Morrison
Dev servers may move to production if a production server goes down.
YOu specifically said the Dev server
 
The purpose of a given server is based on its current assignment.
Change assignments and the tools do the rest.
 
Right, then reassign it. Don't just put it into production. That's what a provisioning tool should do. Take care of updating the proper configs and provisioning the box accordingly.
Those are very two different outcomes.
 
You are making assumptions that don't have to be there.
I am reassigning it. How do you think it moves to production?
 
Great, then I'm not sure why your statement "It depends" is in anyway related to what I said.
You're talking about something completely unrelated now.
 
Dev -> production does happen.
5 mins ago, by Sherif
It's not as though you one day suddenly decide to change your production server into a dev server or your dev server into production, do you?
 
3:14 AM
Right, read in context please. Clearly I'm saying you don't put a development environment into production. Not you can't reprovision a dev box to become a designated production box.
 
It's not completely unrelated.
 
It is. You just love arguing endlessly.
 
...
> It's not as though you one day suddenly decide to change your production server into a dev server [...] do you?
Yes, yes I do.
How is that unrelated?
 
Jesus Christ man. Read things in context will you?
 
I am.
I'm done, since apparently you can't even follow your own words.
 
3:16 AM
Anyway, this conversation has become ad nauseam. Good luck.
 
I feel the passion in the room.
 
@ibanore Sorry about that. He always tends to have a fascinating way of going on tangents like that. The fact that it's a different environment suggests that it should be running under it's own VM. So when you provision your QA VM or your dev VM or your prod VM it should already have the environment setup. You shouldn't be trying to run a multitenant environment like that.
 
It's not a tangent.
 
The environment should be fully autonomous such that it can be built up or torn down with ease through automation. So things like Chef, Vagrant, Jenkins CI, Ansible, etc... come in handy here.
 
Exactly... and if it's fully autonomous one machine currently doing purpose X can be reassigned to do purpose Y.
 
3:21 AM
If you do it this way you'll find that you shouldn't ever have to worry about writing new code or changing the user's behavior in order to deal with different environments.
I mean, can you imagine having to write different functional tests or systems tests between prod and dev because your end-point has to be changed in each?
I mean, I don't want to have to write different Selenium tests, for example, between prod and dev. I'd prefer the test suite work regardless of the environment.
If you separate the concern of changing the environment from that of actually running the code then you wouldn't have this problem. Which is why I'd prefer deploying a different config file to change environments over creating an new front controller for each environment.
 
 
1 hour later…
4:51 AM
Cakephp help needed regarding dependent dropdowns on edit form.
 
 
1 hour later…
5:58 AM
Morning o/
 
0
Q: PHP basic autherization in curl concept

Deeban BabuI am writing web services for a mobile app using curl and yii2 framework. I need to authorize request URL in my web service. Below function is used to response a web service. public function getFAQDetails(Request $request, Application $app){ $sql="SELECT FAQ_TITLE as faqtitle, FAQ_C...

 
 
1 hour later…
7:21 AM
@kelunik I'm having a great deal of trouble parsing the semantics of that rfc :/
My English lexer seems to be broken :|
 
I think the tl;dr is to change the signatureof that function
 
Yea, I got the gist of it skimming over the discussion.
 
moin
 
Hey guys, I have a question about security. Let us say that I use a db connection php file to connect to the database, is it possible to view this file and its content if someone goes to that file path of that db connection php file
?
 
o/
 
7:35 AM
Out of the root folder.
So no one can have access.
 
aha, thanks, so if it is in the root, it can be accessed by everyone?
by visitors
?
I tried to visit the file path but it was only a blank page
 
you can denie asccess
with .htaccess
file
to any folder
 
True, but I think I will just put it outside of root
 
@tomSurge you can deny, but if you have an error in your webserver config you are in big trouble... so its better to just point it to a public folder instead github.com/PatrickLouys/no-framework-tutorial/blob/master/…
 
so it is not secure at all to have it at root without htaccess?
 
7:38 AM
Oh hey @Patrick, I followed your tutorial this week-end, great job :D
 
hey @Patrick in your php tutorial I get a 404 any every route.
What am I doing wrong?
I cloned the repo. Composer install.
 
@SalOrozco are you using the built in webserver?
 
mornin
 
you shouldnt clone any repo, write the code from scratch and follow the tutorial ;)
 
That's where I kind of got lost.
 
7:43 AM
Will look at your tutorial @patrick
 
In the last 3 sections.
 
Seems to be a good thing to know
As the website I am building is not using any particular frameworks.
 
So I wanted to go over the source.
 
Other than OOP
 
@SalOrozco navigate to the public folder and do php -S localhost:8000
 
7:47 AM
ok
The requested resource /
was not found on this server.
 
guys anyone help me on this ?
http://stackoverflow.com/questions/42197531/how-to-parse-and-regenerate-pdf-using-php
 
8:13 AM
mormgoingng
 
I'd vote no just because reading that rfc gave me a headache.
 
Anonymous
8:28 AM
moin
 
I'd vote no because it's yasuo and it stinks
@JayIsTooCommon morgen
 
Anonymous
i bet he's already got his 23 commits ready for it
 
Anonymous
!!wotd
 
pedagogy: the function or work of a teacher; teaching.
 
Anonymous
!!horoscope cancer
 
8:32 AM
> ā™‹ Cancer | June 21 to July 22
Youā€™ll soon stumble upon the secret to a happy marriageā€”a secret so simple youā€™ll take perverse pleasure in keeping it from your wife.
http://www.theonion.com/features/horoscope
 
mooornings
 
Anonymous
o/
 
\o
 
yo @Ekin
 
hoi
!!version
 
Thinking someone needs to pull :-)
 
morning
 
o/
 
mornin
 
8:55 AM
!!reminder start bacon in 15 minutes
morning
 
Reminder 35630144 is set.
 
@PeeHaa @NikiC you will like this one ...
not like, I mean hate, and be infuriated by ...
 
I just hope he puts it up to vote so we can get rid of it already
 
it shouldn't get as far as an RFC, if everyone is saying "that's a bad idea", you don't take it to RFC ...
 
Based on the stream of mails crap it may just be faster :P
 
8:57 AM
I wonder what someone has to do to have their karma restricted/revoked ... the whole point of karma is making bad things happen to bad people ... I mean ... just ...
 
morninis! o/
 
\o
why has github changed colour ?
I DON'T LIKE CHANGE
 
2 days ago, by JayIsTooCommon
43 mins ago, by Félix Gagnon-Grenier
30 mins ago, by PeeHaa
47 mins ago, by PeeHaa
uhhhhm did the header on github just turn black?
 
I haven't been on pc over weekend, so didn't notice ...
 
Excuses excuses
 
9:01 AM
We're going 4 levels deep, Félix bet on 6
uhhhhm did the header on stack overflow just turn white?
 
Nope
 
let's see how many quote-depth we can get with this
 
You probably opted in for new crap
 
probs
 
I can't see how to undo it ...
 
9:04 AM
now to work on how to adapt their shitty home-made recurring events systems to the iCal formatā€¦
@JoeWatkins the so-main bar? In your settings. The GitHub bar? CSS edit bro
 
what is an CSS ?
 
You know what CSS is right?
:D
Maybe we can make a greasemonkey script to turn the bar back white
And sell it
And make MILLIONS
 
Millions of internet points
 
greasing monkeys is cruel, I want no part of it ...
 
posted on February 13, 2017

New Cyanide and Happiness Comic

 
9:08 AM
Sometimes I don't know if Joe REALLY doesn't know about browser technologies or if he's just joking
 
I am a C programmer
 
web is nice tho
also, mornings
 
@JoeWatkins start bacon
 
@JoeWatkins CSS is an newer version of CPP
 
Moin 11
 
9:14 AM
morn
 
@Sean morgen
 
Morning everyone
 
'nin
 
Anonymous
o/
 
9:19 AM
\o
 
Anonymous
Are related PR's supposed to be closed after the RFC is declined? github.com/php/php-src/pull/2234
 
yes
 
moin
 
yomin chris
I didn't have a chance to pull network apart yet @DaveRandom
hopefully this evening
 
Anonymous
moin chris
 
9:32 AM
lol @JoeWatkins nice picture
 
Anonymous
 
is that the same rfc ?
 
@Trucy I swear I used to work with someone that spoke just like that.
I think he may have done the voice over.
 
Anonymous
@JoeWatkins yep, seems so. Both reference wiki.php.net/rfc/user_defined_session_serializer
 
9:36 AM
I can't believe this video actually got 622K hits
 
ugh, looks like it has been animated by the same guy that made family guy or so
 
I uploaded that video as a horrible joke like 5 years ago. For some strange reason people still keep watching it.
And the comments are just... well... like any other youtube comments I suppose.
 
@JoeWatkins no worries
 
echo get_the_title() . ' | ' . __( 'Section one', 'data-fg' );
can you guys explain me what echo is doing here?
 
printing stuff?
 
9:41 AM
yes it prints "My site | Section one" but what is data-fg is doing?
 
wtf function named __
 
anyone savvy with apache and can clarify for me whether any server defined directory and location directives also apply to any vhost directives?
 
Just naming?
 
@Gordon what you mean vhosts inherit global directory config?
 
@Gordon They bubble down, like php configs (so local overrides global).
 
9:43 AM
@DaveRandom yes,do they?
 
> "Directives in the configuration files may apply to the entire server, or they may be restricted to apply only to particular directories, files, hosts, or URLs. This document describes how to use configuration section containers or .htaccess files to change the scope of other configuration directives."
 
@Sherif I've been through that a dozen times. It's still unclear to me.
 
@Gordon I would hope they don't but i's such a long time since I dealt with Apache config that I can't remember, if I ever knew.
 
@Gordon "may apply to the entire server, or they may be restricted to apply on to particular directories..." is unclear to you?
 
9:45 AM
@DaveRandom is it just to identify, or for some other purpose?
 
It works its way down from the top-most loaded config to the runtime configs, just like in PHP.
 
@Sherif yes. very. it says may.
 
...if that's any clearer
@Gordon Right, because directory directives may be relative or absolute.
 
I would hope that they don't tbh, directives like Require are so far-reaching that it doesn't make a lot of sense to inherit them across discrete containers
 
For example, the vhost may specify a DocumentRoot, or it may not.
 
9:46 AM
@Sherif no, it's not clearer. also see the paragraph on how the sections get merged further down below
 
@AccountUnknown It's not a good name (imho). It is not obvious what it does, and it is impossible to google/search documentation for.
 
@Gordon Is there a specific issue you're dealing with?
 
Let's say I have <Directory /php> with SetHandler application-php-blah and then two vhost configs: one with an IPv6 listening on :8080 and one with an ipv4 listening on 8000. Does the /php apply to both vhosts then? In other words, Can I access vhost1:8080/php and vhost2:8000/php
 
@AccountUnknown __ is just an alias for gettext see php.net/gettext
 
@Gordon I assume you are not in a position where you can easily test?
 
9:48 AM
@Gordon Depends. If the server has a document root set that complies with /php then yes. And if the vhosts don't specify another document root, then probably.
Remember, the server normally doesn't set a doc root restriction unless you're using httpd 2.4, in which case you have a /usr/share default or something like that.
 
@DaveRandom I can always whip up a docker container and smear some config into it. I just try to avoid it though
 
So in that case /php wouldn't apply to the server even.
 
@Sherif ok, so that means any server wide directives are also evaluated against the vhosts
 
@Gordon Not all of them, no. <Directory> does, but you have to take into consideration that it can also be overridden by local configuration further down.
 
@Gordon so everything I am reading - and details are sparse, weirdly, I'd have thought this would be clearly documented - suggests that everything outside vhosts is global == inheritable & overridable
 
9:53 AM
@DaveRandom yes, seems like it
 
httpd has a specific load order. It each loaded configuration overrides the previous and each runtime configuration overrides the previous. So if no DocumentRoot directive is set, <Directory> likely wouldn't even work in httpd 2.4, it gives you a restricted error.
Pre 2.4 it may or it may not depending on the access.
 
Anonymous
@Sherif i hope you monetised it :)
 
thanks.
 
@JayIsTooCommon oh yea, I made thousands off that thing.
Granted that was over the course of several years, but for something that was meant to be a troll it really paid off surprisingly.
 
Ugh I hate trying to figure out the perfect design for the front end
I always feel like it looks way off when in reality nobody would probably think twice
 
9:59 AM
@Gordon e.g. httpd.apache.org/docs/2.4/mod/mod_rewrite.html#rewriteengine "Note that rewrite configurations are not inherited by virtual hosts" suggesting this is a break from the norm. But also suggesting that - as you would expect - it's not an unbreakable rule, so you'd have to test it to be sure
 

« first day (2312 days earlier)      last day (2622 days later) »