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…
Category: Programming Languages
Ngôn ngữ lập trình
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…
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…
Create and manage virtual environments in Python
[dropcap]I[/dropcap]n this writing, I aim to present concisely how to create and manage virtual environments in Python. You can go further by getting through official documentation from the Python website.…
How to find the mime type of a file in Python
A media type (also known as a Multipurpose Internet Mail Extensions or MIME type) is a standard that indicates the nature and format of a document, file, or assortment of bytes. It is defined…
Read and write with file CSV in Python
[dropcap]I[/dropcap]t is possible to read and write CSV (comma separated values) files using Python 2.4 Distribution. Like most languages, file operations can be done with Python. Writing a CSV file with Python can be…
How to use urllib in Python
[dropcap]T[/dropcap]oday, with the development of the internet, network programming to exchange packets is no longer as complicated as it was a few decades ago. Python is no exception when it…
How to loop a dictionary in Python
Dictionary is one of the most widely used data structures in programming, especially with Python. To understand how to loop on it, extract its keys as well as retrieve all…
