Flat UI colors is a set of beautiful colors for UI. Here is a program which can create a new color profile into “gnome-terminal” to make it use the flat colors in Ubuntu terminal.
GraphQL
Google Translate API for Python & Node.js
There are libraries with which you can invoke Google Translate API. For Python, there is “googletrans“; for Node, there is “google-translate-api“.
Python Doc for pip Packges
Remove Dependencies with Package Using Python pip
When running “pip uninstall ppp” to remove a Python pip package, unlike “apt-get remove uuu”, it seems it removes the package only without its useless depending packages, which will leave unused files there. How to improve it?
How to Return Multiple Values from A Java Method
Every Java programmer knows the short answer(and the easiest one) is to create a class with multiple properties each of which is one value that you want to return in the method, and then you return an instance of this class from the method. But in many cases the returned values is just used one time, in such scenarios creating a class is too heavy and unnecessary. In Python, it’s very elegant to return a tuple in such scenarios. But in Java, what is the most elegant way to do it?
A Typical Scenario to Use Union Select SQL
A table in MySQL database which saves the “user_count/shop_user_count” for specific place(“mall_id/floor_id”) and time(“dt”). The table structure is listed below.
Update ca-certificates
Today after running “sudo apt-get update & sudo apt-get dist-upgrade”, the “ca-certificates” package is updated with the following output.
One Line Command to Kill Specific Application
From here. The key is:
use pipe;
get the PID by using the “cut” command on the output of the “jps/ps” command and send the PID to the “kill” command.
Change Git Remote URL
The requirement is to update the origin SSH URL to HTTPS URL of a given git repo. Please read the following commands to get the details. From here.