There's no two ways about it, Python is slow. I felt this in particular when exploring how to sanitize potentially malicious HTML content in the CTFd content editor. The two options for sanitizing/processing HTML in Python both have some tradeoffs: Poorl... (more…)
Read more »
⚡ Building applications with LLMs through composability ⚡ - GitHub - hwchase17/langchain: ⚡ Building applications with LLMs through composability ⚡... (more…)
Read more »
The challenge Given the triangle of consecutive odd numbers: Calculate the row sums of this triangle from the row index (starting at index 1) e.g.: Test cases The solution in code While there are many ways to achieve this, the absolute most simple is to r... (more…)
Read more »
The problemLet's say you have more than one version of Python installed on your machine. What version does python3 point to? If you said, "the newest version", you may actually be wrong. That's because python3 points at the last version of Python you inst... (more…)
Read more »
Prettify Python exception output to make it legible. - onelivesleft/PrettyErrors... (more…)
Read more »