background preloader

JSON Editor Online - view, edit and format JSON online

Stockage des données locales : Web Storage Nous connaissions les cookies. Maintenant nous disposons de Web Storage (ou DOM Storage) pour stocker des données locales. Faisons un tour du propriétaire ! Stockage des données dans le navigateur Web Storage est une solution adaptée aux besoins actuels de stockage de données variées, dans le navigateur. Web Storage met à disposition deux interfaces nommées sessionStorage et localStorage dont la seule différence concerne la persistance des données. Stockage de session sessionStorage L'interface sessionStorage mémorise les données sur la durée d'une session de navigation, et sa portée est limitée à la fenêtre ou l'onglet actif. Stockage local localStorage L'interface localStorage mémorise les données sans limite de durée de vie. Il n'y a pas de partage des données Web Storage entre les différents navigateurs qui peuvent être installés sur une même machine. Usages et précautions Comment y accéder ? Pour agrémenter le tout, la propriété .length renvoie le nombre de paires stockées. Stockage

Template Toolkit Home Page 15 snippets pour améliorer votre utilisation de jQuery La librairie jQuery est une des meilleures, voire la meilleure librairie Javascript actuellement. Elle est assez facile à utiliser et à prendre en main, mais bien souvent, quand on débute, on profite des plugins sans trop savoir comment ils marchent. Car des plugins jQuery, il en existe en veux tu en voila sur la toile. Je viens donc vous proposer quelques trucs et astuces qui pourront grandement vous servir durant vos dev, afin d’améliorer un peu vos connaissances. CheatSheets Pour débuter, voici deux fichiers très utiles qui regroupent les principales propriétés de jQuery et jQuery CSS : Télécharger jQuery 1.4 CheatSheet Télécharger jQuery CSS CheatSheet Document.ready Pour charger vos méthodes au chargement de la page, vous avez surement l’habitude d’utiliser : Sachez que vous pouvez raccourcir cette déclaration en écrivant simplement : Cela revient au même et vous permet de gagner un peu de temps. Distinguer le clic droit du clic gauche Rechercher une chaine de caractère jQuery 1ere méthode :

Beware of soapy frogs: Using IET (ISCSI Enterprise Target) for Windows Server Backup Windows Server Backup in win2k8 server is fantastic - it's a consistent, snapshot-based automatic backup system capable of full disaster recovery / bare metal restore. I'm not a huge fan of much of the way the Windows servers work, but the backup setup is fantastic. With one wee flaw... Manual backups may be made to a network share, or to a local volume then copied to a network share. Unfortunately, automatic scheduled backups require direct access to a drive, they won't work on a mounted NTFS volume or on a network share. I could run a FireWire 800 drive over cat5e to the near-site backup location, but that's surprisingly expensive to do, especially as I want redundant storage to protect against pesky HDD failures. The solution: Win2k8 has a built-in iSCSI initiator. Security notice It would be a very good idea to enable mutual authentication, but by time of writing I was unable to get it working. Configuring the iSCSI target First, install the ISCSI Enterprise Target software (IET):

Comment détecter quand la souris quitte la fenêtre du navigateur en Javascript - Agence Web Paris | Création de sites internet - Blog Javascript est un langage très utile pour beaucoup de choses de nos jours. Malheureusement, chaque navigateur l’implémente à sa façon, et évidemment ils ne proposent pas la même gestion des évènements ! Prenons un exemple : vous venez de faire un div que l’on peut déplacer à volonté avec la souris. Le meilleur moyen d’éviter ça est de stopper le déplacement dès l’instant où l’on quitte la fenêtre du navigateur. On commence par se dire que si l’on cesse de survoler l’objet que l’on déplace, on arrête le déplacement… Et l’on se rend vite compte que ce n’est pas pratique du tout ! Pour éviter ça, on peut chercher à déterminer vers quel élément la souris à quitté la div, et n’arrêter le déplacement que si ce n’est pas un élément inclus dans la balise html. Sans plus d’introduction, voici un morceau de code jQuery (« code less do more ») qui vous aidera grandement à résoudre ce problème : Maintenant, les explications : On associe une fonction à l’événement ‘mouseleave’ sur la div déplaçable.

PubsSPs NIST uses three NIST Special Publication subseries to publish computer/cyber/information security and guidelines, recommendations and reference materials: SP 800, Computer Security (December 1990-present): NIST's primary mode of publishing computer/cyber/information security guidelines, recommendations and reference materials (SP 800s are also searchable in the NIST Library Catalog); SP 1800, NIST Cybersecurity Practice Guides (2015-present): A new subseries created to complement the SP 800s; targets specific cybersecurity challenges in the public and private sectors; practical, user-friendly guides to facilitate adoption of standards-based approaches to cybersecurity; SP 500, Computer Systems Technology (January 1977-present): A general IT subseries used more broadly by NIST's Information Technology Laboratory (ITL), this page lists selected SP 500s related to NIST's computer security efforts. Note: Publications that link to dx.doi.org/... will redirect to another NIST website.

Comment appeler une méthode d’un objet Javascript via setTimeout et setInterval ? | Epershand Pré-requis pour ce tutoriel Un navigateur web (Mozilla Firefox, Google Chrome, Safari aux choix)Un outil de développement (Coda, Dreamweaver, Aptana, Notepad++, etc.)Des bases en programmation Javascript Utilisation classique des fonctions setTimeout et setInterval En Javascript, les méthodes setTimeout(callback, timer) et setInterval(callback, timer) sont utilisées pour appeler une portion de code de manière décalée dans le temps. Voici comment ces deux fonctions s’utilisent : function myFunction() { alert('Hello world !') Utilisation dans un contexte objet Lorsque l’on développe en objet en Javascript, la donne change très sensiblement, ainsi si vous souhaitez utiliser les méthodes « setTimeout » ou « setInterval » vous aurez bien souvent tendance à vouloir écrire : setTimeout('this.myMethod()', 1000); Mais ce bout de code ne fera que générer un bug et n’appellera pas votre méthode. Cela revient à écrire : window.alert('Hi everybody'); De même si vous écrivez votre propre fonction :

Modern Microprocessors - A 90-Minute Guide! WARNING: This article is meant to be informal and fun! Okay, so you're a CS graduate and you did a hardware course as part of your degree, but perhaps that was a few years ago now and you haven't really kept up with the details of processor designs since then. In particular, you might not be aware of some key topics that developed rapidly in recent times... pipelining (superscalar, OOO, VLIW, branch prediction, predication) multi-core and simultaneous multi-threading (SMT, hyper-threading) SIMD vector instructions (MMX/SSE/AVX, AltiVec, NEON) caches and the memory hierarchy Fear not! But be prepared – this article is brief and to-the-point. More Than Just Megahertz The first issue that must be cleared up is the difference between clock speed and a processor's performance. Table 1 – Processor performance circa 1997. A 200 MHz MIPS R10000, a 300 MHz UltraSPARC and a 400 MHz Alpha 21164 were all about the same speed at running most programs, yet they differed by a factor of two in clock speed.

Geocoding Service - Google Maps JavaScript API v3 Overview Geocoding is the process of converting addresses (like "1600 Amphitheatre Parkway, Mountain View, CA") into geographic coordinates (like latitude 37.423021 and longitude -122.083739), which you can use to place markers or position the map. Reverse geocoding is the process of converting geographic coordinates into a human-readable address. The Google Maps API provides a geocoder class for geocoding and reverse geocoding dynamically from user input. Geocoding Requests Accessing the Geocoding service is asynchronous, since the Google Maps API needs to make a call to an external server. You access the Google Maps API geocoding service within your code via the google.maps.Geocoder object. The GeocodeRequest object literal contains the following fields: These fields are explained below. * Note: You may pass either an address or a latLng to lookup. The bounds and region parameters will only influence, not fully restrict, results from the geocoder. Geocoding Responses Geocoding Results

Getting Started - Google Maps JavaScript API v3 The Maps JavaScript API lets you customize maps with your own content and imagery for display on web pages and mobile devices. The Maps JavaScript API features four basic map types (roadmap, satellite, hybrid, and terrain) which you can modify using layers and styles, controls and events, and various services and libraries. Audience This documentation is designed for people familiar with JavaScript programming and object-oriented programming concepts. This conceptual documentation is designed to let you quickly start exploring and developing applications with the Maps JavaScript API. Hello, World The easiest way to start learning about the Maps JavaScript API is to see a simple example. View example. Even in this simple example, there are a few things to note: We declare the application as HTML5 using the <! These steps are explained below. Declaring your application as HTML5 We recommend that you declare a true DOCTYPE within your web application. Loading the Maps JavaScript API HTTPS or HTTP

jquery_ui_map_v_3_sample_code - jquery-ui-map - Sample code - Google map v3 plugin for jQuery and jQuery Mobile Example constructor call Make the selected element a Google map. $('#map_canvas').gmap(); Map options are added in the constructor or set with the option method The map options is extended with a callback function which will execute when the Google Map object has been instanciated. When the map is fully initialized (with bounds) it will trigger the 'init' event. $('#map_canvas').gmap().bind('init', function(event, map) { // do something }); All properties in the MapOption object can be set and retrieved by Get the zoom var zoom = $('#map_canvas').gmap('option', 'zoom'); Set the zoom $('#map_canvas').gmap('option', 'zoom', 7); Example add custom control $('#map_canvas').gmap().bind('init', function() { $('#map_canvas').gmap('addControl', 'control', google.maps.ControlPosition.LEFT_TOP); }); $('#map_canvas').gmap('addControl', 'control', google.maps.ControlPosition.LEFT_TOP); Example add marker Example InfoWindow Close any open InfoWindow $('#map_canvas').gmap('closeInfoWindow'); Example JSON response

EFFET DE ROTATION A 360° D'IMAGE AVEC ACCELERATION DECELERATION diaporama, acceleration, deceleration, iphone, rotation 360, Source N°54059 Javascript c'est un effet de rotation a 360 degré avec plusieurs images utilisant la souris sur la zone ou ce situe l'image on peut aussi pousser l'image afin de créer un effet d?accélération décélération j'y est ajouter le préchargement des images afin d'assurer la fluidité de l'animation le script fonctionne avec firefox chrome opera et ie testé avec ie 8 et je pense qu'il doit pouvoir marcher avec ie 6 lien teste Source / Exemple : Conclusion : ca roule jQuery Reel Plugin verb ... the room reeled GO ROUND, go round and round, whirl, spin, revolve, swirl, twirl, turn, swim. Try dragging this area or roll your mouse wheel over it Now even on Android Reel 1.3 is an established and the most versatile three-sixty player for jQuery. Teaches your ordinary image tag some new tricks turning it into a gorgeous interactive 360° object movie, panorama or stop-motion animation. Reel is the premier alternative to Flash, Java or Quicktime and is trusted by government agencies and big brands like BMW, Nikon, O2, Blackberry or The New York Times. Modes covering beyond usual 360° span. back up Demonstration An image is worth a thousand words. Try reel for yourself. Stitched panoramas are supported too: You can also embed annotations (e.g. text or images) of individual features on the scene. See all 19 examples incl. code samples Is it compatible? Runs everywhere! Who uses it? Everybody! Latest news To date, Reel is used on 2014+ domains world-wide. Patch release 1.1.1 out!

Another nice tool for json to Edit , Visualize , Beautify and Minify by jamesmalvi Sep 20

Related: