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鈥檒l summarize how to autheticate through an interactive login in the web app built with a Flask and Python. 1. Environment variables Let鈥檚 create a .env file first for environment variables. CLIENT_ID It鈥檚 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鈥檛 log in or isn鈥檛 interactive, and that causes it not to have a PATH to conda鈥檚 bin. Furthermore, if we use a system crontab such as /etc/crontab, the default user is root and the user definitely doesn鈥檛 have access to the conda. ...
Fun prompt
Based on everything you know about me, roast me and don鈥檛 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鈥檒l 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.