how to call curl with get, post, put, delete in php In this post we will show you how to call curl with get, post, put, delete, hear for how to call curl with get, post, put, delete we will give you demo and example for implement. Hear we will show you how to call curl with get, post, … Read more
I got the following error from ssh Solutions The keys need to be read-writable only by you: Alternatively, the keys can be only readable by you (this also blocks your write access): 600 appears to be better in most cases, because you don’t need to change file permissions later to edit it.
Laravel model default type of it’s id is integer, so if we want to use varchar as primary key we need to specify the type in our model. Add this following code into respective model that use varchar as it’s primary key Then check it again, the varchar uuid will shown as it’s primary key … Read more
Sometimes we need to process a thousands of data. It will be very exhausted if we process one by one. Especially if we need to hit API for each data. When we hit the API with thousands of request, the server will be unavailable and our script failed too. So, How to hit thousands of … Read more
Validate uploaded files is a must in backend engineering. We won’t malicious file will be uploaded to our app. If we do not validate the uploaded files, it will be a backdoor to our app and permit hacker to insert malicious script file in our server. How to validate uploaded files in Node JS? I … Read more
Sometimes we need to save json in our relational database. As backend engineer we need to validate the string is JSON well-formed. Otherwise, when we parse the value, our app will crash. This is the solution “How to test if a string is JSON or not?” with very simple function
I run Open VPN and suddenly got this error Error calling protect() method on socket. The solution is kind of silly, but just download the latest version of OpenVPN from their website and reinstall it over the top of the existing install.
TypeScript intellisense is disabled on template. To enable, configure “jsx”: “preserve” in the “compilerOptions” property of tsconfig or jsconfig. To disable this prompt instead, configure “experimentalDisableTemplateSupport”: true in “vueCompilerOptions” property. Before add this line in jsconfig.js file After
I have running docker container, but when I want to access the app it did not respond anything. Then I tried to stop the running docker containers and restart them. Unfortunately, I got After several attempts, I still got the same error message. Then I decided to restart the Docker instead of restart the container … Read more
Apache is installed by default on macOS, but it’s not configured to start during system boot automatically. For this, you’ll have to manually start the httpd process every time you want to use it. It’s a good default setting as most macOS users will not need a web server running all the time in the background. Still, … Read more
When you check in Datadog logs, sometimes NGINX logs do not appear, You need to check data dog agent in your server by running this command Command above is for Linux. For complete resources you can read here : https://docs.datadoghq.com/agent/guide/agent-commands/?tab=agentv6v7#agent-status-and-information If you had error, you will find something like this: Pay attention for this error … Read more
Sometimes we need to do a mysqldump of a database on a remote server, but the server does not have mysqldump installed. I would like to use the mysqldump on my machine to connect to the remote database and do the dump on my machine. Create an ssh tunnel Run Mysqldump Command Important Note Do … Read more