Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API

From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Search - "www-data"
-
So I maintain a open source PHP app that wraps youtube-dl, providing an UI for it basically. Some guy on a forum DMd me saying it's not working for him. I asked him what php version he used and if the file permissions are correct (the script makes and switches directories, so the permissions can't be root but need to be www-data).
He answers with PHP 7.2 (the newest that's rare) and says the file permissions are correct.
After 2 weeks the problem still persists and ofc I am doubting my code here. We finally get online together and I can use anydesk to work on his machine.
I discovered 2 things.
1) File permissions were just completely wrong.
2) PHP WASN'T EVEN INSTALLED
So what did I learn?
Never trust the user and I am glad that I work as a dev, not as a tech support.10 -
I strongly dislike the www part in domain names (the subdomain, really), that's not really news anymore.
Loads of sites use it which I find annoying as fuck for some reason but so be it. (I understand that its very logical to loads of people)
And then you get a client who calls in because the email server isn't accepting her username/password.
*looks into the logs*
"incorrect authentication data: info@www.herdomain.com"
Kill it with fucking fire.18 -
So I wrote my first IoT thingy...
And I'm looking for more ideas/feedback to improve it. Atm I have a raspberry pi collecting temperature, humidity and light all on different intervals (because I taught it'd be a challenge to have them all on different intervals ^.^) and I'm displaying that data on http://11601615.pxl-ea-ict.be/iot/ (I'm working on making it pretty).
So any ideas/feedback?6 -
I would like to present new super API which I have "pleasure" to work with. Documentation (very poor written in *.docx without list of contents) says that communication is json <-> json which is not entirely true. I have to post request as x-www-form with one field which contains data encoded as json.
Response is json but they set Content-Type header as text/html and Postman didn't prettify body by default...
I'm attaching screenshot as a evidence.
I can't understand why people don't use frameworks and making other lives harder :-/3 -
!rant && isSorry = true
this aint StackOverFlow but I need a tiny help here, I'm receiving data result from an API that is formatted as x-www-form-urlencoded, do I add a valid url at the beginning and use URI parser in Android or is there some other solution for it?
Sample of the result I'm receiving:
repositoryId=TEST&response.gatewayCode=BASIC_VERIFICATION_SUCCESSFUL&result=SUCCESS&sourceOfFunds.provided.card.brand=MASTERCARD15 -
Executed chown -R www-data:www-data /var/www on my server without even thinking.
Not long after I panicked for a few seconds while checking if everything was still working. I didn't know if this command would break stuff or not.
So glad all websites are still working.
Now I'm sitting here thinking: was I braindead while executing the command??
All I wanted to do was set the right permissions for certain folders because images couldn't be uploaded with PHP.6 -
LINUX MASTERS, I can't believe that linux didn't get rid off yet of the annoying user:group system.
Anyway, I have two pre-existing groups(postgres & www-data), now I need to enable both groups full access to an HD for data storing, currently the owner of /media/"user"/DATA is www-data but I need to enable the postgres group to operate in it.
I seached around and can't get around how to accomplish this, if it's even possible.
Help >_<15 -
Any one running Symfony on a Docker container in production? I currently try to migrate our dev env to a docker compose setup (from a "monolith" vagrant vm). I'm atually not stuck at a Symfony specific thing, but on a, I guess Docker specific one(?), The issue is, I need to read and write with two users to one folder (in my case the /application/var/cache folder). Since I mount my whole code into the docker container (to use an IDE on the local files), I've got a volume (not mounted to the outside world) for that folder. (As far, as good). Now this folder is owned by root and root is also the user I get when I enter the container. When I then run a cli script, that writes to this folder, every thing works (as it's run by root) and the resulting entries in the cache dir are owned by root. Trouble starts when the php fpm process tries to write stuff in there too (as it's run by www-data).
If I add `USER www-data` (or create a new user foobar and add `USER foobar`) the container exits with status 0
So I guess the question is, is anyone running an Symfony app on Docker in Prod, if so how do you solve this? Or another question would be what is the best practice to do this? Sure on dev I could just `chmod 777` the whole folder or run the php-fpm process as root, but if that thing ever goes to prod, I wouldn't sleep very well... -
If someone tries using "multipart/form-data" as only content type for their PUBLIC API ENDPOINTS again I am going to find them and choke them to death.
And if your documentation says you are using something else (application/x-www-form-urlencoded) I am doing it twice.
JSON apis should be standard.
EDIT: I had to fire up BurpSuite proxy, after almost an hour I accidentally switched the body type - voilà1 -
MCIA-LEVEL-1 MuleSoft Certified Integration Architect - Level 1 test is one of the MuleSoft affirmation tests, which can upgrade your position and work on your life. However, how do get ready for the MCIA-LEVEL-1 test well and pass it effectively? While scanning on the web asset for MCIA-LEVEL-1 MuleSoft Certified Integration Architect - Level 1 test, DumpsCafe strongly prescribes you pick an online MCIA-LEVEL-1 practice test. MuleSoft Certified Integration Architect - Level 1 MCIA-LEVEL-1 test questions are kept in touch with the best expectations of specialized exactness, given by our guaranteed well-informed authorities and distributed creators for advancement. You will pass MCIA-LEVEL-1 MuleSoft Certified Integration Architect - Level 1 test with online review materials, 100% cashback included.
Get ready to pass the exam with the help of the MuleSoft MCIA-LEVEL-1 exam:
Readiness of accreditation tests could be covered with two asset types. The first is the review guides, reference books, and study discussions that are explained and suitable for developing data starting from the earliest stage. Aside from the video instructional exercises and talks are a decent choice to facilitate the aggravation of through study and are somewhat make the review cycle really fascinating in any case these interest time and fixation from the student.
Brilliant up-and-comers who wish to make a strong establishment out and out assessment themes and associated advancements commonly blend video addresses with a concentrate on advisers for harvest the upsides of each, however, practice tests or practice test motors is one significant review device that goes ordinarily unnoted by most competitors.
Practice tests are planned with our specialists to make test possibilities test their insight on abilities accomplished in the course, just as possibilities become agreeable and acquainted with the genuine test climate. Measurements have shown test uneasiness assumes a lot greater part in an understudy's disappointment in the test than the dread of the obscure.
Confirmation questions master group suggests setting up certain notes on these subjects alongside it remember to rehearse MuleSoft MCIA-LEVEL-1 dumps which had been composed by our master group, each of these can help you loads to clear this test with superb imprints.
DumpsCafe gives you the latest MCIA-LEVEL-1 exam questions:
DumpsCafe has in addition presented two or three supporting devices and learning modes that will help you in having a fitting enthusiasm for the fundamental limits and to additional work with your MCIA-LEVEL-1 dumps status association with getting MuleSoft Architect attestation with a guarantee. A couple of up-and-comers need to further develop abilities to get movements or others need to have a promising beginning in the MuleSoft MCIA-LEVEL-1 dumps announcement world and with this part, they can plan as shown by their singular basics.
DumpsCafe MCIA-LEVEL-1 test dumps are similarly open in the pdf plan so you can use this report in any of your splendid devices whether it is a PDA, tablet, or even a PC. We have made this relationship in the pdf record so it can end up being less difficult for you to utilize and you can start perusing for your MuleSoft Certified Integration Architect - Level 1 test wherever.
MuleSoft MCIA-LEVEL-1 content makes you ready for the real exam:
Rather than following the ages-old idea of MuleSoft Certified Integration Architect - Level 1 test readiness utilizing voluminous books and notes, DumpsCafe has presented a brief, direct, and most important substance that is incredibly useful in passing any accreditation MuleSoft Certified Integration Architect - Level 1 test. For an occurrence, their MCIA-LEVEL-1 refreshed review guide covers the whole prospectus in a particular number of inquiries and replies. The data, given in the review questions, is streamlined to the level of a normal test competitor. Any place, it is fundamental, the appropriate responses have been clarified further with the assistance of reproductions, diagrams, and additional notes.
Conclusion:
Need to pass your MuleSoft MCIA-LEVEL-1 test in the primary attempt? Download the most recent MuleSoft Certified Integration Architect - Level 1 MCIA-LEVEL-1 dumps and invest however much energy as could be expected to rehearse before your MuleSoft Certified Integration Architect - Level 1 exam. Passcert group profoundly proposes everybody purchase MuleSoft Certified Integration Architect - Level 1 MCIA-LEVEL-1 dumps when you will take your test in several weeks. Please keep sufficient opportunities to practice. DumpsCafe guarantees 100% passing your MuleSoft certificate MCIA-LEVEL-1 test effectively.
For more info: www(dot)dumpscafe(dot)com/Braindumps-MCIA-Level-1.html1