Archivo para September 2010
29Sep
2010 Comments Off
2010 Comments Off
Nueva AWS SDK for PHP
La gente de Amazon ha sacado una nueva SDK PHP para AWS que puede ser usada para acceder a los servicios que ofrece: Amazon Elastic Compute Cloud (EC2), the Amazon Simple Storage Service (S3), Amazon CloudFront, Amazon CloudWatch, Amazon SimpleDB, Amazon Simple Notification Service (SNS), Amazon Simple Queue Service (SQS) y Amazon Identify and Access [...]
27Sep
2010 Comments Off
2010 Comments Off
Tratar datos binarios en PHP
Método sencillo para leer cabeceras binarias de imágenes GIF o JPEG u otros ficheros guardados en binario… Post original
27Sep
2010 <!-- 1 -->
2010 <!-- 1 -->
Curiosa creación de objetos en PHP
Recuerda mucho a Javascript y frameworks tipo jQuery, para ello utiliza métodos encadenados y un objeto genérico: // Define a new class $animal = $class->new() ->def(’init’, function($t, $name) { $t->name = $name; }) ->def(’speak’, function($t) { echo “My name is $t->name\n”; }); // Extend a class $dog = $animal->extend() ->def(’speak’, function($t) { echo [...]
24Sep
2010 Comments Off
2010 Comments Off
Carga asíncrona de scripts en Webkit
Webkit está implementando en la última versión la carga de scripts de forma asíncrona, para ello hace uso de los atributos async y defer. Esta carga de scripts se realiza sin detener el renderizado del HTML y añade el evento onLoad para ejecutar un método cuando acabe de cargarse: <script async src=”myAsyncScript.js” onload=”myInit()”></script> <script defer [...]
23Sep
2010 Comments Off
2010 Comments Off
Developer.com: crea tu primera aplicación PHP para Android
En Developer.com han realizado un tutorial que explica cómo desarrollar tu primera aplicación para Android (ejecutado en un intérprete PHP de tu móvil)… Post original
22Sep
2010 <!-- 3 -->
2010 <!-- 3 -->
Obtener URLs para usuarios en Codeigniter
foo ( codeginiter, url )
Codeigniter tiene una método para tratar con las URLs: http://dominio/controlador/metodo/param1/param2/… El problema viene cuando nuestra aplicación necesita URLs diferentes, como las de Twitter u otra red social, que son del tipo http://dominio/username. Para ello primero se debe cambiar el archivo routes.php de la configuración: //Excluir estos controladores cuando se generan las URLs $route[’(login|oauth|site|search)(.*)’] = ’1′; [...]
17Sep
2010 <!-- 2 -->
2010 <!-- 2 -->
HTML5′s “email” and “url” Input Types
I’ve already covered some subtle HTML5 improvements like placeholder, prefetching, and web storage. Today I want to introduce a few new INPUT element types: email and url. Let’s take a very basic look at these new INPUT types and discuss their advantages.The SyntaxThe syntax is as basic as a text input; instead, you set the type [...]
17Sep
2010 Comments Off
2010 Comments Off
Xeround: MySQL Elastic, Always-on Storage Engine for the Cloud
foo ( )
Xeround is a new MySQL storage engine offered as Database-as-a-Service. What it promises sounds (a bit?) too good to be true (nb this list have been extracted from their site): seamless replacement of existing MySQL database high availability (including schema changes) automatic fault-detection and recovery full consistency with low latency elastic … Post original
17Sep
2010 Comments Off
2010 Comments Off
Transparent Borders with background-clip
Have you ever seen an element on a page with transparent borders? I think Facebook originally popularized it giving birth to lightbox plugins like Facebox. I don’t think Facebook sports the look anymore, but it’s still rather neat. You might think it would be as simple as this:#lightbox { background: white; border: 20px solid rgba(0,0,0,0.3); [...]
16Sep
2010 Comments Off
2010 Comments Off
Neo4j Gets Geo Support
I guess that’s what kept the Neo Technology — the guys behind Neo4j — busy lately: The Neo4j Spatial project supports the use of geographic data by providing utilities that simplify and support advanced capabilities like: Storage of geographic features like points, lines and polygons as graphs Indexing and querying based on location with R-trees, [...]