What’s the right HTTP status code for a response when I can’t perform a DELETE due to a FK constrain?

Just found this website that says that ‘409 Conflict’ should be used when ‘the request could not be completed due to a conflict with the current state of the resource’ and ‘where it is expected that the user might be able to resolve the conflict and resubmit the request’, then it gives an example when … Read more

Untracked files not shown in “git status”

I figured out what was going wrong. Basically the first line in my .gitignore file is “*/”. This causes any file added to sub directory being ignored by git status command. But the funny thing was if I modify any files in sub folder, git status correctly shows them as modified as the file is … Read more

How can I get ‘git status’ to always use short format?

Starting git1.8.4 (July 2013), you can configure git status to use short by default. See commit 50e4f757f4adda096239c1ad60499cf606bf2c6f: Some people always run ‘git status -s‘. The configuration variable status.short allows to set it by default. So: git config status.short true And you would be all set! Ben Allred adds in the comments: A quick test shows … Read more

Hata!: SQLSTATE[08004] [1040] Too many connections