Nowadays, many queries can be more accurately answered by Copilot or ChatGPT or Gemini rather than just doing a web search - for eg, we could just copy-paste error messages which we got on trying to run an AWS VM image with virtualbox, and chatgpt gave accurate fixes. Gemini / Copilot providing links to references is another very useful feature, using which we can double-check if the references match our environment etc.
Mostly work related stuff which I would've entered into my "Log book". Instead of hosting it on an intranet site, outsourcing the hosting to blogger!
Friday, June 13, 2025
Wednesday, June 11, 2025
no python found
When getting the error "no python found" even after
sudo apt-get install python
"python is already the newest version."
https://stackoverflow.com/questions/3655306/ubuntu-usr-bin-env-python-no-such-file-or-directory
If Python 3 is not installed, install it: sudo apt-get install python3
Then, a good option is to install sudo apt install python-is-python3
Or, invoke python3 instead of just python. Or, create a symlink
whereis python3
sudo ln -s /usr/bin/python3 /usr/bin/python
Wednesday, June 04, 2025
simple http server for debugging, in one line of python
https://linuxconfig.org/running-a-simple-http-web-server-with-one-terminal-command-and-python
We just need to run the following line in the directory which we want as the server's home directory -
python3 -m http.server --bind 127.0.0.1 9000
Used this while troubleshooting OpenSpace showcomposer ui issues.
Saturday, May 31, 2025
git error remote origin already exists
Via https://dev.to/devmercy/four-ways-to-solve-the-remote-origin-already-exists-error-1f2
git remote remove origin
git remote set-url origin https://github.com/newgit/url.git
Or, we can, instead of removing the URL called origin, rename it,
git remote rename origin backup
Or we might have already set the origin correctly, which we can then check using
git remote -v
which will list all remotes.
Tuesday, May 27, 2025
a lot of github workflows
- automated deb creation with auto dependency detection
- build opencv with cuda support
- ffmpeg linking on Windows
- Make CMake display a message on the console
- android apps without android studio
automated deb creation with auto dependency detection
build opencv with cuda support
https://developer.nvidia.com/cuda-toolkit
Windows workflow - setting PKG_CONFIG_PATH is important here.
ffmpeg linking on Windows
Make CMake display a message on the console
android apps without android studio
https://github.com/hn-88/OpenCV-android-samples
https://github.com/hn-88/android-ndk-samples/
Saturday, May 17, 2025
Indian income tax filing - a good overview guide
Valueresearch has a good guide on what to keep ready, at https://www.valueresearchonline.com/stories/224462/income-tax-return-filing-preparation/
- Form16
- Form 26AS
- Capital gains statements
- Interest certificates
- Investment / donation proofs (for old tax regime)
- Loan interest certificates - home loan, EV loan interest may have deductions
- Bank account details
- Wait till AIS / TIS / 26AS is ready to avoid re-filing
- Interest - Savings Bank
- Interest - Deposits
- LIC receipts
- MF sale
- MF purchase
Friday, May 16, 2025
diskpart instead of fdisk on windows 11
Thursday, May 15, 2025
refreshed github token
Refreshed a github personal access fine-grained token by logging on to the relevant account and going to https://github.com/settings/personal-access-tokens/
For uploading files to a repository, the permissions needed are:
User permissions: None
Per-repository permissions: (for the relevant repo)
Read access to metadata
Read and write access to actions, code, and workflows.
The post about google apps script code to auto-upload to github-pages is at https://hnsws.blogspot.com/2024/03/workaround-for-cors-errors-on-api-calls.html
Friday, May 09, 2025
qemu for arm64 on x86_64 Linux machine
Jenkins and Github
I was curious to know how Jenkins CI/CD works with Github, similar to what is seen on the OpenSpace repository. So one way is to use webhooks, as detailed in this guide,
Complete Step-by-Step Jenkins CICD with GitHub Integration | by Mudasir | Medium
Tuesday, May 06, 2025
bash: cannot execute: required file not found
Monday, May 05, 2025
Sunday, May 04, 2025
virtualizing Raspberry Pi on an iPad with UTM
We can virtualize a Raspberry Pi with UTM, but need old 32 bit version, since 64 bit is broken on UTM, tho' QEMU works -
script to run multiple commands on a remote server over ssh
Made Chatgpt write the following script. The EOF syntax is useful. In our case, we need to put in the appropriate -pPORT also.
write a bash shell script to ssh into two servers server1 and server2 with ssh keys key1.pem and key2.pem, run sudo apt upgrade on both, and show the result on the terminal.
#!/bin/bash
# Define servers and keys
SERVER1="user1@server1"
KEY1="key1.pem"
SERVER2="user2@server2"
KEY2="key2.pem"
# Function to upgrade a server
upgrade_server() {
local SERVER=$1
local KEY=$2
echo "Upgrading packages on $SERVER..."
ssh -i "$KEY" -o StrictHostKeyChecking=no "$SERVER" << 'EOF'
echo "Running apt update..."
sudo apt update
echo "Running apt upgrade..."
sudo DEBIAN_FRONTEND=noninteractive apt upgrade -y
EOF
}
# Upgrade both servers
upgrade_server "$SERVER1" "$KEY1"
echo "---------------------------------------------"
upgrade_server "$SERVER2" "$KEY2"
Saturday, May 03, 2025
x86 Emulation on iPad with UTM
- Swipe up from down and hold, to show all applications - swipe up applications which you want to close and start again with JIT, like UTM.
- Start StosVPN, click to start the connection
- Start StikJIT - one-time requirement of passing on the path to the pairing file, then
- Click Enable JIT - a few moments later, it prompts for which app to enable JIT for, from a list of apps - choose UTM, and then UTM opens up with JIT enabled. Can start up JMs at this point.
Thursday, May 01, 2025
monitoring websites for changes - followthatpage
There was a request from one of my colleagues for suggestions - he wanted a tool to automatically let him know when some particular websites had changes. Something similar to an RSS feed for a website which doesn't have an RSS feed, I guess.
I replied that I use
https://www.followthatpage.com/
to monitor up to 20 pages for free per account per day - so if you don't want daily checks, you can add more pages, too.
There are many other "freemium" and paid options, too.
Wednesday, April 30, 2025
development for Android / iOS - preliminaries
Tuesday, April 29, 2025
info about various ARM platforms
https://www.baeldung.com/linux/arm64-armel-armhf-overview
So, arm64 is sometimes referred to as aarch64. But the github arm64 appimage builds are not compatible with Ubuntu on raspberry pi 4 etc, maybe because of library differences, since the github runners are Ubuntu 24.04.
Monday, April 28, 2025
simple logger created by chatgpt
moving Virtualbox VMs to external drive
VirtualBox Manager
> Right-click on the VM
> Select "Move"
> Choose the new location and click "Move"
(Tho' the progress bar doesn't seem to work, it moved the VM and associated files to the external drive in approx the usual time it would take for a 12 GB file move.)