Azure API Authentication with MSAL
MSAL stands for Microsoft Authetication Library enables developers to acquire security tokens from the Microsoft identity platform to autheticate users and access secured web API (documentation). Among various authtication methods, I’ll summarize how to autheticate through an interactive login in the web app built with a Flask and Python. 1. Environment variables Let’s create a .env file first for environment variables. CLIENT_ID It’s the application (client) identifier you receive when you regsiter your app in the Azure portal. Thiks of it as the unique ID that tells Azure AD who is making the request through your code. CLIENT_SECRET ...
How to use cron
cron is a job scheduler on Unix-like operating system. (Wikipedia) conda environment activating issue I had an issue with activating the conda environment on a cron job. The problem was that cron runs in a minimal environment without .bashrc or conda init. cron runs /bin/sh, which doesn’t log in or isn’t interactive, and that causes it not to have a PATH to conda’s bin. Furthermore, if we use a system crontab such as /etc/crontab, the default user is root and the user definitely doesn’t have access to the conda. ...
Fun prompt
Based on everything you know about me, roast me and don’t hold back in Korean.
Vibe coding retrospective
Never dive deep without fully understanding the technologies your agent is actually working on. If you do, you’ll quickly find yourself trapped in an endless loop of trial-and-error debugging - a frustrating local minmimum. You might evetually excape by chance after countless iterations, but the process will be painful and a waste of your time.