Projects - Tech
Installing Pip Packages on a Juptyer Notebook
If you get receive a module not found, o r package not found on your jupyter notebook, it’s because that environment (regardless of what you have in your ENV or virtualenv) can’t see those packages. The best way to get around this is to simply install them inline in your Read more…
Projects - Tech
Syncing Trades with your TD Ameritrade API in Python
I just published a repository on github that shows you the easiest ‘full service’ solution for syncing trades and hitting the TD Ameritrade API. The biggest challenge here is managing the tokens and the forced ‘re-auth’ every 60-90 days. You can check out the code here , ping me on github Read more…
Projects - Tech
Useful Django Project Templates
Django is an insanely useful web framework for the average python developer. Properly used, you can boostrap a fully featured, production ready application in an afternoon. Over the years I’ve noticed that there are a handful of use cases/configurations that always come up. Funny enough I rarely find good documentation/examples on Read more…
Projects - Tech
Storing Your Github Authentication Token on Ubuntu (workaround)
This is something that has always annoyed me, but ever since github changed their authentication methods I’ve never been able to successfully cache/store my github authentication tokens for pushing/pulling from repositories. None of the key storage/auth methods worked for me after multiple attempts… so here is my workaround for quick Read more…
Projects - Tech
Simple Emailing For Logs + Troubleshooting
A lot of the systems I build require alerting of some kind (if exceptions occur, services go down etc.) Because it can sometimes be a pain with deliverability (wrangling sendmail on different servers, dealing with getting marked as spam etc.) I always use a service like mailgun along with a Read more…
Projects - Tech
For Developers: Self Documenting Your Work
Some developers out there seem to have this incredible ability to remember the intricacies of the languages they write in and the gotchas of every obscure package they’ve ever used. I am most certainly not one of them. It’s almost embarrassing how many times I’ll google a simple implementation algorithm Read more…
Projects - Tech
Ultimate Python Datetime Date Function List
Working with Dates in python is actually quite simple once you get a hang of all the possible options out there. The datetime objects are pretty robust, but I find myself only doing a handful of operations on dates in the applications I build. Below I’ll embed all the gists Read more…
Projects - Tech
Using a Python Virtualenv in Crontab to run a Django Command
I’m posting this as much for my sanity as for yours (I always forget this). If you want to automate django commands via crontab then make sure you use the following to activate your virtual environment. The only gotcha here is that you must tell crontab to use /bin/bash. Read more…
Projects - Tech
How I Manage A Billion Projects at the Same Time
I keep a lot of different plates spinning in my professional life. Sometimes it’s working as a developer contractor, sometimes as an architect/manager, sometimes on my own projects that I’m writing the code for and other times my own projects I’m hiring people to build. Over the years I’ve Read more…