-
Python - Filtering Dicts
I’ve been needing to do some Python for work lately. Nothing big or fancy, but it does involve working with lists and dicts… Coming from Elixir and Ruby I can’t help but wonder if I’m missing some greater point about how Python does this stuff. Like, why does filtering a dict not return a dict but has to be cast into one? And why are items treated like tuples in the comprehension/lambda? I know the underlying form is most likely a tuple in both Python, Elixir and Ruby, but I don’t really care to be dealing directly with it.
-
useless.exe
Back in the 1990s there was this Danish meme program called “useless” (aka. “useless.exe”) that was being circulated on floppy disks and on the internet. About a year ago I spent an unreasonable amount of time trying to dig it up and, through hundreds of now-forgotten web searches and endless scouring of ancient forum posts full of dead links and disappointment, I eventually succeeded, so I figured I’d make it available here for others in the same situation to find.
-
XSS From Mixed Rendering
Most popular website frameworks — be they frontend or backend — have ways to safely handle user input in order to prevent injection attacks like SQLi or XSS. However, they (obviously) don’t have ways to handle it safely for other frameworks.