1. CMake External From Git
How to clone and integrate external (from git) cmake project into local one
How to clone and integrate external (from git) cmake project into local one
psycopg2.OperationalError: could not connect to server: Connection refusedRelevant resource:
Solution:
Just modify this file /etc/postgresql/12/main/pg_hba.conf:
local all postgres peer => local all postgres trustlocal all all peer => local all all md5Is the server running on host "localhost" (::1) and accepting TCP/IP connections on port 5432?Relevant resource:
Solution:
postmaster.pid, and remove it:rm /var/lib/postgresql/12/main/postmaster.pid/etc/postgresql/12/main/postgresql.conf, in which, set: listen_addresses = '*'port = 5432unix_socket_directory = '/var/run/postgresql'Relevant resource:
Solutions:
postgresql-contrib has been installed.Relevant resource:
Solutions:
btree_gin and pg_trgm EXTENSIONs have been CREATEed for the user username in PostgreSQL database. Namely, you need to \c database username before CREATE EXTENSION btree_gin and CREATE EXTENSION pg_trgm.django.db.utils.ProgrammingError: syntax error at or near "FUNCTION"Solutions:
django.db.migrations.exceptions.InconsistentMigrationHistory: Migration site.0001_initial is applied before its dependency account.0003_initial on database 'default'.Relevant resource:
Solutions:
\c database username is run from within psql.LOG: SSL is not supported by this buildRelevant resource:
Solutions:
1 | ⋊> ~ sudo su - postgres |
postgresql and postgresql-contrib1 | ⋊> ~ apt list --installed | grep postgresql 22:46:41 |
1 | ⋊> ~ sudo su - postgres 22:03:23 |
psql will dopsql -U postgres1 | ⋊> ~ psql -U postgres 22:06:18 |
Refer to How to Reset Migrations
find . -path "*/migrations/*.py" -not -name "__init__.py" -deletefind . -path "*/migrations/*.pyc" -deletesaleor/settings.pyFrom
1 | DATABASE_CONNECTION_DEFAULT_NAME: dj_database_url.config( |
to
1 | DATABASE_CONNECTION_DEFAULT_NAME: dj_database_url.config( |
correspondingly.
1 | ⋊> /v/w/v/saleor on main ⨯ python manage.py makemigrations 22:32:00 |
1 | ⋊> /v/w/v/saleor on main ⨯ python manage.py migrate 00:02:56 |
Refer to Launchpad PPA:
1 | dput ppa:longervision/googletest googletest_1.11.0_amd64.changes |
~/.dput.cf as:1 | [googletest] |
NEVER successfully built out QtWebEngine before. Today, I’d love to have a try. From this tutorial Building QtWebEngine, it looks possible.
Nothing but a collection of various tutorials.
Happened to come across a blog XGBoost vs LightGBM: How Are They Different. Let’s investigate a bit wider and deeper into the following 4 machine learning open source packages.
Cited from XGBoost vs LightGBM: How Are They Different
1 | Two of the most popular algorithms that are based on Gradient Boosted Machines are XGBoost and LightGBM. |
Unlike voting or stacking ensembles, which are multiexpert systems, cascading is a multistage one.originated in the observation by Leo Breiman, an American academician, also proposed Random Forest.In this blog, I’m going to use a very old Kaggle dataset Amazon.com - Employee Access Challenge.
Please make sure:
1 | ➜ ~ pip show xgboost |
Please make sure:
1 | ➜ ~ pip show lightgbm |
Pay Attention: In order to have XGBoost or LightGBM successfully built, you may have to:
1 | ➜ ~ pip show catboost |
1 | ➜ ~ pip show h2o |
1 | ➜ pip show mlflow |
Please make sure:
Directly refer to Rapid-Fire EDA process using Python for ML Implementation.
Clearly, PCA is a part of EDA.
Here is another good tutorial for EDA: A Starter Pack to Exploratory Data Analysis with Python, pandas, seaborn, and scikit-learn.
Let’s just refer to the FIRST tutorial and try out how to analyze and visualize the famous dataset MNIST.
Please refer to my copy-paste-modification jupyter notebook code at https://github.com/LongerVision/Kaggle.
Let’s then refer to the SECOND tutorial and try out how to analyze and visualize Fashion-MNIST.
Please refer to my copy-paste-modification jupyter notebook code at https://github.com/LongerVision/Kaggle.