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.
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
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
Installation Starting Zookeeper Starting Kafka Starting MySQL Database Starting MySQL Command-line Client Starting Kafka Connect Use the Kafka Connect REST API to check the status of the Kafka Connect service. Check the status of the Kafka Connect service: Check the list of connectors registered with Kafka Connect: Deploying the MySQL connector Registering a connector to … Read more
First, you need to install JMeter then create your .jmx file using JMeter GUI application. After you created the .jmx file you can run this command in /bin directorey of installed JMeter example In this example I save my .jmx file in “~/Documents/load\ testing/plan1.jmx” then save the csv result file in “../../load_testing/plan1_result.csv” and don’t forget … Read more
Let say we have 100 element in our array and we need to get first n elements we can use this command. And to get n last elements we can use last() function with parameter inside You also can consider if we use pop() function it will change the numbers array elements. on the other … Read more