Category: python
-
Adding Django-REST-Framework to Django (way after the fact)
One of my first projects in my current role was to optimize a process that involved taking a hardware design and making predictions about it. We had some old Excel sheets that would keep track of old analyses but these didn’t really enforce any structure and lots of work had to be redone each time…
-
Headers – The Source and Solution of All Problems
After working with Docker for a while and especially Docker Compose you start to take a lot of boring configuration for granted. I remember beginning web development and absolutely hating deploying projects to AWS instances because of the scary “reverse proxy” and setting up NGINX. Who knows how many times I googled “does flask need…
-
Getting the S&P 500 From Wikipedia with Python
Most of my strategies in the market are pretty basic – I don’t really like technical indicators but will use them to rank possible positions here and there. One of the best ways to reduce risk is to only look at the “good ones” so that even bad calls aren’t as bad as they could…
-
How to Print (to a real printer!) with Javascript

Short and sweet today – I never knew (well, never knew to look up) how to print a webpage with Javascript. Since you can do just about everything else with the window it’s not surprising, just never a use case I needed. My “discovery” came while at work and trying to debug a component that…
-
How to Find What to Watch
On and off over the last couple months I’ve been putting together a collection of fun/goofy tools that my girlfriend has asked about. As a test of my new fondness of the FARM stack, I’ve rebuilt the project in React, using FastAPI and MongoDB for the backend. It’s located at rachelscoolshit.com because I miss the…
-
Embracing the FARM Stack

After stumbling on a FastAPI article I decided to give it a go and have been having fun using it for a backend. I know I said I loved Go and would be doing all my personal things in Go moving forward, but running with Pydantic and the auto documentation has added some of what…
-
How to Send File Objects from a React Frontend to Django Backend
This is probably pretty common knowledge, but after running into a relatively frustrating event at work I figured I’d do a little write up so I can just look here in the future instead of frantically googling around… I’ve finally embraced using the loader() and action() abilities of react-router-dom and while they simplify many things,…
-
Time-Based Debouncing with Plotly Dash
It’s been a while since I’ve written a post here! Ended up shifting jobs a couple months ago and have been pretty focused on a learning a new type of role. Part of the new gig is automating the collection and display of a variety of data and I’ve had the opportunity to start using…