From the “Things-that-would’ve-benefited-people-had-I-posted-this-weeks-ago” Department:
At the suggestion of Professor Owens, Shaping the Nation now has source code hosted on Github as kmlmap. I don’t have a license selected for it — I believe the existing licensing of the projects it’s made of will determine whether it’s GPL/MIT/WTFPL licensed.
In the next couple of days, I’ll be adding documentation and usage examples at chrisdroukas.github.com/kmlmap. If you’d like to play with your own hosted version of Shaping the Nation, head over to Github, download the ZIP archive and deploy it to your host of choice.
Additional documentation for the components in this project are available here:
I was inspired to do this project based on the class presentation of Maps of War, in which a number of different historical events are overlaid on a Flash map. I was unimpressed by both the technology behind it and the features the site included — particularly that there were no controls or features to provide additional information on what was happening. I made sure that Shaping the Nation would provide a level of flexibility and semantic design that allowed for interactivity to live front-and-center.
I’m using this post as both a way to announce it, and as a look into the process behind the website itself.
I’m really pleased with the way Shaping the Nation turned out. It was an exciting and challenging exercise getting the multiple components behind the project to work in synchronization to display the information I wanted it to. I think Shaping the Nation demonstrates a solid proof-of-concept despite the absence of complete content.
In the process of making Shaping the Nation, I learned a great deal about not only the history of this nation, but about semantic and modern methods of displaying historical information on the Internet. Any further expansion of this project should reflect a likely target audience: given the simplicity and ease of access in this case, primary school students.
Starting out, I didn’t find that WordPress would provide the flexibility or out-of-the-box features I was looking for in this project. Instead, I created a subdomain on my own hosted site and uploaded Twitter’s Bootstrap to provide a complete CSS/JS/HTML skeleton for the site. Bootstrap includes a well-designed grid system and layout components to rapidly prototype the site’s design and functionality. I highly recommend Bootstap for any project that needs to be designed quickly and efficiently — the level of customization and flexibility in the framework is amazing, and everything’s very well documented. Bootstrap has a form of community helpdesk on Github as well.
Working with timemap.js was really interesting. It’s well documented and the project’s authors provide examples, but getting it to do things outside what’s documented was a fun challenge. In the early stages of this project, I had to determine the most logical way to display the data I wanted on the map. I had prior knowledge of the Google Maps API and knew that the Maps platform supports polygonal shapes as a data overlay. The problem, though, was that polygons drawn in Google Maps itself are proprietary — they’re linked to your Google account and the information is stored on Google’s servers.
The solution to the problem of exporting polygons came from a bit of research. In Google Maps’ bigger brother Google Earth, it’s possible to draw polygons and export them to a filetype called KML. KML — Keyhole Markup Language — parallels XML data structures while providing geographic information to whatever the file is describing. In my case, I needed a dataset describing the shapes and locations of the 50 states, and KML delivered. I began hand-drawing the polygonal outlines of the states to export to KML.
<?xml version="1.0" encoding="UTF-8"?> <kml xmlns="http://www.opengis.net/kml/2.2"> <Document> <Placemark> <name>New York City</name> <description>New York City</description> <Point> <coordinates>-74.006393,40.714172,0</coordinates> </Point> </Placemark> </Document> </kml>
A few days later, I returned to the drawing board after further consideration on hand-drawn polygonal states. Because both Maps and Earth already know where the states are, why should I draw them inaccurately by hand? Looking through Google’s developer documentation, I found a link to the 50 states as a single KML file, complete with dates of incorporation.
My first thought came from an earlier mapping project shown to the class a few weeks ago. When the map updated, the URL changed — I wanted this functionality so Shaping the Nation could have browsing capabilities in the sidebar. I added a list of decades and the states that were incorporated inside those decades, then proceeded to look up best practices for manipulating URL states. Conveniently enough, timemap.js includes an optional URL state manipulation script called state.js that allows data on the map to be presented according to the structure of the URL.
http://maps.districtbuilt.com/#zoom=5¢er=38.102185,-77.96697&date=1889&selected=state-1 > #zoom=integer > ¢er=long,lat > &date=integer > &selected=string
State.js allows for manipulation of the map and timeline in synchronization, all from the URL. It’s an AJAX function, so URL state changes load the new data without refreshing the page. The intention of my project is to continue to build stateful URLs into the sidebar to load each individual state — unfortunately, finding latitude/longitude coordinates and appropriate zoom level is very time consuming for each individual state, especially when factoring the tooltip popup.
On the subject of popups, the plan for Shaping the Nation is to include basic data about each state on selection. In addition to the year of incorporation, each tooltip will include a brief note about incorporation and a link to relevant information. This can be built into the KML data and interpreted through timemap.js. Given the natural brevity of a tooltip and the simplicity of the application, a likely audience for Shaping the Nation is young children who would benefit from an interactive visualization of our nation.
Moving forward, I’d like to ask childhood educators how this application could be better suited for the classroom. I’d like to know what additional data could/should be added to it in addition to the core timeseries and state information. I hope you all like it and I’m eager to hear your feedback on the project.
So totally relevant to yesterday’s show-and-tell about game emulation and data forensics, some fans of Goldeneye for N64 found a working emulator of a ZX Spectrum 48k hidden inside the game. Apparently the developers wanted to see if emulating an older console was possible on N64 and left the files in the Goldeneye ROM.
For anyone who’s ever played Donkey Kong 64, the ZX Spectrum 48k emulator makes an appearance as a playable arcade cabinet in that game — both games were made by development house Rare.
So to recap, people running an N64 emulator on their computer discovered a ZX Spectrum 48k emulator in their emulated game.
It’s an odd question, but the answer is startling.
A few years ago, a physicist named Russell Seitz asked himself, “How much does the Internet weigh?” By which he meant, how much does the whole thing, this vast interlocking web of content pulsing through 75 to 100 million servers staggered all over the world, what’s its total weight?
The Internet is not something I would ever think to weigh. It’s like weighing a radio program. Why bother?
But Seitz did the math, and discovered that while the Internet sucks up gobs and gobs of energy, something like “50,000,000 horsepower,” if you put it on a scale, it does have a weight. The whole thing, he says, weighs “two ounces.”
Yup. That’s all.
Seitz says it weighs about as much as a fat strawberry. Others, recalculating, say the Internet’s even lighter, more like a teeny grain of salt.
How could something so huge in our lives weigh so little?
The answer is the Internet runs on electrons. That’s how the information is stored. And electrons are very, small. But they do have mass. Einstein taught us that. So it’s possible to take all the energy (E) powering the internet and, using Einstein’s equation, (E=mc2) turn that energy into something we can weigh.
And it turns out a lot of energy doesn’t weigh very much. [See my footnote for the mathematical details.] Consider, for example, an email message.
How Much Does An Email Weigh?
Make it an ordinary email (50 kb) like the one you wrote to a friend today. According to a new video from vsauce making the rounds, to store a typical email takes about 8 billion electrons.
Eight billion sounds like big number, but put them on a scale, and they weigh only about “two ten thousandths of a quadrillionth of an ounce.”
One Email = ‘Two Ten Thousanths Of A Quadrillionth Of An Ounce’
Sure, sure, but remember, the Internet contains gazillions of emails and videos and music files, and porn and libraries, and e-chat, and photos of grandchildren, boyfriends, girlfriends, and endless meditations on Justin Bieber. If we add all that up, how many electrons does it take to store the entire Internet? Hmmm?
Well, if we weigh everything — all five million terabytes of information, what do we get?
Again, not a lot: About 0.2 millionths of an ounce.
Minus the servers, information on the Internet is practically weightless.
And yet, does weight matter? Not really. Look what weightlessness can do.
When those electrons produce an image of a young woman lying shot in the street in downtown Tehran, shot by a sniper, falling to the ground, dead, that picture may weigh next to nothing, but the hundreds of thousands of people who see it are altered, literally changed, by what they’ve seen.
That photo creates a flood of electricity in their heads, altering brain cells, which sprout new dendrites that spit infinitesimally small chemicals from cell to cell, so now that woman in Tehran is locked in memory, etched into all those brains.
And the bearers of those brains want to share what they’ve seen, so the image gets passed to more and more people, and is copied, brain to brain to brain, machine to machine to machine.
This happened not just to the image from Teheran, but also that picture of that cop in California zapping kids with pepper spray, to Moammar Gadhafi surrendering, to women being stripped an beaten in Cairo’s Tahrir Square, to all those folks challenging Putin in Moscow.
Once things are seen and shared, people react, people gather, people march, people fight, and sometimes figures of enormous weight, a Gadhafi, a Mubarak, even a Putin can be toppled, or shaken.
And the electrons that make that happen, what if their weight is 0.0000000000000000001 grams? So what? You can weigh the Internet till you are blue in the face, but the grams won’t tell you anything important.
The Internet connects people. What it is doesn’t matter. What it carries, that matters. Ideas aren’t like chairs or tables. They have their own physics. They make their own weight.
So the Internet weighs about as much as a strawberry? It can still stop tanks.
Ask yourself: How much does “of the people, by the people, for the people” weigh?