We will be hosting Code Across America in Philadelphia

Code for AmericaSimilar to last year, I’ve volunteered the Azavea office space for a Code for America hackathon at the end of February. This will coincide with a coordinated national event, a series of CityCamp hackathons that will also be known as Code Across America, on Saturday, Feb 25. Coffee and bagels will be served at 9am, festivities will begin around 9:30am and we will be working hard on civic apps all day.  This will be part of a national week of civic innovation.  We’ll build apps, liberate data, and develop the skills we need to create an ecosystem for civic engagement.

We hope you’ll join us.  You can sign up for the Philadelphia event at: http://codeforamerica.ticketleap.com/codeacrossamerica2012/

If you are interested in other cities, there’s more info at:  http://codeforamerica.org/code-across-america/

Do You Know Where Your Nearest AED Is? There is an App for That!

Automatic External Defibrillators (AEDs) are everywhere around us, in airports, schools, gyms, and workplaces.  It has been proven time and time again that these devices can save lives as they deliver electric shocks to victims of cardiac arrests.  Such shocks are most effective in the first minutes after someone collapses.  Yet, there is no comprehensive map of such devices available to the public.  As a result, AEDs are often not used when they are most needed either because witnesses of a cardiac arrest incident do not know there might be an AED close by or that they should be looking for one.

A team of doctors and researchers at the University of Pennsylvania School of Medicine set out to address this issue and create awareness for AEDs by creating a comprehensive national database of AEDs that could be searched geographically on a map based on someone’s location at any given time.  They initiated MyHeartMap Challenge, a pilot project that will hopefully be taken nation-wide.

screenshot of MyHeartMap app

MyHeartMap Challenge is a crowd-sourcing contest to locate, photograph, and map out as many AEDs in the Philadelphia region as possible.  It is modeled after the DARPA Network Challenge, a crowd-sourcing experiment in which social media users raced to be the first to submit the locations of 10 moored, 8-foot, red, weather balloons at 10 fixed locations throughout the United States.  The MyHeartMap Challenge team is inviting the public to gather as much information as possible about AEDs around them.  The individual or team that finds the most AEDs will win $10,000 while other participants will win $50 if they are the first to identify one of the designated ‘golden devices’.

To this end, Azavea built three applications: two mobile apps — one for the iPhone, the other for the Android — and a web application.  With a free registration, contest participants can geocode their photos and register information about the AEDs such as manufacturer and condition of the device.  The data can be sent to the MyHeartMap Challenge team via the mobile apps themselves or the challenge’s website: http://philly.myheartmap.org/  The data collected will be used to create an updated database of locations of all public AEDs in the Philadelphia region with a person’s GPS coordinates to help them locate the nearest AED during an emergency.

Bennet Huber, one of the software developers who worked on this project, explains the development process:

In order to avoid having to create essentially the same app on three different platforms (web, Android, iOS), we decided to use PhoneGap so we could build our mobile apps in HTML, CSS, and JavaScript.  This meant we would essentially be creating two separate, yet intimately related, web apps: one for the web site and one as the core of the mobile apps.  We recognized early on that we would probably want to be able to share JavaScript code between the two, so we elected to use a JavaScript module loader.  The one we settled on was RequireJS , which implements the AMD API.  We chose it because it solved many of the problems we foresaw arising:

  • The AMD API it implements provides a good way for modularizing JavaScript and defining file dependencies, something that is notoriously difficult to do without mixing up dependencies in HTML <script> tags
  • jQuery Mobile – the UX framework we used for our mobile apps – does some rather weird things for the sake of performance, one of which is never actually changing pages after the app starts but instead modifying the DOM and dynamically inserting page contents on the fly.  Since page loading is so different, it is difficult to specify page specific JavaScript dependencies in the HTML files themselves.  The normal method of working around this when using JQM is to simply place all one’s JavaScript in a single file and load it when the app starts, but due to the complexity of this project we wanted to avoid this if at all possible, and a lazy loader for JavaScript files, which RequireJS provides, was a good solution.
  • RequireJS supports virtual names for files through its package system.  This made it easy for us to create a common JS library between the mobile and web apps that could be easily referenced without worrying about physical file paths, and therefore made file management much easier (no symlinks or git submodules required!).  It also makes refactoring much easier, should one decide to rename or relocate files.
  • It supports loading HTML files as JS strings, making templates a breeze.
  • It has an integrated build system, which allowed us to create minified, optimized builds of our files for the entire app when we were done with minimal additional effort.

It took us a few tries before we came up with a good way of using RequireJS effectively since we had never used the AMD API and the RequireJS API actually changed during our project’s development.  It was worth the effort, though, because our resulting paradigm is simple, powerful, generic, and should be a useful base for future projects.  It consists of a class inheritance structure that allowed us to easily create page specific JavaScript modules dependent upon numerous other modules in different places, which are either loaded separately and lazily during development or minified together at release time.  All this is accomplished entirely within our JavaScript files and with minimal extra configuration.

Unfortunately, the details are too complicated to go into here (perhaps in a future Labs blog post!), but suffice it to say we’re very happy with the way our JavaScript architecture turned out with RequireJS and will likely continue using it in the future.

The MyHeartMap Challenge project is funded by the Robert Wood Johnson Foundation; Physio Control; the Medtronic Foundation; the HeartRescue Project; Zoll; Cardiac Science; Philips and intramural Penn funding.  Follow the project on Twitter at @myheartmap

And now, we hope you go out into the wild streets of Philadelphia and start mapping some AEDs. Who knows, you might even win $10,000 in the process.

Azavea web blackout in protest of SOPA and PIPA

Friends of Azavea –

Today Azavea will be joining other technology firms and blacking out our web sites in order to protest pending legislation in the U.S. Congress, specifically the PIPA and SOPA acts.  We have never shut down our web site.  We are a business, and our web site and blogs are an important way that we communicate with people about our work.  So we do not make this decision lightly.  But we believe that nothing less than civil liberties and the dynamic ecosystem of the Internet is at stake.

There has been a fair amount of reporting on the potential impact of the PIPA (in the Senate) and the SOPA (in the House of Representatives), so I will not go into detail about the contents of the proposed laws.  But I will say that in an effort to combat piracy of movies, music and other digital content, these acts threaten to undermine our basic civil liberties; institute far-reaching censorship without due process; stifle technology innovation; place a heavy burden on current and future web companies; encourage the censorship activities in China, Iran and other states; and undermine the very architecture of the Internet.

The organizations in favor of these laws are the movie, music and other content development industries.  We believe those businesses have a right to exist.  Further, we believe they should continue to develop compelling material and make money from those creations.  We also believe that theft of that copyright material is wrong.  But we do not agree that preventing that theft is justification for imposing censorship, circumventing due process, or undermining the architecture of the Internet.  There are targeted ways to shut down foreign websites that service pirated material without asking American companies to censor the Internet.

Private and non-profit firms have all taken stands in the past for one political position or another.  They circulate petitions and raise money for candidates.  Shucks, we help them, with services like our Cicero API.  But we think this situation is different.  We believe the very fabric of our democracy is at risk.  We agree with Cory Doctorow, that the internet is not some kind of “glorified form of cable TV”, but the emerging nervous system of a connected planet, and we undermine it at our collective risk.

After today, there will be howls of protest.  People will cry that the technology companies are circumventing the democratic process by leveraging their platforms to incite mass protest.  But the companies that support these acts are entertaining members of Congress, hiring their staff, and donating to their campaigns.  We ask for none of those things.  Rather, we ask that you participate as a citizen and call, write, or email your congressional representatives and express your opinion.  Even if you disagree with our stance, you will strengthen our democracy by raising your voice.

If you are interested in learning more about this issue, here are some resources:

If you are interested in registering your voice, here are some places to do so:

Sincerely,

Robert

Cicero is Tracking Legislative Boundary Data and Schedules FOR You

As newly approved redistricted legislative district boundary plans are released our spatial analysis team has been running compactness analysis on each one (see Daniel McGlone’s recent blog on his analysis of the approved PA congressional boundaries – http://www.azavea.com/blogs/atlas/2011/12/pennsylvania-congressional-redistricting-we-have-a-plan/). Our growing collection of official, state-approved legislative district boundaries is not just tickling our intellectual fancy – We are also methodically adding the new boundary files to our Cicero API data collection and making it available through a new call we’ve recently added to the API.

This new call has proven to be a big hit with organizations wanting to preemptively match their constituents to the districts they will belong to when the new district boundaries take effect.  This enables organizations to prepare their constituent databases for rapid call-to-action campaigns directed at new legislatures, analyze their constituents by districts for the next election cycle, and more.

To use the GeocodingService or MapGeneration service to access newly drawn districts based on the 2010 census:

  • Simply append the suffix “_2010″ to the DistrictType parameter in any method (for example, you would use the DistrictType NATIONAL_LOWER_2010 to see the new House districts and STATE_UPPER_2010 to see new State Senate districts).
  • ALL_2010 will return all the new districts available for any given location.
  • If new districts are not yet available for a given location, the SOAP response will not return district responses for the location.

We are tracking when each state’s new legislature officially takes office (in the majority of cases, this is when the new boundaries take effect). As each state takes office, we will be moving the 2010 boundaries to the current boundary dataset.  In other words, keep using the DistrictType calls the way you are using them now and we will do the updating work for you!

New states will continue to be added as we receive and process the data.

Questions?  Feel free to contact us: http://www.azavea.com/products/cicero/contact/

GovFresh Awards Announced – DistrictBuilder and OpenDataPhilly are Winners!

GovFresh 2011 logoThe Annual GovFresh awards for civic technology were announced today, and I’m proud to announce that a couple of Azavea projects (and several other Philadelphia efforts) were among the recipients.  The awards (skipping the unrelated ones) included:

Congratulations to all of the award-winners.  While I think there were many cities nominated, among both the winners and top vote-getters in the public voting, I thought there were particularly strong showings for:

  • New York City
  • Austin
  • Chicago
  • Philadelphia
Are these the centers of civic innovation?

 

Civic Commons Marketplace and Azavea’s Year in Open Source

Civic Commons logo

Today is an exciting day for the civic technology community. Civic Commons is celebrating the public launch of its new Marketplace, and we are thrilled that some of our solutions have been listed alongside a broad range of compelling software projects.

I wrote up several of our commercial products (HunchlabSajara, and Cicero) and open source solutions (DistrictBuilder and OpenTreeMap) and submitted to the Civic Commons Marketplace back in October, so it’s great to see the results made available to the public.

On a more personal level though, last week I finally completed a 77 page senior thesis for my undergraduate degree in “Growth and Structure of Cities” at Haverford College.  Entitled Programming Politics: Building an Open Government through Free and Open Source Software, in it I make the case that an element of the Open Government movement is (and should continue to be) Free and Open Source software. If we advocate for our governments to be open to new forms of digital civic engagement, release open data, and use open standards, but then we as citizens are only able to engage officials and analyze data with closed source code…is Open Government actually all that open?

In the same thesis, I also argue that the “software caucus” of the Open Government movement cannot achieve all its goals through the work of citizen-built open-source projects alone. Indeed, the Free and Open Source software movements have a long history of valuable stewardship by “corporate citizens” too.  Azavea is no stranger to contributing to open source projects, and I am proud to work at a company that blends its B Corporation social mission with a committed strategy of using and contributing back to the open source commons in its work, as well as an interest in being an active member of the local tech and non-tech communities in Philadelphia.

The Civic Commons Marketplace is not all about open source; and neither is Azavea. Both organizations, though, reflect strong commitments to building the same civic technology community:  the Marketplace in facilitating coordination and communication among its members, and Azavea in being an active member that gives back every chance we can.

This year, we have contributed a lot. In addition to sponsoring and attending a number of events, like the OSGeo Code Sprint(which we will be doing again in 2012), the OpenStreetMap State of the Map conference in Denver, and the FOSS4G conference, we announced a techSoup partnership giving free Cicero credits to nonprofits. Also, a bunch of Azavea staff contributed to several local hackathons like Apps For Septa and, just last weekend, Random Hacks of Kindness Philly.

Code for AmericaBefore the year started though, we had to give up one of our own: Aaron Ogle was accepted as a 2011 Code for America fellow. He was able to pay us a visit in February though, along with the rest of the CfA Philly team, when Azavea hosted Philly Data Camp at our offices – a one day hackathon on civic data. Gems like PhillyAPI came out of that event, itself an amalgam of work done by CfA fellow Max Ogden and another open source effort out of Portland, PDX API.

Our data hacking days were just beginning though. As part of Philly Tech Week in April, in what techPresident.com’s Nick Judd labeled as more than an open data portal but a real “open government community building exercise,” we jointly launched OpenDataPhilly.org with a number of partners. The public-private regional catalog attempts to be a community-supported clearinghouse of data, APIs, and apps submitted by nonprofit groups, government, businesses (like us!), and individual coders. We even open-sourced the platform behind it, Open-Data-Catalog, which was mentioned at a conference in Berlin and picked up by a group in Chattanooga, Tennessee.

In July, we open sourced another platform dealing with a specific kind of data:  trees. OpenTreeMap, which now powers PhillyTreeMapGreenprint maps in Sacramento, CA, and the San Francisco Urban Forest Map, has made a splash in the community forestry community.

We put our coalition-building, data-gathering, and platform-building experience together in August and launched a Philly-specific implementation of DistrictBuilder (developed as open source, in collaboration with the Public Mapping Project) in a month long contest: FixPhillyDistricts.com. This project is near and dear to my heart, having served as an important case study in my Open Government thesis. With the press help of our partners WHYY, the Daily News, Technically Philly, and the Penn Project for Civic Engagement, over 400 users worked on and submitted 70 complete City Council district plans to our contest. City Council met its redistricting deadline on time (the first time in over 30 years), and didn’t produce a completely embarrassing result.

Open Data RaceHaving just finished the FixPhillyDistricts contest, the OpenDataPhilly team would launch the Open Data Race – bringing the contest model to open data for the first time.  A ton of nonprofits brainstormed and proposed new datasets they would like to see opened.  Several winners were announced at the end of October and now the OpenDataPhilly team is working with the City of Philadelphia to see those data sets released.

Which brings me back to the Civic Commons Marketplace release.  Civic Commons is an interesting organization. It’s a new non-profit that was started this year by Code for America and OpenPlans to promote the development and use of open platforms by government agencies.  The Marketplace is a catalog of software tools that solve specific problems for government.  On Day 1, there are already 193 apps.  We look forward to seeing this becoming a platform for matching government needs with useful software.  You can find listings for some of ours at:

Pennsylvania Congressional Redistricting: We Have a Plan!

After months of only rumors leaking out of the Pennsylvania Capitol about the redrawing of the state’s congressional districts, a map was finally released yesterday. It was supposed to be released last week. Then it was delayed until Monday. Then Tuesday. Then a PDF came out yesterday and the shapefile, which allows us to do a geographic analysis, early this morning. The Cicero team couldn’t wait to get our hands on it!

At first glance we were taken aback, most notably by District 7, which got more “Wow what is that?” remarks in the office than the earthquake. There is a lot to say about this monstrosity, certain to be a poster child for future gerrymandering studies. We’ve been able to perform some basic GIS analysis on the new districts today and will present some findings below. Next week, we’ll write about some of the methods used to create the numbers we are presenting.

First off, here’s the numbers you have been waiting for: compactness, demographics and voting tendency for the current and proposed congressional districts:

UPDATE 12/19/2011: We have added statistics for the Democratic congressional redistricting proposal:

As you can see, using both the Polsby-Popper and Schwartzberg methods of calculating district compactness (read up about how those are calculated by taking a look at our gerrymandering white paper), the proposed congressional districts are slightly less compact than the districts currently in effect. While that may not seem like a lot, keep in mind that Pennsylvania’s current districts are already some of the least compact in the nation, according to our study. District 7, represented by Patrick Meehan (R), takes the honor of having the eighth least compact congressional district in the nation. Of all the newly drawn congressional districts, it is the fifth least compact in the nation. Have a look for yourself:

» Continue Reading