https://blenderartists.org/t/
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!
Sunday, December 31, 2023
gpu cpu render time comparison
rendering tips for Blender - noise threshold
To speed up Blender rendering with cycles -
About noise threshold
https://medium.com/@samuelsullins/your-first-real-render-in-blender-a27d3049d659
(also mentions tip about Lock Camera to View for easily manipulating camera by viewing through it).
For 720p, 100 samples should be plenty,
https://blenderartists.org/t/cycles-how-many-sample-should-i-render/1466873
Recommended workflow now is to set a noise threshold, and allow the number of samples to be dynamically set. - You need to set a time limit.
https://blenderartists.org/t/question-about-noise-threshold-in-3-0/1354392
Friday, December 29, 2023
Thursday, December 28, 2023
Wordpress users unable to log in
Troubleshooting request - admin users got logged out of Wordpress, unable to log in, "reset password also not working".
Rebooting the server has not resolved the issue.
The users shared this page,
https://blog.hubspot.com/website/locked-out-of-wordpress
Reset the password by connecting to the database and editing the users table, getting the MD5 hash of the password using
echo -n testpasswrdreplacewithcorrectone | md5sum
which works fine, tested with
Friday, December 22, 2023
frame repeat / drop bug
Found frames being repeated (or dropped?) with a ~20 minute video processed with OCVvid2fulldome - found duration had reduced from 24 minutes to 22, and also some jerkiness in motion. The github issue is here.
Possibly this is due to using ffmpeg in the backend, and this issue?
https://superuser.com/questions/1255380/ffmpeg-duplicating-frames
ffmpeg seems to assume 25fps input as default for frame sequences, and adds duplicate frames if output is 30 fps. https://gist.github.com/hn-88/95dbd59767dcdff23eab2f2be5880c2f
-fps_mode passthrough
seems to be a workaround when using ffmpeg from the commandline, but when ffmpeg is used via OpenCV, how do we manage this?
generate a video with frame numbers
Using ffmpeg, can use the following
Generate a video of frame numbers. (github.com)
This can be used to test for bugs like this one,
frames being repeated or dropped · Issue #10 · hn-88/OCVvid2fulldome
Tuesday, December 12, 2023
update to Moodle minor update post - stop git from complaining about file permissions changes
Found a couple of issues while upgrading using the steps given in my previous post regarding Moodle minor update using git -
- If we uninstall the h5pactivity built-in plugin before the upgrade, the upgrade does not proceed - it complains about corrupted plugin. So, basically, we can't uninstall the default plugins without causing issues with upgrades.
- If we change the file permissions, we need to add a command
git config core.filemode false
to prevent git from complaining about overwriting local files, listing all the files, and aborting the git pull. Via this post.
So, the updated list of commands:
workflow and supported codecs
Workflow for creating files playable at our theatre using only cross-platform tools.
- ffmpeg to create mp4 file if input is frame sequence - as in this post,
ffmpeg -r 30 -f image2 -i "Our-frame_%06d.png" -vcodec libx264 -crf 15 -pix_fmt yuv420p Our-movie-4k-frames.mp4 - OCVWarp to create warped file. Fourcc of avc1 results in x264 video, good quality.
- Avidemux to edit the warped file, move the credits to the beginning and speed up credits. Also overlay Hindi / Telugu title text as graphics using the logo filter.
- To note: Firestick 4K needs FAT32 formatted disk, which has a 4 GB file size limitation. So, re-encoding files with x265 (HEVC) using the options in the Configure button to choose file-size based codec quality. This takes around 8 hours to encode a half-hour 4K 30 fps video on an i5 laptop!
- Similarly, the older BluRay player needs to have 1080p encoded with XVID fourcc. x263, I guess.
Upcoming - perhaps try AV1 codec?
https://trac.ffmpeg.org/wiki/Encode/AV1
Sunday, December 10, 2023
Moodle server down - restart db server fixed it
Uptimerobot alerted me that one of our Moodle servers was down.
1. automated bot attack
2. some services not restarted properly after an automated system update
3. some other issue triggered by some user action
Right now I'm not digging into the logs for troubleshooting, in case the issue happens again, will do more digging.
We anyway would need a server upgrade some time in the first half of 2024 for operating system upgrades - at that time, I could tighten some of the parameters for better security (like the open ports with default services present currently).
Friday, December 08, 2023
Wordpress permalink issue
One of our servers' site admins reported a problem, with "remove the index.php from the URL" - the standard method of
WordPress dashboard --> Settings --> Permalinks --> "Post Name" Permalink, Save Changes
did not work for them. "File not found" error.
Checked the .htaccess file, it seemed to be OK.
But looking at how Apache handles .htaccess files, found that AllowOverride would be needed for the .htaccess files to work.
Following
https://ubuntu.com/tutorials/install-and-configure-wordpress#4-configure-apache-for-wordpress
added the lines
<Directory /oursrv/path/to/www/wordpress>
Options FollowSymLinks
AllowOverride Limit Options FileInfo
DirectoryIndex index.php
Require all granted
</Directory>
to the relevant files in /etc/apache2/sites-available and then did
sudo service apache2 reload
The admins report that this solved the issue.
Saturday, December 02, 2023
Update your trusted root store for Azure Storage services
We got an email from Azure, asking us to update our trusted root store for Azure Storage services - "If you have client applications that still use certificate pinning, they'll be affected by this change and you'll need to take action by 29 February 2024 to avoid potential connection interruptions."
I don't think any of our apps or services use certificate pinning, so did not take any action.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.




