Setting up Dokku with DigitalOcean and Namecheap
..or how I made my own heroku in a few hours for $3.98.
# | |
# Converts eastings and northings (British national grid coordinates) to Lat/Long | |
# | |
# Original code author: Hannah Fry; see code/comments here: | |
# http://www.hannahfry.co.uk/blog/2012/02/01/converting-british-national-grid-to-latitude-and-longitude-ii | |
# | |
from math import sqrt, pi, sin, cos, tan, atan2 as arctan2 | |
import csv |
For details see Quickstart: uploading, testing, pushing releases
Update C:\Users\username\pip\pip.ini on Windows 8/10, or ~/.config/pip/pip.conf on Linux
[global]
# The entries in this file are checked regularly for validity via the Github Action | |
# sited at github.com/bskinn/intersphinx-gist. | |
# Please feel free to post an issue at that repo if any of these mappings don't work for you, | |
# or if you're having trouble constructing a mapping for a project not listed here. | |
Python 3 [latest]: ('https://docs.python.org/3/', None) | |
Python 3 [3.x]: ('https://docs.python.org/3.9/', None) | |
attrs [stable]: ('https://www.attrs.org/en/stable/', None) | |
Django [dev]: ('https://docs.djangoproject.com/en/dev/', 'https://docs.djangoproject.com/en/dev/_objects/') | |
Flask [2.2.x]: ('https://flask.palletsprojects.com/en/2.2.x/', None) |
import requests | |
from bs4 import BeautifulSoup | |
from os import path, getcwd | |
import ctypes | |
import time | |
def windowswallpaper(image): | |
SPI_SETDESKWALLPAPER = 20 | |
ctypes.windll.user32.SystemParametersInfoW(SPI_SETDESKWALLPAPER, 0, image, 0) |
The user experience of Python on a minimal Debian or Ubuntu installation is bad. Core features like virtual environments, pip bootstrapping, and the ssl module are either missing or do not work like designed and documented. Some Python core developers including me are worried and consider Debian/Ubuntu's packaging harmful for Python's reputation and branding. Users don't get what they expect.
The problems can be easily reproduced with official Debian and Ubuntu containers in Docker or Podman. Debian Stable (Debian 10 Buster) comes with Python 3.7.3. Ubuntu Focal (20.04 LTS) has Python 3.8.5.
I want Microsoft to do better, want Windows to be a decent development platform-and yet, I constantly see Microsoft playing the open source game: advertising how open-source and developer friendly they are - only to crush developers under the heel of the corporate behemoth's boot.
The people who work at Microsoft are amazing, kind, talented individuals. This is aimed at the company's leadership, who I feel has on many occassions crushed myself and other developers under. It's a plea for help.
You probably haven't heard of it before, but if you've ever used win32 API bindings in C#, C++, Rust, or other languages, odds are they were generated from a repository called microsoft/win32metadata.