On one of our servers running Ubuntu 22.04, Wordpress reported upload size is set to 2 MB. Changed to 50M from 2M in the global php settings at
/etc/php*/8.1/apache2/php.ini - that has fixed the issue.
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, January 29, 2024
increasing file upload size in Wordpress
Sunday, January 28, 2024
email configuration changes on server - app password and <<< for mail command
With google phasing out support for "less secure apps", we had to use "App password" for one of our servers. On PB's terminal on Mac, Ctrl+D was mapped to something else, so we could not use the usual method of the mail command for testing where we end the body with Ctrl+D. Instead, tested by the three less-than symbol to send email, like
mail -s
"<Subject>"
recipient@something.com
<<<
"<Mail Body>"
Google phasing out password-based SMTP / POP3 / IMAP
We got an email with "[Action Required]", with a link to this blog post from google - https://workspaceupdates.googleblog.com/2023/09/winding-down-google-sync-and-less-secure-apps-support.html
We have used two different methods to deal with this - one solution using XOAuth, and one using App Passwords.
1. For some of our Moodle instances which used Google Workspace emails for outbound emails, we could use the in-built XOAuth support as explained here,
Admins can enable Gmail XOauth2 for outgoing and incoming mail
So I created two separate sets of credentials for one of the email ids, since the redirect url for each (one production and one development) server would be different as mentioned in the documentation linked from the tracker link above -
server.url/admin/oauth2callback.php
2. For our internal server using ssmtp as mentioned in this earlier post, this procedure (or the use of PHPMailer which supports XOAuth) would not be suitable, since it does not have a public-facing website url.
describes a python solution, but needs refresh, and needs a browser.
)
In passing, the email from google mentions that App Passwords are not going away - "Password-based access (with the exception of App Passwords) will no longer be supported" . We had earlier created App Passwords for use with We can create App Passwords if we enable 2FA. So, we enabled 2FA, created an App Password, and just replaced the password in our earlier ssmtp configuration file with the App Password (without spaces). And that works.
Saturday, January 27, 2024
Firebase notification and action taken
Firebase sent us an email with the information given in this link about email enumeration protection,
https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection
So, enabled the protection for the VV app's projects, following the procedure given in the bottom part of the link above.
Thursday, January 25, 2024
Merriam-Webster dictionary api and moodle plugin
This moodle plugin "Dictionary" requires a one-time free registration to the Merriam-Webster api at https://dictionaryapi.com/ - they currently provide 1000 free lookups per day per key, and 2 free keys per registration. The plugin uses one key for dictionary, one for thesaurus.
Tuesday, January 23, 2024
spam via Moodle support form, and ways to prevent it
For the first time, I got some spam apparently sent via one of our Moodle servers. This forum thread describes the issue and the solution -
Moodle in English: How to remove link to Contact site support to avoid SPAM | Moodle.org
Instead of commenting out, used the method mentioned lower down in the thread for Moodle 4.1 and above, by going to Site administration --> Server --> Support contact and changing the option to make it available only for logged-in users. Did the same thing for two of our production instances, too.
Friday, January 19, 2024
tech support options for Moodle
Copy-pasting from an email exchange -
(Deleting the part about my availability)
Thursday, January 18, 2024
SheepIt render farm - benchmarks and mini-howto for rendering fluids/particle systems - Blender 3.0 to 3.6
Summary
- Storage used: 971.8 MB
- Cumulated time of render: 9h01m
- Points spent: 5,767 points
- Real duration of render: 1h23m
- On reference per frame rendertime: 0m51s
CPU | Intel(R) Core(TM) i7 CPU M 620 @ 2.67GHz x4 |
---|---|
RAM allowed | 1.3 GB |
RAM available | 3.9 GB |
Max render time per frame | |
Power CPU | 6 % |
Scheduler | very_slow_computer |
---|
CPU | Intel(R) Core(TM) i5-4430 CPU @ 3.00GHz x4 |
---|---|
RAM allowed | 4.8 GB |
RAM available | 8.3 GB |
Max render time per frame | |
GPU | GeForce GTX 1050 Ti |
VRAM | 4.3 GB |
Compute device | CPU, GPU |
Power CPU | 34 % |
Power GPU | 4 % |
Scheduler | Default |
CPU | 12th Gen Intel(R) Core(TM) i5-1235U x12 |
---|---|
RAM allowed | 2.9 GB |
RAM available | 8.1 GB |
Max render time per frame | 1h |
Power CPU | 72 % |
Scheduler | Default |
And finally, here's a youtube video of the rendered output. This is a "Fulldome" video, meant for projection in a planetarium. (Since this is my first effort, the launch needs more work to look more realistic - currently the motion of the rocket looks a bit cartoonish.)
Blender VSE - Video Sequence Editor - and image sequences
A quick note to myself - when importing image sequences into Blender VSE, we must ensure that the files are sorted by name in the file open dialog box (or in whatever order we want them to be) before selecting the relevant images, and then importing. Or else, some jumbled order will result in the imported sequence.
Wednesday, January 17, 2024
Blender render - hard-code metadata like frame number in output
For stamping rocket launch frame number, this page
Font size 12 px by default, which would be extremely small for a 4K frame.
Thursday, January 11, 2024
interesting device to "do your app busy-work for you"
Interesting device, heard about it via theverge because it sold out its first 10k run within 24 hours of launch - https://www.rabbit.tech/
Its USP seems to be that it can save you from having to tap through many clicks on apps using routines which can be launched by the push-to-talk device. If it really delivers on the promises given in the talk in the link above, it might become the "next big thing."
Tuesday, January 09, 2024
blender rendering notes - part 2 - and SheepIt render farm
- As noted in the previous post, time-remapping to make the animation slower does not work well with particle systems, probably because baking is not done for fractional frames. A similar issue is discussed here.
- A gotcha for me was that the keyframes for the rocket animation were not visible in the timeline, but some other keyframes, like the camera field of view animation which I had added, were visible.
So, dragging these keyframes to newer locations further along the timeline was not enough - I had to go to graph editor, and make sure the filters had "Show hidden"
and then the keyframes (after 1000 frames) were visible. - More notes and links to tutorial video timestamps below,
Getting rid of unwanted assets:
playing custom local video playlist from Kodi
The way to play local videos as a playlist seems to be, as per this forum thread,
right-click or C in the Files view to get the context menu for a video file,
choose to queue it,
the file view automatically jumps to the next file in the folder,
right-click or C and choose to queue it and so on,
and when all the required files are added,
left arrow for the hidden menu, choose Go to Playlist,
then choose Save - it will now ask you for a filename for the playlist.
In order to play this playlist, from the home screen,
choose Videos (NOT Movies)
choose Playlists
highlight the desired playlist,
C for context menu, and choose Play.
Or press P to play after highlighting the desired playlist,
after which you have to press TAB for full-screen video without the menu.
List of keyboard shortcuts is at https://kodi.wiki/view/Keyboard_controls
Most of the options like audio device are in the Kodi Settings (gear icon on top of home screen.) LibreElec settings for system name, keyboard layout, etc.