Tuesday, March 9, 2010

Vagrant

Vagrant is a tool for building and distributing virtualized development environments.

By providing automated creation and provisioning of virtual machines using Sun’s VirtualBox, Vagrant provides the tools to create and configure lightweight, reproducible, and portable virtual environments. For more information, see the part of the getting started guide on ”Why Vagrant?”

Are you ready to use vagrant to revolutionize the way you work? Check out the getting started guide and the getting started video.

http://vagrantup.com/

Monday, March 8, 2010

modulr

modulr is a CommonJS module implementation in Ruby for client-side JavaScript.

modulr accepts a singular file as input (the program) on which is does static analysis to recursively resolve its dependencies.

The program, its dependencies and a small, namespaced JavaScript library are concatenated into a single js file. This improves load times by minimizing HTTP requests.

The bundled JavaScript library provides each module with the necessary require function and exports and module free variables.

modulr is available as a Ruby library or as a command-line utility (modulrize).

http://github.com/codespeaks/modulr

Let’s translate YUI3 to jQuery

var $;
YUI().use('*', function(Y){
$ = Y.get;
for(var p in Y) {
$[p] = Y[p];
}
});

// test
$('body').append("boo!");
http://ajaxian.com/archives/friday-fun-lets-translate-yui3-to-jquery?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+ajaxian+(Ajaxian+Blog)

Sunday, March 7, 2010

Google's SEO Report Card

How many of Google's web pages use a descriptive title tag? Do we use description meta tags? Heading tags? While we always try to focus on the user, could our products use an SEO tune up? These are just some of the questions we set out to answer with Google's SEO Report Card.

Google's SEO Report Card is an effort to provide Google's product teams with ideas on how they can improve their products' pages using simple and accepted optimizations. These optimizations are intended to not only help search engines understand the content of our pages better, but also to improve our users' experience when visiting our sites. Simple steps such as fixing 404s and broken links, simplifying URL choice, and providing easier-to-understand titles and snippets for our pages can benefit both users and search engines. From the start of the project we also wanted to release the report card publicly so other companies and webmasters could learn from the report, which is filled with dozens of examples taken straight from our products' pages.

The project looked at the main pages of 100 different Google products, measuring them across a dozen common optimization categories. Future iterations of the project might look at deeper Google product web pages as well as international ones. We released the report card within Google last month and since then a good number of teams have taken action on it or plan to.

We hope you find our SEO Report Card useful and we'd love to hear your feedback in the comments below or in the Webmaster Central Help Forum. And if you'd like to do your own SEO tune up, a good place to start is by reading our free SEO Beginner's Guide.

http://googlewebmastercentral.blogspot.com/2010/03/googles-seo-report-card.html

Thursday, March 4, 2010

Quick Tip: Learning jQuery 1.4’s $.proxy

One of my favorite new features in jQuery 1.4 is the new $.proxy method. It allows us the ability to force a particular context when calling a method. In JavaScript, there can be times when it's difficult to hold on to the this keyword. For example, when it's bound to some event handler, this now refers to the target of the handler, rather than your desired object.

If this sounds a bit confusing, don't worry; today's four-minute video quick tip should clear things up.

// Create an object.
var obj = {
// this = obj
somevar : 'some value',

doSomething : function() {
alert(this.somevar);
}
};

// When bound to an event handler, this will
// refer to the target of the handler, or the div - not obj.
$('div').click(obj.doSomething); // undefined.

// With $.proxy, we pass two parameters.
// 1. The method to call.
// 2. The context.
// In this case, we're forcing obj to once again be equal to this.
$('div').click( $.proxy(obj.doSomething, obj) ); // some value


http://jsbin.com/inupo
http://net.tutsplus.com/videos/screencasts/quick-tip-learning-jquery-1-4s-proxy/

Wednesday, March 3, 2010

Rails 3

Yehuda Katz explains Rails 3: the performance improvements, the new architecture, the influence of Merb, and much more. Also: a look at the Bundler tool.

http://www.infoq.com/presentations/katz-rails3

Tuesday, March 2, 2010

CorMVC - jQuery-powered Model-View-Controller Framework

CorMVC is a jQuery-powered Model-View-Controller (MVC) framework that can aide in the development of single-page, web-based applications. CorMVC stands for client-only-required model-view-controller and is designed to be lowest possible entry point to learning about single-page application architecture. It does not presuppose any server-side technologies, or a web server of any kind, and requires no more than a web browser to get up and running.

View The Online Demo Here »

Features

  1. A large sample application. The whole demo site (including the contacts section) runs off of corMVC as a single-page application.
  2. No server required. The demo application does not require any additional server-side technologies. If you have a web browser, you can download and run this application immediately.
  3. No building required. This framework does not require you to build the application using scaffolding or any other command-line executables. You just download it and open it up in a browser.
  4. Small Framework. This framework is very small (and excessively commented). It doesn't do anything more than it is supposed to.
http://www.bennadel.com/projects/cormvc-jquery-framework.htm