python
2023
TIL - Getting asdf Python with tkinter working on a M2 Mac
·312 words·2 mins
TIL
macos
python
homebrew
tkinter
This week I wanted to play around with tkinter a bit. But this proved to be difficult on my M2 Mac.
I use asdf to manage various runtime versions, so first I checked to see if it was already working with my existing Python installation using the built in test method.
Weeknotes for 2023-05-28
·317 words·2 mins
Weeknotes
personal
development
python
explorers wanted
It’s been a while since I’ve posted one of these. The last few work weeks have been so busy that by the end of the Friday work day I’ve been too tired to write a post. But I’m back home after a week overseas and it’s a long weekend, so let’s use this opportunity to catch up.
TIL - Automatically Set Your virtualenv
·321 words·2 mins
TIL
python
poetry
hatch
venv
direnv
I’m a big fan of using direnv to set project-specific env variables. And at one point I was using it to automatically activate my poetry virtualenv whenever I entered the directory per this function.
2022
Weeknotes for 2022-11-01
·231 words·2 mins
Weeknotes
python
comics
tv
dice
explorers wanted
podcast
ttrpg
I realize it’s actually Tuesday, but it’s been a while since I’ve done one of these weeknotes, so here we go!
Over the course of the last week:
Finished watching Brand New Cherry Flavor on Netflix, which was an outstanding horror miniseries.
Human Readable RSS Feeds With Pelican
·692 words·4 mins
Articles
python
rss
pelican
A few months ago, I came across this post by Simone Silvestroni explaining how they implemented a styled and human-readable RSS feed for their Jekyll-powered blog. I really liked the idea and wanted to implement it on my own site for browsers that don’t automatically offer to subscribe to a given feed.
Weeknotes for 2022-04-01
·318 words·2 mins
Weeknotes
rust
python
comics
tv
movies
This week has been both incredibly busy, but also frustrating vague on things I can share. It doesn’t help that I’ve had a cold kicking my ass for the last few days.
Weeknotes for 2022-03-25
·187 words·1 min
Weeknotes
explorers wanted
python
rust
personal
cookiecutter
This week in the world of Daniel:
Released two new versions of django-quotes. Those are focused around making the app more flexible for lots of users, and some developer help with typing annotations.
TIL - Importing annotations from future for concise Python typing
·110 words·1 min
TIL
python
Python 3.10 introduced several improvements for type hints, including a much more concise Union operator. This means that instead of using:
def square(number: Union[int, float]) -> Union[int, float]: return number ** 2 You can instead write this:
Weeknotes for 2022-03-18
·499 words·3 mins
Weeknotes
personal
python
games
tv
movies
fish
pyenv
asdf
zsh
ohmyzsh
explorers wanted
pelican
This week in the world of Daniel:
I updated my quote service project to use my reusable django-quotes app. This should make maintenance easier. Since this is a backwards-incompatible change, I also updated ewdiscordbot and ewtwitterbot to use the new API endpoints.
TIL - Running make apidocs for Read the Docs
·196 words·1 min
TIL
python
I was hacking on my quote service the other day, and notice that Read the Docs wasn’t building my module level documentation, which meant that anyone that wanted to look at said modules in more detail was getting a 404 error.
2018
Migrating a Django application from Heroku to AWS Elastic Beanstalk
·3467 words·17 mins
Articles
development
heroku
aws
elastic beanstalk
django
python
Here’s the scenario you find yourself in: you’ve built and deployed a cool little Django app, and successfully deployed it on Heroku. You’ve followed all the great advice out there and are using django-environ to help manage all the various configuration variables you have to retrieve from your Heroku dynos.
2017
Soaring with Pelican
·737 words·4 mins
Articles
personal
development
assorted geekery
meta
python
pelican
Get Pelican: it’s good! There comes a time in every young man’s life when he begins to neglect his digital lawn, and the weeds grow so thick you wouldn’t think there was any home there at all.
2013
Switching To Octopress
·1512 words·8 mins
Articles
assorted geekery
meta
ruby
octopress
django
development
python
jekyll
hyde
This site is now powered by Octopress. The tentacles compell you!
It’s tentacly delicious !
The Search> The Search # As I mentioned in my previous post, I’ve been looking to try out a new CMS for this site.
2011
Bleach: HTML Sanitization
·132 words·1 min
Articles
development
python
html
security
Bleach is a rather clever Python module for sanitizing HTML input and auto-linking URLs. It uses a whitelist for the allowed elements and attributes (thank God), and will avoid trying to “linkify” URLs that are already within an anchor element.
2010
Version 3.0
·1106 words·6 mins
Articles
announcements
django
python
development
After lots of hard work, some swearing, and lots of patience on the part of my wife, Version 3.0 of this site is now live. It’s been a long journey, but getting it done has been very satisfying.
Running Yahoo! Pipes on Google App Engine » Wordloosed
·67 words·1 min
Articles
google
pipes
python
yahoo
Greg Gaughan has put together a rather clever Python script that can take a pipe created and hosted on Yahoo! Pipes into a Python module. The resulting file allows you to run your pipe directly from your computer as opposed to relying on Yahoo!
Easier custom Model Manager Chaining
·30 words·1 min
Articles
django
orm
programming
python
Via Simon Willison:
This is a really convenient way to add custom functions to model managers in Django. Way easier than defining custom managers each time you need extra functionality.
2008
Django Rosetta
·38 words·1 min
Articles
development
django
programming
python
Via Simon Willison:
This is a real cool Django app that creates an awesome interface to help internationalize your site. Allows the adminstrator, and an optional group of designated translators to read and write your site’s gettext files.
Django Evolution
·45 words·1 min
Articles
databases
django
django evolution
programming
python
This is one of the more promising projects in progress on the Schema Migration front. Schema evolution can be a bit painful and projects like this for automatically migrating database structure based on the Python model code will be a necessity for long term projects.
Quick Post: My Pownces, Let Me Show You Them
·154 words·1 min
Articles
api
assorted geekery
development
django
pownce
programming
python
social networking
Heh, I had a little fun this afternoon writing a little Django app for my site that will regularly import my public Pownce notes and allow me to display them in the sidebar.