Skip to content

Instantly share code, notes, and snippets.

@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
@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)

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)
# 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
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
@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
@jdittrich
jdittrich / expand multiple choice to bool columns.R
Last active January 20, 2024 16:42
Data processing for surveys with multiple choice answers put in a column with seperated string-values like "R;Python;C"
# Suvery tools often put multiple choice questions’s answers as a single value with concatenated strings:
# If asking which programming languages from a list people use, tools will output "C;Python;R" if users selected these options.
# These will be put in a column representing the question’s answers. However, this format is hard to work with.
#
# The code below creates a %>%-able function "stringColToBoolMatches"
#
# parameters: df <tibble>, stringColName<character>, name of the column with the answers, separator<character> e.g. ";"
# returning: a new dataframe that keeps the original column but expands its values to boolean columns, one for each multiple choice option
#
# the columns are named after the unique answer option and can be NA (original value was NA), True (value present) or False (value not present)
-- get a collaborator ID and a document id
-- it should return nothing when the access is not allowed
-- it should return one entry when access is allowed
-- e.g.
-- get get bob and the object Kotti. Is bob allowed to see it (yes, bob is owner of the project)
-- get eve and the object kotti. Is eve allowed to see it (no, eve is neither collaborator nor ownwer)
-- SCHEMA is:
-- Documents: This is what people request. They might not have access to the document, we wanna check this. Documents belong to projects
-- Projects: Collect documents. Each project has an owner
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()