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 convert PNG images in a directory to JPG using Python

To convert several PNG images to JPG images, the convert command in Linux was not good enough and gave errors. It seems it could not process the large volume of PNG files. Therefore, the image files were converted from PNG to JPG using Python using the following code. Before using the code, Python 3 gave … Continue reading How to convert PNG images in a directory to JPG using Python

How to replace line feeds in a text file with Python

The below Python code will replace line feeds in a text file with space or replace consecutive line feeds with one line feed. I named this replacelf.py. # file outtext in the current directory file_path = r"./outtext" # Note that the file has to be opened in binary mode. with open(file_path, "rb") as open_file: #read … Continue reading How to replace line feeds in a text file with Python

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 fix global nodemon node package install error on Linux

To install nodemon globally on Linux, below command:$ npm install -g nodemon <enter> will not work as it requires root privileges. If it is installed with :$ sudo npm install -g nodemon <enter> it will install on the local machine in the root folders. If we do not want to install it globally on our … Continue reading How to fix global nodemon node package install error on Linux

How to fix issue if autocomplete or intellisense does not work in vscode for express.js

If the below line is used in the javascript code:const express = require(express); then autocomplete / intellisense will not work. It will not display the relevant methods as shown in the image below. This is the correct code to use:const express = require("express"); The quotation marks make the difference and the following image shows the … Continue reading How to fix issue if autocomplete or intellisense does not work in vscode for express.js

How to resolve Dependency ‘androidx.appcompat:appcompat:1.4.1’ requires ‘compileSdkVersion’ to be set to 31 or higher.Compilation target for module ‘:app’ is ‘android-30’

I had the below problem when building code for an older version of Android on Android Studio. Dependency 'androidx.appcompat:appcompat:1.4.1' requires 'compileSdkVersion' to be set to 31 or higher.Compilation target for module ':app' is 'android-30' I was able to solve it by changing the version of appcompat in the dependencies What I had: implementation 'androidx.appcompat:appcompat:1.4.0' I … Continue reading How to resolve Dependency ‘androidx.appcompat:appcompat:1.4.1’ requires ‘compileSdkVersion’ to be set to 31 or higher.Compilation target for module ‘:app’ is ‘android-30’