Sentido Web

Referencias y explicaciones sobre desarrollo web, PHP, Ajax, XHTML, MySQL ...
25Aug
2010
Comments Off

Create Facebook applications with CodeIgniter

Learn how to incorporate the Facebook SDK into the CodeIgniter framework, using the available functions to create applications. …

Post original

24Aug
2010
<!-- 17 -->

Nuevo diseño

Lo mio no es el diseño, por eso mismo no me acababa de convencer el diseño anterior, supongo que dentro de unos meses me pasará lo mismo con el disño actual.

Mientras tanto, espero que no os desagrade mucho lo que he hecho, de todas formas, la mayoría de vosotros me visitáis por feed, así que no notaréis mucha diferencia.

Toda crítica es bienvenida, otra cosa es que le haga caso, me da una pereza enorme volver a tocar el css.

Publicidad
24Aug
2010
Comments Off

Transform Your WordPress Content into An Electronic Book

Anthologize is a free, open-source, plugin that transforms WordPress 3.0 into a platform for publishing electronic texts. Grab posts from your WordPress blog, import feeds from external sites, or create new content directly within Anthologize. Then outline, order, and edit your work, crafting it into a single volume for export in several formats, i …

Post original

23Aug
2010
Comments Off

FireQuery

This is a very cool extension for Firebug (add-on for an add-on?) that expands Firebug’s capabilities with jQuery. For instance, a built in jQueryify button, showing attached event handlers in the Content / DOM tree view, and highlighting all elements in a jQuery collection. I don’t think it’s new but I hadn’t seen it until I finally watched Remy S …

Post original

23Aug
2010
Comments Off

HTML5 Web Workers

HTML5 a parte de añadir nuevas etiquetas, también incluye otras posibilidades javascript, como los Web Workers, los cuales permiten ejecutar scripts en paralelo (background). Por ejemplo, tenemos un proceso costoso en recursos que no es interrumpible, podemos utilizar un Worker y evitar que el navegador se nos colapse.

Su uso es bastante sencillo, se instancia un Worker que estará en un fichero javascript independiente, se indica qué hacer cuando se reciba un mensaje y ya solo queda que el javascript y el Worker se comuniquen mandándose mensajes.

El script que instancia el Worker sería así:

// Crea el Web Worker
var worker = new Worker("worker.js");
 
// Envía un mensaje al worker
worker.postMessage(0);
 
// Recibe los mensajes del Worker
worker.onmessage = function (evt) {
	// evt.data es el valor devuelto por el Worker
	alert(evt.data);
}
 
// Trata los errores
worker.onerror = function (evt) {
	alert(evt.data);
}

Y el worker.js sería el siguiente:

// Ejemplo de Worker
onmessage = function (evt) {
    // evt.data es el valor enviado desde el javascript
    for (var i=evt.data, il=1000001; i<il; i++) {
        // Envía datos continuamente
        postMessage(i);
    }
}

Los Workers también admiten el evento onconnect, aunque tan sólo he visto que funcione en Webkit:

onconnect = function(evt) {
  postMessage('Hola, acabas de conectarte al Worker');
}

Using HTML5 Web Workers to have background computational power

Publicidad
21Aug
2010
Comments Off

Tiled Based Vector & Raster Maps using SVG and Javascript

Polymaps is a display and interaction library for tile-based vector and raster maps using SVG and Javascript. Their intent is to provide a minimal, extensible, customizable, and free display library for discriminating designers and developers who want to use interactive maps in their own projects.Polymaps provides speedy display of multi-zoom datas …

Post original

20Aug
2010
Comments Off

PaintbrushJS – Browser Based Image Processing Library

PaintbrushJS is a lightweight, browser-based image processing library that can apply various visual filters to images within a web page.You use it by applying a class to an element on the page and setting a few parameters with some extra HTML attributes. If the element is an img or it has a background-image set in your CSS, PaintbrushJS will create …

Post original

19Aug
2010
Comments Off

Stylize Radio Button & Checkbox with ezMark jQuery Plugin

ezMark is a jQuery Plugin that allows you to stylize Radio button and Checkbox easily. Its very small (minified version is ~1.5kb) compared to other similar scripts. It has been tested and works on all major browsers (IE 6/7/8, Firefox, Safari, Chrome) and it gracefully degrades.To customize the default checkbox/radiobutton image, simply change the …

Post original

Publicidad
19Aug
2010
Comments Off

Mastering the 960 Grid System

We’re already familiar with the 12- and 16-column variants of 960.gs, but did you know that a 24-column alternative exists too? In this article, you’ll master the 960 grid system by dissecting the 24-column version demo. If you’ve only used 960gs before for Photoshop mockups, consider this your lucky day. By the end of this article, you’ll be able …

Post original

18Aug
2010
Comments Off

CouchDB Comes to Android

Couchio, the company founded by Damien Katz, creator of CouchDB, has announced the release of CouchDB SDK for Android, a mobile version of the document database that can be used offline. By Abel Avram …

Post original