Category: python

0

Average Chinese Character

Using Python’s Numpy is easy to draw how an average Chinese character would look like. I took the 2000 most common characters hanzidb.org, drew them onto images using `PIL` and calculated it’s average with...

0

Phone Insights API

This API can parse, format and find phone numbers in text documents for any phone number worldwide. These are the endpoints: Endpoint /parse Given a phone number with an international prefix, or if you...

Matplotlib Basemap 0

Install matplotlib basemap on virtualenv

I am using Python3.6 and MacOS 10.13.2(Beta) but should work with similar setups. First create and activate your virtual environment, by default mine is created on top of Python3.6. ~ ❯❯❯ mkvirtualenv basemap-virtualenv […]...

Stripe Logo 1

Python Stripe Signature Verification Error

Building a Django + Stripe integration today I kept hitting the SignatureVerificationError. According to their webhook’s documentation, they recommend something like this: @csrf_exempt def my_webhook_view(request): payload = request.body sig_header = request.META[‘HTTP_STRIPE_SIGNATURE’] event = None...

Home Temperature Monitor MSP 430 + Raspberry Pi 0

Home Temperature Monitor MSP 430 + Raspberry Pi

Introduction I am going to share a small project I did a few days ago. I wanted to use the Raspberry Pi to monitor the temperature in my house and ideally to do it over...