Skip to content

Instantly share code, notes, and snippets.

@jdittrich
jdittrich / miniMVC_WithTk.py
Last active September 17, 2025 08:51
an example for an MVC (where view+controller are combined) with python and tkinter. I saw approaches separating View and Controller, but they seemed leaky, too.
import tkinter as tk
from tkinter import ttk
from collections.abc import Callable
# A simple demo app.
# Press the button to update the label
class AppView():
def __init__(self, title="apptitle"):
root = tk.Tk()
@jdittrich
jdittrich / johndeweyquotes.md
Last active January 20, 2025 09:26
John Dewey Hottakes

The quest for certainty

  • “Conception and systems of conceptions, ends in view and plans, are constantly making and remaking as fast as those already in use reveal their weaknesses, defects and positive values.” The Quest for Certainty, p 133f
  • “…action is at the heart of ideas. The experimental practice of knowing, when taken to supply the pattern of philosophic doctrine of mind and its organs, eliminates the age-old separation of theory and practice.” p 134
  • “There are no sensory or perceived objects fixed in themselves. In the course of experience, as far as that is an outcome influenced by thinking, objects perceived, used and enjoyed take up into their own meaning the results of thought they become ever richer and fuller of meaning” 134
  • “Practical activity deals with individualized and unique situations which are never exactly duplicable and about which, accordingly, no complete assurance is possible” 6
  • “Perfect certainty is what man wants. It cannot be found by practical doing or making; thes

How To run jhotdraw 5

This is a piece of OOP history. HotDraw is a small diagramming/drawing tool, originally developed 1987 in Smalltalk by Ward Cunningham and Kent Beck. It would be even better to run the original hotdraw in Smalltalk, but I was not successful so far, so here is the Java port, 13 years older than the original, but the oldest version I could find.

  • Download hotdraw 5.2 (I could not get 5.4 to run) from https://sourceforge.net/projects/jhotdraw/files/JHotDraw/5.2/
  • There are some variables called enum but that is now a reserved name so, search the project for the string enum and replace these with myEnum or something like that.
  • There is one ambiguous import in StandardDrawingView.java. Resolve that by appending to StandardDrawingView.java’s list of imports this: import CH.ifa.draw.framework.Painter;
  • Now run CH.ifa.draw.samples.nothing.NothingApp (Less features, single doc)
@jdittrich
jdittrich / writinghelp.md
Last active December 29, 2024 14:18
helpful writing ideas

Writing helps:

They say, I say:

Source: Graff, G., Birkenstein, C., 2021. “They say / I say”: the moves that matter in academic writing, Fifth edition. ed. W.W. Norton & Company, New York London.

Write as a response to things that others say or might say. This helps to show that your writing is relevant to the field and readers see that your addition to the field is needed. What "they say" can be citations but also common or plausible beliefs. You do not need to just disagree, you can also agree with "them". In the end, it will be both: Building upon some things while rejecting others.

The book (see source) has specific chapters for different academic fields.

@jdittrich
jdittrich / PracticesDeCerteau.md
Last active October 8, 2024 09:46
Notes on "Practices of Everyday Life", de Certeau

Notes

General notes: Argues for seeing media (in a broad sense e.g. proverbs) more like tools, more around the actions that people do with them.


  • Xii: consumption might be seen as passive but often means creative adaptopn
  • XIII: what is the representation for its users? (and not the official version that circulates)
  • XIII “Process of Utilization”
  • XIIff frames of dominance of media makers (XVI, XVII)
# KUNST ALS ERFAHRUNG, JOHN DEWEY
Suhrkamp Taschenbuch Wissenschaft, 10 Auflage, 2021
## 1: DAS LEBENDIGE GESCHÖPF
9 Reales Kunstwerk ≙ Erfahrung
9 Kontinuität von Kunst u. Erfahrung herstellen, statt einen Sonderbereich für Kunst
@jdittrich
jdittrich / Researching User Researchers.md
Last active July 11, 2024 12:30
Publications analyzing user research in HCI and UX
  • Agre, Philip E. „Conceptions of the user in computer systems design“. In CAMBRIDGE SERIES ON HUMAN COMPUTER INTERACTION, 67–106. CAMBRIDGE SERIES ON HUMAN COMPUTER INTERACTION, 1995.
    • Similar to Woolgar’s studies on the topic
  • Agre, Philip E “Surveillance and capture: Two models of privacy”, The information society, 1994, 101-127.
    • More interesting from a theoretical aspect, as Agre traces how studies of work and the subsequent implementation of these workflows in products is not a neutral act but changes the very work it analyzed. 
  • Anderson, R. J. „Representations and Requirements: The Value of Ethnography in System Design“. Human-computer Interaction 9, Nr. 2 (1994): 151–182. https://doi.org/10.1207/s15327051hci0902_1.
    • What do Designers mean when they say ‘Ethnography’: “Instead of fixing upon [Ethnographies] analytic aspects, designers have defined it as a form of data collection.”
  • Akrich, Madeleine. „The De-scription of Technic
from sqlalchemy import create_engine, Column, Table, ForeignKey, Integer, String
from sqlalchemy.orm import relationship, sessionmaker
from sqlalchemy.ext.associationproxy import association_proxy
from sqlalchemy.orm import declarative_base
from sqlalchemy.orm import mapped_column
from sqlalchemy.orm import Mapped
engine = create_engine('sqlite:///:memory:')
Session = sessionmaker(bind=engine)
session = Session()
List of easy to read texts that cover Media Studies topics and are potentially good examples for students:
* Freud: Notiz über den „Wunderblock” (im Kursbuch Medienkultur und https://archive.org/details/InternationaleZeitschriftFuumlrPsychoanalyseXi.band1925Heft1/page/n9/mode/2up)
* LeGuin: Carrier Bag Theory of Fiction/Tragetaschentheorie des Erzählens
* Marx: Maschinerie und große Industrie
* Mauss: Körpertechniken