background preloader

Web Development

Facebook Twitter

Getting Started with the JavaScript Version of the GreenSock Animation Platform (GSAP) « GreenSock. Quick links: Jump Start Introduction Animating with code may seem intimidating at first, but don’t worry – the GreenSock Animation Platform (GSAP) was engineered to make it simple and intuitive. The platform is also highly optimized for performance and unprecedented flexibility. What exactly is GSAP? The GreenSock Animation Platform is a suite of tools for scripted animation. TweenLite: the core of the engine which handles animating just about any property of any object. Loading the GSAP files Check out the download screen where you can download a zip containing minified and uncompressed files, or you can just paste a CDN link right into your page.

Since TweenMax includes TweenLite, CSSPlugin, EasePack, TimelineLite, TimelineMax, RoundPropsPlugin, BezierPlugin, AttrPlugin, and DirectionalRotationPlugin, this one file gives you tons of goodies to play with and the CDN should help things load very quickly. Of course you don’t need to use CDN links at all. Looking for a jQuery plugin? Easing. 4.4 Sections — HTML 5.1 Nightly.

4.3 Sections 4.3.1 The body element Categories: Sectioning root. Contexts in which this element can be used: As the second element in an html element. Content model: Flow content. Content attributes: Global attributes onafterprint onbeforeprint onbeforeunload onhashchange onlanguagechange onmessage onoffline ononline onpagehide onpageshow onpopstate onstorage onunload Tag omission in text/html: A body element's start tag may be omitted if the element is empty, or if the first thing inside the body element is not a space character or a comment, except if the first thing inside the body element is a meta, link, script, style, or template element.

A body element's end tag may be omitted if the body element is not immediately followed by a comment. Allowed ARIA role attribute values: document role (default - do not set), application. Allowed ARIA State and Property Attributes: Global aria-* attributes Any aria-* attributes applicable to the allowed roles. DOM interface: interface HTMLBodyElement 4.3.2 The article 4.3.3 The <! Google Website Warning. Página de diagnóstico de Navegación segura de Google de www.google.com. Web Fonts. Untitled. Adding ScrollTo in the jQuery UI Accordion script. 10 Rendering — HTML5. User agents are not required to present HTML documents in any particular way. However, this section provides a set of suggestions for rendering HTML documents that, if followed, are likely to lead to a user experience that closely resembles the experience intended by the documents' authors.

So as to avoid confusion regarding the normativity of this section, RFC2119 terms have not been used. Instead, the term "expected" is used to indicate behavior that will lead to this experience. For the purposes of conformance for user agents designated as supporting the suggested default rendering, the term "expected" in this section has the same conformance implications as the RFC2119-defined term "must". 10.1 Introduction In general, user agents are expected to support CSS, and many of the suggestions in this section are expressed in CSS terms. User agents that use other presentation mechanisms can derive their expected behavior by translating from the CSS rules given in this section.

An element is. Processing.js. Redcar. Improving HTML5 Canvas Performance. Introduction HTML5 canvas, which started as an experiment from Apple, is the most widely supported standard for 2D immediate mode graphics on the web. Many developers now rely on it for a wide variety of multimedia projects, visualizations, and games. However, as the applications we build increase in complexity, developers inadvertently hit the performance wall. There’s a lot of disconnected wisdom about optimizing canvas performance. This article aims to consolidate some of this body into a more readily digestible resource for developers. Note that this article does not go into usage of HTML5 canvas. Performance testing To address the quickly changing world of HTML5 canvas, JSPerf (jsperf.com) tests verify that every proposed optimization still works. Visitors to a JSPerf performance test page can run the test on their browser, and let JSPerf store the normalized test results on Browserscope (browserscope.org).

Pre-render to an off-screen canvas no pre-rendering: pre-rendering: Conclusion. RequestAnimationFrame for smart animating. If you’ve never written code to animate inside the browser, you can stop reading :) What is requestAnimationFrame? In your animation work, you’ve used a timer loop to make changes every few milliseconds. Good for us: browser vendors have decided, “hey, why don’t we just give you an API for that, because we can probably optimize some things for you.” So it’s basic API for use with animation, whether that be DOM-based styling changes, canvas or WebGL. Why should I use it? The browser can optimize concurrent animations together into a single reflow and repaint cycle, leading to higher fidelity animation.

OMG I can brag about having a site with battery-friendly animations? Yeah bro. How should I use this? Note: I am using ‘requestAnimFrame` here because since the spec is still in flux, I don’t want to make a straight polyfill, yet. 2012.01.07: The spec has gotten some fixes and settled down. A robust polyfill I have this polyfill available as a gist as well. Let’s see that in action Is it ready? HTML5 Full-Screen Demonstration. Oh look – a squirrel. Click to view full-screen… This demonstration illustrates how to use the HTML5 full-screen API which has been implemented in Firefox, Chrome and Safari. For further information, please refer to the article How to Use the HTML5 Full-Screen API… This example code was developed by Craig Buckler of OptimalWorks.net for SitePoint.com. Please view the source and use this code as you wish. A link back to the article is appreciated. Demo - Ajax loaded data, clickable points. ECMAScript 5 compatibility table.

Optimize browser rendering - Make the Web Faster. Once resources have been downloaded to the client, the browser still needs to load, interpret, and render HTML, CSS, and JavaScript code. By simply formatting your code and pages in ways that exploit the characteristics of current browsers, you can enhance performance on the client side. Use efficient CSS selectors Overview Avoiding inefficient key selectors that match large numbers of elements can speed up page rendering. Details As the browser parses HTML, it constructs an internal document tree representing all the elements to be displayed. According to this system, the fewer rules the engine has to evaluate the better. The following categories of rules are considered to be inefficient: Rules with descendant selectors For example: Rules with the universal selector as the key body * {...}.hide-scrollbars * {...}

Rules with a tag selector as the key ul li a {...} Rules with child or adjacent selectors body > * {...}.hide-scrollbars > * {...} ul > li > a {...} Rules with overly qualified selectors. Libraries API - Developer's Guide - Make the Web Faster. SPDY - SPDY. Rogersobrado. HTML Special Character Conversion Tool and Routines. Explore JSON Data. Buy. Social & Mobile Application Development Platform - Force.com. MAX 2011 Develop - Programming a 3D First-Person Shooter Game in Flash. Community Translation Your transcript request has been submitted. Adobe TV does its best to accommodate transcript requests. It can take a few weeks for the transcript to become available in the Community Translation Project, so keep checking back.

Join the Community Translation Project Thanks for your interest in translating this episode! Please Confirm Your Interest Thanks for your interest in adding translations to this episode! An error occurred while processing your request. Another translator has already started to translate this episode. Thanks for Participating! This episode has been assigned to you and you can expect an e-mail shortly containing all the information you need to get started.

About This Episode Learn more about how to build the next generation of action games with new the Flash Stage 3D API. Drupal.

PHP

How to create your own QR Codes in Ubuntu (updated) QR Codes are nifty time-saving shortcuts: sort of hyperlinks that can be put in the real world for anyone to follow. Qrencode is a small command-line utitlity that allows you to create your own QR codes (saved as .png image file) for whatever you like – a blog, a secret message – whatever! A ‘QR’ (short for Quick Response) code is a so-called ‘two-dimensional barcode’ made up of black squares on a white background. Information encoded in QR Codes typically contains URLs or text and are in wide use thanks to Android and Blackberry mobile phones making use of the technology.

How can I create a QR code in Linux? The creation of QR codes in Ubuntu is simple. Once Qrencode has been successfully installed you can create QR codes using the command line or a new graphical application (see this post for that). To approach it using the Terminal pay heed to the following command structure: - qrencode -o [filename.png] ‘[text/url/information to encode]‘ qrencode -o google.png ' Pancake Payments | Simple, Easy, Awesome!! iPhone Telephone Hyperlinks | Greg's Head. Enough with the iPhone news. Let’s talk about a little detail that no one else is talking about. The interesting thing for me is how the web is joining our good friend the telephone. A while back I talked about Callto links and how these could be tied into Vonage using a little tool I wrote.

So I was pretty interested to see how the iPhone would allow a web-page to connect to a telephone number. i was expecting either callto: links or perhaps a telephone microformat or perhaps a proprietary solution. Surprisingly it turns out that it’s none of the above. The format allows you to create an anchor link and use a tel: URI to point to a telephone number. The link format is fairly straight forward: <a href="tel:+1-800-275-2273"> Call Apple Customer Support at 1-800-275-2273 </a>. If more sites start using this for their contact information other providers for the tel: URI may begin supporting the format (Vonage, Verizon, Skype, etc.) Firebug Lite : Firebug. Html - Are there any IE9 CSS hacks. Demos... | CSS Hacks.

View full post about browser-specific CSS Hacks here. Red if * html matches in this browser Red if *:first-child+html matches in this browser Red if html>body matches in this browser Red if html>/**/body matches in this browser Red if html:first-child matches in this browser Red if html[xmlns*=""] body:last-child matches in this browser Red if body:nth-of-type(1) matches in this browser Red if div:nth-of-type(1n) matches in this browser Red if body:first-of-type matches in this browser Red if @media screen and (-webkit-min-device-pixel-ratio:0) matches in this browser Red if html[xmlns*=""]:root matches in this browser Red if *|html[xmlns*=""] matches in this browser Red if :root *> matches in this browser Red if *+html matches in this browser Red if * > matches in this browser Red if html:only-child matches in this browser Red if @media all and (min-width: 0px) matches in this browser Red if html:lang(en)>body matches in this browser Red if x:-moz-any-link matches in this browser.

In defense of CSS hacks — introducing “safe CSS hacks” How do you target Internet Explorer in your CSS? Do you use CSS hacks, conditional stylesheets or something else? It’s the perfect trollbait. There have been plenty of discussions about this, and I don’t mean to start a new one. Everyone’s entitled to their own opinion, but the thing is that it’s not purely a philosophical matter. I am writing this article because I noticed there’s a lot of misunderstanding on the subject of CSS hacks. People have been advocating three different approaches: conditional stylesheets, CSS hacks, or conditional classnames. All these techniques have their pros and cons. Conditional stylesheets Conditional comments make it very easy to specify stylesheets that should only be loaded in Internet Explorer, or even in specific versions of that browser. This snippet will cause lte-ie-8.css to be loaded in IE8, IE7, IE6 and even in IE5.

Pros The conditional comments snippet is valid HTML. Cons Conditional classnames The conditional classes snippet is valid HTML. Browser CSS hacks. I don’t use CSS hacks anymore. Instead I use IE’s conditional comments to apply classes to the body tag. Nonetheless, I wanted to document every browser-specific css selector and style attribute hack I’ve seen. Plus there’s no way to provide stylesheets to only Safari, I believe.

With these you’ll be able to better target IE, Firefox, Chrome, Safari and Opera from within the css. So here are go: Comprehensive List of Browser-Specific CSS Hacks If you’d like to take a gander by yourself: Test page with all these hacks present. View the test page at browsershots.org (Thx to Webdevout, Evotech, and Jeffrey, porneL, and commenters.) I should point out I’m not including weird hacks like the voice-family ones or anything particularly ugly. Somewhat related… Here are the most concise browser sniffs I’ve seen. Update 2009.06.03 - I added the suggestions left on Ajaxian and in the comments and updated the browser versions to consider Safari 4, IE 8, and Chrome 2.

Update 2010.01.24 - Added prop: value! Web Script Lab » Ajax Loading Gif Generator. Wiki - Rake installation. XHTML » ISO 8859-1 y UTF-8: Solución al problema de codificación de caracteres. Quizás este es un problema que nos ha causado un gran dolor de cabeza y por el cual muchos programadores (incluyéndome) ya han pasado o lo están haciendo. Se trata de la codificación de caracteres : cuando nos aparecen esos caracteres extraños y que no deberían estar ahí. Primero que nada, hay que tener claro las diferencias de cada una de las codificaciones más utilizadas y que más acarrea a este problema. ¿UTF-8 o ISO-8859-1? La codificación UTF-8 corresponde a un juego de caracteres universales, contiene signos de la mayoría de los lenguajes del mundo.

Por otro lado ISO-8859-1 maneja caracteres del lenguaje latino como el español, portugués, alemán, francés y otros. Técnicamente cualquiera de las codificaciones nos sirve, ya que a nivel de nuestro uso en las páginas webs, al comparar una codificación con la otra en el tamaño de los bits que son transferidos, es demasiado inferior para decir cual es la mejor. La solución La solución al problema radica al momento de guardar el archivo.

Representational state transfer. Representational State Transfer (REST) is a software architecture style consisting of guidelines and best practices for creating scalable web services.[1][2] REST is a coordinated set of constraints applied to the design of components in a distributed hypermedia system that can lead to a more performant and maintainable architecture.[3] REST has gained widespread acceptance across the Web[citation needed] as a simpler alternative to SOAP and WSDL-based Web services. RESTful systems typically, but not always, communicate over the Hypertext Transfer Protocol with the same HTTP verbs (GET, POST, PUT, DELETE, etc.) used by web browsers to retrieve web pages and send data to remote servers.[3] The REST architectural style was developed by W3C Technical Architecture Group (TAG) in parallel with HTTP 1.1, based on the existing design of HTTP 1.0.[4] The World Wide Web represents the largest implementation of a system conforming to the REST architectural style.

Architectural properties[edit] Function Reference/wp page menu. Function Reference/wp nav menu. WebFont Loader - Google Web Fonts API - Google Code. 10 jQuery Custom Scrollbar Plugins. Ruby If, Else If Command Syntax. RegExr. Downloads: YUI Compressor. Examples/FileUploadServlet – Red5. Getting Started with the Force.com Toolkit for PHP. sIFR Generator.

Google tips

Ext JS 4.0 Examples. sIFR. 100 Essential Web Development Tools. Handpicked free fonts for graphic designers with commercial-use licenses. Noticias - El cocodrilo que fue despedido con un funeral. 产 品 / DedeCMS / 软件下载_织梦CMS. Lights. .NET. HTML 5. Node.js. PHP.