Daniel Roy Greenfeld

Daniel Roy Greenfeld

About | Articles | Open Source | Books | Tags | Search

Posts tagged with "tech" (169)

Exploring flexicache

An exploration of using flexicache for caching in Python.

Pi Day

A really quick exploration of Pi in Python plus a call to action!

Building a playing card deck

Today is Valentine's Day. That makes it the perfect day to write a blog post about showing how to not just build a deck of cards, but show off cards from the heart suite.

Fastcore L

An exploration of Fastcore's enhanced list-like structure

TIL: Using inspect and timeit together

Two libraries in Python's standard library that are useful for keeping load testing code all in one module.

TIL: yield from

A variant of the yield statement that can result in more concise code.

TIL: types.SimpleNamespace is a Bunch class

Did you know that Python's types library has a bunch class implementation? How did I not see this before?!

Using locust for load testing

Quickstart guide for doing web application load testing with the Python powered locust library.

Using Mermaid JS in Jupyter notebook

Useful for adding Mermaid charts of various types to Jupyter notebooks.

File Location Fixup

Writing a Jupyter notebook to clean up my blog's article locations

Mermaid charts!

My site now has mermaid charts! Many thanks to Imtiaz Khan!

Practical Deep Learning for Coders: Lesson 1

I'm going through the fast.ai course by Jeremy Howard. This is the course notes for lesson 1.

Practical Deep Learning for Coders: Lesson 0

I'm going through the fast.ai course by Jeremy Howard. This is the course notes for lesson 0.

Rapidly creating smoke tests for Django views

A management command for quickly generating tests based off Django's URL routing mechanism.

Keynote at PyCon Lithuania 2024

My keynote and the first return to the homeland of Lithuania in over 100 years.

TIL: Forcing pip to use virtualenv

Necessary because installing things into your base python causes false positives, true negatives, and other head bangers.

Three Years at Kraken Tech

A summary of the past year as I finish my third year working for Kraken Tech, an Octopus Energy Group subsidiary.

TIL: Autoloading on Filechange using Watchdog

Using Watchdog to monitor changes to a directory so we can alter what we serve out as HTTP.

TIL: Fixing YAML

Here's how to prettify YAML across your projects.

TIL: Capture stdout & stderr with pytest

How to capture printed text using pytest, something I wish I knew sooner.

TIL: Rich.console.status for slow processes

From the command-line a trick to inform users know the system hasn't died and they should wait until it is done.

TIL: Poetry PyPI Project URLS

Adding sidebar links to PyPI projects powered by Poetry

TIL: pytest with breakpoints

Injecting breakpoints into a failing pytest run

PyPI Project URLs Cheatsheet

The PyPI project URLs spec is defined only in code. Here's my cheatsheet explaining how to configure them. I'll update this as I learn more (suggestions welcome!). Examples in several formats.

Converting from bleach to nh3

Bleach is deprecated, here's how to come close to replicating bleach.clean() with no arguments with nh3.

AWS Requests Auth

AWS signature version 4 signing process for the python requests module.

Cookiecutter Options Pattern

A technique I've used for years yet often forget. Placing it here for easy reference.

Programming languages I've learned

Starting as an adolescent I've been learning programming languages. Here's a list of the ones I've learned.

Converting Markdown Headers to Checklist

For those times when you write out a long markdown document that you want to convert to a checklist.

Configuring Sphinx Auto-Doc with projects having Django dependencies

How to make it so projects with Django as a dependency benefit from Sphinx's auto-documentation features.

Practice Python Web Projects

Python web projects taken from my personal history to practice on to improve your skills.

Live Discussion with Sebastián Ramírez (Tiangolo)

I have a friendly live discussion with Sebastián Ramírez, creator of FastAPI, Typer, SQL Model, and more.

Pip Installing Dependencies Into Conda Envs

People think Conda is challenging to use or doesn't work with pip, when in truth it is easy and just works everywhere.

Blogger to Markdown Script

Converting hundreds of posts from blogger to markdown

Sendowl Consolidation Script

Unifying our sendowl accounts into one

More Married

In honor of Valentine's Day, this script calculates how long you've been married (or other types of relationships) in relation to how long you've known each other

Speaking at Python Web Conf

My first public conference talk in three years

Autodocumenting Makefiles

Make Your Makefiles Make Your Day!

Exploring the Bunch Class

Bunch classes are very powerful, and with great power comes great responsibility

What's the Ultimate Reason for Working at Octopus Energy?

Wherin I conclude my discussion about why I work at Octopus Energy.

What's the Best Thing about Working for Octopus Energy?

An in-depth discussion about my employment at Octopus Energy.

Recap of 2020 and Resolutions for 2021


August 2020 Courses

All the live, online, interactive courses I'm teaching in the month of August 2020.

I'm Teaching A Live Online Django Crash Course


Django Slug + ID URL Design

How to combine slugs and IDs to make a a human readable unique URL design.

Two Scoops of Django 3.x Released

The book about best practices for the Django Web Framework, Two Scoops of Django, has been revised, updated, and expanded for versions 3.0, 3.1, and 3.2.

Adding Metadata to PDFs

How to use Python to combine PDFs and then add metadata to them.

Our New Django Book Has Launched!

We wrote a beginner-friendly tutorial book for Django!

Feed Generator

Writing a Python script to generate my blog feed

Meeting Python Devs in Cancun

Python programming builds bridges across the world!

My Markdown Code Snippet Tester

Ensuring that code in my articles actually works.

Authenticating via JWT using Django, Axios, and Vue

Getting DRF, JWT, Axios, and Vue to play nice

Writing A New Blog Engine

Where I describe why and how I wrote a new blog engine

Implemementing Manual Schema with Django REST Framework

Implementing a manual schema in Django REST Framework

When to Use MongoDB with Django

Short answer is you don't use MongoDB with Django. Read on for the specifics.

Code, Code, Code

I'm often asked by new programmers how they can forge a path into using their skills professionally. Or how they can get better at writing software. In this article I share the secret master-level method to improvement.

Pretty Formatting JSON in the Django Admin


How To Create Installable, Reusable Django Packages


Titlecasing Markdown Headers with Python


Why Doesn't Python Have Switch/Case?


Markup Language Faceoff: Lists


Two Scoops of Django 1.8 is Out!


Phasing Out Django Packages APIv1 & APIv2


Python Decorator Cheatsheet

I can never remember the syntax for writing decorators. I always have to look it up. Worse, I always have to remember where to look to find references. Hence the reason for this article. I'll never lose this reference: It's on my laptop and the internet.

Building Conda Packages for Multiple Operating Systems


I did an Au Batido in 2014, now what?


setup.py tricks


Adding Django form instance attributes

Sometimes in the `clean()`, `clean_FOO` or `save()` methods of a Django form, you need to have additional form instance attributes available. A sample case for this is having `user_id` available. This is a simple example of how to do it in Class-Based Views.

Hola, Argentina!


Want to work for Eventbrite?


cached-property: Don't copy/paste code


Two Scoops of Goblins


Docstrings and Various Python Objects


Announcing Two Scoops of Django 1.6!


awesome-slugify: Human-readable URL slugs from any string (part 2)


awesome-slugify: Human-readable URL slugs from any string


Cookiecutter: Project Templates Made Easy

Cookiecutter makes creating and maintaining project templates easy and intuitive.

Made Up Statistics


Core Concepts of Django ModelForms

The concepts behind Django's model forms can be boiled down to six items.

Overloading Django Form Fields

How to overload Django form fields in an extensible way.

The Easy Form Views Pattern Controversy


Two Scoops of Django 1.5 Beta Released


Two Scoops of Django FAQ


Our Django Book Has Launched


Case Study: URL Design for petcheatsheets.com


Los Angeles Open Source Sprint on Nov 4th!


Curiosity has landed!


Attaching custom exceptions to functions and classes


Django Update View Without Slug in the URL


July 15th, 2012 LA Open Source Recap


PyCon Philippines 2012 Day 2

A wonderful end to a wonderful event.

PyCon Philippines 2012 Day 1

The first day of the first PyCon Philippines!

Announcing PyCon Philippines!


Django Class Based View: email form with CAPTCHA


Simple Django email form using CBV


May 12th, 2012 LA Open Source Recap


10 reasons to go to DjangoCon Europe


CSS Hacking to make my code samples legible


Choosing an API framework for Django


Django Requirements for a project


Los Angeles Open Source Sprint on May 12th!


Join us at DjangoCon Europe!


Choosing a new python based blog engine


Calendar About Nothing


Launching our API at PyCon 2012


The sorry state of Python OAuth providers


You should Heroku


I use this


My PyCon 2012 Schedule


django-uni-form end of life


Silicon Beach Hackercast

An attempt made long ago to create a podcast

The Story of Live-Noting


Loving the bunch class


Getting piston forms to play nicely with JSON


My little unit test trick


Leaving NASA


Pycon 2010 report II


Learn something new every year


Code I'll reuse


I don't like Integrated Development Environments


Finger method of judging graphic design


Jinja2 in zope


Looking for work?


How to globally ignore .pyc files


Useful python code for blogspot users like me


Recap of 2008


Compiling Python on Mac OS X 10.5 can be a pain


I've not quite done LAMP, or have I?


Nixed Technorati link off this blog


Funkload to be revisited!


Quick Firefox 3 review


Umlizer lives!


Must use ubigraph


How not to build a view


Inheritence is fun!


I love graphing


Feedparser does not work with Google App Engine


Sick but Ubuntu


Zed Shaw, YAML, Python Community


So what did I do on the website?


Need better charting for Python


Django at Pycon


Pycon Wrapup


Numpy Tutorial overview


2 days until Pycon and Chicago


Pycon 2008!


Work things


Funkload + Matplotlib = charts!


Funkload Charting woes


SVN Versionator is dead


More on SVN Versionator


SVN versionator!


Reason #4293 why I'm happy to be out of ColdFusion


Python is the programming language of 2007!


The hard truth about Python


Playing with Trac, SVN, Apache, and LDAP


Capturing shell output in Python


Need to get into the habit of using Python sets


What is a real language?

Thoughts back in the day when

Can I be a bit snarky here?


Supersizing YouTube


Python Tips ahoy!


Lambdas no more


TurboGears merges with Pylons


Plone Introspection


Interfaces in Zope 3 and Five


Beautiful Soup is Beautiful


The Dark Side begins its seduction...


JSON and Python


← Back home

Search