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!
Wednesday, November 29, 2023
converting flat video to fulldome
Wednesday, November 22, 2023
saga of backing up and restoring a course with H5P content on moodle
Mon Nov 20 14:38:34 UTC 2023
== Performing backup... ==
Backup completed, the new file is listed in the backup area of the given course
SELECT * FROM information_schema.INNODB_ TEMP_TABLE_INFO;
To display H5P content in Moodle activities, the Display H5P filter must be enabled, and the URL (e.g., h5p.com) should be listed as an allowed source in Site admin / Plugins / Filters / Display H5P.
https://docs.moodle.org/401/
Found a google drive listed there,
https://drive.google.com/file/
After removing, still no.
Tuesday, November 14, 2023
moodle app build for v4.3.0
Some small changes were needed in the github workflow in order to build the latest version, 4.3.0, of the moodle android app. My earlier posts about building the moodle app can be found here.
Trying the old workflow led to some errors like
Failed to restore plugin "cordova-plugin-screen-orientation". You might need to try adding it again. Error: Error: Command failed with EACCES
Checking the testing.yml in the 4.3.0 tag found some extra lines like
npm ci --no-audit --prefix cordova-plugin-moodleapp
Adding that led to a different error,
cordova-plugin-moodleapp@0.0.0 prod /home/runner/work/LMSapp/LMSapp/cordova-plugin-moodleapp
sh: 1: scripts/build.js: Permission denied
Trying the simplistic solution of giving run permissions for everything,
chmod -R +x ./*
This worked, except for needing resources/android/icon-background.png to be added manually as in earlier releases.
Tweaked the build script to directly pull the codebase of the release from github instead of manually adding it, with all customizations from our private repo which has the following file structure:
Monday, November 13, 2023
moodle app ui for multiple logins
Once logged in to one site, if someone has a login in another site
also, they can log in to the other site by tapping on their profile icon
on the top right corner of the screen and choosing the "Switch account"
option, even without logging out completely.
using mv to move hidden files from a script or command line on Linux
mv subfolder/{.,}* /path/
But this can cause scripts in github actions to fail, so using cp -r instead.
Saturday, November 11, 2023
mirror ipad screen on Windows PC
https://www.howtogeek.com/247573/how-to-mirror-your-iphone-or-ipads-screen-on-your-windows-pc/
Install AirPlay Screen Mirroring Receiver (free) from the Microsoft Store, open it.
Open the Control Center in ipad/iphone by swiping up from the bottom, or down from the top right edge, depending on which version of iOS you have. Then tap "Screen Mirroring." The PC should appear on a list of available devices.
But some apps like Disney + Hotstar don't work if mirroring is enabled, "Please try again after disabling screen recording".
Friday, November 10, 2023
the beginning of the end of Google
Whatever goes up has to come down. Ever since it went public, Google seems to have slowly but surely gone down the road that leads to its ultimate decline. People were discussing this in 2006, but now even their flagship Google Search seems to have gone downhill with their policies put in place (probably to avoid abuse).
Case in point - a personal blog, created on blogspot.com (owned by Google!) was not being indexed. Even after submitting the sitemap created by blogspot itself, Google Search console shows that blog as being crawled, but not indexed. Whereas bing.com and duckduckgo.com at least show the pages on the site if the keyword site:actual.url.of.the.site is used. After filling up the "submit feedback" form on Google Search Console, of course, there was no response whatsoever.
Cory Doctorow, of course, has written about it eloquently on medium -
https://doctorow.medium.com/googles-enshittification-memos-2d6d57306072
and the ad-free, login-free version on
https://pluralistic.net/2023/10/03/not-feeling-lucky/#fundamental-laws-of-economics
Edit: Here is a Google insider's take on Google's cultural erosion - via slashdot,
Wednesday, November 08, 2023
turning off some notification types in a default Moodle install
It is probably prudent to turn off "forum" and "new login" notifications in a new moodle instance to avoid users' email providers marking the emails from the server as spam, and to avoid exceeding quota limits if using GMail / Google Workspace / other provider with daily quotas.
Tuesday, November 07, 2023
zoom effect in blender without moving camera
By animating the focal length property of the camera, we can get the equivalent of a zoom lens effect in blender, without moving the camera.
https://blender.stackexchange.
getting started with google search console
Google webmaster tools have been moved to google search console. Got an email after signing up, "Now that you've verified your site in Search Console (or created a site in Blogger or Google Sites, which verified your site for you) we have some tips to help you use Search Console more effectively."
Friday, November 03, 2023
adding a file to an appimage
To test out the script in the interesting discussion
https://github.com/Stellarium/stellarium/discussions/3424
I tried to add the script in the discussion to an appimage of stellarium 19.3. It turns out it's not that easy, but some things can be done.
https://superuser.com/questions/1301583/how-can-i-extract-files-from-an-appimage
suggests the --appimage-extract command-line option, but is not very explicit on whether the option should be run on appimagetool or on the appimage itself.
https://unix.stackexchange.com/questions/517881/how-can-i-change-the-files-of-an-appimage
clarifies that the option is to be run on the appimage itself, and not on appimagetool.
So, that extracted the files into ./squashfs-root, and I could add the new script into the scripts directory. But when I tried to create an appimage from the modified squashfs-root using appimagetool, it failed with an error,
org.stellarium.Stellarium:~: metainfo-filename-cid-mismatch
Googling led me to https://kb.vmware.com/s/article/1007969
which says that we should manually correct the cid for similar errors with VM images. But that advice doesn't seem to be relevant here.
In any case, the bin directory inside ./squashfs-root had a stellarium executable which could run, and the extra added script also showed up.