Tag: code

Convert a PHP/MySQL site to Jamstack and host on Github Pages

One of the first items on my sabbatical to do list last year was to convert the Camp La Jolla Military Park website to a static Jamstack site hosted at Github Pages. This post documents that process.

I originally created the site as a research tool using PHP and a MySQL database for data entry, to record, organize, and ultimately publish research about the military history of UCSD. Moving the project to Github Pages would simplify maintenance and hosting costs, but was no small task. Technically it didn’t cost me extra to host, but the domain was $20/year, which adds up. Further, maintaining a PHP/MySQL website with a custom admin tool requires a bit of overhead for security and updates. Additionally, I wanted to continue having the benefit of using template engines or some way to include files (like PHP’s require()) to save time coding the site.

There are a plethora of tools available to publish a database-driven site on a static host. They mostly can be categorized as follows (ordered by most to least dynamic data sources):

  • Move the database to a remote service like Firebase, Atlas, et al. — ⚠️ Ultimately creates vendor lock-in, potential hidden costs, and probably more maintenance issues in the future.
  • Create a static version of the database by converting MySQL to flat files (JSON, CSV, etc.), which still allows for querying using one of various tools — 🤔 This method is interesting, because it still decouples the data from the presentation and allows for potentially more options later, including a remote database. I am already using this in various forms but worry again about maintenance, or issues with the client’s ability to manipulate the data as needed.
  • Generate a static version of the site, including all its pages which contain the data formerly dynamically inserted from MySQL. — 🤔 I like this concept, and have been using it to auto-publish my class lectures and tutorials using Markdown and Grunt with Marp. Plus, there are many site generators to choose from, which I explore below.
  • Scrape the site and save pages as static files. After all, everything is static once the HTML is rendered on the frontend. — ⚠️ While fast, this requires the site be built first and would make updates difficult.

Essential Concepts

Here I outline some concepts on rendering. See SSR vs CSR vs ISR vs SSG for a more in-depth look:

  • Client-Side Rendering (CSR) (e.g. Single-Page Application (SPA)) – JS renders pages in client’s browser with empty HTML files + raw data from the server. (e.g. React, Vue, Angular)
  • Server-Side Rendering (SSR) (e.g. Fullstack) – Generates pages on server with dynamic data before delivering to client. Improves SEO and loading, decreases server performance. (e.g. EJS, PHP, or Next.js)
  • Static Site Generation (SSG) (e.g. JAMStack) – Pre-renders all pages as static HTML during build process. Fast loading times, enhanced security, and dynamic content can still be achieved via “islands”.
  • Incremental Static Regeneration (ISR) – Combines SSR and SSG to pre-render static pages during build time while periodically regenerating specific pages with updated data.
  • Edge-Side Rendering (ESR) – Rendering process is pushed to the CDN’s edge servers which handles requests and generates HTML. Requires Nitro engine.

Requirements

Requirements for most of the projects I mention above.

  1. Javascript-based
  2. The data will be static, but editable using Git
  3. The data should be searchable using a tool like chosen
  4. The site design will be simple, but I should have creative control
  5. The site will be public, and be presented mostly using the same design as the original site
  6. HTML/CSS validation + Accessibility checks
  7. Convert from Google Maps to Leaflet
  8. Host the site on Github Pages

While planning the project I also wanted to select a method I could use for other potential static (or nearly static) sites like:

  1. A new site documenting the hundreds of examples and overlapping categories of Critical Web Design and internet art I’ve been collecting for an upcoming book. Update: I built it with SvelteKit
  2. Converting tallysavestheinternet.com to a static site (currently SSR) and unlinking the extension from the server to use local data only
  3. Moving away from WordPress more generally (and its security problems) and blogging with Markdown instead, starting with this blog (NO MORE TYPING IN A WEB FORM!!)

It’s nice to learn new tools. I already have some experiences with React, Next.js, and Vue.js, but wouldn’t say I’m confident in any. I found that publishing apps using React Native is very frustrating and unreliable, and my general distrust of Facebook makes me lean towards Vue. Still, I went in with an open attitude.

Tool Comparison

A breakdown of some tools I considered. Some of the icons are clickable…

FrameworkSPASSRSSGMDThemesSearchCons
Jekyll❌❌✅✅✅?❌ Ruby
Hugo❌❌✅✅✅?❌ Go
Astro✅✅✅✅✅✅React, Vue, Svelte in dynamic islands, simple routing
Vue.js✅✅✅✅✅?✅ vuepress
Nuxt.js✅✅✅✅✅?Built on Vue
SvelteKit✅✅✅✅✅✅MD rendering not native but supported via MDX
Next.js✅✅✅✅✅✅MD rendering not native but supported via MDX

Next

My experience with Next.js SSG was painful.

  • Constantly running into subtle changes in syntax across versions
  • Adding an image is ridiculously difficult.
  • Exporting the SSG ultimately created dead links, packaged up in Next code that was hard to understand.
  • So much automation to make a static site in the end you can’t do anything unless you have the exact right code, in the right version, in the right paths.
  • Error messages are rarely helpful or pinpoint the line number causing the issue in the stack.
  • I followed so many tutorials that ultimately ended in dead-ends, incorrect versions, or that completely didn’t work.

Astro

I ended up choosing Astro for the final project, which can be seen here https://omundy.github.io/camplajolla/. While they appear to have many similarities, I found Astro soooooo much easier than Next.js. It’s fairly simple to install, even using a starter theme, and it didn’t take long torip out tailwind to add bootstrap.

Beautiful Data II @ Metalab at Harvard University

This month found me at the excellent Beautiful Data II workshop at the MetaLab at Harvard University sponsored by the Getty Foundation. Participants worked together in the Carpenter Center and Harvard Art Museum under the theme “Telling Stories About Art with Open Collections.”

Beautiful Data II @ Metalab at Harvard University

There were presentations by known visualization and museums experts, breakout sessions exploring how to represent problem data and collections, and talks by participants and Metalab staff and fellows, including a wonderful group of artists, curators, designers, and scholars in attendance.

Beautiful Data II @ Metalab at Harvard University

Here are a few of the many highlights starting with this nerdy shot of me…

Beautiful Data II at Metalab, Harvard University

Beautiful Data II at Metalab, Harvard University


Data Therapy workshop with Rahul Bhargava (slides1, slides2).

Beautiful Data II @ Metalab at Harvard University


Learning about provenance at the Harvard Art Museum (note stamp declaring Nazi property)

This spanking cat statuette from the Cooper Hewitt collection.
Colour Lens produced at Beautiful Data I.
Presentation by Seb Chan Director of Digital at Cooper Hewitt.
Memory Slam by Nick Montfort.
Meow Met Chrome extension shows cats from the Met Museum in new tabs.

Beautiful Data II at Metalab, Harvard University


Behind the scenes of Ivan Sigal‘s Karachi Circular Railway, Harvard Art Museum Lightbox.

The Life and Death of Data by Yanni Loukissas.
Ben Rubin discussing his and works by Mario Klingemann, Ryoji Ikeda, Jer Thorp and others.
William James Twitter Bot by Rachel Boyce.


Cold Storage documentary by Jeffrey Schnapp, Cristoforo Magliozzi, Matthew Battles, et al.

Cooper Hewitt Font Specimen
Cooper Hewitt typeface by Chester Jenkins


“Unicode” by Jörg Piringer shows all 49571 displayable characters in the unicode range.

*Most photos by Metalab staff

“Owen Mundy just ruined the Internet” and the last days for the kickstarter

It has been an intense couple weeks since my last post. It turns out the internet loves cats even more than data, maps, and politics. So here is an update on many things “cat”…

Update on the project

I Know Where Your Cat Lives has received an overwhelmingly positive response from international press. Besides photos of cats on a world map, there are charts, an FAQ and (now) links to press on the website.

I have to admit I specifically picked cat photos as an accessible medium with which to explore the privacy issue. Still, I was astounded at just how much the internet responded. It’s not only cats, the issue was important for discussion, and I appreciated that as well as the thoughtful responses from everyone. Even the puns.

The privacy implications of cat pictures (4:24) MSNBC Interview with Ronan Farrow

Meet The Guy Who’s Putting Your Cat On The Map — To Prove A Point (2:12) Interview with National Public Radio’s All Things Considered

NPR logo

“If you have posted a picture of your cat online, data analyst and artist Owen Mundy, and now, the rest of the world, knows where it lives. And, by that logic, he knows where you live, too. That should probably creep you out a little bit, and that’s really the point.”

“Owen Mundy just ruined the Internet” and the last days for the kickstarter

“Using cat pictures — that essential building block of the Internet — and a supercomputer, a Florida State University professor has built a site that shows the locations of the cats (at least at some point in time, given their nature) and, presumably, of their owners.”

“Owen Mundy just ruined the Internet” and the last days for the kickstarter

“Attention all 4.9 million users of the #Catstagram hashtag: You’re being watched.”

“Owen Mundy just ruined the Internet” and the last days for the kickstarter

“I recognize that a single serving site like this should be easy to quit, but I’ve been refreshing for hours and looking at all the different cats of the world. Near, far, wherever they are, these cats just go on and on and on.”

“Owen Mundy just ruined the Internet” and the last days for the kickstarter

“If I put up a “cat” photo on Instagram, I am not just sharing a cat photo on Instagram. I am offering up data about my, and my cat’s, location. “I Know Where Your Cat Lives” is, as a title, meant to be vaguely threatening.”

“Owen Mundy just ruined the Internet” and the last days for the kickstarter

“Owen Mundy just ruined the Internet. What were once innocuous photos of grumpy cats, tired cats, and fat cats, have now become adorable symbols of just how little privacy we have online.”

“Owen Mundy just ruined the Internet” and the last days for the kickstarter

Some charts

Because, charts.

Map of cats around the world

Cats of the world compared with cities of the world

Map of cats in Europe

Map of cats in Austria and Germany

Traffic and hosting

So far 19,169 cats have been removed from the map due to privacy settings on their photographs being increased. I think this is awesome. And, it is also the ironic part of this project in that its success is measured in increased privacy. Meaning, the more people who are convinced to manage their data better, the less cats I will be able to represent on the map!

Truthfully speaking, I don’t think I have to worry about running out of cats, since this is a small portion of the total one million. And, I figured out a clever way to show this progress as it unfolds:

“Owen Mundy just ruined the Internet” and the last days for the kickstarter

The bandwidth and computing resources consumed by this project have been crazy. Even with a very fast Amazon EC2 server (high I/O computing-intensive 4XL server with 16 virtual cpus and 30 GB RAM) I watched the CPU hover at 100% for the entire day of The New York Times article. And this is after I put many hours indexing the database columns and making the scripts efficient in other ways. All told my bill for “going viral” was $1,019.73 (the month of July 2014).

“Owen Mundy just ruined the Internet” and the last days for the kickstarter

I used a few different logging tools to monitor the status of the server. Here are some basic stats (from awstats installed on the server) from the three weeks since I launched the project. This is for the requests and bandwidth on the EC2 server only. It does not include the actual cat photos, only the website itself (html, css, json, php, etc):

  • 353,734 unique visits
  • 14,141,644 pages (total clicks on the site)
  • 16,786,127 requests (additional files)
  • 8846.24 GB bandwidth (again, only text files)

I also used CloudFlare CDN (thanks for the tip Tim Schwartz!) to cache the site files and cat photos and serve the data from various locations around the world. This helped with the speed and to decrease my costs. Since all requests are routed through their DNS I believe their stats are likely the most reliable. According to CloudFlare, they served:

  • 20,631,228 total requests (3,089,020 of which were served through CloudFlare’s cache)
  • 10.2 TB bandwidth!! (437.3 GB of this data (site files and cat photos were served by CloudFlare)

“Owen Mundy just ruined the Internet” and the last days for the kickstarter

The Kickstarter has <3 days left!

And great news, thanks to 123 backers, including a big push from the awesome folks at Ghostery and Domi Ventures, the Kickstarter will be funded! There’s still time however, to help contribute to the number of years I can keep the site live while getting fun rewards from the project like I Know Where Your Cat Lives themed beer koozies and plush fish-shaped catnip-laced cat toys, as well as a limited edition signed I Know Where Your Cat Lives archival ink jet print. The kickstarter closes on Sat, Aug 9 2014 11:49 AM EDT.

“Owen Mundy just ruined the Internet” and the last days for the kickstarter

Thanks again to everyone who supported the project. It’s been fun.

“Owen Mundy just ruined the Internet” and the last days for the kickstarter “Owen Mundy just ruined the Internet” and the last days for the kickstarter

I Know Where Your Cat Lives launched

I just launched a new ongoing project this week. Here’s the text, a video and some screenshots. I’ll post more about how I made it soon.

Welcome to the today’s internet—you can buy anything, every website is tracking your every move, and anywhere you look you find videos and images of cats. Currently, there are 15 million images tagged with the word “cat” on public image hosting sites, and daily thousands more are uploaded from unlimited positions on the globe.

“I Know Where Your Cat Lives” iknowwhereyourcatlives.com is a data experiment that visualizes a sample of 1 million public pics of cats on a world map, locating them by the latitude and longitude coordinates embedded in their metadata. The cats were accessed via publicly available APIs provided by popular photo sharing websites. The photos were then run through various clustering algorithms using a supercomputer at Florida State University in order to represent the enormity of the data source.

This project explores two uses of the internet: the sociable and humorous appreciation of domesticated felines, and the status quo of personal data usage by startups and international megacorps who are riding the wave of decreased privacy for all. This website doesn’t visualize all of the cats on the net, only the ones that allow you to track where their owners have been.

Folks can also contribute to a kickstarter to help with hosting costs.

I Know Where Your Cat Lives

I Know Where Your Cat Lives

I Know Where Your Cat Lives

I Know Where Your Cat Lives

I Know Where Your Cat Lives

I Know Where Your Cat Lives

I Know Where Your Cat Lives

Term vs. Term for Digital Public Library of America hackathon

I made a small app to compare the number of search results for two phrases from the Digital Public Library of America for a hackathon / workshop here at Florida State next week.

https://omundy.github.io/term-vs-term/

dpla term vs term

Digital Humanities Hackathon II – Digital Public Library of America

Monday, April 21, 2:00-3:30 p.m.
Strozier Library, Scholars Commons Instructional Classroom [MAP]

The Digital Scholars Reading and Discussion Group will simulate its second “hackathon” on April 21, allowing participants to learn more about the back-end structure of the Digital Public Library of America. With its April 2013 launch, the DPLA became the first all-digital library that aggregates metadata from collections across the country, making them available from a single point of access. The DPLA describes itself as a freely available, web-based platform for digitized cultural heritage projects as well as a portal that connects students, teachers, scholars, and the public to library resources occurring on other platforms.

From a critical point of view, the DPLA simultaneously relies on and disrupts the principles of location and containment, making its infrastructure somewhat interesting to observe.

In this session, we will visit the DPLA’s Application Programming Interface (API) codex to observe some of the standards that contributed to its construction. We will consider how APIs function, how and why to use them, and who might access their metadata and for what purposes. For those completely unfamiliar with APIs, this session will serve as a useful introduction, as well as a demonstration of why a digital library might also want to serve as an online portal. For those more familiar with APIs, this session will serve as an opportunity to try on different tasks using the metadata that the DPLA aggregates from collections across the country.

At this particular session, we are pleased to be joined by Owen Mundy from FSU Department of Art and Richard Urban from FSU College of Communication and Information, who have considered different aspects of working with APIs for projects such as the DPLA, including visualization and graphics scripting, and developing collections dashboards.

As before, the session is designed with a low barrier of entry in mind, so participants should not worry if they do not have programming expertise or are still learning the vocabulary associated with open-source projects. We come together to learn together, and all levels of skill are accommodated, as are all attitudes and leanings.

Participants are encouraged to explore the Digital Public Library of America site prior to our meeting and to familiarize themselves with the history of the project. Laptops will be available for checkout, but attendees are encouraged to bring their own.

Washington Post review of “Grid, Sequence Me” show + documentation

The Washington Post logo

The Washington Post recently published a review recently about my and Joelle’s exhibition at Flashpoint Gallery in D.C. Check it out: Joelle Dietrick & Owen Mundy: Grid, Sequence Me, by Maura Judkis, Jan 11, 2013.

A few elements will be recognizable, such as the brutalist outline of the J. Edgar Hoover FBI Building, but many are stripped down to their most generic shapes, making rows of windows look like charts and bar graphs. The projections of some of those shapes echo and interplay with the forms of the Flashpoint gallery interior.

Dietrick and Mundy also scraped The Post’s listings of recent home sales, with architectural elements from some of those homes appearing before a dense thicket of live-streamed code. It’s a visual reminder of just how complicated the housing industry has become.

…

There’s a sense in the animation that the structures are tumbling away from you — just as homeownership has slipped out of the grip of many Americans. But the piece will elicit a different reaction here than in Florida, where the effects of the housing market crash have been far more pronounced. In Washington, we’ve mostly been insulated from it: Foreclosures are few, short sales are sparse. In the jumble of buildings and code, “Grid, Sequence Me,” may serve as a warning for those who haven’t experienced that sense of loss — but who indirectly, though policy work, may have influenced the systems that led to the crash.

I also finished a short piece with video from the installation and screen captures of the Processing visualization.

Grid, Sequence Me @ Flashpoint Gallery, Washington D.C.

Grid, Sequence Me at Flashpoint Gallery

Surrounded by images of cross-sectioned buildings and source code excerpts, gallery visitors encounter fragments of Washington, DC architecture—a vaguely familiar roofline or grid of office windows—remixed with data and source code representing the latest housing sales in the area. Constantly changing, the live data streams into the gallery from both local sources (DC short sale listings) and national (federal policy sites), emphasizing the effects of related micro-macro shifts.

Grid, Sequence Me at Flashpoint Gallery, screen detail

Grid, Sequence Me at Flashpoint Gallery, screen detail

Generated with custom software, these fragments echo financial systems and housing market fluctuations. They mirror mortgages repackaged and sold, titles lost in administrative tape, and dreams confused by legal jargon. Like the complex financial systems of the housing market heyday, the software generates an infinite number of arrangements. The complexity of unique and dynamically-created algorithmic outcomes contrasts with the comforting predictability referenced in the exhibition’s title, “Grid, Sequence Me.”

—Joelle Dietrick and Owen Mundy

Grid, Sequence Me at Flashpoint Gallery

Grid, Sequence Me at Flashpoint Gallery, sea screen detail

Grid, Sequence Me at Flashpoint Gallery, sea screen detail

Grid, Sequence Me at Flashpoint Gallery, sea screen detail

Grid, Sequence Me at Flashpoint Gallery, sea screen detail

Packet Switching project: ColladaFragmenter software, Kassel, Germany and University of Florida Public Commission

3D model in Rhino

Joelle Dietrick and I embarked on a new body of work this summer called “Packet Switching.” Inspired by her Sherwin Series images and wall paintings, and my work deconstructing and re-visualizing source code and other data, we’ve created two new software projects, as well as a series of limited edition prints, large photo installations, wall-sized paintings, and animations.

3D model in Photoshop

The full statement explains our process and intent clearly:

Packet Switching is an ongoing body of work by Joelle Dietrick and Owen Mundy that visualizes architecture as fragments affected by economic and communications systems.

The title of the series references how contemporary communications systems break digital files into smaller manageable blocks of data called packets. Each packet is then sent through a network, taking the quickest route possible, and reassembled once they reach their destination. One JPG image, for example, might be broken into several packets, each of which may travel a different path through the net, even through different cities, before being recompiled into a copy of the original file.

To reference this common process used in networked systems, we wrote custom software that deconstructs a 3D model’s source code and produces unique fragments. We further remixed these fragments using an original application created in Processing. The resulting images become limited edition prints, large photo installations, wall-sized paintings, and animations.

Our process underscores how incidental fragmentation and automation can streamline markets, but also make them vulnerable to systems failure. The use of architecture specifically points to recent real estate market volatility and considers how communication technology-enabled pursuits of profit margins alters our most basic needs.

3D model in SketchUp

The first software, that “deconstructs a 3D model’s source code and produces unique fragments,” is open source and available on Github. Essentially, the PHP software, parses a 3D COLLADA file and exports a set number of geometries, that can then be further broken down and used in an artwork or design.

The second software, which we will release soon, remixes these fragments using Processing. The video below shows an example of the whole process.

Wall painting at “Temporary Home” in Kassel, Germany

While artists-in-residence at Temporary Home, in Kassel, Germany, which coincided with Documenta13, Joelle Dietrick and I completed a wall-sized temporary painting based on the architecture from the Bauhaus School at Dessau and 2012 American color forecasts.

Packet Switching, installed at Temporary Home, Kassel, Germany

Packet Switching, installed at Temporary Home, Kassel, Germany

Packet Switching, installed at Temporary Home, Kassel, Germany

Commission at Weimer Hall at the University of Florida

Joelle and I have also received a commission to complete Packet Switching (Weimer Hall) at the University of Florida College of Journalism and Communications this fall. This will be inkjet on adhesive polyester on a large wall (approx. 177.5 ft. x 20.2 ft.). More details soon.

PaletteVisualizer

I’ve been working on a lot of projects this summer using various color palettes. Since my work involves writing programs to use these palettes in different visual outcomes, I keep wishing for an easy way to view and negotiate the lists of colors. So today I wrote a simple app to visualize a list of hexadecimal values and sort them by hue, saturation, and value (HSV). The app can be used here, and the code is open under the MIT License.

PaletteVisualizer screenshot

Thanks to Alexei Kourbatov for the color format exchange functions.

Give Me My Data API Hacking Masterclass

Give Me My Data API Hacking Masterclass

Give Me My Data API Hacking Masterclass
Thursday, July 27, 2012

A ‘hands-on’ workshop with technical and theoretical overview of contemporary ‘Application Programming Interfaces’ (API’s) of large social networks, en how to use these for your own project or application.

We will cover the ins and outs of creating Facebook apps, web applications, and how to play with the Twitter, Foursquare, Flickr and Instagram APIs.

With WORM’s current ‘Artists In Residence’ Tim C. Schwartz and Owen Mundy you’ll learn from a programmers perspective how to approach your target network, to subsequently make it do what you need it to… As an example you can think of Owen’s project “Give Me My Data” or WORM’s previous release of the “Web2.0 Suicide Machine”

No specific technical skills required, but a curious mind towards the ins&outs of social networking is a must!

[EN] buy your ticket online or send your reservation tomoddr@worm.org, Participation is limited so act fast!
– reduced/discount tickets available for WORM volunteers & students (with ID)

Normaal Voorverkoop: € 15.00 Deurverkoop: € 15.00
Normaal reductie Voorverkoop: € 10.00 Deurverkoop: € 10.00

Location: WORM, Boomgaardsstraat 71, 3012 XA Rotterdam

Freedom for Our Files: Canvas starter (Facebook) app

I’m happy to share the code from a Facebook app I created for a workshop earlier this year.

This simple Facebook canvas application was originally demoed during the Freedom for Our Files workshop at the 2011 Art Meets Radical Openness festival in Linz, Austria. You can view and download the source code on github

The application is very simple; it creates a Facebook object, performs calls to get data belonging to the current user, then prints the data exactly as it is returned. It has examples of basic Facebook Graph API calls as well as an example of FQL (Facebook Query Language).

Freedom for Our Files: Canvas starter (Facebook) app

Freedom for Our Files: Creative Reuse of Personal Data Workshop at Art Meets Radical Openness in Linz, Austria

This weekend I am presenting a lecture about GIve Me My Data and conducting a two-day data-scraping workshop at Art Meets Radical Openness in Linz, Austria. Here are the details.

Poster for Art Meets Radical Openness (LiWoLi 2011), Linz

The Self-Indulgence of Closed Systems
May 13, 18:45 – 19:15
Part artist lecture, part historical context, Owen Mundy will discuss his Give Me My Data project within the contexts of the history of state surveillance apparatuses, digital media and dialogical art practices, and the ongoing contradiction of privacy and utility in new media.

Freedom for Our Files: Creative Reuse of Personal Data
May 13-14, 14:00 – 16:30
A two-day workshop, with both technical hands-on and idea-driven components. Learn to scrape data and reuse public and private information by writing custom code and using the Facebook API. Additionally, we’ll converse and conceptualize ideas to reclaim our data literally and also imagine what is possible with our data once it is ours! Register here


Art Meets Radical Openness (LiWoLi 2011),
Date: 12th – 14th May 2011
Location: Kunstuniversität Linz, Hauptplatz 8, 4020 Linz, Austria

Observing, comparing, reflecting, imitating, testing, combining

LiWoLi is an open lab and meeting spot for artists, developers and educators using and creating FLOSS (free/libre open source software) and Open Hardware in the artistic and cultural context. LiWoLi is all about sharing skills, code and knowledge within the public domain and discussing the challenges of open practice.

Network graph grouping: A small art world

This “Mutual friends network graph” created with Nodebox using data I exported with Give Me My Data contains 540 “Facebook friends” and their connections to each other. When the graph renders it attempts to position people who have lots of connections closer together. With this you can see groups unfold based on your own social networks. Since I have spent more time in academia than I have at specific jobs my “clusters” are based mostly on my academic history.

You can also see that there are a lot of connections between my high school and where I did my undergraduate study, which is based on the fact they are located very close to each other, so friends from high school also chose the same university or town to live in. There are also a lot of interconnections between Indiana University where I did my undergrad, the University of California, San Diego, where I did graduate study, and Florida State University, where I teach now. This is probably due to the fact that my connections are all within a given field, in my case visual arts, and points to the often expressed notion that “the art world is actually very small.”

Facebook mutual friends network graph, grouped into clusters

Random Hacks of Kindness (RHoK) and Google Person Finder

Last weekend I took part in Random Hacks of Kindness an international hackathon dedicated to creating useful systems to respond to critical global challenges. I met with other programmers at the Betahaus in Berlin and worked with Tim Schwartz and Mikkel Gravgaard on Google Person Finder a searchable database of missing persons that helps people find loved ones during disasters. It was used during the 2010 Haiti and Chilean Earthquakes and is developed by volunteers and employees of Google.

Picture 21

Photo by Flickr user rhokberlin

Random Hacks of Kindness

Photo by Flickr user nblr

Random Hacks of Kindness

Photo by Flickr user nblr

How to install Scrapy with MacPorts (full version)

MacPorts logo

+

MacPorts logo

Here is a step-by-step explaining how I got Scrapy running on my MacBook Pro 10.5 using MacPorts to install Python and all required libraries (libxml2, libxsit, etc.). The following has been tested on two separate machines with Scrapy .10.

Many thanks to users here who shared some helpful amendments to the default installation guide. My original intention was to post this at stackoverflow, but their instructions discourage posting issues that have already been answered so here it is…

1. Install Xcode with options for command line development (a.k.a. “Unix Development”). This requires a free registration.

2. Install MacPorts

3. Confirm and update MacPorts

$ sudo port -v selfupdate

4. “Add the following to /opt/local/etc/macports/variants.conf to prevent downloading the entire unix library with the next commands”

+bash_completion +quartz +ssl +no_x11 +no_neon +no_tkinter +universal +libyaml -scientific

5. Install Python

$ sudo port install python26

If for any reason you forgot to add the above exceptions, then cancel the install and do a “clean” to delete all the intermediary files MacPorts created. Then edit the variants.conf file (above) and install Python.

$ sudo port clean python26

6. Change the reference to the new Python installation

If you type the following you will see a reference to the default installation of Python on MacOS 10.5 (Python2.5).

$ which python

You should see this

/usr/bin/python

To change this reference to the MacPorts installation, first install python_select

$ sudo port install python_select

Then use python_select to change the $ python reference to the Python version installed above.

$ sudo python_select python26

UPDATE 2011-12-07: python_select has been replaced by port select so…

To see the possible pythons run

port select --list python

From that list choose the one you want and change to it e.g.

sudo port select --set python python26

Now if you type

$ which python

You should see

/opt/local/bin/python

which is a symlink to

/opt/local/bin/python2.6

Typing the below will now launch the Python2.6 shell editor (ctl + d to exit)

$ python

7. Install required libraries for Scrapy

$ sudo port install py26-libxml2 py26-twisted py26-openssl py26-simplejson

Other posts recommended installing py26-setuptools but it kept returning with errors, so I skipped it.

8. “Test that the correct architectures are present:

$ file `which python`

The single quotes should be backticks, which should spit out (for intel macs running 10.5):”

/opt/local/bin/python: Mach-O universal binary with 2 architectures
/opt/local/bin/python (for architecture i386): Mach-O executable i386
/opt/local/bin/python (for architecture ppc7400): Mach-O executable ppc

9. Confirm libxml2 library is installed (those really are single quotes). If there are no errors it imported successfully.

$ python -c 'import libxml2'

10. Install Scrapy

$ sudo /opt/local/bin/easy_install-2.6 scrapy

11. Make the scrapy command available in the shell

$ sudo ln -s /opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin/scrapy /usr/local/bin/scrapy

One caveat for the above, on a fresh computer, you might not have a /usr/local/bin directory so you will need to create it before you can run the above to create the symlink.

$ sudo mkdir /usr/local/bin

13. Finally, type either of the following to confirm that Scrapy is indeed running on your system.

$ python scrapy

$ scrapy

A final bit… I also installed ipython from Macports for use with Scrapy

sudo port install py26-ipython

Make a symbolic link
sudo ln -s /opt/local/bin/ipython-2.6 /usr/local/bin/ipython

An article on ipython
http://onlamp.com/pub/a/python/2005/01/27/ipython.html

ipython tutorial
http://ipython.scipy.org/doc/manual/html/interactive/tutorial.html

Setup Macports Python and Scrapy successfully

MacPorts logo

“Scrapy is a fast high-level screen scraping and web crawling framework, used to crawl websites and extract structured data from their pages. It can be used for a wide range of purposes, from data mining to monitoring and automated testing.”

But, it can be a little tricky to get running…

Attempting to install Scrapy on my MBP with the help of this post I kept running into errors with the libxml and libxslt libraries using the Scrapy documentation.

I wanted to try to let Macports manage all the libraries but I had trouble with it referencing the wrong installation of Python. I began with three installs:

  1. The default Apple Python 2.5.1 located at: /usr/bin/python
  2. A previous version I had installed located: /Library/Frameworks/Python.framework/Versions/2.7
  3. And a Macport version located: /opt/local/bin/python2.6

My trouble was that:

$ python

would always default to the 2.7 when I needed it to use the Macports version. The following did not help:

$ sudo python_select python26

I even removed the 2.7 version which caused only an error.

I figured out I needed to change the default path to the Macports version using the following:

$ PATH=$PATH\:/opt/local/bin ; export PATH

And then reinitiate the ports, etc.

Finally, I was not able to reference the scrapy-ctl.py file by default through these instructions so I had to reference the scrapy-ctl.py file directly

/opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin/scrapy-ctl.py

UPDATE

A quick addendum to this post with instructions to create the link, found on the Scrapy site (#2 and #3).

Starting with #2, “Add Scrapy to your Python Path”

sudo ln -s /opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin/scrapy-ctl.py /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/scrapy

And #3, “Make the scrapy command available”

sudo ln -s /opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin/scrapy-ctl.py /usr/local/bin/scrapy

How to easily set up a campaign finance database (well, kind of) or Make Python work with MAMP via MySQLdb

Picture 15

I’ve been trying for a few hours to run a Python script from The Sunlight Foundation Labs which downloads (and updates) a campaign finance database from the Center for Responsive Politics. See their original post for more information.

In the process of getting this working I accidentally broke a working copy of MySQL and overwrote a database installed on my MBP (which I had stupidly not backed-up since last year). FYI, you can rebuild any MySQL database with the original .frm, .MYD, and .MYI files if you 1. Recreate the database in the new install of MySQL and 2. Drag the files into the mysql data folder.

I struggled quite a bit getting Python to work with MySQL via MySQLdb. I’m documenting some of the headaches and resolutions here in case they are useful. I’ve tried to include error messages for searches as well.

The Sunlight Foundation instructions require Python and MySQL, but don’t mention you have to have already wrestled with the madness involved in installing Django on your machine. Here is what I did to get it working on my MacBook Pro Intel Core 2 Duo. I’ve included their original instructions with my own (and a host of others).

Instructions

  1. Install MAMP.

    While I had working installations of MySQL and Python (via installers on respective sites), I couldn’t get Python to connect to MySQL via MySQLdb. I decided to download and try MAMP for a clean start.

  2. Install XCode

    Past installs are available on Apple Developer website.

  3. Install setuptools

    Required for the MySQLdb driver. Remove the .sh extension from the filename (setuptools-0.6c11-py2.7.egg.sh) and in a shell:

    ~$ chmod +x setuptools-0.6c11-py2.7.egg
    ~$ ./setuptools-0.6c11-py2.7.egg

  4. Install the MySQLdb driver

    After downloading and unzipping, from the directory:

    ~$ python setup.py build
    ~$ sudo python setup.py install

    Continue following the advice of this post to the end How to install Django with MySQL on Mac OS X.

    I also followed another piece of advice in Python MySQL on a Mac with MAMP to change the mysql_config.path from:

    /usr/local/mysql/bin/mysql_config

    to

    /Applications/MAMP/Library/bin/mysql_config

    Especially useful is his test script for making sure that Python is indeed accessing MySQL.

  5. Create a symbolic link between Python and MySQL in MAMP

    This is required in order to use a socket to connect to the MySQL. See How to install MySQLdb on Leopard with MAMP for more information.

    ~$ sudo ln -s /Applications/MAMP/tmp/mysql/mysql.sock /tmp/mysql.sock

  6. Create a directory and put the two Python files in it.
  7. Modify the top of the sun_crp.py file to set certain parameters–your login credentials for the CRP download site and your MySQL database information.
  8. Install pyExcelerator

    Error: ImportError: No module named pyExcelerator

    I had to install this module next.

  9. Comment out multiple lines

    Error: NameError: name 'BaseCommand' is not defined

    In download.py comment out the following:

    The line: from django.core.management.base import BaseCommand, CommandError

    Everything from class CRPDownloadCommand(BaseCommand): to the end of the document.

  10. From the command line, run the script by typing, from the proper directory: Python sun-crp.py.
  11. It will take several hours to download and extract the data, especially the first time it’s run. But after that, you’re good to go.

Automata: Counter-Surveillance in Public Space paper on the Public Interventions panel at ISEA2010

ISEA2010 logo

ISEA2010 RUHR Conference in Dortmund, Germany

P26 Public Interventions
Tue 24 August 2010
15:00–16:30h
Volkshochschule Dortmund, S 137a
Moderated by Georg Dietzler (de)

  • 15:00h | Owen Mundy (us): Automata: Counter-Surveillance in Public Space
  • 15:20h | Christoph Brunner (ch/ca), Jonas Fritsch (dk): Balloons, Sweat and Technologies. Urban Interventions through Ephemeral Architectures
  • 15:40h | Georg Klein (de): Don’t Call It Art! On Artistic Strategies and Political Implications of Media Art in Public Space
  • 16:00h | Georg Dietzler (de): Radical Ecological Art and No Greenwash Exhibitions

About my talk:

Automata is the working title for a counter-surveillance internet bot that will record and display the mutually-beneficial interrelationships between institutions for higher learning, the global defense industry, and world militaries. Give Me My Data is a Facebook application that helps users reclaim and reuse their Facebook data. The two projects, both ongoing, address important issues surrounding contemporary forms of communication, surveillance, and control.

Recent and ongoing projects

Howdy, it’s been awhile since I last shared news about recent and ongoing projects. Here goes.

You Never Close Your Eyes Anymore at AC Direct

1. You Never Close Your Eyes Anymore

You Never Close Your Eyes Anymore is an installation that projects moving US Geological Survey (USGS) satellite images using handmade kinetic projection devices.

Each device hangs from the ceiling and uses electronic components to rotate strips of satellite images on transparency in front of an LED light source. They are constructed with found materials like camera lenses and consumer by-products and mimic remote sensing devices, bomb sights, and cameras in Unmanned Aerial Vehicles.

The installation includes altered images from various forms of lens-based analysis on a micro and macro scale; land masses, ice sheets, and images of retinas, printed on reflective silver film.

On display now until July 31 at AC Institute 547 W. 27th St, 5th Floor
Hours: Wed., Fri. & Sat.: 1-6pm, Thurs.: 1-8pm

New video by Asa Gauen and images
http://owenmundy.com/site/close_your_eyes

2. Images and video documentation of You Never Close Your Eyes Anymore will also be included in an upcoming Routledge publication and website:

Reframing Photography: Theory and Practice
by Rebekah Modrak, Bill Anthes
ISBN: 978-0-415-77920-3
Publish Date: November 16th 2010
http://www.routledge.com/books/details/9780415779203/

Give Me My Data logo

3. Give Me My Data launch

Give Me My Data is a Facebook application designed to give users the ability to export their data out of Facebook for any purpose they see fit. This could include making artwork, archiving and deleting your account, or circumventing the interface Facebook provides. Data can be exported in CSV, XML, and other common formats. Give Me My Data is currently in public-beta.

Website
http://givememydata.com/

Facebook application
http://apps.facebook.com/give_me_my_data/

The New York Times logo

4. Give Me My Data was also covered recently by the New York Times, BBC, TechCrunch, and others:

Facebook App Brings Back Data by Riva Richmond, New York Times, May 1, 2010
http://gadgetwise.blogs.nytimes.com/2010/05/01/facebook-app-brings-back-data/

Picture 6

5. yourarthere.net launch

A major server and website upgrade to the yourarthere.net web-hosting co-op for artists and creatives. The new site allows members of the community to create profiles and post images, tags, biography, and events. In addition to the community aspect, yourarthere.net is still the best deal going for hosting your artist website.

Website
http://yourarthere.net

More images
http://owenmundy.com/site/design_yourarthere_net

Portrait from The Americans

6. The Americans

The Americans is currently on view at the Northwest Florida State College in Niceville, FL. It features a new work with the same title.

More images
http://owenmundy.com/site/the-americans

Oblique view of a schematic

7. Your Art Here billboard hanger

I recently designed a new billboard hanging device and installed it in downtown Bloomington, IN with the help of my brother Reed, and wife Joelle Dietrick.

Stay tuned here for news about Your Art Here and the new billboard by Joelle Dietrick.
http://www.facebook.com/pages/Your-Art-Here/112561318756736

Sitemap of lockheedmartin.com, drawn in red

8. Finally, moving to Berlin for a year on a DAAD fellowship to work on some ongoing projects, including Automata.

More images
https://owenmundy.com/blog/2010/07/new-automata-sitemaps/

I’ll be giving a paper about Automata at the upcoming ISEA2010 conference in Ruhr, Germany.
http://www.isea2010ruhr.org/conference/tuesday-24-august-2010-dortmund

Many thanks to Chris Csikszentmihályi, Director of the Center for Future Civic Media http://civic.mit.edu/ , for inviting me to the MIT Media Lab last August to discuss the project with his Computing Culture Group: http://compcult.wordpress.com/

Schematic for You Never Close Your Eyes Anymore

“Open sourcing” the schematic for the electronic components for You Never Close Your Eyes Anymore.

Picture 5

Products:

RBBB boards (Arduino clone)
custom-designed circuits
– female headers
– TIP31 transistor
– 6-wire Unipolar Stepper motor (48 step Nippon Electric Pulse Motor)
– ULN2803A Darlington Array
– hook-up wire
– various resistors
– LEDs
used camera lenses
aluminum “flat bar”
hose clamps
rubber wine corks
various mounting hardware

Die peinlichsten Einträge bei Facebook, StudiVZ und Twitter

Bild newspaper logo

Give Me My Data mentioned in a Bild article:

Die peinlichsten Einträge bei Facebook, StudiVZ und Twitter The most embarrassing messages on Facebook, StudiVZ, and Twitter (English), May 22, 2010

Read the full translation

(translated from German) “Many users are unaware that their comments will be permanently stored in networks. For example Facebook can retrieve all stored Statusmeldungen. The U.S. Professor Owen Mundy has a developed application, Facebook members ever entered all the data and displays the posts. Under “Select Data”, you select which data you want to see (for example, personal data, status messages). Here also dive old, long deleted on posts, which are provided with a time code. Facebook apparently never forgets.”

New yourarthere.net website is live

After 4 months the new yourarthere.net website and member-run content management system is now live. Thanks to Braylin and Brittany Morales, Beth Lee, and Chris Cumbie for all their hard work.

The site is valid XHTML/CSS and runs on PHP/MySQL using the Codeigniter framework. All the details from our research from inception onward are archived here.

This site is based around the idea that members should have control of the content on the website. Every member has a profile where they can add images, text, tags, and events to promote their artwork or group. Members can create a new profile for every domain they host with yourarthere.nets.

Picture 6

Picture 8

Hello World

Considering sharing the source code behind Give Me My Data on GitHub. Looks like its great for archiving, improving, and sharing…

Posted in code

“Facebook’s Disconnect: Open Doors, Closed Exits” – TechCrunch

Picture 1

More press for Give Me My Data, this time by Rohit Khare from TechCrunch (thanks for the note Evan.).

“Give Me My Data has a more open-ended design that supports exploration and experimentation, in part because it sports an impressive array of formats to download your friend lists and other information for use in other projects such as visualization and charting. Owen Mundy at Florida State originally developed it for his own use, but “this week it kind of exploded because of the interface changes.” That could either be a sign of broader awareness of how much data users share with Facebook; or it could be the acute interest users have in putting profile data that Facebook “lost” right back onto Facebook (a feature that may be coming soon).”

Posted in press

Fading an LED with PWM and a Potentiometer

Using a potentiometer and PWM on an Arduino to fade an LED.

  1. /* POT to LED test -> by Owen Mundy March 11, 2010
  2. from: http://itp.nyu.edu/physcomp/Labs/AnalogIn
  3. —————————————————————*/
  4. int potPin = 0; // Analog input pin that the potentiometer is attached to
  5. int potValue = 0; // value read from the pot
  6. int led = 9; // PWM pin that the LED is on. n.b. PWM 0 is on digital pin 9
  7. void setup() {
  8. // initialize serial communications at 9600 bps:
  9. Serial.begin(9600);
  10. // declare the led pin as an output:
  11. pinMode(led, OUTPUT);
  12. }
  13. void loop() {
  14. potValue = analogRead(potPin); // read the pot value
  15. analogWrite(led, potValue/4); // PWM the LED with the pot value (divided by 4 to fit in a byte)
  16. Serial.println("hello"); // print the pot value back to the debugger pane
  17. delay(10); // wait 10 milliseconds before the next loop
  18. }

Here is the schematic for the above project.

Diagram of a potentiometer wired to an LED

Using PWM and a potentiometer to fade an LED and drive a stepper motor, powered by a Boarduino RBBB.

  1. /*
  2. Owen Mundy
  3. July 29, 2009
  4. p. 262 of Physical Computing
  5. Using BBB to run stepper motor by manually moving steppers
  6. */
  7. int pin1 = 3; // PWM
  8. int pin2 = 5; // PWM
  9. int pin3 = 6; // PWM
  10. int pin4 = 9; // PWM
  11. int ledpin = 13; // LED
  12. int led = false; // LED monitor
  13. int motor_time_lapse = 80;
  14. int potPin = 0; // Analog input pin that the potentiometer is attached to
  15. int potValue = 0; // value read from the pot
  16. int ledPotPin = 11; // PWM pin that the LED is on. n.b. PWM 0 is on digital pin 9
  17. void setup()
  18. {
  19. pinMode(pin1, OUTPUT); // sets the pin as output
  20. pinMode(pin2, OUTPUT); // sets the pin as output
  21. pinMode(pin3, OUTPUT); // sets the pin as output
  22. pinMode(pin4, OUTPUT); // sets the pin as output
  23. pinMode(ledpin, OUTPUT); // sets the pin as output
  24. // initialize serial communications at 9600 bps:
  25. Serial.begin(9600);
  26. // declare the led pin as an output:
  27. pinMode(ledPotPin, OUTPUT);
  28. }
  29. void loop()
  30. {
  31. potValue = analogRead(potPin); // read the pot value
  32. analogWrite(ledPotPin, potValue/4); // PWM the LED with the pot value (divided by 4 to fit in a byte)
  33. Serial.println(potValue);
  34. digitalWrite(pin1, HIGH); // on
  35. digitalWrite(pin2, LOW); // off
  36. digitalWrite(pin3, HIGH); // on
  37. digitalWrite(pin4, LOW); // off
  38. delay(motor_time_lapse); // wait
  39. digitalWrite(pin1, LOW); // off
  40. digitalWrite(pin2, HIGH); // on
  41. digitalWrite(pin3, HIGH); // on
  42. digitalWrite(pin4, LOW); // off
  43. delay(motor_time_lapse); // wait
  44. digitalWrite(pin1, LOW); // off
  45. digitalWrite(pin2, HIGH); // on
  46. digitalWrite(pin3, LOW); // off
  47. digitalWrite(pin4, HIGH); // on
  48. delay(motor_time_lapse); // wait
  49. digitalWrite(pin1, HIGH); // on
  50. digitalWrite(pin2, LOW); // off
  51. digitalWrite(pin3, LOW); // off
  52. digitalWrite(pin4, HIGH); // on
  53. delay(motor_time_lapse); // wait
  54. blink();
  55. }
  56. void blink()
  57. {
  58. if (led == false)
  59. {
  60. led = true;
  61. digitalWrite(ledpin, HIGH); // on
  62. }
  63. else
  64. {
  65. led = false;
  66. digitalWrite(ledpin, LOW); // on
  67. }
  68. }

PHP: Timestamp validator and converter

  1. <?php
  2. /*
  3. * Timestamp validator and converter
  4. * {cc} Owen Mundy ~ owenmundy.com
  5. *
  6. */
  7. function convert_date($string)
  8. {
  9. // make sure it is a string with a number && > 1992-05-07 && < 2033-05-18
  10. if(ctype_digit($string)&&$string>=800000000&&$string<=1999999999)
  11. {
  12. // if so convert it to a human-readable date
  13. $d=date(‘Y-m-d H:i:s’,$string);
  14. return$d;
  15. }
  16. else
  17. {
  18. returnfalse;
  19. }
  20. }
  21. print convert_date("1613199869");
  22. ?>

Thanks

“Facebook App Brings Back Data by Riva Richmond” – The New York Times

The New York Times logo

Facebook App Brings Back Data by Riva Richmond, New York Times, May 1, 2010

“The app is “making hackers out of regular users,” says the developer, Owen Mundy, an assistant professor in Florida State University’s art department. And it’s giving them a way to exercise ownership rights over their data. (After all, Facebook’s Statement of Rights and Responsibilities says users “own all of the content and information” they have posted on Facebook.)”

Give Me My Data updates

Give Me My Data is a Facebook application that helps you reclaim and reuse your facebook data. It is currently in-development but starting to receive an amazing amount of traffic from Facebook users. Apparently the developers at Facebook made a change to the interface this week leaving many users unable to find or display specific information they had added to their pages. Give Me My Data helps users circumvent the problems they are having with the interface by giving them another way to access their data.

Due to the amount of questions I have received about the application I decided to launch a new website to share information about it here: givememydata.com

Give Me My Data website

Give Me My Data app


Facebook application interface

Map of Give Me My Data users


Visitors from this week (via statcounter)

The application profile page
Use the application

Facebook Death Star

Here are two images I created with NodeBox (Python) and PHP (data via facebook API).

Facebook network graph drawn as a large circle


All friends, one common link.

Facebook mutual friends network graph


All the mutual connections I could gather before the script timed-out. Need to make the gathering more efficient.

Brief Notes on Days One and Two at TRANSITIO_MX, by Eduardo Navas

Owen Mundy and Joelle Dietrick at TRANSITIO_MX

“Anemophilous Formula for Computer Art, 2007, by Joelle Dietrick and Owen Mundy. One of my five selections. It consists of a wall projection of Tallahassee’s airport lounge, which hosts a wall size photographic reproduction of Maclay Gardens. The city is often bombarded with pollen during the month of March. The airport lounge offers a reference of nature in an artificial space. Under the concept of non-places, which was my curatorial thematic, this work was placed in Centro Multimedia’s hallway where people constantly walked, to emphasize the use of the original image in a “non-place.””
—Eduardo Navas

Reblogged from http://remixtheory.net/?p=394

TRANSITIO_MX 03 New Media Art and Video Festival: Autonomies of Disagreement

TRANSITIO_MX 03 festival logo

The International Festival of Electronic Arts and Video Transitio_mx is the most important platform in Mexico that expresses and analyses the contemporary practices of artistic creation with electronic media and digital culture. It has a biannual character and has three main activities: a symposium, an exhibition, a contest.

Curator’s Inauguration: * Dissent. Non places & Device Art * (first disagreement)

Artistas: Sabrina Raaf, Paul Ramírez Jonas, Carlos Rosas, Vicky Funari, Sergio De la Torre, Joelle Dietrick, Owen Mundy, Yuri Suzuki, Nova Jiang, Ariel Guzik y Gilberto Esparza.

Curaduría: Machiko Kusahara y Eduardo Navas

Activity: Muestra internacional

Venue: CENART/Galería Manuel Felguérez/Galería AB/Área de Camerinos

drain: Journal of Contemporary Art and Culture launches Issue #10 COLD

Cover of drain, Issue 10: Cold

drain: Journal of Contemporary Art and Culture is pleased to announce the launch of Issue #10 COLD

A collective behavior of baroque, abundant consumption has led to an economic and climatic meltdown. The push toward a frenzied emphasis on growth & mass consumption has manifested a cascade of aesthetic opulence in the form of brightly colored advertisements & plastic disposable goods. In the wake of this recent collapse; the purity, simplicity & refinement of a calmer and cooler culture is now alluring. Can transparent, clear and meditative practice counter this lavish, hot & hysterical culture? Subverting the old notion of icy bureaucratic indifference remediated through hot empathy, might the forces of hot commodity be slowed by an intervening cold? Is it possible for the lucidity of coolness to connect cultures & move us into the future?
This issue of Drain presents a collection of critical writing and art practices that has touched on many continents, climates and cultures to transform the way in which we think about how various degrees of cold collaborate.

We are pleased to present Celina Jeffery and Owen Mundy as our feature writer and artist.

This issue also includes essays by Edwin Janzen and Eduardo Navas, as well as interviews by Scott Waters with artist Andrew Morrow, Shannon Stratton with Michael Milano; reviews by Gean Moreno (on Ernesto Oroza) and Edith-Anne Pageot (on Construction Work: Lorraine Gilbert, Josée Dubeau, Jinny Yu).

In our Creative Writing section, we bring to you works by Adelheid Mers, Ellie Krakow, Kathryn Yusoff and Allison Kudla.

Art projects, include two sections; Freeze – with works by Leah Bailis, Lou Mallozzi, Sally Grizzell Larson, Noelle Mason and Deborah Wing-Sproul and Thaw – with works by Jonathan Van Dyke, Nitin Mukul, Kim Jackson DeBord, Rachel Moore, Adrian Göllner and Living Lenses

While this issue explored Cold as an aesthetic experience and concept of our times, THAW – The Meltdown- A Panel and discussion forum held at Atlanta Contemporary Art Center, took this investigation a step further through conversation that addressed the aftermath of the residual coldness.

We wish you an enjoyable read and look forward to contributions from you for our upcoming issues on Militarism and Rewind respectively.

Drain would not have been possible without the support of you, our patrons. Thank you for your continued support!

This issue was curated by Avantika Bawa and Stuart Keeler.

Managerial board: Avantika Bawa, Celina Jeffery, Adrian Parr

drain – Journal of Contemporary Art and Culture
www.drainmag.com

BBB (Freeduino) and stepper motor test

Test with BBB (Freeduino) board, Darlington H-Bridge, Mabuchi # PF35T-48L4 stepper motor. Many thanks to Tom Igoe and his Physical computing book.

  1. /*
  2. Owen Mundy
  3. July 29, 2009
  4. p. 262 of Physical Computing
  5. Using BBB to run stepper motor by manually moving steppers
  6. */
  7. int pin1 = 3; // PWM
  8. int pin2 = 5; // PWM
  9. int pin3 = 6; // PWM
  10. int pin4 = 9; // PWM
  11. int ledpin = 13; // LED
  12. void setup()
  13. {
  14. pinMode(pin1, OUTPUT); // sets the pin as output
  15. pinMode(pin2, OUTPUT); // sets the pin as output
  16. pinMode(pin3, OUTPUT); // sets the pin as output
  17. pinMode(pin4, OUTPUT); // sets the pin as output
  18. pinMode(ledpin, OUTPUT); // sets the pin as output
  19. }
  20. void loop()
  21. {
  22. for (int i=0; i<24; i++)
  23. {
  24. digitalWrite(pin1, HIGH); // on
  25. digitalWrite(pin2, LOW); // off
  26. digitalWrite(pin3, HIGH); // on
  27. digitalWrite(pin4, LOW); // off
  28. delay(10); // waits for a second
  29. digitalWrite(pin1, LOW); // off
  30. digitalWrite(pin2, HIGH); // on
  31. digitalWrite(pin3, HIGH); // on
  32. digitalWrite(pin4, LOW); // off
  33. delay(10); // waits for a second
  34. digitalWrite(pin1, LOW); // off
  35. digitalWrite(pin2, HIGH); // on
  36. digitalWrite(pin3, LOW); // off
  37. digitalWrite(pin4, HIGH); // on
  38. delay(10); // waits for a second
  39. digitalWrite(pin1, HIGH); // on
  40. digitalWrite(pin2, LOW); // off
  41. digitalWrite(pin3, LOW); // off
  42. digitalWrite(pin4, HIGH); // on
  43. delay(10); // waits for a second
  44. }
  45. blink();
  46. for (int i=0; i<24; i++)
  47. {
  48. digitalWrite(pin1, HIGH); // on
  49. digitalWrite(pin2, LOW); // off
  50. digitalWrite(pin3, LOW); // off
  51. digitalWrite(pin4, HIGH); // on
  52. delay(10); // waits for a second
  53. digitalWrite(pin1, LOW); // off
  54. digitalWrite(pin2, HIGH); // on
  55. digitalWrite(pin3, LOW); // off
  56. digitalWrite(pin4, HIGH); // on
  57. delay(10); // waits for a second
  58. digitalWrite(pin1, LOW); // off
  59. digitalWrite(pin2, HIGH); // on
  60. digitalWrite(pin3, HIGH); // on
  61. digitalWrite(pin4, LOW); // off
  62. delay(10); // waits for a second
  63. digitalWrite(pin1, HIGH); // on
  64. digitalWrite(pin2, LOW); // off
  65. digitalWrite(pin3, HIGH); // on
  66. digitalWrite(pin4, LOW); // off
  67. delay(10); // waits for a second
  68. }
  69. blink();
  70. for (int i=0; i<6; i++)
  71. {
  72. digitalWrite(pin1, HIGH); // on
  73. digitalWrite(pin2, LOW); // off
  74. digitalWrite(pin3, HIGH); // on
  75. digitalWrite(pin4, LOW); // off
  76. delay(10); // waits for a second
  77. digitalWrite(pin1, LOW); // off
  78. digitalWrite(pin2, HIGH); // on
  79. digitalWrite(pin3, HIGH); // on
  80. digitalWrite(pin4, LOW); // off
  81. delay(10); // waits for a second
  82. digitalWrite(pin1, LOW); // off
  83. digitalWrite(pin2, HIGH); // on
  84. digitalWrite(pin3, LOW); // off
  85. digitalWrite(pin4, HIGH); // on
  86. delay(10); // waits for a second
  87. digitalWrite(pin1, HIGH); // on
  88. digitalWrite(pin2, LOW); // off
  89. digitalWrite(pin3, LOW); // off
  90. digitalWrite(pin4, HIGH); // on
  91. delay(10); // waits for a second
  92. }
  93. blink();
  94. for (int i=0; i<6; i++)
  95. {
  96. digitalWrite(pin1, HIGH); // on
  97. digitalWrite(pin2, LOW); // off
  98. digitalWrite(pin3, LOW); // off
  99. digitalWrite(pin4, HIGH); // on
  100. delay(10); // waits for a second
  101. digitalWrite(pin1, LOW); // off
  102. digitalWrite(pin2, HIGH); // on
  103. digitalWrite(pin3, LOW); // off
  104. digitalWrite(pin4, HIGH); // on
  105. delay(10); // waits for a second
  106. digitalWrite(pin1, LOW); // off
  107. digitalWrite(pin2, HIGH); // on
  108. digitalWrite(pin3, HIGH); // on
  109. digitalWrite(pin4, LOW); // off
  110. delay(10); // waits for a second
  111. digitalWrite(pin1, HIGH); // on
  112. digitalWrite(pin2, LOW); // off
  113. digitalWrite(pin3, HIGH); // on
  114. digitalWrite(pin4, LOW); // off
  115. delay(10); // waits for a second
  116. }
  117. blink();
  118. }
  119. void blink()
  120. {
  121. digitalWrite(ledpin, HIGH); // on
  122. delay(1000); // waits for a second
  123. digitalWrite(ledpin, LOW); // off
  124. }

Aspect: The Chronicle of New Media Art _VOL.12 Fall 2008

Cover of Aspect: The Chronicle of New Media Art, Volume 12

Aspect: The Chronicle of New Media Art
Volume 12: Vital presents nine artists exploring that which is essential, grave, indispensable, and/or critical to existence. Mirroring preconceived notions of reality, these works re-imagine new deities, investigate animal nature and human desire, contemplate the body vs. the psyche, meditate on the circular nature of our existence, and in one case force us to witness the final minutes of life. We confront our own profound mortality, experience fear and displacement within a technological landscape, and consider the sustaining reciprocal relationship of artist and gallery.

  • 9-11/9-11 by Mel Chin w/ commentary by Ute Meta Bauer
  • Liberation of the Paranoid World; Gargoyling; Pressing the Vessel by Goatsilk w/ commentary by Ricardo de Mambro Santos
  • Primate Cinema by Rachel Mayeri w/ commentary by Meredith Tromble
  • Sequence of Good Intentions by Park McArthur w/ commentary by Michael O’Malley
  • Bathyscape by Andrew Mowbray w/ commentary by Matthew Nash
  • Anemophilous Formula for Computer Art by Joelle Dietrick and Owen Mundy w/ commentary by Eduardo Navas
  • Freund Hein by Elisabeth Smolarz w/ commentary by Angelique Campens
  • Polar Bear God by Deke Weaver w/ commentary by Una Chaudhuri
  • excerpts from Untitled (Red); Untitled (Blue); Tell Me; Ned Talking by Suara Welitoff w/ commentary by Andrew Witkin

Anemophilous, from Aspect: The Chronicle of New Media Art, Volume 12

Anemophilous Formula for Computer Art by Joelle Dietrick and Owen Mundy
custom software
2007

Inspired by Jim Campbell’s Formula for Computer Art and Tallahassee’s annual sea of tree pollen, Mundy and Dietrick created a data-based animation referencing new forms of cross-pollination and re-use. Made to be meditative and aesthetically pleasing, the format parodies computer art that simply crunches numbers to create useless forms. The diligently recorded data of the National Allergy Board guides the animation down a predictable path and stands in stark contrast to the chaos of everyday life. The project calls into question our obsession with mapping nature, as if grasping its sublimity would be essential to finding lifelong satisfaction.