-
Looking beyond JSON Output format from LLMs
While working on my site for Learning and Quiz Generation I noticed that asking LLM’s for JSON outputs was problematic. Too many times the output was not a valid JSON. After multiple such issues, I felt that I should like at other output formats that I can then parse. Once such method that seems to…
-
Upgrading Nginx Ingress Controller from V1.1.1 to V1.12.0
While upgrading the Nginx Ingress Controller, I encountered a few issues with the controller pod startup. Here are the problems and their solutions: 1. Cross-namespace secret is not supported If you have your mTLS CA as a secret in the namespace where the controller is deployed, you’ll face this issue. After the upgrade, the ingress…
-
Add extra validation rules to Laravel ForgotPassword
-
React Native: Application is not registered
– This is either due to a require() error during initialisation or failure to call AppRegistry.registerComponent. I had been struggling with this for some time and the answer was right there… I had to make sure I called AppRegistry.registerComponent with the right params/appname – I had renamed my app and forgot to update the class…
-
HTTPS and GA referral exclusion
After converting a site to be served over TLS, we noticed the drop off rates increasing on some pages. This was because: user was being redirected to a payment page on another domain that was also served over TLS. As, now both sites were served over TLS, Google Analytics was picking up the referrer (HTTPS…
-
missing scheme in email body url
-
how to not run a cron job between certain datetimes
-
rsync only certain files
Create a file on on the origin server and use the –files-from option cd / rsync -anvi –files-from=/tmp/only_these_files . to-server:/ cat /tmp/only_these_files /srv/www/mysite/uploaded_files/9a3d3d9046aaad4bbe3074d794a6adaf.jpg /srv/www/mysite/uploaded_files/5ca1c97efd730427f846e457bd0a0667.png /srv/www/mysite/uploaded_files/5b0923025b4a1fde3a34119bfcd56567.jpg /srv/www/mysite/uploaded_files/870ed45d9ad704deace8fb541242425a.jpg
-
Starting KVM guest after memory change
After a memory module was taken out the system, the KVM guest was failing to start complaining about insufficient memory. Editing the domain XML file (in /etc/libvirt/qemu on Debian) to use less RAM and then trying to start the guest did not work. I had to do this: libvirt-bin restart for the the updated XML…
-
WordPress + Nginx + Permalinks Rewrite rules