In the former posts, we have shared the methods to download files from the web using the requests or wget module. As we know, they are external modules which we…
Category: Programming
Programming is the process of creating a set of instructions that tell a computer how to perform a task. Programming can be done using a variety of computer “languages” such as SQL, Java, Python, and C++.
Downloading Files in Python Using wget Module
In a recent post about downloading files in Python, we have learned how to use the requests module to check downloadable resources and restrict some measures to grab remote files.…
Downloading Files In Python Using Requests Module
This post aims to present you how to download a resource from the given URL using the requests module. Of course, there are other modules which allow you to accomplish…
pbcopy and pbpaste with Terminal in MacOS
The MacOS shell is very powerful to let you solve all your problems without making use of graphical tools. However, I am pretty sure an awful lot of users are…
Add git branch name to bash prompt
By default, git won’t display branch name to terminal prompt. To know which branch you are in, just run git branch command. However, if you want to customise how to…
Compile and link C++ source codes and headers from terminal in MacOS
Compiling C++ source codes and headers files from Terminal in macOS is a bit painful if you don’t have any experience with compiling. What I have learned below. Create a…
Optional Parameters in Java: Common Strategies and Approaches
Recently, I have written an introduction of default arguments in C++. Now, we are aiming to work with default parameters in Java to see what are similar and different. I…
How to export environment variables defined in a file
Using environment variables in modern applications is very common https://unix.stackexchange.com/questions/79064/how-to-export-variables-from-a-file https://unix.stackexchange.com/a/79084/30988 set -a . ./tmp.txt set +a
Introduction to default parameters in C++
What is a default parameter? When do you have to use default parameters? How to define a function having default parameters? These questions will be discussed in this post. Let’s…
How to create a temporary file to store data
Your application has to write data out in a temporary file to reprocess them before rendering to users. The file will be created temporarily and swept our when the application…