How to fix error in vscode of “kivy.uix.label” could not be resolved

This error can be overcome by selecting the right python environment by clicking next to Python in the status bar of vscode. The Python application was running the global python environment where kivy was not installed. After changing to pipenv of the project as per image below in vscode, it worked.

How to create a python virtual environment for a project in Linux

Python interpreters can be installed globally system-wide or as a virtual environment within a project folder. The advantage of within a virtual environment is isolation of the packages from system-wide use and execution. To set up a virtual environment for a project, open a terminal window and enter the following commands: $ sudo apt-get install … Continue reading How to create a python virtual environment for a project in Linux

The Quest for A Good IDE for Python Coding on Linux

In order to write code or learn programming or coding in Python, a good IDE was needed to take out the pain from looking up functions, keywords and more. The short list below were tried out before finally choosing one that best suited the purpose. Geany Eclipse PyCharm Spyder vscode Whilst it made sense to … Continue reading The Quest for A Good IDE for Python Coding on Linux

How to display stock prices with decimals in Gnucash

Gnucash displays stock prices within the account as 47 + 22398/55939.To display them with decimal points, from the main menu, select Edit -> Preferences -> Numbers, Date, Time and check the box that says "Force Prices to display as decimals". When you double click on the account to make entries, the stock price will be … Continue reading How to display stock prices with decimals in Gnucash

How to sort and rename files in Python on Linux and use tesseract OCR to extract text to a file

In order to convert a series of images with text as an image in them to text files, the best tool is tesseract. It is quite old, but very reliable when it comes to looking for and extracting text from images. After saving some screen shots as jpg files, it was found their names contained … Continue reading How to sort and rename files in Python on Linux and use tesseract OCR to extract text to a file

How to get dark theme in Geany Code Editor on LinuxMint, Debian, Xubuntu Linux

Even though a dark theme is chosen for the desktop in XFCE, geany will display it's toolbars and window elements in dark mode, but the code displays with a white background. To make it a dark background, go to Edit -> Preferences -> Editor -> Display and check the box that says "Invert syntax highlighting … Continue reading How to get dark theme in Geany Code Editor on LinuxMint, Debian, Xubuntu Linux

There’s something about data backups – what’s the big deal!

It’s been almost 12 years since using the 128 MB Transcend USB hard drive for data backups. On the other hand there’s also a 128 KB Transcend USB pen drive from 2006 that still works quite well today plus a Kingston 1 GB USB pen drive. In 12 years, storage device and storage media technology … Continue reading There’s something about data backups – what’s the big deal!

How to use Ghostscript to reduce size of PDF file in Linux

If a PDF generated when printing is very large in size, it can be reduced using Ghostscript that is installed by default on a Linux computer. Open a terminal window and enter the following command to do so: $ gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/default -dNOPAUSE -dQUIET -dBATCH -dDetectDuplicateImages -dCompressFonts=true -r150 -sOutputFile=outputfile.pdf inputfile.pdf <enter> where ouputfile.pdf is … Continue reading How to use Ghostscript to reduce size of PDF file in Linux

How to fix github “remote: error: GH007: Your push would publish a private email address” when pushing change to github

The error "remote: error: GH007: Your push would publish a private email address" occurs when a github account has disabled the exposure of private email addresses in github. It happens because of the setting of email privacy where "Block command line pushes that expose my email" has been enabled. If Email Privacy is selected, then … Continue reading How to fix github “remote: error: GH007: Your push would publish a private email address” when pushing change to github

How to set up two step authentication on WordPress with FreeOTP

User IDs and passwords do provide some security and authentication. However, with today's evolving threats to online accounts, one can set up two step authentication on several web sites using applications such as Google Authenticator, Authy, Microsoft Authenticator and even FreeOTP. FreeOTP is small, light and can be installed on mobile devices to add the … Continue reading How to set up two step authentication on WordPress with FreeOTP