background preloader

Geolocation API Specification

Geolocation API Specification
Abstract This specification defines an API that provides scripted access to geographical location information associated with the hosting device. Status of This Document This section describes the status of this document at the time of its publication. This document was published by the Geolocation Working Group as a Last Call Working Draft on @@ May 2014. it merged errata into the Geolocation API v1 Recommendation, which was published on October 24, 2013.This document is intended to become a W3C Recommendation. Publication as a Last Call Working Draft does not imply endorsement by the W3C Membership. Comments on the document should be sent to the Working Group's public mailing list (subscribe, archives). This document has been produced by the W3C Geolocation Working Group, following the procedures set out for the W3C Process, with the intention of advancing it along the W3C Recommendation track. Table of Contents 1 Conformance requirements 2 Introduction 3 Scope The

The Screen Orientation API Abstract The Screen Orientation API provides the ability to read the screen orientation state, to be informed when this state changes, and to be able to lock the screen orientation to a specific state. Status of This Document This section describes the status of this document at the time of its publication. Other documents may supersede this document. A list of current W3C publications and the latest revision of this technical report can be found in the W3C technical reports index at This document is still in a work in progress state. This document was published by the Web Applications Working Group as an Editor's Draft. Publication as an Editor's Draft does not imply endorsement by the W3C Membership. This document was produced by a group operating under the 5 February 2004 W3C Patent Policy. Table of Contents 1. This section is non-normative. Example 1 <! 2. This specification defines conformance criteria that apply to a single product: the user agent 3. The concepts and

How to: Protect Against Script Exploits in a Web Application by Applying HTML Encoding to Strings Most scripting exploits occur when users can get executable code (or script) into your application. By default, ASP.NET provides request validation, which raises an error if a form post contains any HTML. You can help protect against script exploits in the following ways: Perform parameter validation on form variables, query-string variables, and cookie values. This validation should include two types of verification: verification that the variables can be converted to the expected type (for example, convert to an integer, convert to date-time, and so on), and verification of expected ranges or formatting. For example, a form post variable that is intended to be an integer should be checked with the Int32.TryParse method to verify the variable really is an integer. HTML encoding converts HTML elements using HTML–reserved characters so that they are displayed rather than executed. To apply HTML encoding to a string

getusermedia: Getting access to local devices that can generate multimedia streams 4. MediaStream API 4.1 Introduction The MediaStream interface is used to represent streams of media data, typically (but not necessarily) of audio and/or video content, e.g. from a local camera. The data from a MediaStream object does not necessarily have a canonical binary form; for example, it could just be "the video currently coming from the user's video camera". This allows user agents to manipulate media streams in whatever fashion is most suitable on the user's platform. Each MediaStream object can contain zero or more tracks, in particular audio and video tracks. Each track in a MediaStream object has a corresponding MediaStreamTrack object. A MediaStreamTrack represents content comprising one or more channels, where the channels have a defined well known relationship to each other (such as a stereo or 5.1 audio signal). A channel is the smallest unit considered in this API specification. A MediaStream object has an input and an output. A MediaStream can be finished The MediaStream() .

How to: Deploy a Database With a Web Application Project The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location. When you prepare to deploy a Web application project that uses one or more SQL Server databases, you can enter settings that specify database scripts that must run during deployment. The first two procedures in this topic provide instructions for specifying database information to deploy when the database does not already exist in the destination environment. You use the Package/Publish SQL tab of the project Properties page to configure settings that determine which scripts will run during deployment. To specify databases to deploy In Solution Explorer, select the project name and then select Properties.In the Properties page, click the Package/Publish SQL tab.The Package/Publish SQL tab is displayed, as shown in the following illustration: To enter settings for a database To redeploy without database changes

Mobile Web API Evolution Ragavan Srinivasan’s post about the forthcoming Mozilla Marketplace for Open Web Apps inspired me to write about Mozilla’s surging Web and Device API standards work. A bit of background. Mozilla has always contributed to web standards, going back to the start of the project. We co-founded the WHAT-WG to kick off HTML5. As readers of this blog know, we are a leader in JS standardization. In the last eight months, our efforts to extend the web standards to include new APIs needed to build compelling apps and OS components on mobile devices have really caught fire. So I thought I would compile a list of emerging APIs to which we’ve contributed. The Mozilla contributions are worth noting both to acknowledge the individuals involved, and to highlight how Mozilla is championing device APIs for the web without having a native application stack blessed with such APIs on offer. As always, standards in progress are subject to change, yet require prototype implementation and user-testing. /be Apps | Mozilla Developer Network Learn how to create modern web apps using the latest web technologies and ideas — web apps that will have super powers in the latest modern browsers, but still provide an acceptable user experience in less able browsers. Modern app techniques Progressive web apps Progressive web apps involve taking standard web sites/apps that enjoy all the best parts of the Web — such as discoverability via search engines, being linkable via URLs, and working across multiple form factors — and supercharging them with modern APIs (such as Service Workers and Push) and features that confer other benefits more commonly attributed to native apps. App fundamentals The guides listed below cover common areas of functionality that you'll want to cover/implement in web apps. Quickstart This Quick Start guide introduces a recommended tool chain for creating web apps, and outlines the specific requirements for building Firefox OS applications. Basic data flow Modern web app architecture Gather and modify data Work offline

Exception Handling in ASP.NET MVC Index Introduction Exception handling is a serious matter in any application, whether it's web or desktop. Implementing a proper exception handling is important in any application. In ASP.NET applications, error handling is done mostly in two ways: at local level using try-catch blocks and at global level using application events. In this article, we will learn about the HandleError filter and discuss about the different exception handling mechanisms that will fit to an MVC application. HandleError Attribute Exception filters The exception filters are attributes that can be applied over an action or a controller or even at a global level. All the exception filters implements the IExceptionFilter interface. Listing 1. The HandleErrorAttribute is the default implementation of the IExceptionFilter. Listing 2. What the HandleError filter does? The HandleError filter handle exceptions only if the <customErrors> is turned on in web.config Error View Listing 3. Listing 4. Listing 5. Listing 6. 1. 1.

TechDays 2011 : Dailymotion lance un lecteur HTML5 pour Windows Phone 7 Vous êtes ici : Accueil / Infrastructure / TechDays 2011 : Dailymotion lance un lecteur HTML5 pour Windows Phone 7 Le site de vidéo en ligne Dailymotion poursuit ses développements et diffuse dorénavant 26 chaînes internationales d’information. Prochainement disponibles sur Windows Phone 7. Cocorico ! Dans le cadre des TechDays 2011, Éric Cremer, vice-président senior media development, a réaffirmé son soutien envers les technologies Microsoft. Autre annonce, la compagnie s’est associé à Livestation pour diffuser les flux de 26 chaînes internationales d’information. Cloud : Accélérateur de Business Tout savoir sur les atouts Cloud pour la DSI !

How to Use 43 Folders A very simple guide to leaving here quickly so you can get back to making something awesome. Ask yourself… Why am I here right now instead of making something cool on my own? What’s the barrier to me starting that right now? This is not an insult or put-down. What Sucks? Looking for specific answers to what sucks for you today? More ideas Still sucking? Still Lost? Try a mental sweep, do a shitty first draft, or consider a modest change. Maybe just get away from the computer for a while by taking a nice walk. How to Know When You’re Done Here You’re done here whenever you’ve found just enough information to get you back on track for today. We love having you visit with us here, and we hope you’ll return many times — whenever you think we might have something that might help you get over the hump. The Only “Productivity” That Matters The best advice we can offer is to just put your head down, push yourself harder, and try to figure out what you need to change today to get a little better.

How To Design A Mobile Game With HTML5 Advertisement Care to make a cross-platform mobile game with HTML5? No need to dabble in Java or Objective-C? Bypass the app stores? Sounds like an instant win! A handful of game developers are pushing the envelope of mobile HTML5 games at the moment. Getting Started Before you start sketching the next Temple Run or Angry Birds, you should be aware of a few things that could dampen your excitement: Performance Mobile browsers are not traditionally known for their blazing JavaScript engines. Now, as a Web developer you’re used to dealing with the quirks of certain browsers and degrading gracefully and dealing with fragmented platforms. In this tutorial, we’ll make a relatively simple game that takes you through the basics and steers you away from pitfalls. It’s a fairly simple game, in which the user bursts floating bubbles before they reach the top of the screen. We’ll develop this in a number of distinct stages: 1. Enough of the background story. Let’s kick off with a basic HTML shim: 2.

Technical Reference – Intel® HTML5 App Porter Tool - BETA , 2013. The Intel HTML5 App Porter Tool - BETA is no longer available. Legal Information Introduction The Intel® HTML5 App Porter Tool - BETA is an application that helps mobile application developers to port native Apple iOS* code into HTML5, by automatically converting portions of the original code into HTML5. It helps convert the following artifacts: Apple Objective-C* (and a subset of C) source code into JavaScript*Apple iOS API types and calls into JavaScript/HTML5 objects and callsLayouts of views inside Apple Xcode* Interface Builder (XIB) files into HTML + CSS filesApple Xcode project files into Microsoft Visual Studio* 2012 This document provides a high-level explanation about how the tool works and some details about supported features. How does it work? The Intel® HTML5 App Porter Tool - BETA is essentially a source-to-source converter that can handle a number of conversions from Objective-C into JavaScript/HTML5 including the conversion of APIs calls. Converted identifier names