Category Archives: projects

Network IP connections

One of my colleagues at the Center for Research Computing wanted to find a way to visualize the connections made to a few of our IP’s, down to the port level. Here’s my first crack at it, using data from yesterday. Ports are in Grey, clustered around their IP addresses; IP’s are in red. This only shows the connection during the minute it was opened. We’re thinking this might be useful to give non-technical users a sense of how our network is used.

Digital Frontiers 2016, Electronic Vesalius Update

Updated, Oct. 29: Our talk (and all the talks from DF16) are up on YouTube. Someone even went to the trouble of editing between the different cameras!


After 7 months of intense intellectual laboring, we presented the results of our first, test phase for the Electronic Vesalius project at the lovely Digital Frontiers conference. Frankly, our team is ecstatic:

Our model is currently getting some finishing touches in my office, but he will soon be installed in a fairly prominent venue in Houston, for those of you interested in the intersections between art history, book history, and the history of medicine!

In the meantime, because our talk wasn’t recorded, we’re going to share some of our media and ideas on the project here. Our project team: Ying Jin, from Fondren Library, was the programmer; Matthew Wettergreen, from the Oshman Engineering Design Kitchen, was the engineering instructor; Benjamin Rasich was the engineer/designer (he built the “nervous system”); Isaac Philips worked with Ben in the early stages as we designed the rough outlines of the physical object; and John Mulligan was the humanist and project lead.

Project Goal

Our goal was to “reanimate” the Texas Medical Center Library‘s collection of rare anatomy texts, by turning a life-sized replica of a Vesalian “muscle man” into a touch-sensitive, high-fidelity (static) image (thanks to Que Imaging for their scanning, printing, and plexiglass cutting services). When people press on the model’s labeled parts, an accompanying touchscreen brings up several layers of relevant information on the visual history of that body part. Users can read what is displayed, or page through to deeper item information on the digital touchscreen. (See our March blog post to see how the project has evolved and for more background.)

Bringing old books to life: A touch sensitive life-sized representation of Vesalius’ anatomical drawing from 1543.

A video posted by Matthew Wettergreen (@organprinter) on

August 5: Vesalius dual-interface test from John Mulligan on Vimeo.

Remediated Histories of the Book, Medicine, and Aesthetics

Studying the history of atlases as media objects, and the uses and interpretations of anatomy atlases (a largely modern invention) in particular, enabled the team to iteratively imagine how we could most fully realize the potential value of the library’s anatomy collection, within the time and funding constraints of the faculty research grant awarded by the Rice HRC for this project and the constraints of our own skill sets (though all of us learned some new skills in the process!).

Part of this involved realizing not only how much our “new media” borrow from “old media” like atlases, but also how much the process of remediation can transform an object. In the process of coding wiring the sensitive body zones, for instance, we realized that we had re-organized Vesalius’ body into something different; and so we transformed our wiring diagram into a map of this electronic body. (Click through to try the wiring diagram.)


The more informative and recognizably anatomical test site (though it’s fragile, running on free heroku servers, and is incomplete and out of date) is available here:


Anatomy atlases in general, and Vesalius’s in particular, has a long history of what digital humanists call “remediation,” and so we were entering into and negotiating with a rich media tradition. A sketch of this tradition:

  • Vesalius’ own Epitome, an abridged version of his Fabrica, which was designed to be cut up into a paper doll, or manikin, that could allow students a virtual dissection tool. Cambridge has a copy of the Epitome‘s manikin pages with gorgeous high-resolution photos.
  • The eighteenth-century print remediations/updates of Vesalian style. Barbara Maria Stafford on this: “This occurred, first, with Gerard de Lairesse for Govert Bidloo. Second, William Cowper (1660-1709) ‘borrowed’ the originals, as did Jean Wandelaer for Bernard Albinus’s (1697-1770) Leiden edition of the De Humani Corporis Fabrica (1725). Together, these volumes constituted the most beautiful anatomical atlases of the eighteenth century” (Body Criticism, 58-59).
  • The 1936 Brussels print run made with the 16th-century original wood blocks. We used the TMC’s 1936 copy for our life-sized image, both because the image was crisper, and because it called to mind our own work as a facsimile reproduction team.
  • Daniel Garrison and Malcolm Hast’s absolutely indispensable print edition New Fabrica (2014), and their online precursor edition (2003), which both reinterpret the book as a hypertext. They organize their information according to a negotiation between Vesalian and present-day taxonomies, and then create a rich internal linking structure between parts in order to help their readers see the book much as a renaissance-era expert reader might have.
  • Our physical-digital installation rethinks Vesalius’ Fabrica as an atlas-of-atlases. It does the work of an atlas in coordinating readers’ ways of seeing and knowing, but it tests the limits of the atlas form by covering multiple atlases and centuries’ worth of secondary criticism. The Vesalian body for us opens onto the history of anatomy, and our remediation attempts to help a wide readership interface with that history.

In my engagement with this tradition, I teased out four distinct interpretive frameworks by which people have understood the anatomized human body. If the Vesalian body opens up a history to us, it is a history that readers/users can easily approach in at least the following ways: 1) Anatomy as a unity of structure and function, 2) Changing standards of truth and beauty, 3) Anatomy as a subtractive vs. compositional process, and 4) Affect and embodiment. We are working towards a couple publications on this project, so you will hopefully see a full account of this interpretive design strategy in print, soon.

In the meantime, we hope these photos from the Digital Frontiers conference give a sense of how the physical-digital interface brings the history of anatomy and its interpretive possibilities to life for users:

Project Next Steps:

A. We have applied for funding to expand this installation to cover all 16 of Vesalius’ models, in order to create a more comprehensive lookup of the visual history of the human body; I have also applied for funding to do further research in this area, and to expand our available collection of images and criticism. Fingers crossed!

B. We are still filling in content here and there. One of my practica students is currently translating latin passages accompanying certain anatomical diagrams, for progressive inclusion in the exhibit.

C. We currently have a test site running, but it has very low bandwidth and we haven’t been able to update the platform or content for a while, for fear of breaking it! We are searching for better hosting options.

D. Using our super-high-resolution scans and Adobe Illustrator, we are going to transform these monochromatic woodcut images into vector files, and use those to reproduce the original woodcuts with a CNC router or laser cutter.

E. The theoretical paper I’m currently writing up on our findings from this project uses Siegfried Zielinski and Yuk Hui to argue that anatomy atlases generally, and ours in particular, are not media objects. First, there’s an uncanny valley problem: the closer we get to an accurate, anatomical representation of the body, the harder it is to maintain any distance between us and the material conditions of the object’s productions. William Hogarth’s analysis on the beauty of the accurately-depicted human form is helpful here:

[A]s the skin is taken off the parts are too distinctly traced by the eye, for that intricate delicacy which is necessary to the utmost beauty; yet the winding figures of the muscles, with the variety of their situations, must always be allowed elegant forms: however, they lose in the imagination some of the beauty, which they really have, by the idea of their being flayed…. (56-7)

But second, to come at it from the other direction, the dissected bodies of anatomy manuals don’t really mediate an experience of the human body; these atlases give us assemblages of body parts that, the longer one spends with them, the harder it is to imagine them ever fitting back together as a complete organism.

That paper, along with a couple arguments about the critical reception of Vesalius in particular, is in the works! In the meantime, we’re putting together a more process-oriented paper that will outline how we constructed our model and some of our topline findings in terms of interdisciplinary research and design.

Please do feel free to contact me with any questions, and to explore our code if you’d like!

Copyright John Mulligan 2016

Double Vision & Newton’s Dreams

Or, as I would have very much preferred to title it, Blake after Newton after BlakeA short note that’s taken me 18 months to get to print is now available at Oxford University Press; but it’s behind a subscription wall because my research budget couldn’t take the open-access fee. I believe this article is important for the general public perception of William Blake, so I am going to lay out the basic argument in a digestible format here; people can email me for the pdf if they want to read further.

Romanticism and Newtonianism:

When people use the word “romantic” to mean things like “irrational,” “emotional,” “excitable,” and “nostalgic,” they aren’t always thinking of the literary movement called Romanticism; but when they are, they are thinking of a clutch of poets’ failed rebellion against the unrelenting rationalism of modernity. They are thinking of John Keats tipsily toasting “Newton’s health and confusion to mathematics,” or William Blake praying to ward off a scientific flattening of his experiential world:

Now I a fourfold vision see
And a fourfold vision is given to me
Tis fourfold in my supreme delight
And three fold in soft Beulahs night
And twofold Always. May God us keep
From Single vision & Newtons sleep

Now, this anti-science sentiment is not current with Romantic scholarship. First, period scholars have labored for decades to uncover the social and philosophical ties between poets and scientists — a very accessible starting point is Richard Holmes’s bestselling, recent-ish Age of Wonder. Second, critically-minded historians of science have redefined what “science” was in the Romantic era, to show that it was very much a part of its time: politically radical, proto-industrial, and very social (these are rather academic but I can’t recommend them highly enough: Jan Golinski’s …Chemistry and Enlightenment and Robert Mitchell’s Experimental Life!). And then there’s a third group that I like to think of myself as a member of: people who professionally study and experiment with beauty and meaning. For us, this arts/sciences distinction has always seemed clumsy, and useful only to agents of dullness. For this third group, a thing can be (and most should be) studied in a thousand different ways. It’s our job to make things more meaningful, and to do that we oftentimes insist on the specificity of things to make them come alive in unexpected ways. No later than 1805, William Blake produced a sort of mythical portrait of Isaac Newton. This painting has achieved iconic status in the popular understanding of Romanticism as an artistic rebellion against “science” and Enlightenment rationalism:

The story goes like this: Newton is in a sort of dream space (undersea?); He is sitting on a wildly-colored, complex coral reef; but he doesn’t notice all this wild beauty, because he’s myopically focused on the simple geometrical exercise he’s performing. Newton is basically worshiping his own mental operations, which blinds him to the beautiful complexity of the world. As a result, he becomes almost physically deformed: he is hunched almost in half, and his muscles have an unsettling crispness to them, as though he is becoming a geometric diagram of some sort. In other words, people tend to understand this painting as a deeply satirical portrait of an absentminded mathematician, who loses the world around him in favor of an incredibly reductive model. But the artists and art historians and literary theorists who have studied this painting have been telling much more interesting stories about it for a long time:

Backstory on Blake’s Newton:

1) Donald Ault: A Convincing Illusion

Donald Ault was one of the first people to take seriously Blake’s obsession with Newton. In his classic book, he argued that Newton’s mathematics bothered Blake not because they were simple, but because they were so seductively complex. After all, Newton’s calculus had elevated geometry to the point where it could give very convincing accounts of some very complex physical phenomena. And so Blake’s fight with Newton was, more or less, to remind us that we’re looking at a model, and that there are alternative models.

An extension of this argument comes out of the 1970’s and 1980’s reevaluation of who Isaac Newton was. Newton wasn’t a mad mathematician who worshiped geometry; his unpublished works showed him instead to be an alchemist and spiritualist. This discoverer of gravity, for instance, believed that the planets moved because angels, singing to them, made them desire one another. In this telling, it is the generations separating Newton (died in 1726) and Blake (born in 1757) who turned him into a robotic math nerd by obsessing over his calculus. So, the argument goes, because Blake couldn’t have known about this unpublished, mystical Isaac Newton, he was actually in agreement with the real Newton that everyone had forgotten about!

2) W. J. T. Mitchell: Beauty and … Entropy

W. J. T. Mitchell, who has written some of the most enduringly thought-provoking and strange things about Blake, took some cues from Robert Essick on the history of coral and Blake’s lesser-known works. Scientists had just realized that coral was an animal, and that a reef was made of thousands of years of the animals’ excretions. Blake, doing hack-work, had illustrated a book on kidney stone operations, and those stones look a lot like his coral. In fact, Blake’s coral was printed in a semi-random, unorthodox way, by painting wood and slamming it on the canvas, before carving out shapes with ink later on.

And so Mitchell’s story is essentially that Newton is sitting on the toilet, doing a crossword puzzle. On the one hand, that makes Newton much sillier, but on the other, it brings him down to earth. Instead of a mythical battle between nature and abstraction, we have the basic human activity of negotiating between order and disorder. In other words, this is a painting about disentropy. And when we are very lucky, our mental operations are fun puzzles, and the byproducts of our human activities are colorful.

Blake’s Puzzle

My contribution to this long scholarly discussion about Blake’s Newton is to help show just how deep Blake’s technical knowledge of Newton’s system went. This will keep us from turning him into an anti-science, wild-eyed artist, and to better appreciate his experiments with abstraction. Led on by Ault, Mitchell, Essick, and others, I dug into the eighteenth-century history of Newton’s reception. In other words, if Blake was reading about Newton, who was he reading?

 I. Bernard Cohen and Anne Whitman’s translation of Newton was an authoritative (a 370-page introduction!) introduction, and in this book, they left us this little gem. Newton sometimes left out the basic steps that went into his formulas, and in the case of his famous proof on gravity, he had assumed that his reader knew a whole section of geometry called “conics,” and so left the whole proof out. As a result, a cottage industry cropped up, of mathematicians showing this proof step-by-step. Sure enough, there are many, many treatises from the 1700’s on conic sections, or “conics.” The idea is that by taking a cone, and slicing it with a plane, you can generate any second-order curve. Images from Wikipedia. 

And so when Newton proved that gravity obeyed a second-order law, he proved that the geometrical branch of conics could be used to generate any path in a two-body system. There are different ways of performing this proof. What I found was that some of these ways, in 18th-century geometrical manuals, involve steps whose diagrams look very similar to Blake’s. Here is James Milnes’ 1702 proof, alongside the hands of Blake’s Newton. (The link here goes to a 1723 edition).

 What Milnes does here is shows us how to get planes tangent to the cone (ADE), in preparation for actually cutting the cone into curves. This technique is useful, he says, for finding the limits of curves. Almost concurrently with Blake’s 1805 painting, we see a similar construction appear in the 1807 illustrations for conics in Abraham Rees’ Cyclopaedia:

What is exciting about Rees’s construction is that it is built to give readers an intuitive way for taking the sections of a cone. Look at Figure 20, below. The long axis PQ on the ellipse runs parallel to the line VD. If we make AD shorter, by sliding D inwards, VD becomes steeper and steeper — if we keep PQ parallel with this line, we will eventually have not an ellipse, but a parabola, then a hyperbola. This technique, in other words, creates a sort of control to easily produce varying, complex curves.

This is a pretty obscure joke that Blake is making, but it allows us to rethink the painting in some important ways.

  1. Blake would have gone much deeper into Newtonian mathematics than previously thought, in order to make this reference.
  2. Newton’s geometrical exercise is not a simple triangle, anymore, and it’s not obviously less complex than the coral.
  3. We are being asked to participate with Newton in the production of complexity, rather than standing back ironically and laughing at him. It takes work to get in on the joke: the viewer/user must actually do the work of visually imagining these shapes!
  4. Fortunately, Blake’s/Milnes’/Rees’s construction makes it easy to imagine these curves. This is an act of assisted visual imagining.

Blake’s painting is invoked almost monthly as shorthand for an artistic, irrational rebellion against science, and it’s important to remember just how technically competent and incisive this rebellion could be. I hope this makes the contours of an involved literary debate more accessible to people — at least now it’s not behind a paywall! Feel free to email me with comments, questions, suggestions, or requests for the original pdf 🙂

The Electronic Vesalius

Update (9/28/16): We presented this project at Digital Frontiers 2016, and have an updated post here. (This one is still useful, though!)

So I’ve been posting some snippets of flayed bodies on my twitter account for a while, and it’s time I explained myself. I’m working with some Rice and Texas Medical Center Library colleagues on a project to reanimate *wink* an old book, Andreas Vesalius’ Fabrica, which is generally regarded as a cornerstone of what we call modern Western medicine.

We are using photographs of an original housed at the McGovern historical center. Actually, it’s much more interesting than that: I understand this copy to be a 1930’s German “facsimile” printed using the original 16c woodblocks (*what*). The archive in fact has a 1543 copy, but the Brussels copy looks better and is easier to use.


What we’re building is a life-sized, acrylic model that will display the visual-textual history of “organs” after the Fabrica, when users touch the image of the flayed body on Vesalius’ different labeled points. Much of this is inspired by the recent, monumental translation by Daniel Garrison and Michael Hast for Karger. As the authors cannily observe, his anatomical atlas organizes information hypertextually, encouraging readers to build a picture of an interconnected but articulated body. Another source of inspiration was the five-foot-five foamcore cutout of the above Vesalius diagram of a flayed body, that stared at me from a corner of my office for the first two months of my job at the HRC, last September-October. He spoke to me, and now he’ll speak to you 🙂

My excuse for finally writing this post is that two engineering students, working in Rice’s ODEK under Matt Wettergreen, have built the touchless buttons that we’ll be using to pull up the relevant anatomical data on the accompanying display screen. Also, Ying Jin, a programmer at Rice’s Fondren Library, has already got up and running a functional test environment, and is simulating button presses pulling data from a virtual server. I’ve been combing through centuries of anatomical manuals, researching what I’m finding, and designing a layout to display the information in a useful way.

There’s going to be a lot of negotiation between the different parties here, to make sure the final model does the most that it can. But in the meantime, I leave you with the work of two Rice engineering students (Ben Rasich and Isaac Phillips), triggering an interface of electric fields they’ve designed, that not coincidentally looks like a square chunk of skinned human body.

And here is a button test from a week later, after they managed to tighten the fields around the buttons:

The above probably needs some supplementary explanation, so I’m including below the text to the proposal for the small faculty fellowship that is allowing me to build this!


Proposal excerpts

The Electronic Vesalius project brings the work of Paduan Renaissance anatomist, Andreas Vesalius (1514-64), to life for college-level medical humanities and high-school students today. Vesalius’ De humani corporis fabrica, published in 1543 and illustrated with meticulous woodcuts produced in the studio of Titian, has recently enjoyed a revival, centering on Vesalius’ 500th birthday and Karger Publishing’s authoritative edition edited by the Northwestern University professors Daniel Garrison (anatomy) and Michael Hast (classics).


This project marries archival research with the latest digital humanist “maker” technologies by transforming Vesalius’ diagrams into touch-sensitive, museum-quality, durable, life-sized interfaces. These physical models, printed in high resolution on acrylic, allow users to query Vesalius’ flayed models by physically touching the exposed organs, and for these organs to “respond” in picture and sound, by presenting an overview of their respective histories on a neighboring display. By re-animating Vesalius’ anatomical diagrams, this project will 1) educate students in archival research and the history of medicine, 2) contribute to the critical health humanities’ interventions in medical histories, and 3) contribute to the digital humanities’ recent materialist turn towards design as a vehicle of critique.

1. Introduction

            Vesalius’ Fabrica occupies a privileged position in histories of internal medicine. Roy Porter, in his magisterial 1997 “medical history of humanity,” identifies its publication as the origin of modern medicine: “Medicine would thenceforth be about looking inside bodies for the truth of disease. The violation of the body would be the revelation of its truth.”[2] This gestures towards a central tension in the medical humanities, namely how to balance medicine’s drive for knowledge with the humanities’ critique of its costs. But as Bruno Latour has forcefully argued, the modern myth (in which Porter participates) of an original scientific break with nature and the past is a significant contributor to this drive.

The Electronic Vesalius project subtly intervenes in the recent, medical-historical re-canonization of the Fabrica, by presenting his dissected bodies as ersatz, informational life-forms. Medical history is re-animated for the user, but with the technologies that produce this effect made clearly visible. Transparent but durable materials make visible the mediation of wires, buttons, and LED’s between the masterful Renaissance illustration of a life-sized flayed body, and centuries of digitally-rendered scholarly commentary. Like Luigi Galvani’s eighteenth-century experiments with electric impulses on dissected animal tissue, users re-animate Vesalius’ illustrations in complex but explicitly mechanical ways.


            By subtly intervening in medical history with a physical, digital artifact that is responsive to users’ touch, the project contributes to the growing body of work on “remediation” and materiality in the digital humanities. Such work seeks to counter the digital humanities’ tendencies towards ahistoricism and purely computational methods. “Remediation” is a ultimately matter of design, in which intervention takes place on the level of utility, changing what a thing is for; this project changes Vesalius’ dissected models by showing how he made his isolated organs speak, and how medicine continues to do so today.


2. Collaborative Design

In the Summer break of 2016, one undergraduate student will work with John Mulligan (Rice Humanities Research Center), Ying Jin (Rice Fondren Library), Matthew Wettergreen (Rice Oshman Engineering Design Kitchen), and Philip Montgomery (Texas Medical Center Library and Archives) to build a museum-quality installation. This installation will be a five-foot, upright, high-resolution printout, on acrylic, of a Vesalius model. Visible through the acrylic from the back, a network of buttons and backlighting LED’s lined up with his notations on the diagram will lead to an arduino and a Raspberri Pi processor, which will process the inputs.

Vesalius Mulligan Diagram

When a user presses on a body part, the Pi’s software will determine which part of the body has been selected, retrieve tailor-made informational layouts about that body part, and present it on a display next to the body. Users will therefore be able to consider the detailed artwork up close, and to step back and read a detailed history of that artwork in a way unavailable in a static text.

[1] Photo courtesy of the TMC Library’s Rare Books Room.

[2] Roy Porter, The Greatest Benefit to Mankind: A Medical History of Humanity (New York: Norton, 1997) 181.

[3] In Noel Jackson, Science and Sensation in Romantic Poetry (New York: Cambridge University Press, 2008) 57.

Why we do stuff

This blog has become a home to digital projects of various sorts, as my interest has grown in the productively critical potential of the digital humanities. One of the ways that I think about the importance of that quasi-field is as a tool for strategic cultural participation.[1]

I think we happen to have  better ideas, and access to cooler and more sharply critical stuff than what the culture industry is willing to pay for; and as long as we have some healthy mix of open-source and freemium proprietary platforms and we’re willing to work more or less for free, there’s no reason academia can’t help redefine what culture is and what it’s for.

Deak Nabers gave a characteristically contrarian talk a few years back at Brown, about how it’s not such a bad thing when administrators talk about the corporate university, and students as consumers — if we turn to our advantage the fact that they don’t really grasp the full history and political potential of those terms. (YouTube of the talk.) The short version of his talk is that corporations are mission-driven social entities that seek the cultural reproduction of that mission; and that they go about doing this not by making what people want, so much as trying to get people to want what they make. I find that liberatory consumerist perspective (which I believe Frances Ferguson’s work on utilitarianism also gestures towards) compelling. I want students who leave my Romanticism classes to read more of the Shelleys, more of the Wordsworths, and to get lost in the Blake Archive when they’re bored.

But I also think it’s important to leave students feeling empowered to participate critically in the cultural sphere, even if the upshot is just that they live-tweet a film or a book they’re reading. In other words, I agree with Michael Bérubé’s diagnosis of our present fears of cultural irrelevance, but his prescription that we become “curators” is clearly inadequate to the problems he’s identified.

That, then, is why I find meaning in the odd mini-toys that I’ve built and shared on this site. They’ve only really been precision kaleidoscopes up until this point, which is to say, my own way of trying to prove to myself that recondite scholarly sources can be made aesthetically compelling — for instance, getting a slice of the congressional record to argue with you in real time, or allowing one to spatially navigate George Biddell Airy’s double-decker summary of procedures for the 1874 Transit of Venus.

There will be more of this sort of work coming in the future, and I expect it will be weightier. I also think undergraduate students are perfectly capable of the same sort of participation. I will therefore continue to share project work by my students, when they want me to. This post in fact started as a short introduction to a project by a student from my Romanticism course at Rice last semester, but it ballooned into this here exposition on my thoughts at the beginning of what I think is going to be a productive year in terms of cultural participation.

If you read this far, please do check out (listen to!) Molly’s objectively more interesting project, in which she arranges and performs old song versions of two Percy Shelley’s poems, and talks about how this process affects her readings of them.


[1] I should note some great recent critiques, or institutional contextualizations, of public intellectualism, which I think is what I’m talking about here.
A) Tressie McMillan Cottom, discussing that work’s necessarily controversial nature and the need for institutions to support people who engage in it, lays out pretty starkly the terms by which public intellectualism is incentivized:

The point is, institutions have been calling for public scholarship for the obvious reasons. Attention can be equated with a type of prestige. And prestige is a way to shore up institutions when political and cultural attitudes are attacking colleges and universities at every turn. And, faculty are vulnerable to calls for them to engage. We’re all sensitive to claims that we’re out of touch and behind on neoliberal careerism.

B) Let’s not forget Adeline Koh’s recent cold-water dousing of the field’s oftentimes feverish, self-congratulatory futurism, “A Letter to the Humanities: DH Will Not Save You.

A Public Discourse Bot Should Be Mistaken for the Real Thing

1. Afterwards, there was still the command line

This past month, having just defended my dissertation, I found myself similarly needing to do some work, but not up to the challenge of literature. In one of my favorite passages from De Quincey’s Confessions, he claims that in the depths of his addiction, his thinking clouded by pain and intoxication, political economy helped him to convalesce:

In this state of imbecility I had, for amusement, turned my attention to political economy; my understanding, which formerly had been as active and restless as a hyæna, could not, I suppose (so long as I lived at all) sink into utter lethargy; and political economy offers this advantage to a person in my state, that though it is eminently an organic science (no part, that is to say, but what acts on the whole as the whole again reacts on each part), yet the several parts may be detached and contemplated singly.

In a similar situation, I decided to code something. Coding projects in my experience have a similar cognitive reward structure to what De Quincey describes of reading economics. Because computers do exactly what you tell them to, it’s hard, unless you’re working in a complex design environment, to go too far afield of your intentions. Contrary to the questions-based approach of traditional humanistic inquiry, I’ve found that programming, at my level of sophistication, either results in something that works, or doesn’t. Every once in a while, an error will be genuinely interesting, but that’s the rare exception. And so the modular thinking facilitated by programming allows me to test and re-test pieces and wholes in ways that keep me productively balanced in that flow state between feeling successful and feeling frustrated. In short, I find the work of coding to be qualitatively different than that of critical thinking. But that’s a far thing from saying that the end result of such work necessarily lacks a critical edge.

2. Critical bots

I’ve wanted to build a Twitter bot for a while, both because the Twitter API is where I first cut my teeth on processing large data sets, and because some of the work in this area I’ve found intellectually stimulating and politically inspiring. Mark Sample has a list of “protest bots,” which, in a post that inspired my title here, he defines as “topical, cumulative, data-based, and oppositional,” and, more importantly, “can’t be mistaken for bullshit.” In my opinion, the most medium-transforming protest bot is @every3minutes by the historian Caleb McDaniel at Rice. Caleb famously built a bot that tweets a variation of “A slave was just sold” every three minutes, which was the average time between such sales between 1820-1860.

This bot changes the entire Twitter experience: scrolling through status updates stops being a thoughtless passtime when, every few flicks of the thumb, you’re suddenly socked in the gut by a historical reality made immediate.

3. A political discourse bot

I attempted to build something slightly different — a public discourse bot, we might call it. It’s May 2015, and the 2016 presidential campaign is well underway. On the one hand, this is depressing because blah blah permanent campaign blah blah. On the other hand, it’s exciting because it is one of the few domains in which most (not all) Americans still have some say over policy: voting districts have been gerrymandered–and then some–out of existence, and the Supreme Court is openly flirting with disregarding the clear intent of what little the congress has passed. In other words, I think Presidential campaigns are a great opportunity for public discourse.

What I built, then, was an interactive Twitter bot based on a rudimentary keyword search engine. I scraped the congressional record for all of Bernie Sanders’ statements, and used NLTK to build a database of his keywords and phrases.[1] I removed some of the passages that would be confusing when taken out of context (points of order, some letters read into the record, the details of some amendments, etc.), and after messing around for a while with the basic search algorithm and the output formatting, the senator’s congressional record had essentially been made interactive.

4. The Specifics

@SandersBot has two functions built in:

  1. If someone mentions him, he makes a weighted random guess as to which document in his corpus is the best fit, and, then the best passage in that document.
  2. If nobody talks to him for an hour, he reads what his friends are tweeting about, and tries to respond with the two sentences he thinks are most relevant to those topics.

And, because he was written for an academic, he always includes a link to the source material in the congressional record.

I’ve been surprised at how well he deals with basic policy questions:

bernie_jesse And this past weekend, on Memorial Day, he really seemed to pick up on the day’s theme in his timeline:

bernie vets copy

Sometimes, of course, he misses his mark. But the other day, the bot did alright on Twitter’s version of the Turing test, when a couple users didn’t realize it was a bot account, and engaged it in an extended discussion. The bot responds to almost any mention, so replies to him can quickly prompt runaway threads.  One person was a bit frustrated at how quickly the bot posted long, sometimes off-topic replies in her timeline; after I told her the replies weren’t coming from a human, she was very kind but said she wouldn’t use it again. Another person who engaged it at length didn’t seem to mind when I told him it was a bot, and came back to ask it a few more questions the next day.

5. Conclusion

I don’t know if this would work with every congressperson (though I did post an early version of the project’s code to github). What’s ironic about my choice of Bernie Sanders is that his vocal stance on specific issues is both what makes this bot functional and in many ways superfluous. Functional because his specific and expressive stances on policy questions makes the corpus so searchable and quote-worthy; superfluous because his clear stances on most issues makes them easy to find in any news search engine.[2]

But at the same time, his regular tweeting schedule and always-on availability for questions stage less of an intervention than a contribution to political discourse. At the end of the day, the bot is supposed to be like C-SPAN having a dream about social media: it tries to blend the dusty text of the congressional record, and the day-and-night pulse of Twitter. This bot tries to make the politics of congress accessible to one of the most politically rich communications platforms we have today.



[1] I was inspired here by one of my students, who this semester submitted a truly compelling final project that took William Wordsworth’s poetic corpus, and scrambled the lines into believable simulacra using Markov chains and Natural Language Processing.

[2] If anybody is interested, I started processing Hillary Clinton’s congressional corpus but decided I’d given enough time to the project as a whole. I would be happy to send you the files.

#ACLA2014 tweets (Now with #ACLA14) through Saturday, March 22, 10:00pm

The graph has been updated to include all tweets before 10:00pm (ish) on Saturday, March 22. It includes Friday’s tweets as well.

In addition, it now includes #ACLA14, since there has been some 

I’m sharing what I think is a useful tool for navigating the Twitter activity on #ACLA2014 (&#ACLA14) (though this is more of a potential utility, as there’s not yet enough activity to require this kind of map). There is now enough activity (734 tweets by 225 users, and 196 connections),  to produce a navigable map.

The nodes in this graph are people tweeting on #ACLA2014 & #ACLA14, or mentioned by people using that hashtag. If you click on them, you’ll see a user icon, a list of their tweets with links to that content, and below this a list of their connections to other people. Connections represented here: retweets, replies, and in-line mentions (“Loved the panel with @SoAndSo”).

View the network graph here.


I will update it over the course of the day, and make another for Saturday’s activity (unless people would prefer a multi-day map). I welcome feedback!

My own panel can be found on pages 274-5 of your program. It’s Friday & Saturday, 4:40-6:30, at 25 West 4th C-16. I present on Saturday, and will be talking about Thomas De Quincey and the Netflix & Amazon recommendation algorithms.

Studies in Romanticism Dynamic, Co-Citational Network Graph (Video)

Last week, because of a tweet by Alan Liu, I found Scott Weingart’s wonderful digital humanities blog. As it turns out, it looks like he had already gone through some of the same work processes last year, that I codified last month by adding a .gexf export function to Neal Caren’s refcliq.

One of the things I learned from scott’s post was that I had been drawing co-citational, rather than citational, graphs. Which made a lot of sense of the structures I’d been seeing. Basically, a line on the graph btw A and B doesn’t represent work A citing work B, but instead that A and B are both cited by some third work, not necessarily represented on the graph. All the nodes you have seen in the graphs I have posted are works that have been cited two or more times, and the edges are all representations that those two works have been cited together by two or more separate articles.

What was missing from these exports was the temporal dimension: co-citational network graphs allows us to think visually about how fields organize knowledge, and their own production of it. However, the interactive graphs I published before were static, and so did not allow us to think about how these internal structures developed over time.

I therefore reworked the code to export dynamic graphs (.gexf format only). These graphs register changes in influence and connectedness, over time, of the works cited by a journal.

I believe I wrote this code properly, but it is producing small variances in graph sizes compared to Caren’s original, so if anyone is interested in helping to unpack that, definitely email me. I also considered the usefulness of making modularity classes dynamic,

Back to the graph. My test case is again Studies in Romanticism. Over time, you will see individual nodes and edges changing size based on (respectively) the number of times a given work has been cited, and the number of times two works have been cited together. You will also see clusters develop, and separate from one another. I have not added any decay function, so once works are linked, or once a work has a specific node size, it either keeps that size or grows; no works or links diminish in absolute terms simply because they haven’t been cited in a while.

In relative terms, however, they may fail to keep up with the growing influence of Wordsworth’s Prelude, Coleridge’s Biographia Literaria, or even Milton’s Paradise Lost. I have identified clusters around the big six poets, plus three around Mary Shelley, William Godwin, and Walter Scott. I have also identified the developments of two of these sub-areas of Romantic interest with the publications of major critical works (all shown on graph).

The .gexf file can be downloaded here.

Here is my annotated video screen capture of the dynamic graph’s development over time.

Studies in Romanticism Dynamic Co-Citational Graph from John Mulligan on Vimeo.

I really think this kind of visualization could be an incredible research aid, if the raw data were cleaned up. But other commitments are likely going to keep me from working on this project for a while. In the meantime, please consider developing the code on GitHub and/or use the tool to create a map of your own field’s evolution. If you do, please email me a link to give me a few minutes’ break 🙂

PMLA Citation Network, 1975-2010

I’ll be making one more of these graphs (Victorian Studies) before I give it a rest for a while, but I thought I would present a nice coda to the MLA interactions graphs; I have two network graphs (using slightly different scripting and visualization) of Twitter interactions on the hashtag #mla14, in previous blog posts.

To round off this thinking about academic networks in all senses — though I have to say I haven’t been doing much thinking at all on the blog about this as I just try to make the data legible — I thought I would publish a citational network graph for PMLA. For the details on how to navigate these graphs, go to my earlier post on Studies in Romanticism. On this graph, though, metadata doesn’t seem to be doing the job on identifying communities, and the database had a good number of orphan nodes that were causing problems with the graph and had to be removed.

The below displays the citational network for PMLA from vol. 90, no. 1 – v. 125 no. 4 (1975-2010).

View Graph:

#MLA14 network, 6pm Friday to 10am Sunday

This is my second graph of tweets on this blog. I’m using an old script of mine to capture #mla14 tweets (using Twitter’s REST API). The below graph was built from 9785 tweets, posted between 6pm Friday and 10am Sunday. It shows 1736 users and 3666 interactions.

There is at least one other #mla14 visualization out there, Ernesto Priego’s, which uses d3.js. His visualization, which is searchable, uses Martin Hawksey’s TAGS. Priego is also posting regular updates on #mla14  statistics on his twitter feed.

My version, which will not update with new data, I built with Gephi and my own script, but it loads and runs a bit faster as a result. It would be interesting to hold up the two networks and to see how differences in interpreting mentions create different groupings. This visualization is made using a sigma.js plugin (see below).

Click to view:


I’m using Alexis Jacomy’s sigma.js to render Graph #1. Graph #2 was produced using a plugin written by Scott Hale. The original graph was drawn in Gephi, using data gathered by and old script of mine, that I’ve updated to use on this hashtag.