Thursday, June 9, 2011

Google Maps Tells You Just How Late Your Bus Is


Waiting for your bus can sometimes seem like slowly dying in a desert as you watch vehicle-shaped mirages glimmer on the horizon. As a remedy for that transit-parched feel, Google is integrating live transit updates into Maps for mobile and desktop.
Before you get all excited, the update is only available in four U.S. cities (Boston, Portland, San Diego and San Francisco) and two European cities (Madrid and Turin), and for Google Maps for mobile on Android devices (although it will work on mobile browsers, and it doesn’t require any downloads to access).
Residents of those cities will be able to see delays and alerts when clicking on transit stations or planning routes, as well as “live departure times.”

DSPL: Dataset Publishing Language



DSPL stands for Dataset Publishing Language. Datasets described in DSPL can be imported into the Google Public Data Explorer, a tool that allows for rich, visual exploration of the data.


This tutorial provides a step-by-step example of how to prepare a basic DSPL dataset.

A DSPL dataset is a bundle that contains an XML file and a set of CSV files. The CSV files are simple tables containing the data of the dataset. The XML file describes the metadata of the dataset, including informational metadata like descriptions of measures, as well as structural metadata like references between tables. The metadata lets non-expert users explore and visualize your data.

The only prerequisite for understanding this tutorial is a good level of understanding of XML. Some understanding of simple database concepts (e.g., tables, primary keys) may help, but it's not required. For reference, the completed XML file and complete dataset bundle associated with this tutorial are also available for review.


Before starting to create our dataset, here is a high-level overview of what a DSPL dataset contains:
General information: About the dataset
Concepts: Definitions of "things" that appear in the dataset (e.g., countries, unemployment rate, gender, etc.)
Slices: Combinations of concepts for which there are data
Tables: Data for concepts and slices. Concept tables hold enumerations and slice tables hold statistical data
Topics: Used to organize the concepts of the dataset in a meaningful hierarchy through labeling


To illustrate these rather abstract notions, consider the dataset (with dummy data) used throughout this tutorial: statistical time series for unemployment and population by country, and population by gender for US states.





This example dataset defines the following concepts:
country
gender
population
state
unemployment rate
year


Concepts that are categorical, such as state, are associated with concept tables, which enumerate all their possible values (California, Arizona, etc.). Concepts may have additional columns for properties such as the name or the country of a state.


Slices define each combination of concepts for which there is statistical data in the dataset. A slice contains dimensions and metrics. In the above picture, the dimensions are blue and the metrics are orange. In this example, the slice gender_country_slice has data for the metric population and the dimensionscountry, year and gender. Another slice, called country_slice, gives total yearly population numbers (metric) for countries.


In addition to dimensions and metrics, slices also reference tables, which contain the actual data.


Let's now walk step-by-step through the creation of such a dataset in DSPL.
To get started, we need to create an XML file for our dataset. Here is the beginning of a DSPL description for our example dataset:The dataset description starts with a top-level element. The targetNamespace attribute contains a URI that uniquely identifies this dataset. The dataset's namespace is especially important when publishing the dataset, as it will be the global identifier of your dataset, and the means for others to refer to it.



Note that the targetNamespace attribute may be omitted. In this case a unique namespace is automatically generated when the dataset is imported. read more...

Wednesday, June 8, 2011

Offline Google Maps


Google Maps
Dutch tech site All About Phones claims that Google Maps Navigation will get a true offline mode later this summer. In December the Android app received an update that cached routesand the surrounding areas, but without a data connection you still couldn't enter a new destination. A source inside the Dutch telco industry said that Goog would removing the requirement for coverage -- an obvious next step for the nav tool, especially with Ovi Maps bringing its turn-by-turn prowess to WP7. The move is also bound to be another thorn in the side of standalone GPS makers like Garmin and TomTom. After all, it's tough to compete with free

Apple's New Spaceship Campus


Shortly after taking the stage at WWDC, Steve Jobs made an appearance before the Cupertino City Council to pitch the local governing body on Apple's ambition to build a new campus. The site for the curvaceous, four-story, "human-scale" building to house 13,000 employees is the original home of HP's computer systems division, land that was recently sold to Apple. The property is currently covered by a series of big asphalt parking lots. Apple's plan would increase the landscape coverage from 20 to 80 percent with the help of a senior arborist from Stanford who will help restore some of the indigenous plant life to the property, including the apricot orchards. Apple plans to make the campus' energy center the facility's primary power generator using natural gas and other "clean energy" sources -- the city would simply provide backup power when needed. Of course, what would a Jobs presentation be without a few choice superlatives? In this case, Jobs claims that the new curved-glass facility will be the "best office building in the world," luring in students of architecture anxious for a peek. Apple plans to break ground in 2012 with a 2015 move-in date.

As an aside, it's fascinating (and yes, troubling) to observe Gilbert Wong, Mayor of Cupertino, guffaw at Steve's "jokes" like a smitten schoolgirl, going so far as to fawn over his own iPad 2 in front of the assembly. For his part, Jobs seems to bite his tongue during several exchanges particularly when one city council member tries to extort free WiFi from Apple in an apparent quid pro quo. Click through to see what we mean. read more...


Monday, June 6, 2011

The Windows 8 demo

The video below was released on Wednesday evening to coincide with Windows President Steven Sinofsky offering the first public demo of Windows 8 at the All Things Digital conference (a.k.a. D9). In this video, Jensen Harris, director of program management for the Windows User Experience, provides a quick walk-through and promises that more video demos will be coming soon.