Python 3

Keep database connection on connecting to MySQL/MariaDB using SQLAlchemy

You want the database connection will be keep on connect to MySQL/MariaDB, just use pool_recycle parameter in method create_engine(). Example:[…]

Read more
awk

Note for awk command on Mac

Today, I cleaned up redundant Docker images. I used this command line: docker rmi $(docker images | grep “^<none>” |[…]

Read more
Holy Bible

Bible Reference Regex (part 1)

Yesterday, I have updated Bible Plugin for WordPress to version 3.2. In the new version, I rewrote code to parse Bible[…]

Read more
Holy Bible

Meaning of “covers over a multitude of sins”

Trước hết, hãy yêu thương nhau tha thiết; vì tình yêu thương che lấp vô số tội lỗi. (1 Peter[…]

Read more
Python 3

During handling of the above exception, another exception occurred

Old code: New code:

Read more
Seen

How to disable “Seen” in Facebook Messenger by using AdBlock Plus

Go to AdBlock Plus Options page and add this url facebook.com/ajax/mercury/change_read_status.php$xmlhttprequest to the extension’s custom filters.

Read more
Elastic Search

Limit elasticsearch official docker container memory

Pull Elasticseach official docker image: docker pull docker.elastic.co/elasticsearch/elasticsearch:5.6.3 Run new container with parameter -e “ES_JAVA_OPTS=-Xms256m -Xmx1g”: docker run -d \[…]

Read more
Ubuntu

Cannot “Move to trash” in Ubuntu

Reason: There is no folder named .Trash-{UID}, or application doesn’t have permission to read and write file in that folder.[…]

Read more
Moving Day

Chuyển blog sang server mới

Sau một thời gian gắn bó với OpenShift, thì mới đây OpenShift thông báo rằng sẽ đóng cửa OpenShift v2[…]

Read more
Ubuntu

How to fix Ubuntu wallpaper was not changed

How to fix Ubuntu wallpaper was not changed? Run this command to fix: gsettings set org.gnome.settings-daemon.plugins.background active true Hope this[…]

Read more
Ubuntu

Ubuntu 17.10 Awkward Artful Issues

Các vấn đề mình gặp phải khi sử dụng Ubuntu 17.10 Awkward Artful: GNOME: – Không mention được trên Facebook[…]

Read more
Zalo 256x256

Unofficial Zalo App

Một ứng dụng mới ra lò của Safe Studio. Tình hình là app Zalo Desktop cho Ubuntu quá nhiều lỗi,[…]

Read more