Create Mobile Apps with HTML5, Javascript and Visual Studio
Total Page:16
File Type:pdf, Size:1020Kb
Create mobile apps with HTML5, JavaScript and Visual Studio DevExtreme Mobile is a single page application (SPA) framework for your next Windows Phone, iOS and Android application, ready for online publication or packaged as a store-ready native app using Apache Cordova (PhoneGap). With DevExtreme, you can target today’s most popular mobile devices with a single codebase and create interactive solutions that will amaze. Get started today… ・ Leverage your existing Visual Studio expertise. ・ Build a real app, not just a web page. ・ Deliver a native UI and experience on all supported devices. ・ Use over 30 built-in touch optimized widgets. Learn more and download your free trial devexpress.com/mobile All trademarks or registered trademarks are property of their respective owners. Untitled-4 1 10/2/13 11:58 AM APPLICATIONS & DEVELOPMENT SPECIAL GOVERNMENT ISSUE INSIDE Choose a Cloud Network for Government-Compliant magazine Applications Geo-Visualization of SPECIAL GOVERNMENT ISSUE & DEVELOPMENT SPECIAL GOVERNMENT ISSUE APPLICATIONS Government Data Sources Harness Open Data with CKAN, OData and Windows Azure Engage Communities with Open311 THE DIGITAL GOVERNMENT ISSUE Inside the tools, technologies and APIs that are changing the way government interacts with citizens. PLUS SPECIAL GOVERNMENT ISSUE APPLICATIONS & DEVELOPMENT SPECIAL GOVERNMENT ISSUE & DEVELOPMENT SPECIAL GOVERNMENT ISSUE APPLICATIONS Enhance Services with Windows Phone 8 Wallet and NFC Leverage Web Assets as Data Sources for Apps APPLICATIONS & DEVELOPMENT SPECIAL GOVERNMENT ISSUE ISSUE GOVERNMENT SPECIAL DEVELOPMENT & APPLICATIONS Untitled-1 1 10/4/13 11:40 AM CONTENTS OCTOBER 2013/SPECIAL GOVERNMENT ISSUE OCTOBER 2013/SPECIAL GOVERNMENT ISSUE magazine FEATURES MOHAMMAD AL-SABT Editorial Director/[email protected] Geo-Visualization of Government KENT SHARKEY Site Manager Data Sources MICHAEL DESMOND Editor in Chief/[email protected] Malcolm Hyson ........................................... 26 DAVID RAMEL Technical Editor SHARON TERDEMAN Features Editor Harness Open Data with CKAN, WENDY HERNANDEZ Group Managing Editor OData and Windows Azure SCOTT SHULTZ Creative Director JOSHUA GOULD Art Director Mark Gayler ............................................... 34 SENIOR CONTRIBUTING EDITOR Dr. James McCaffrey CONTRIBUTING EDITORS Rachel Appel, Dino Esposito, Kenny Kerr, Engage Governments and Communities Julie Lerman, Ted Neward, Charles Petzold, David S. Platt, Bruno Terkaly, Ricardo Villalobos with Open311 Tim Kulp .................................................... 42 Henry Allain President, Redmond Media Group Leverage Existing Web Assets Michele Imgrund Sr. Director of Marketing & Audience Engagement Tracy Cook Director of Online Marketing as Data Sources for Apps Irene Fincher Audience Development Manager Frank La Vigne ............................................ 50 ADVERTISING SALES: 818-674-3416/[email protected] Dan LaBianca Vice President, Group Publisher Chris Kourtoglou Regional Sales Manager Enhance Citizen Services with Danna Vedder Regional Sales Manager/Microsoft Account Manager David Seymour Director, Print & Online Production Windows Phone 8 Wallet and NFC Serena Barnes Production Coordinator/ Joel Reyes .................................................. 56 [email protected] Building Government Business Applications Neal Vitale President & Chief Executive Offi cer with Microsoft Dynamics CRM Richard Vitale Senior Vice President & Chief Financial Offi cer Marc Schweigert and Andrew Schultz ............ 64 Michael J. Valenti Executive Vice President Christopher M. Coates Vice President, Finance & Administration Erik A. Lindgren Vice President, Information Technology & Application Development David F. Myers Vice President, Event Operations COLUMNS Jeffrey S. Klein Chairman of the Board © 2013 Microsoft Corporation. All rights reserved. EDITOR’S NOTE Complying with all applicable copyright laws is the responsibility of the user. Without limiting the rights under copyright, you are not permitted to reproduce, store, or introduce into a retrieval system MSDN Magazine Whiskey, Keys and Software or any part of MSDN Magazine. If you have purchased or have otherwise properly acquired a copy of MSDN Michael Desmond, page 2 Magazine in paper format, you are permitted to physically transfer this paper copy in unmodifi ed form. Otherwise, you are not permitted to transmit copies of MSDN Magazine (or any part of MSDN Magazine) in any form or by any means without the express written permission of Microsoft Corporation. FIRST WORD A listing of Microsoft Corporation trademarks can be found at microsoft.com/library/toolbar/3.0/trademarks/ Software Citizens en-us.mspx. Other trademarks or trade names mentioned herein are the property of their respective owners. MSDN Magazine is published by 1105 Media, Inc. 1105 Media, Inc. is an independent company not Greg Bateman, page 4 affi liated with Microsoft Corporation. Microsoft Corporation is solely responsible for the editorial contents of this magazine. The recommendations and technical guidelines in MSDN Magazine are based on specifi c WINDOWS AZURE INSIDER environments and confi gurations. These recommendations or guidelines may not apply to dissimilar confi gurations. Microsoft Corporation does not make any representation or warranty, express or implied, Choosing a Cloud Network for with respect to any code or other information herein and disclaims any liability whatsoever for any use of such code or other information. MSDN Magazine, MSDN, and Microsoft logos are used by 1105 Media, Government-Compliant Applications Inc. under license from owner. Bruno Terkaly and Ricardo Villalobos, page 6 TEST RUN Implementing the National Institute of Standards and Technology Tests of Randomness Using C# James McCaffrey, page 14 DON’T GET ME STARTED Singing Your Song David Platt, page 72 Printed in the USA EDITOR’S NOTE MICHAEL DESMOND Whiskey, Keys and Software “Giving money and power to government is like giving whiskey and transit authority can use Near Field Communications and Windows car keys to teenage boys.”—P.J. O’Rourke Phone Wallet to enable purchases and loyalty program services. Other articles explore the fast-evolving arena of cloud computing. P.J. O’Rourke may be given to comic absurdism, but he has a point. MSDN Magazine columnists Bruno Terkaly and Ricardo Villalobos As the father of two teenage boys (ages 15 and 17), I fi nd the thing focus their Windows Azure Insider column on how government about them isn’t just that they drive too fast and take stupid risks. agencies can adopt hybrid cloud networks that comply with privacy, Th ey do. However, they do these things and don’t even talk to you. security and other policies. Mark Gayler explores the Comprehen- My older son now communicates almost exclusively via grunts and sive Knowledge Archive Network (CKAN), an open source, Web- shrugs. My younger son can disappear for days at a time. My wife based data management system that streamlines access to data for and I like to get the family around the dinner table and ask the boys organizations, including government entities. His feature shows clearly incendiary questions such as, “How was school today?” if how developers can use Windows Azure cloud-deployed CKAN only to enjoy exasperated sighs and eye rolls. services and the Open Data Protocol (OData) to enable delivery Government can be kind of like that. For all the resources, of sophisticated cloud-based services and data. services and valuable data in its possession, actually working This special issue also looks at areas of growing interest. For with government can be like trying to coax a conversation out of example, in Malcolm Hyson’s “Geo-Visualization of Government Data teenagers. Useful information (that you paid for, by the way) is locked up in Sources,” he shows how cloud-hosted utilities can leverage publicly agency databases or scattered among multiple Web sites and portals. available geo-tagged data sources to enable fascinating application Interaction can be slow, ineffi cient and painfully unintuitive. Manual scenarios. Frank La Vigne addresses the budgetary challenges processes that could be easily automated just ... aren’t. facing many government entities, as he describes how sophisticated A lot of that is changing, though, and you can thank P.J. O’Rourke’s HTML scraping can serve as a viable (and low-cost) alternative to teenage boys for that. Th e Obama Administration’s Digital Government expensive and complicated service integration schemes. Strategy initiative aims to end the sullen silence and advocates for Greg Bateman is senior director for Acquisition Programs, streamlined delivery of services, enhanced citizen interaction and Policy and Strategy at Microsoft Federal. He urges developers to get greater public access to valuable government data resources. As up to speed on sites like data.gov and howto.gov, which off er resources Steven VanRoekel, federal chief information offi cer for the Obama and guidance for building applications in the government space. He Administration, wrote last year on the White House blog: says developers need to take a thoughtful approach to application “At its core, the strategy takes a coordinated, information- and development in the government arena. customer-centric approach to changing how the government works “Developers should think about all the ways citizens deal with and delivers services to the American people. Designing for open- government, at the local, state or federal