Full Stack DH: Building a Virtual Research Environment on a Raspberry PI

The slides and text of my presentation to the DH2016 conference, Kraków, 11 - 16 July, 2016. Click here for the official online abstract. Click here to read on Slideshare.

Ian Hodder has recently pointed to a “return to things” in the humanities and social sciences, a mode of analysis that explores the relationships between people and the objects we use to construct and make sense of the world.In digital humanities we can see this in Matthew Kirschenbaum’s focus on the forensics of computer hard disks,2 the development of platform studies to investigate the relationship between computing culture and the consoles and other hardware that enables it,3 and the appearance of maker cultures that seek to explore the humanities through practical experimentation.4 It suggests a desire to pay attention to and interact with the material world, rather than retreating to a purely digital one. Some commentators go beyond this. They propose that entanglement with material objects represents a ground of being for humans and their societies, that it presents a postphenomenological “dialectic of dependence and dependency between humans and things” worthy of deep contemplation.5 People rely on the things they have created to such a degree, so the argument goes, that our identity has become inseparable from them. In Donald Ihde’s original conception, it amounts to “recognition that “consciousness” is an abstraction, that experience in its deeper and broader sense entails its embeddedness in both the physical or material world and its cultural-social dimensions”.6 Knowledge, art, religion, and science are entangled, in turn, with books, oil paint, churches, and laboratories: “thing theory” grounds epistemology in the myriad interactions between the physical and non-physical world.7

            If we apply these insights to digital infrastructure we begin to see how humanists have become entangled with complex systems, a situation that might prompt us to pause for thought. Analog books, archives, and libraries presuppose a degree of entanglement with the material world, undoubtedly, but those are relatively well understood: we have had centuries to understand and critique them. Digital infrastructure, however, is rarely “symbolically or politically construed”.8 It is merely requested in an email to a manager or Information Technology (IT) helpdesk, or held to be something humanists need to do their work. Little attempt is made to define the critical ground or, much less, to understand the object of enquiry prior to investment. Rather, in denial of the epistemological significance of things, humanities infrastructure is treated as something we should merely go to the store or work with our IT department to buy. The result has been an ongoing failure to provide the kind of infrastructure needed by humanities researchers, a misalignment of the debate, and often a rejection of the very notion of digital infrastructure itself.

            As Matt Ratto points out, so-called ‘critical making’ provides new ways of dealing with difficult issues like this. Rather than attempting to solve complex problems in their entirety, critical making encourages the development of prototypes and basic models in the context of wider critical discourses, thus blending “practice-based engagement with pragmatic and theoretical issues” and fostering the possibility that creative solutions will be found to long-standing problems. He suggests the approach can be particularly useful in the context of so-called “wicked problems”9 defined by architectural scholar Horst Rittel in the 1960s and 1970s.10 This class of problem is characterized by the existence of “many clients and decision makers with conflicting values, and where the ramifications in the whole system are thoroughly confusing” (Rittel was interested in problems associated with large-scale planning projects).11 Significantly, he claimed there is a moral element to such problems, in that it is immoral to solve only one component of a wicked problem when such an approach will leave the larger issue unresolved. Prototyping and critical making can thus be positioned, not as inadequate tinkering, but as a mode of activity well-suited to the resolution of very complex problems. In this way we come to the intersection of critical making, cyber-infrastructure, and the humanities.

            This project migrated my personal website from Wordpress.org (a free, fully hosted service) to a home server running on a Raspberry Pi 2 Model B minimal computer, a device built in the United Kingdom at Sony’s manufacturing plant in Pencoed in South Wales and supported by a registered charity: the Raspberry Pi Foundation. The computer measures 85.60mm x 56mm x 21mm (or roughly 3.37″ x 2.21″ x 0.83″), has 1GB of Random Access Memory (RAM) and is powered by a 900MHz quad-core ARM Cortex-A7 Central Processing Unit (CPU). The VRE application is built using Django, a Python-based web framework designed for newspaper websites but now deployed in a wide variety of scenarios. The social media service Pinterest is one of the largest services to use it, with over 46 million unique visitors between 2011 and 2015.12 The framework is thus highly adaptable, and could be used to develop almost any functionality a humanities researcher might need. The website is served by the Gunicorn application server and light-weight Nginx web server (used by NASA), with content saved in Postgres, one of the more advanced database systems available. All of these products are available free through the open source community. They require a reasonable level of technical proficiency to install and configure but there are many tutorials available online and their user communities share knowledge openly. It speaks to an interesting aspect of this project. Although there is a massive gap between my personal website and well-funded cyber-infrastructure projects, the nature of the open source software movement means there is only a small gap (if any) in terms of scalability and potential functionality.

            One of the most powerful things about the project - in both technical and tactical terms - is the level of control conferred by the architecture of the ‘stack’. Not only is the Pi itself accessible and configurable, but its operating system can be changed, and Gunicorn and Nginx can be configured at both an administrative level and through their core code base. Django can be programmed to support an extremely wide range of functionality. To extend the metaphor of control towards the incomprehensibly large infrastructures used by multi-national digital corporates (to escape the criticism that the Pi is a fundamentally limited device, or a mere toy), static files like CSS style sheets and images are hosted on the Amazon Web Services (AWS) cloud, integrating the Pi with a truly enormous global data infrastructure. These could have been hosted on the Pi, but it is considered best practice to deliver them separately for Django projects. It means, essentially, that much of the ‘heavy-lifting’ has been outsourced to a high performance computer, allowing almost limitless options for expansion of the site.

            Perhaps counter-intuitively given the dominance of ‘bigger is better’ cyberinfrastructure discourse, the migration from Wordpress.org servers to a lowly Raspberry Pi has produced a personal VRE capable of significant further development. The intention is not necessarily to create a finished and reproducible product, but to take control of – and experiment with - all aspects of the computing architecture in order to gain a better understanding of my scholarly infrastructure needs, from the hardware the site runs on, to maintenance of the Internet domain name, the content management system that helps me organize content, and the firewalls that secure it from malicious actors. The conclusion after this phase of the project is that issues like ethical hardware, net neutrality, data sovereignty and security, and the ability to extend and configure the code that supports my research activities, are central to my work – and identity - as a humanities scholar.        

 

 

[1] Ian Hodder, “The Entanglements of Humans and Things: A Long-Term View,” New Literary History 45, no. 1 (2014): 19.

[2] Matthew Kirschenbaum, Mechanisms: New Media and the Forensic Imagination (Cambridge, MA: MIT Press, 2007).

[3] Nick Montfort and Ian Bogost, Racing the Beam: The Atari Video Computer System (Cambridge, MA: The MIT Press, 2009).

[4] Michael Dieter and Geert Lovink, “Theses on Making in the Digital Age,” in Critical Making (Garnet Hertz, 2014); Jentery Sayers. “The Relevance of Remaking.” Maker Lab in the Humanities, November 24, 2014.

[5] Hodder, “The Entanglements of Humans and Things,” 19.

[6] Ihde, Don. Postphenomenology and Technoscience: The Peking University Lectures (Albany: SUNY Press, 2009), 19.

[7] Alex Preda, “The Turn to Things: Arguments for a Sociological Theory of Things,” The Sociological Quarterly 40, no. 2 (April 1, 1999): 347–66.

[8] Karin Knorr-Cetina, “The Couch, the Cathedral, and the Laboratory: On the Relationship between Experiment and Laboratory in Science,” in Science as Practice and Culture, ed. Andrew Pickering (University of Chicago Press, 1992), 115.

[9] Ratto, Matt. “Critical Making: Conceptual and Material Studies in Technology and Social Life.” The Information Society 27, no. 4 (July 2011): 253.

[10] Horst W. J. Rittel and Melvin M. Webber, “Dilemmas in a General Theory of Planning,” Policy Sciences 4, no. 2 (June 1, 1973): 160.

[11] C. West Churchman, “Guest Editorial: Wicked Problems,” Management Science 14, no. 4 (December 1, 1967): B141.

[12] Statista, “Pinterest: Unique U.S. Visitors 2015,” Statista, April 2015, accessed July 11, 2015.