Study JS APIs and Event in Web Whatsapp

Whatsapp is the most popular IM for the last ten years. It offers a convenient and free app which allows users to send text messages, photos, videos, and audio recordings over the internet. Whatsapp is one of the Facebook main app on iPhone and Android. To harness the power of WhatsApp, Facebook has expanded its reach beyond the mobile platform by developing a web version. Now we can conveniently use the Whatsapp not only on our iPhones or Android phones, but also on our computers, laptops or even Chromebooks (a cloud-based laptop that runs Chrome OS)

WhatsApp Web is entirely developed using HTML5 and Javascript. To enhance the capabilities of Whatsapp in the browser, a huge number of open source projects have emerged, disclosing the Javacript API to public. As a result, programmers can effeciently develop their own plugins that work with Web Whatsapp, enabling them to extend their abilities and customize their Whatsapp experience.

Read more
Docker Tips for Beginners

Docker Tips for Beginners: Docker Engine vs Docker Desktop

Two years ago, I wrote an article Docker tips for beginners. That’s my first time to learn docker. And after that, I had to move my attention on data crawlers, including Python, Scrapy, Selenium, Chrome Extension, Electron, etc. Today is the day when I am back to work backend again. The first lesson I am learning is how to setup Docker environment. Docket officially claims that docker engine can run the docker image on all platform, including Windows, Linux and Mac. For perosnal and small business usage, it could be free. But if you are working in big company, you have to pay attention on the license, especially for beginners. If you were installing some apps by mistake, it could cause you legal problems.

Read more
paypal in python

Get PayPal Payment in Python

PayPal is one of the most popular payment solution for online business. In the PHP era, we can find lots of Paypal payment gateway, implemented by PHP, hosted on WordPress or Joomla. For example, my PayPal Digital Goods Express Checkout tools which was created several years ago. To be surprised, it still works properly and helps lots of people open their business online.

In my last post, Make Money within 4 Steps, I demonstracted how to use the latest PayPal REST API in the website. All these tools and toturials are all in PHP. In this article, I will use my Python skills to expose the possibility of Paypal in Python. Now let’s get it started.

Read more

Write Log in File and Print in Terminal in Python

Logging in Python is an old topic. It is quite important to check and debug Python programe, especially when there are something going wrong. In Linux, logging files are usually located in a special folder and rotated basing on time. Here is a powerful logging tool, loguru, a Python 3rd library. In this article, I will not cover it, but I recommend it if you are already familiar with the original Python logging system. Here, I will share some usual practices in my past Python projects.

Read more