Reset and ReCreate a table in Peewee
import peewee import datetime db = PostgresqlDatabase( 'database_name', user='user_name', password='password', host='localhost', port=5432 ) class PeeweeModel(peewee.Model): class Meta: database = db…
import peewee import datetime db = PostgresqlDatabase( 'database_name', user='user_name', password='password', host='localhost', port=5432 ) class PeeweeModel(peewee.Model): class Meta: database = db…
Annoying message when to execute kubectl… Unable to connect to the server: tls: failed to verify certificate: x509: certificate has…
Many Vector Databases… Thare are many Vector Databases are now open, It is quite hard to know the traits of…
Code you can use nargs=”+” instead of nargs=”*”, in that case, more than an argument is required for that. Call…
import os fpath = "./your-directory/sub-dir/fname.jpg" print(os.sep) # / basename_ext = os.path.basename(fpath) # fname.jpg basename = os.path.splitext(os.path.basename(fpath))[0] # fname extension =…
npm init --yes npm install typescript ts-node @types/node --save-dev npm install express cors npm install -D @types/express npx tsc --init
Incorrect Usage Below code looks natural implementation, but it is actually, does not work. Even if you pass true from…
Finding out the unfixed ip adderss is annoying I wrote about ‘nmap’ command in the past, but it is a…
Overview Nvidia is developing Neural Networks training tool for Physics. Here shows what functions it has https://docs.nvidia.com/deeplearning/modulus/modulus-v2209/user_guide/basics/modulus_overview.html Neural Netork Models…
ps -u kevin | grep python | awk '{print $1}' | xargs kill