Archive | Web RSS feed for this section

Updating Nginx to the 0.6.x branch

23 Jun

As I’m right now moving Visualizeus to a new server, this time a dedicated one because of the huge growth, I saw that the branch 0.6.31 was the latest stable Nginx version. So, taking advantage of the server move, I decided also to update the Nginx version.

So if you don’t want to lose your time as I did, specially when moving to a new server where you can’t find where the bug is coming so easily, please notice the following:

Changes with nginx 0.6.7 15 Aug 2007

*) Change: now the paths specified in the “include”,
“auth_basic_user_file”, “perl_modules”, “ssl_certificate”,
“ssl_certificate_key”, and “ssl_client_certificate” directives are
relative to directory of nginx configuration file nginx.conf
, but
not to nginx prefix directory.

Stupid little thing but not documented in the official Nginx wiki (till now ;))

ps: Whoah! I didn’t know that WordPress.com and even YouPorn were powered by nginx! Go, huge little russian server, go! :D

Updating WordPress with Subversion

18 Apr

As I’m in a daze with these things, I haven’t realized that the “so expected” 2.5 version of WordPress was out. And I have strong reasons to suspect ;)

The thing is today I stumble on wp-scanner, a security scanner for WordPress (which I’m not pretty sure if it works well or just works) and well, it makes me realize the oldest version of WordPress was beer2beer with the 2.1.2 -ahem-

Ok, ok, I know. It’s a little bit, ehem, outdated… But let’s face it, updating WordPress  is  was a real pain in the ass. And having new releases almost each week doesn’t help neither.

And here’s where I recall the golden rule (one of them): make people’s life easier, not harder. It’s already hard enough for you to make it harder.

So, let’s get to the point: How to upgrade WordPress painless? See what I discovered today:

Installing/Upgrading WordPress with Subversion

Awesome! Almost as easy as an apt-get upgrade! I’ve just found some problems with some plugins in the Fregocles blog, which actually uses a lot of plugins, but for the rest, pretty straightforward!

Enjoy!

vi.sualize.us: Social bookmarking para imágenes

15 Oct

Pues este es el motivo porque el blog ha estado más abandonado últimamente que de costumbre (que ya es decir). Os presento el nuevo proyecto en el que me he embarcado:

vi.sualize.us

Y ahora un poco de introducción. [...]

Loading an external Javascript from a bookmarklet (Safari)

7 Oct

Loading an external javascript file from a bookmarklet is a good way to give superpowers to your favelet, and achieve what we really want, without care about the stupid 512 characters limit Internet Explorer has or without write all the code as an ugly one liner. And not to mention other advantages like server compression (i.e. js chunked and minified, gzip, …), PHP pre-processing and so on, that makes this technique in a very powerful resource when developing bookmarklets.

This post is because I recently discovered that Safari browser is a little picky when using this technique.

For example, what in other browsers (Firefox, Opera and IE) works like a charm, in Safari does not:

Note: Examples are really one liners but presented multiline for better reading.


<a href="javascript:void(
        z = document.body.appendChild(document.createElement('script'));
    );
    void( z.language = 'javascript' );
    void( z.type = 'text/javascript' );
    void( z.src = 'http://blabla.com/test.js' );
    void( z.id = 'testScript' );
">

To make Safari happy we have to polish it a little bit:
[...]

(X)HTML Elements Best Practice Sheet

21 Sep

Echándole un vistazo al Best Of August’07 de Smashing Magazine, que por cierto para ser verano viene cargadito de cosas muy interesantes, me he encontrado con esta Best Practice Sheet.

Es una tabla enorme que recoge todos los elementos (X)HTML, y los acompaña con sus respectivas notas sobre semántica, usabilidad, SEO, mejores usos, browser-issues… En fin, algo que muchas veces vas aprendiendo con la práctica, pero que tenerlo recogido aunque sea de forma esquematizada en una hoja así viene muy pero que muy bien. Y para alguien que esté empezando, da pie a ir tirando del hilo e ir formándose correctamente en este mundo salvaje del diseño y programación web.

Keryx (X)HTML Elements Best Practice Sheet

También disponible en versión PDF y OpenOffice. ¿Qué más se puede pedir? Chapeau por ellos.

Opera y la configuración total en tus manos

31 May

¿Cansado del Speed Dial? ¿Cansado del cutre-soporte torrent del Opera? ¡Pues yo también! Hoy en concreto quería deshabilitar el Speed Dial por completo, no que se ocultase, sino que ni siquiera se cargase. Y rebuscando por las Preferencias nada, no había forma. De hecho, no se si soy el único, pero a mí las preferencias del Opera me parecen un coñazo verdadero.

Asi que googleando un poco he descubierto el fantabuloso opera:config!

Tecleas eso en la barra de direcciones y ala, ahí se puede tocar tooodo lo que quieras, eso sí a base de valores poco intuitivos claro. Pero aquí llega en nuestro rescate Opera’s Settings File Explained con todos esos crípticos valores descifrados uno por uno. Por ej. para deshabilitar por completo el Speed Dial basta con poner la variable Speed Dial State a 3 que significa Disabled (as in kiosk mode).

Mola que no? Ale, a toquetear las entrañas del Opera!

Templates nativos en PHP

30 May

Una de las cosas que menos me gustan de los lenguajes de programación web (en este caso PHP pero aplicable a todos) es la ilegible mezcla que puedes acabar teniendo entre HTML y el lenguaje en cuestión si no eres un poco metódico (que deberías). Cada vez que abro un .php ajeno y veo multitud de echo con código HTML perdidos por mitad del código PHP me dan los siete males. [...]

Reticulator

12 Apr

Rescued from the total darkness of my hard disk, a little experiment in Python I made a couple of years ago…

The Reticulator!

Basically is a web tool to make modular grids in CSS. It has some minor bugs but as said, it was a little experiment, so we’ll have to live with them. The CSS generated is mostly cross-browsing (at least, it was :D) and the grid positions are based on position:relative not position:absolute.

Source code is availablehere (it works as a command line tool also).

WordPress and HTTP Basic-Auth

9 Apr

This post is for those of you with the same problem, say thanks to Google!

Problem: With WordPress and permalinks enabled, if you protect a folder or a file with .htpasswd, you’re going to get a nasty 404 Not Found.

Solution: Just add to your .htaccess file the following lines:

ErrorDocument 401 /[path_to_the_file]/myerror.html
ErrorDocument 403 /[path_to_the_file]/myerror.html

When /[path_to_the_file]/myerror.html is an existant static file in the server.

Explanation: Seems like the HTTP Basic-Auth returns a 401 Unauthorized to ask for the password. This got translated into a ErrorDocument directive, and if you haven’t properly set it up in your .htaccess (for example, pointing to some non-existant file), then it will be finally got by WordPress, which will return a 404 error.

Conclusion: Madness is here! I don’t understand how this isn’t better documented. Hope this helps!

¡Fregocles bloggizado!

29 Mar

Pues eso, a partir de ahora Fregocles tendrá su propio blog en el que colgar videos chorras del YouTube como hace todo el mundo ¡yeah!

En un principio el devlog iba a ser una sección más de la página, pero viendo como la ibamos a introducir y darle la importancia necesaria, al final se optó por la solución actual a precio de pasar toda la página a WordPress.

Más información de que es lo que se va a tratar en el blog, en el siguiente post
Fregocles: Estrenando

Feedburner y la dependencia

27 Mar

Uno de los motivos por los que no había usado Feedburner hasta la fecha era por no empeñar mis feeds, dejándolos a merced de una empresa ajena. Porque si usas Feedburner… ¿qué pasa si un día decides dejar de usarlo? ¿o si un día se vuelve de pago y ya no te interesa? Perderías a toda la gente suscrita a tu feed de Feedburner de un plumazo, y esto, según el entorno donde te muevas, puede ser más o menos problemático. Sin embargo, si quieres saber cuanta gente está suscrita a tus feeds necesitas un servicio como el que te proporciona Feedburner. Complicado dilema…
[...]