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, April 25, 2022
fixing an error in a moodle ad-hoc query
Saturday, April 23, 2022
troubleshooting a php framework / cms based site
Friday, April 22, 2022
changing cpanel theme for all accounts in WHM
fixing wordpress errors after server upgrade
Wednesday, April 20, 2022
OpenCV with Qt creator
Friday, April 15, 2022
improvMX for domain email forwarding
Sunday, April 10, 2022
PBX with Raspberry Pi - RasPBX - or with the cloud - AWS
https://www.youtube.com/watch?v=n_txukfW3uE
How to turn Raspberry Pi into FreePBX-based GSM gateway
(needs 3g modem)
Or, if willing to pay for the SIP trunk termination instead of buying a 3g modem, AWS based method -
https://www.youtube.com/watch?v=n_1wX7kKx7k
Quite interesting.
Friday, April 08, 2022
youtube live streaming possibilities
- Made a small change in the script, adding the -re flag - otherwise, ffmpeg would push the live stream too fast. Reference - https://trac.ffmpeg.org/wiki/StreamingGuide
- sudo apt install youtube-dl and using youtube-dl obtained in that manner did not work, since it seems to be an old version. Had to use the more recent code at https://github.com/yt-dlp/yt-dlp
- The other option (perhaps more complicated and using more resources) might have been to stream to a local url, and use that as the source to stream to youtube - Reference -
https://stackoverflow.com/questions/43826675/how-to-live-stream-a-local-video-using-ffmpeg - Checked network usage with itop, approx 2 Mbps out of 35 Mbps of the server was being used for this pull-push streaming to youtube.
- Another option for streaming local content or screencasts (including Google Meet etc) would be Melon - https://melonapp.com/ - which also has a free plan. This also seems to be a good alternative for recording Google Meet calls, except for the time limit for the free plan.
- Another straightforward way to live stream local files to youtube is using vlc and OBS - https://www.youtube.com/watch?v=z9IxP8IUvBY
Wednesday, April 06, 2022
bulk replacing descriptions
Tuesday, April 05, 2022
moodle minor upgrade
https://hnsws.blogspot.com/2021/08/detailed-steps-for-moodle-upgrade-using.html
Wednesday, March 30, 2022
changes needed for migrating show creation from Windows to Linux
- need to run Virtualdub with
cd ~/windows/VirtualDub
wine VirtualDub - need to add the line
Loadplugin("/home/myusername/.wine/drive_c/Program Files/AviSynth 2.5/plugins/ffms2.dll") - need to use FFvideosource("in.mp4") instead of DirectShowSource()
https://hnsws.blogspot.com/2020/01/6-mono-waves-to-51-ac3-using-ffmpeg.html
Tuesday, March 29, 2022
streaming our own youtube videos as a live stream on youtube
Sunday, March 20, 2022
trying out the free email check api
Saturday, March 19, 2022
turning the alarm off on HTC-1 clock humidity temperature meter
mass emailing with Google Apps scripts and validating email lists
https://developers.google.com/apps-script/samples/automations/employee-certificate
But the important thing is that the list of emails must be accurate. If multiple emails bounce, the whole process will get derailed, and the user sending the emails will get suspended. We should probably also go slowly so that rate limiting does not kick in.
Wednesday, March 16, 2022
webpage with links to ebook using RSS and Calibre
Saturday, March 12, 2022
phone photos as thumbnails in Nemo
google apps script for adding to a google group
Since we have a non-profit edition of Google Workspace, we can use google groups with group email id like email@ourdomain.tld for a group created using the admin console, and users can be added to such groups using the API. My trial scripts have been added to this github repo, Google-groups-GAS-tests. Some points to note -
- As seen in the medium post I used as reference, we have to give a sleep statement after calling group.hasUser() to avoid errors.
- We can't use the add or remove functions on @googlegroups.com groups, but listing users etc works.
- The AdminDirectory service in Google Apps Script is lacking in documentation, as are the other services, with AdminDirectory.Members.remove() being an example of an insufficiently documented function - in the REST API, the function is called delete. Most people suggest using the autocomplete option in the script editor to find documentation about the advanced services!
- When calling the deployed GA script as a web app, the Logger.log logs don't appear in the Executions tab by default - even removing the tick for "Log uncaught exceptions" did not help - looks like we need to associate the project with a GCP project in order for that to work. Or, apparently, console.log is the preferred method now.
- We should be aware of the limits -
https://support.google.com/a/answer/6099642#zippy=%2Cmessage-and-posting-limits says Total external recipients** per group = 50,000 per day So, if we need a cushion to send more than one message per day, we would need to keep the number of users below 25k.
Sunday, March 06, 2022
google apps script to turn blog posts into an ebook - no oauth required
https://ravisiyermisc.blogspot.com/2023/06/google-apps-script-to-create-blogger.html and
Saturday, March 05, 2022
google apps script to turn blog posts into an ebook - calling blogger api
results in a google doc with a single character per line!