-
Inside the PHP
Introduction Ever wonder what’s inside the PHP. How every language construct, function works. How optional parameters handled. Why certain functions behave weird and want know their inner working. That’s why I bring this tutorial to how easily navigate to the function declaration and understand it easily. Since PHP is opensource you can see all source code easily in github (clone of official git repository) but quickly finding the desired function in github is cumbersome but don’t worry we will find some alternative solution in this tutorial The PHP compiler/interpreter which is written in C and C++ which uses Lexical analyser,…
-
How to do REST API call and read/write excel file using Python 3
Introduction Today we are going to see how to read the excel’s each cell and pass the value to the REST API request On successful response we will parse the JSON response Read the JSON element and write it to the excel Prerequisite In your terminal or CLI run pip3 install package_name (Based on your OS instead of pip3 run pip. In some OS both python2 and python3 installed then check your pip version pip –version or pip3 –version and execute the command) We need the following packages to be installed requests and openpyxl Command: pip3 install requests openpyxl Once…
-
Shortcut to run previous shell command as superuser
Old Procedure Most of the time when we execute a permission required command but we forget to add sudo at the start of the command then terminal throws the error permission denied So what we will do enter up arrow (navigation key) and enter home or continuously press left arrow key to go to the initial position of the previously executed command In command at the start position we will start type sudo Instead of that we have an alternative to avoid navigating towards start of your command New Procedure Now we are going to see how to execute the…