Quantcast
Channel: Chanmingman's Blog

Image may be NSFW.
Clik here to view.

Change chroma Embedding model to paraphrase-MiniLM-L12-v2

This blog article shows how to change the chromadb default embedding model all-MiniLM-L6-v2 to paraphrase-MiniLM-L12-v2. The code snippet below does that. # python code import chromadb from...

View Article


Image may be NSFW.
Clik here to view.

Enable Python in Excel

This blog article shows you how to Enable Python in Excel. Select File then choose Options. Select Customize Ribbon. Select All Commands under Choose commands from. Add Insert Python to your ribbin....

View Article


Image may be NSFW.
Clik here to view.

Quicksort using C++

This blog article shows you how to create a Quicksort using C++. Introduction to QuickSort QuickSort is one of the most efficient sorting algorithms, using a divide-and-conquer approach to sort...

View Article

Image may be NSFW.
Clik here to view.

Backup Postgres Database using Dbeaver

This blog article shows you how to backup PostgreSQL  with DBeaver. Firstly, connect to a PostgreSQL database. Right click on the database, select  Tools then Backup. Select the tables that you want...

View Article

Image may be NSFW.
Clik here to view.

Read LibreOffice Calc using Python

This blog article shows you how to read LibreOffice Calc file using Python. Firstly, you need 2 libraries to be installed, ezodf and lxml. pip install ezodf pip install lxml Then use the code below to...

View Article


Image may be NSFW.
Clik here to view.

Could not build wheels for psycopg2, which is required to install...

This blog article shows you one of the possible ways to get rid of the eoor “Could not build wheels for psycopg2, which is required to install pyproject.toml-based projects“. You need to first install...

View Article

Image may be NSFW.
Clik here to view.

Restore PostgreSQL from Dbeaver

This blog article shows you how to Restore PostgreSQL from Dbeaver.  Firstly, connect to a PostgreSQL database. Right click on the database that you want to restore. Select Tools -> Restore. Select...

View Article

Image may be NSFW.
Clik here to view.

Install pgvector for PostgreSQL Ubuntu

This blog article shows you how to resolve the error below. This error will happen during the make command. src/bitutils.c:1:10: fatal error: postgres.h: No such file or directory     1 | #include...

View Article


Image may be NSFW.
Clik here to view.

ChatGPT Oops an error occurred during login

This short blog article shows you one of the possible ways to resolve the error “Oops an error occurred”. like the one below. You need to close the browser, reopen the browser then click log in....

View Article


Image may be NSFW.
Clik here to view.

Read Top 100 rows from CSV File Python

This blog article shows you how to read the top 100 rows from CSV file using Python. The code snippet below is to read 100 rows from a csv file. import csv input_file = ‘Tweet_top200.csv’ output_file...

View Article


Latest Images