who needs Threads when you have your standalone blog

Who needs Threads when you have your standalone blog? :-D

Read More →

Language models are replacing Google Search?

It is likely that language models such as ChatGPT will eventually surpass Google in the search industry because they have the ability to condense multiple search queries into a single query, making th

Read More →

Poetry and pre-release

Had to specify the version like that to install the pre-release version of python-telegram-bot package in pyproject.toml python-telegram-bot = { version = "^20.0a2*", allow-prereleases = true}

Read More →

django-dbbackup 'pg_dump not found' workaround

# due to a bug on Mac os I've to specify the path to a pg_dump in my settings.py DBBACKUP_CONNECTORS = { 'default': { 'ENGINE': 'django.db.backends.postgresql', "NAME": os.envi

Read More →

Node.js stuff

When error "SyntaxError: Cannot use import statement outside a module" add "type": "module", to package.jspn

Read More →

python-telegram-bot pagination library

Made an open source pagination library for a python-telegram-bot api wrapper. It creates a menu like a google search bottom line. https://github.com/SergSm/ptb-menu-pagination

Read More →

nvm use x.x.x => exit status 1:

I had a troube installing nvm on Windows 10 as it mentioned here https://docs.microsoft.com/ru-ru/windows/dev-environment/javascript/nodejs-on-windows#alternative-version-managers I wrote in a cmd:

Read More →

Case insensitive search for Django on Postgres doesn't work

I had a trouble searching a model instance by a char field with cyrillic characters using icontains It was due to a lc_collate='C' for my Postgres database. I had to recreate a database using the

Read More →

Google timeline doesn't work in Montenegro

That's it! Seems like the local Montenegro cellular network provider "Telenor" blocks the access to some Google Services which provides the chronological timeline recording. So if you planned to have

Read More →

The headers or library files could not be found for zlib, a required dependency when compiling Pillow from source

On Docker using python:3.8-alpine may encounter the subj error. To solve it add the text to Dockerfile: apk add jpeg-dev zlib-dev libjpeg && \

Read More →

Dump data correctly on Django

When running python manage.py loaddata you may get the error: "Duplicate key issue when loading DUMP.json file PostgreSQL" . Before loading the data the datadump must be made excluding some servic

Read More →

Django - RuntimeWarning: DateTimeField received a naive datetime

To deal with "RuntimeWarning: DateTimeField received a naive datetime" use make_aware from datetime.datetime eg: model.datefield = datetime.datetime.strptime("2020-10-09 10:50", %Y-%m-%d

Read More →

My site layout seems bugy

And I know it. Gonna fix it later. I also should add a text formatter for the posts

Read More →

Drop tables from postgresql on django

I had a trouble when tried to apply intial custom migrations once again after I've already run it. This is how I managed to fix it The sequence of actions is: 1) python manage.py makemigrations 2

Read More →

You appear not to have the 'sqlite3' program installed or on your path

When trying to run dbshell on windows 10 64bit I got an error: CommandError: You appear not to have the 'sqlite3' program installed or on your path The solution is to download sqlite-tools-wi

Read More →

First post test

The very first post

Read More →