Work Stuff
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!
Saturday, September 12, 2026
app for automating sending of SMS / WhatsApp messages
Friday, September 11, 2026
repeated Cloudflare "human check"
For the past week (or so), each time we go to our website, and even click on a sub-page, etc, Cloudflare makes us check that we are human (not a bot). See screenshot attached.Do you experience this as well, or is it just me?It is a bit annoying to do it for EVERY page. Is there a way to do it randomly, or at least once (so it knows this IP address is fine), etc.?
Another admin mentioned that
I remember (another) website team making some changes to the Cloudflare settings following the phishing attacks and bot injection issues we faced on the (other) website. I believe the human verification check you are seeing could be related to those security measures.
And I added,
I think one way to avoid getting the bot-check "every time" would be to keep a tab open with a page from our domain - then the session would remain open for around 10 minutes, and any other page in our domain you open within those 10 minutes will not ask you for a bot-check. If you are doing some content editing work which takes more than 10 minutes, if you navigate to another page in the open tab within 10 minutes or refresh that page within 10 minutes, you can avoid the bot-checks.
logo update for sign-in with Google screen
- Go to Google Cloud Console → select your project.
- Navigate to APIs & Services → OAuth consent screen (in newer UI it may be under APIs & Services → Branding).
- Under the App information section, you'll see an App logo field — upload your logo there (square image, recommended 120x120px, max 1MB, JPG/PNG/BMP).
- Save changes.
Wednesday, September 09, 2026
Claude's review of swayam plus integration local plugin for Moodle
Tuesday, September 08, 2026
Google Maps Street View video
Monday, September 07, 2026
debugging and testing local Moodle plugin with Claude
Private URL for my reference - https://claude.ai/chat/12096022-e224-4e6b-9e01-40149a93cef7
Used Claude to debug (add missing version.php, and many other omissions) the local plugin for swayamplus api integration generated by Gemini - github repo at https://github.com/hn-88/swayamplus-sso-api-integration. Also added some features like retry logic and test url generation.
Some points to note:
- The plugin uses the "Manual enrolment" enrolment method, which is enabled by default on all courses - we can see the enabled methods by going to the relevant course > Participants > Enrolled users (dropdown) > Enrolment methods.
- Guest access should probably be removed from the same place as above, in case enabled earlier.
- Currently the classes/privacy/provider.php is not implemented, so the mdl_local_swayamplus_enrol table is not updated by deleting rows if / when users are deleted.
- If the user is already present on our system, they are directly enrolled in the course.
- If the user is new to our system, the user is dropped into the profile completion and agreement to terms and conditions workflows. Following that, the user is actually enrolled in the course automatically, but dropped into their Profile page. According to Claude, we can add a large link to "My Courses" in the Profile page as follows:
- Go to any page where you can add a block sitewide — the Front Page is the standard choice. Turn editing on.
- Add a block → HTML.
- Give it a title (e.g. "Continue learning") and content — something like a large, bold link:
<p style="text-align:center;"> <a href="https://ourdomain.org/my/courses.php" style="font-size:1.4em; font-weight:bold; display:inline-block; padding:10px 20px;"> → Go to My Courses </a></p> - On that block's own settings (gear icon → Configure), under "Where this block appears" → Page contexts, set it to "Display throughout the entire site." Save.
- Now navigate to any user's profile page — your own is fine. The block should appear there too (since you just made it sitewide). Open that same block's settings again, and this time change "Display on page types" to "Only user profile pages." Save.
network problems were due to overheating SFP module
Saturday, September 05, 2026
avidemux on Mac - default settings are fine
Friday, September 04, 2026
investigating lack of referrals
- In the new site (swayamplus.education.gov.in redirected from swayam-plus.swayam2.ac.in) login is via email sent to our email id, and my previous email registration doesn't seem to work. Maybe because I had unsubscribed from course alerts?
- After logging in with a fresh email, found that swayamplus is no longer adding a referer id to the course URL. There is no &ref=ABC123 part in the URL.
Moodle server error alert - due to .jpeg extension
trying to add a content update. I keep getting this error: "servererror,moodle". What could be the problem?
I asked for the URL, and what he had been trying to do. Apparently, the issue was with adding image files with .jpeg extension in a rich-text box. When I renamed the files to .jpg and added them to the box, there was no error.