This tutorial details how AWS Lambda and API Gateway can be used to develop a simple code evaluation API, where an end user submits code, via an AJAX form submission, which is then executed securely by a Lambda function.
Check out the live demo of what you’ll be building in action here.
WARNING: The code found in this tutorial is used to build a toy app to prototype a proof of concept and is not meant for production use.
… Read the rest
Ned Batchelder’s coverage.py is a foundation of the Python testing ecosystem. It is solid, well maintained, and does its job extremely well. I think literally every Python project that cares about testing should be using it.
But it’s not without its faults. Specifically, its performance can be quite bad. On some workloads it’s absolutely fine, but on others you can see anything up to an order of magnitude slow down (and this is just on CPython. On pypy it can … Read the rest
This tutorial is going to be all about Django’s authentication system. We are going to implement the whole thing:
registration, login, logout, password reset, and password change.
You are also going to get a brief introduction on how to protect some views from non-authorized users and how to
access the information of the logged in user.
In the next section, you will find a few wireframes of authentication-related pages that we are going to implement
in this tutorial. After … Read the rest
Some while ago I got a new wifi-capable camera. Of course, it has some awful proprietary system for actually transferring images to a real computer. Fortunately, it’s all based on a needlessly complex HTTP interface which can fairly easily be driven by any moderately capable HTTP client. I played around with FlashAero a bit first but it doesn’t do quite what I want out of the box and the code is a country mile from anything I’d like to hack … Read the rest
These are my notes on using some MicroPython specific tools in relation to a ESP32-DevKitC board.
There are many tutorials and youtube videos that constantly encourage users to install tools and packages into their system-level libraries. (If you need to use sudo when you
pip install foo, you are installing it as a system level library.) Please, Please, Please take the time to learn the basics of virtual environment. If you are a developer/hacker/maker – save yourself … Read the rest
We live in a hobby-rich world. There is no shortage of pastimes to grow a passion for. There is a shortage of one thing: time to indulge those passions. If you’re someone who pours your heart into that one thing that makes your life worthwhile, that’s a great deal. But, what if you’ve got no shortage of interests that draw your attention and you realize you will never have the time for all of them?
If I look at all … Read the rest