Just a small example that left me speechless, I wanted a simple thing, keep an <image> element with the height always equal to the width (basically a square) but didn't want to use "px" so it would scale correctly (% or view port dimensions).
I just asked to chatGPT "how can I keep an image height always equal to its width in css ?" and the answer was:
"To keep an image's height always equal to its width in CSS, you can use the padding-bottom property to set the height of the image as a percentage of its width."
And it worked flawlessly because "The size of the padding as a percentage, relative to the inline size (width in a horizontal language, defined by writing-mode) of the containing block. Must be nonnegative."
I should have known this but I didn't and when I tried this in Google I had to check several pages with not as good solutions like "just make the px count the same, i.e: 400px vs 400px" until I reached w3school ratio explanation with padding-bottom.
I just wanted to share this small example that really helped me and might be useful for others.
PS: For anyone reading this, have a nice Christmas and if you don't celebrate Christmas I hope you enjoy your festivities.
Just wanted to share that and thank Hacker News for keeping a guy motivated to try side-projects.
Very short summary: I develop a lot of integration tools for Microsoft 365 through their Graph API and this year Microsoft is going to disable all basic authentication connections to their sign in system (basic authentication are all protocols where you can't force MFA).
This affects a lot of users who configured their accounts on iOS a while back and are still using Exchange ActiveSync (even if you upgrade iPhone it imports the settings). So I made a Web App which will list all of your tenant devices still using legacy protocols and how to move them to modern authentication:
https://betterlicenses.com/audit_log
I also document on a blog post how this can be retrieved for free using existing Azure AD sign in logs, but it's not as easy to understand and my Web App will send you a daily notification whenever a new device is found using basic authentication.
Used Stripe to receive payments and the app has been running for a month and half. It's on a subscription bases only for 20 days because the first 2 weeks it was free and a lot of users were using it and my server costs exploded due to having to analyse a lot of log entries.
Update: I just wanted to say how nice this community is, really upbeat and encouragement comments :), thanks
I decided to add the blog post to my Google Ads , a few hours after started running I get an email that my account was suspended due to "Unacceptable Business Practice", why ?
Image: https://betterlicenses.com/images/account-suspended.png