Web Info & Tutorials

September 30th, 2009

YUI 3 IS OUT!

yui_snippet

The YUI aggroup has place discover YUI 3.0:

We’re entertained to foretell today the general-availability promulgation of YUI 3.0.0. YUI 3’s set stock (YUI, Node and Event) and its programme flat (including Animation, IO, Drag & Drop and more) are every thoughtful production-ready with today’s release.

This is a ground-up redesign of YUI:

  1. Selector-driven: YUI 3 is shapely around digit of the lightest, fastest switch engines available, transfer the expressive noesis of the CSS switch description into actions that direct DOM nodes.
  2. Syntactically terse: Without polluting the orbicular namespace, YUI 3 supports a more terse writing call in which more crapper be realised with inferior code.
  3. Self-completing: YUI 3’s reddened (6.2KB gzipped) cum enter crapper help as the play saucer for some implementation. As daylong as this cum enter is inform on the page, you crapper alluviation some power in the accumulation on the fly. And every modules brought into the tender via the built-in dockhand are finished so via combo-handled, non-blocking protocol requests. This makes weight the accumulation safe, cushy and fast.
  4. Sandboxed: YUI modules are extremity to YUI instances when you use() them; this protects you against changes that strength hap after in the page’s lifecycle. (In another words, if someone blows absent a power you’re using after you’ve created your YUI instance, your cipher won’t be affected.)

It’s especially pleasant to wager the newborn terse YUI namespacing, so you crapper meet identify YUI() instead of the senior individual syntax.

The modify abstract most YUI (and this release) is that it is literally dynamical the Yahoo! Home Page. That’s pretty awing of Yahoo! to promulgation this cipher and attain it mostly acquirable to the wider community. Congrats to the full YUI aggroup on the newborn release.

See the example declaration journal post on effort started with YUI 3.0 in 3 cushy steps.

September 29th, 2009

CAPPUCCINO IS A PUSH OVER


Elias Klughammer has implemented the Juggernaut near server in a Cappuccino app.

Always pleasant to hit an unstoppered maker bleak clappers distribution app for a wedlock same this. Nothing beatniks looking at the source.

September 28th, 2009

A NOTE FROM THE EDITORS; HAT CHANGE!

Dear Ajaxian Community,

As editors-in-chief so to speak, I ever wager that it is essential to full divulge to the accord whatever relationship change. We hit ever proven to by balanced, and exhibit that by featuring every kinds of programme (for example, we haven’t been unsure at bill most enthusiastic WebKit school patch at Mozilla, or awful IE programme ( ;) when at Google.)

Ben and I are now at Palm directive up the developer relations team.

We started devphone awhile backwards as a locate to speech most ambulatory dev, but I personally didn’t hit the pedal to indite a aggregation most that as I was mainly fascinated in the Web lateral of ambulatory development. Thus, my fervour when Palm free webOS and I had a pleasant line to verify my Ajax skills to the apace ontogeny ambulatory Web market.

You crapper wait to wager whatever more ambulatory Web news, meet because I module be hunting at that concern a aggregation more. However, you shouldn’t wait to wager whatever demand of another news, and we also love to accept contributions both as hurried course to enthusiastic Ajax news, but also temporary posts. We rattling do wager this as your community!

Also, wait to move to wager Bespin and Mozilla news, because we are rattling such feat to move to be participating in that community. I am in a Bespin gathering correct now! Tai unstoppered source, and unstoppered companies same Mozilla!

Thanks for existence hardcore readers for the chronicle of Ajaxian.com so far, and we countenance nervy to bringing you modify more in the future!

Cheers,

Dion and Ben

September 25th, 2009

DIVE INTO HTML 5, INTRO ARTICLES, AND IE 6 CHEATSHEET

I’ve become crossways a some pleasant educational articles on HTML 5 fresh I poverty to share.

The prototypal is from Mark Pilgrim, who has been composition a newborn aggregation named Dive Into HTML 5. He has place up digit chapters already, “Detecting HTML5 Features: It’s Elementary, My Dear Watson” and “Let’s disposition It a Draw(ing Surface).” This is a solidified work, rank with inline mutual cipher samples, substantially desegrated diminutive tables organisation application support, modify engraving illustrations, and Mark’s trademarked sarcastic whit:

Snapshot from Mark Pilgrim's book

The chapters themselves modify notice whether your application supports different features as it explains them to you:

pilgrim2

The ordinal article comes from Adam Griffiths. His article gives a generalized overview of the place of the HTML 5 land, serving you to determine yourself in cost of the field newborn features in the upcoming standard. It’s also a pleasant HTML 5 cheatsheet. (Via Hawyphp).

The ordinal beatific HTML 5 intro article comes from our specializer brothers and sisters over at A List Apart, named “Get Ready for HTML 5.”

Speaking of cheatsheets, modify though it’s not attendant to HTML 5, comes a multipurpose IE 6 cheatsheet named “Ultimate IE6 Cheatsheet: How To Fix 25+ cyberspace Explorer 6 Bugs.” They hit a condensed itemize of every the bugs and the solutions you strength separate into when nonindustrial for IE 6 (which I had to do for SVG Web, for example).

[Disclosure: Mark colonist is on the aforementioned aggroup as I am at Google, but I’m meet blogging this because I encounter it a multipurpose inventiveness and not because I undergo the man :) ]

September 25th, 2009

OPACITY: FANCY A DESIGN TOOL WITH “SAVE AS CANVAS”?

Our Webmonkey friends hit featured Opacity, a agent ikon touching agency that has a pair of features that are engrossing for Web developers wanting to do HTML5-y things:

To ingest the newborn maker cipher feature in Opacity, only organisation your vector-based realistic or aliveness ordering and, erst you’re bright with it, nous to the Inspector schedule where you crapper ingest what Opacity refers to as “Factories” to goods your ikon in different formats. To intend Canvas-based maker code, chose Source Code for the info and Canvas (JavaScript) as the language.

We should state that there are added tools around that crapper do kindred things with meet an ikon enter — much as Alistair MacDonald’s Burst engine, which crapper verify SVG animations and modify them to JavaScript objects that are rendered exclusive of a <canvas> tag.
Opacity is a Mac OS X covering and costs $90 — not cheap, but cheaper than than Adobe Illustrator. There’s also a device edition famous as Opacity Express, which ease has the cipher goods option, but lacks whatever added features and retails for $40.

Nice to wager tools clutch the newborn technology. Of course, the daimon is ofttimes in the details… specifically how beatific the cipher is (We every advert the older Frontpage days!) Inkscape is added example, that embraces SVG.

September 24th, 2009

CONTENT AWARE IMAGE RESIZING… IN JAVASCRIPT

Content alive ikon resizing is a nifty framework where you crapper attain an ikon diminutive by literally discernment the noesis meliorate and remapping it.

original_pix

Stéphane Roucheray has place unitedly a fancy demo (Firefox 3.5 only) that uses JavaScript and the Canvas attach nonnegative createImageData to do every of this in the application versus C++:

For this demo, a change conception of the Content Aware Image Resizing formula has been implemented. The breadth of the ikon crapper be low interactively without modifying its height. This feat uses bed art to re-size the image, subtracting the inferior circumpolar plumb lines. It is a quaternary travel unvaried algorithm. One impact is digit element breadth re-size. First an ikon is unexploded into the Canvas environment and then the impact starts :

  1. A grayscale edition of the ikon has to be calculated
  2. The edges of the ikon (Sobel convolution is utilised in our case) and its forcefulness matrix is computed
  3. The bed of diminutive forcefulness (1 element plumb distinction from the lowermost to the crowning of the forcefulness matrix) is detected
  4. Then the element of the perceived bed is distant from the example ikon and the termination is re-injected as a maker ikon to travel 1

Each of the preceding steps stores a full matrix of accumulation at the maker ikon size. While these matrices are not every images but actually artifacts of the algorithm, storing them in an ImageData goal is more favourable than using ultimate Arrays. This is ground the createImageData method of the Canvas environment is used. One of the benefits of this impact is to earmark display the grey computations prefabricated low the hood.

As Chris Blizzard mentions in the journal post, this opens up lots of engrossing possibilities:

This demonstrate shows that’s doable to do more nimble ikon resizing than meet flattening an image’s pixels with CSS. Having computational and ikon touching capabilities direct in the application opens up a newborn arrange of possibilities of how ikon accumulation crapper be displayed to users. This is exclusive digit diminutive dissent of that.

September 24th, 2009

CHROME FRAME: NO ONE WILL CARE BUT IT’S FANTASTIC!

I hit rarely seen so such welfare for an cyberspace Explorer sacred plug-in!
While developers hit been strafed twirp with re-tweets, theoretical questions and whatever guessed respond most Chrome Frame, Robert Nyman has already spoken his thoughts most Wave pick and stylish Alex writer idea.

Here whatever highlights:

No digit module care

  • Home users who hit no intent what a scheme application is, and module not establish anything (or, in whatever cases, everything – assorted story… :-) )
  • Company users with consort IT restrictions where it doesn’t concern if it’s a scheme application upgrade, newborn application or “just” a plug-in – they’re not allowed to establish anything.

It’s fantastic!
When I prototypal heard most Google Chrome Frame, I likeable the intent and I undergo Alex writer behindhand it is digit of the smartest developers in the world. I am 100% certain that this has been implemented in an best way, especially from a action perspective, so not having to amend for whatever cyberspace Explorer performance engine sounds same a god-send!

The personalty of this
I see that we hit decussate a distinction …

To be honest, I conceive parliamentarian has whatever beatific saucer there but for whatever reason, my scheme troubled grouping does wish he is so wrong!

September 23rd, 2009

QOOXDOO 0.8.3; NEW WIDGETS, LAYOUTS, AND UTILITIES

Qooxdoo has a newborn 0.8.3 release that includes a lot:

Take a countenance at the detailed promulgation notes to wager more, and then hit a play in the playground to wager it at work.

September 22nd, 2009

CHROME FRAME: INJECT CHROME INTO IE

Google has released the daylong expected Chrome Frame. Congrats to Alex writer for effort this out. He fought browsers to alter us Dojo (with a enthusiastic team) and today he comes at the difficulty in added way… from within.

What is Chrome Frame?

Let Alex verify you!


Put this in a page:

HTML:

  1.  
  2. <meta http-equiv=“X-UA-Compatible” content=“chrome=1″ />
  3.  

and if a individual comes to it using IE and has the plugin installed, the renderer module be replaced with Chrome.

If you poverty to support intend the plugin installed, then you requirement to obligate it via JavaScript

HTML:

  1.  
  2. <script type=“text/javascript”
  3. src=“http://ajax.googleapis.com/ajax/libs/chrome-frame/1/CFInstall.min.js”> </script>
  4.  
  5. <div id=“placeholder”></div>
  6.  
  7.  CFInstall.check({
  8.     node: "placeholder",
  9.     destination: "http://www.waikiki.com"
  10.   });
  11.  
  12.  

For testing, if you hit it every installed, you crapper obligate the renderer via cf:http://gmail.com.

What does this mean?

We hit a actual problem. IE6 is a discompose for Web developers. However, we hit to advert that IE was the resolution at whatever point…. we hit an supply with effort newborn versions of the papers discover there via browsers.

It module belike verify Google a daylong instance to intend a super assets of the developers on browsers they poverty them to be on *cough*, so this is added tactic. The virus.

On digit assistance I acclaim them for attractive on the challenge, and I rattling conceive that Alex has a beatific hunch around this.

We do requirement to rattling conceive most what this effectuation though. When is it developer choice, and when is it individual choice? Who should curb the experience? And, speech of experience… how is the UX strained when you don’t modify undergo what renderer you are using, and items much as auto-fill meet don’t impact on destined sites. Can the individual override the developer? Will this be free on another browsers e.g. Safari/Firefox/Opera?

There are feat to be large ramifications with Chrome Frame, and we requirement to hit a conversation around them. What are your thoughts?

September 21st, 2009

WEBGL AVAILABLE IN FIREFOX NIGHTLY

We mentioned that WebGL had landed in WebKit source, when it connected Firefox.

Vladimir Vuki?evi? of Mozilla has posted on how it shows up in a nightly instead of meet maker (which requires a programme alarum etc.

This is unbelievably exciting, as Jon Tirsen said:

Your incoming 3D expert module climb a pleasant “Your application is not based gratify establish Chrome, Safari or Firefox.” (Re: WebGL.)

Hopefully IE gets there likewise of instruction (Opera is in the assemble so we should wager something there too).

Here is Vlad:

Along with the Firefox implementation, a WebGL feat landed in WebKit evenhandedly recently.  All of these implementations are feat to hit whatever interoperability issues for the incoming lowercase while, as the description is ease in denseness and we’re chase it at assorted rates, but module hopefully move to alter over the incoming whatever months.

If you’d same to research with WebGL with a trunk nightly build (starting from Friday, Sept 18th), every you hit to do is fling a pref: alluviation about:config, see for “webgl“, and double-click “webgl.enabled_for_all_sites” to modify the continuance from false to true.  You’ll currently hit the most phenomenon on MacOS X machines or Windows machines with up-to-date OpenGL drivers.

We ease hit whatever structure to go, as there are issues in shader section and portability, not to name figuring discover what to do on platforms where OpenGL is not available.  (The latter is an engrossing problem; we’re disagreeable to secure that the API crapper be implementable on crowning of a non-GL autochthonous 3D API, much as Direct3D, so that strength be digit option.)  But advancement is existence apace made.

When matched with high-performance JavaScript, much as what we’ve seen become from both Firefox and another browsers, should earmark for whatever elating full 3D-enabled scheme applications.  We’ll hit whatever ultimate demos linked for you soon, both here and on Mark’s blog.