To run multiple executions a time, the SQL statements should be separated by semicolons(;) and with the multi option as true. And meanwhile, cursor.execute returns […]
Install CUDA on Ubuntu 20.04 Desktop
Install using runfile Add to Global Environment Variables Make your /etc/environment file look like the following and then restart the OS. This is only necessary […]
Reversing Python List the SMART Way
As we can recall, to get every other element, we can use where 2 is the step, and with it, only the elements indexed with […]
fix: lua_load_resty_core failed to load the resty.core module
One day, my website was replaced by a OpenRestry installed page. I did nothing, but it just happened. I checked the nginx log and it […]
C++11 decltype
decltype is used to get the type of a expression Considering the following function For the following 2 invocations The results will be different, To […]
Arithmetic Operations
Description Submission One case won’t pass, so had to be “processed carefully” Bash is reaaaly space sensitive! = with space is for comparison, = without […]
Getting started with conditionals
Description Read in one character from the user (this may be ‘Y’, ‘y’, ‘N’, ‘n’). If the character is ‘Y’ or ‘y’ display “YES”. If […]
The World of Numbers
Description Submissions There’re many possible solutions. Submission 1 Submission 2 References https://unix.stackexchange.com/questions/93029/how-can-i-add-subtract-etc-two-numbers-with-bash