There is google's colab for executing python workbooks online, in the browser. But for simple code, trinket.io - "no need to log in, download plugins, or install software. "
via
https://www.youtube.com/watch?v=v7svyPnIeGA
via
https://www.wired.com/story/why-the-solar-system-is-flat/
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!
Monday, May 06, 2024
run simple python code online
Sunday, May 05, 2024
collections of free fulldome material
Video Archive: Fulldome | NOIRLab
And VR 360 or similar material -
Water Vapour map - http://tropic.ssec.wisc.edu/
Thursday, May 02, 2024
interesting problem with S3 buckets - anyone can do a $ DDoS now
Copy-pasting from Slashdot -
How an Empty S3 Bucket Can Make Your AWS Bill Explode (medium.com) 55
Was it some kind of DDoS-like attack against my account? Against AWS? As it turns out, one of the popular open-source tools had a default configuration to store their backups in S3. And, as a placeholder for a bucket name, they used... the same name that I used for my bucket. This meant that every deployment of this tool with default configuration values attempted to store its backups in my S3 bucket! So, a horde of misconfigured systems is attempting to store their data in my private S3 bucket. But why should I be the one paying for this mistake? Here's why: S3 charges you for unauthorized incoming requests. This was confirmed in my exchange with AWS support. As they wrote: "Yes, S3 charges for unauthorized requests (4xx) as well[1]. That's expected behavior." So, if I were to open my terminal now and type: aws s3 cp ./file.txt s3://your-bucket-name/random_
Wednesday, May 01, 2024
OCVWarp on Google Cloud Shell
Checked and found that OCVWarp works (though slowly - 5 fps for XVID encoded 1080p output) even on Google Cloud Shell, after installing the dependencies.
wget https://github.com/hn-88/OCVWarp/archive/refs/tags/v4.01.zip
unzip v*.zip
cd OCVWarp*/build
wget https://github.com/hn-88/OCVWarp/releases/download/v4.01/OCVWarp-4.01-x86_64.AppImage
chmod +x OCV*mage
mv OCV*mage ocvwarp
sudo apt install libopencv-dev
(after uploading the input file)
./ocvwarp OCVWarp.ini 30fps.mp4 output.mp4
Friday, April 26, 2024
Moodle upgrade path - 4.1 to 4.5
An evaluation of requirements and timelines for upgrading Moodle 4.1 to 4.3 or 4.5.
https://linuxconfig.org/ubuntu-upgrade-to-24-04-noble-numbat-a-step-by-step-howto-guide
Friday, April 19, 2024
Filezilla TLS errors
When using Filezilla on Linux Mint at work, connecting to an FTP server, after logging in, I get some errors like the following:
Response: 150 Opening BINARY mode data connection.
Error: GnuTLS error -110: The TLS connection was non-properly terminated.
Wednesday, April 17, 2024
methods to download from Amazon S3 bucket (if we own/manage the bucket)
Some ways are mentioned at
Saturday, April 13, 2024
workflow_dispatch only from default branch
I like to set Github Actions to only run when manually triggered, that is, using workflow_dispatch
As that page says, "To trigger the workflow_dispatch event, your workflow must be in the default branch."
But we can change the default branch - like we may want to do for forks etc - Repository --> Settings --> Default branch (choose by clicking the "choose another branch" button which has two opposing arrows as an icon)
comparing the contents of two directories on Windows
How to Compare Two Folders on Windows 11 and 10 (howtogeek.com)
robocopy "C:\first" "C:\second" /L /NJH /NJS /NP /NS
Thursday, April 11, 2024
reminder to take a break - using cron
Wanted to create a pop-up message or reminder (and was later requested an audio reminder) for N to take periodic breaks from the computer. Since his usage was mostly passive, workrave did not work for this purpose - workrave's timer only progresses when the keyboard or mouse are active.
Looking for solutions, reminder apps on Mint/Ubuntu seemed to have only flatpak versions which I did not want to install.
Finally thought it would be simpler to use cron.
But, to pop up messages on the screen with cron, we need some special handling.
https://unix.stackexchange.com/questions/307772/pop-up-a-message-on-the-gui-from-cron
https://unix.stackexchange.com/questions/111188/using-notify-send-with-cron
And for audio, we would need another line to be added to the script. Working script -
#!/bin/bash
export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
export DISPLAY=:0
export XDG_RUNTIME_DIR=/run/user/1000
# this last line above is for sound to work
notify-send -u critical "this is the reminder to take a walk"
# the -u critical is supposed to show over full screen apps, but doesn't always work
/usr/bin/mpg123 /home/username/Downloads/Walk.mp3 > /dev/null 2>&1
For help with setting up cron, cron.help is useful. Eg.
*/30 * * * * /home/username/walkremind.sh
for every half an hour.
For getting the environment variables' values, used
printenvAnd for installing notify-send,
sudo apt install libnotify-bin
using a laptop as a secondary monitor using Miracast
Apparently Windows now has built-in support for Miracast, so we can use a Windows laptop as a secondary display for a Windows desktop, for example.
https://www.tomshardware.com/how-to/use-laptop-as-monitor-for-another-pc
that is if both run Windows.
Miracast client for Linux - miraclecast - to use as sink,
https://askubuntu.com/questions/1254998/how-do-i-launch-miraclecast-after-installation
https://alternativeto.net/software/miraclecast/
https://letsview.com/screen-mirroring
(but not on linux)
https://github.com/albfan/miraclecast
Wednesday, April 10, 2024
RAM usage - Edge and Firefox browsers on Linux Mint
I've installed 'Graphical Hardware monitor' to show RAM, Disk read and Disk write on the panel of the old Macbook Pro running Linux, which has only 4 GB of RAM including VRAM. Curious to see RAM usage, tried opening Gmail + GDrive + a spreadsheet on Firefox and Edge browsers separately. With Firefox, total RAM used was 1.92 GB. With Edge, it was 1.63 GB. So, Firefox was using around 300 MB more than Edge in this (not too rigourous) test.
image sequence support for OCVWarp
Prompted by this feature-request for command-line support, OCVWarp version 4.00 now has basic support for image sequences, too. The documentation in the wiki has been updated with caveats. And here is a link to all posts about OCVWarp.
PS. And in December, a test build with MacOS X succeeded on github actions using homebrew to install OpenCV.
Sunday, April 07, 2024
using blender online
As noted at https://digitalarthub.net/3d/how-to-use-blender-online-without-downloading/
"Do note that most of these apps run outdated versions of Blender and they’re pretty laggy",
- OffiDocs (Requires no account) - seems to be ver. 2.8 or so.
- Turbo.net (Requires account)
- RollApp (Requires account)
Since Blender doesn't run any more on the old Macbook running Linux - https://www.blender.org/download/requirements/ - I can use the online versions for quick screenshots and so on.
Friday, April 05, 2024
Windows defender finding a Trojan in build from Github actions - false positive
Artifacts from some builds of OCVWarp were being flagged by Windows Defender as having a trojan, Wacatac. As mentioned in this page, https://github.com/RPCS3/rpcs3/issues/15309 this is probably a false alarm, as some other builds with minimal changes were not flagged. So, tried Add an exclusion to Windows Security - Microsoft Support - that worked well.
Start --> Settings --> Privacy & security --> Virus & threat protection --> Manage settings --> Exclusions --> Add or remove exclusions.
shifting a blogger blog to Google Analytics 4
There was an email from Google, "All Universal Analytics services cease to function starting July 1, 2024"
Googling "use analytics with blogger", found this support article - and found that this blog was not automatically transferred from the earlier Universal Analytics to Google Analytics 4. Copy-pasted the "Measurement ID" as mentioned in that support article, finding the "Measurement ID" via this article. Now let's wait for a couple of days and see if it works.
Thursday, April 04, 2024
CPU-based stable diffusion
super-resolution experiments
Tuesday, April 02, 2024
stable diffusion experiments
Monday, April 01, 2024
supported browser for old versions of Windows and MacOS
Copy-pasting from an email I sent:
There is a Chromium-based browser called Thorium which has support for Win7 and above.





