Monthly Archive for Septiembre, 2007

Llosa^2

Fin de semana pasado por agua: sábado y domingo me he ido a bucear a La Llosa, junto a la isla de Benidorm. Un sitio emblemático de la costa alicantina, de éstos a los que nunca te cansas de ir por la belleza del paisaje y la diversidad de vida marina que se suele encontrar.

La inmersión del sábado bastante bien, aunque el mar estaba picado y había algo de corriente a poca profundidad (hasta los 6-7m), que hacía tanto la entrada como la salida del agua un tanto complicadas. La de hoy de PM, un auténtido 10: agua en plena calma, a buena temperatura, visibilidad muy buena… hemos visto morenas (vairas, Jose las espantaba para que salieran de los agujeros), congrios… ¡¡hasta una langosta!! Sólo he echado de menos ver algún pulpo.

Y con ésta inmersión ya llevo 12, con lo que ya soy buceador de nivel 2. .·.·B-@

  • Twitter
  • Facebook
  • Meneame
  • email
  • Print
  • PDF
  • RSS

Error -203 while installing Firefox extensions

  • english
  • spanish

Just a moment ago, I wanted to install some Firefox extensions and update some others, but every time I tried FF gave this error:

"Firefox could not install the file because: Unexpected installation error. Review the error Console log for more detail. -203"

The fix has been quite easy. First result on a Google search was this page, where they explain a method that seems quite a drag (basically, whipe all the config out and reinstall everything), but some guy suggests in a comment that the only file you need to remove is extensions.rdf. It worked for me, just by deleting that file the problem was gone. :)

By the way, on MacOS X this file is in:

$HOME/Library/Application Support/Firefox/Profiles/PROFILE/extensions.rdf.

  • Twitter
  • Facebook
  • Meneame
  • email
  • Print
  • PDF
  • RSS

lighttpd and WordPress MU (revisited)

  • english
  • spanish

On my previous article about lighttpd and WordPress MU I proposed a LUA script to be used via mod_magnet to handle URL rewrites, as an alternative to the Apache .htaccess file. It worked, but many people complained that using LUA for every page request was quite a load penalty for the server, which I don’t fully agree as it should be sufficiently optimized. But anyway, I’d rather use a solution based off config parameters like url.rewrite, too.

Some people suggested this other method which only used server.error-handler-404. The problem is that it’s designed for standard WordPress, and doesn’t handle WPMU directory-based blogs well. But it set me on the right track anyway. :)

By using both url.rewrite and error-handler-404, you can redirect directory-blogs to the base files and all the rest to the index.php file. Anyway this method still has one big problem: all the queries redirected to index.php by the error-handler-404 will lose all the querystring variables, rendering plugins that use them (like jLanguage which uses ?lan=XXXXXX) useless. Other than that, this method seems to work.

I’m string trying to improve this configuration by using the $PHYSICAL["existing-path"] variable in lighttpd 1.5.0, but still got nothing. In the meantime, the configuration with the querystring problem would be like this:

[code lang="bash"]

url.rewrite-once = (
"^/(.*/)?files/$" => "/index.php",
"^/(.*/)?files/(.*)" => "/wp-content/blogs.php?file=$2",
"^(/wp-admin/.*)" => "$1",
"^/([_0-9a-zA-Z-]+/)?(wp-.*)" => "/$2",
"^/([_0-9a-zA-Z-]+/)?(.*\.php)$" => "/$2",
)
server.error-handler-404 = "/index.php"

[/code]

  • Twitter
  • Facebook
  • Meneame
  • email
  • Print
  • PDF
  • RSS

Otra más…

Acabo de hacer otra entrevista telefónica, ésta con una empresa española con oficinas en varias ciudades europeas, en EEUU, latinoamérica y oriente medio. La empresa, los proyectos y el puesto tienen buena pinta, y la entrevista me ha dado buen “feeling”. Todas las preguntas de Linux las he clavado, aunque si que me han pillado con una de Windows. :-P

Bueno. Dos de dos. A ver con cuál llega antes el siguiente paso…

  • Twitter
  • Facebook
  • Meneame
  • email
  • Print
  • PDF
  • RSS

Hoy es el día “G”

Sólo queda esperar, pacientemente, la hora “G”. :)

UPDATE: ¿Prueba superada? Creo que si. La entrevista ha sido una chorrada, principalmente ver mi nivel de inglés y cuatro preguntas técnicas muy muy básicas. La semana que viene o la otra tendré otra, ya de más nivel técnico.

2nd UPDATE: Ya tengo fecha para el “segundo round”,  el jueves que viene.

  • Twitter
  • Facebook
  • Meneame
  • email
  • Print
  • PDF
  • RSS

Daemontools scripts for lighttpd and PHP

  • english
  • spanish

I’ve prepared a set of daemontools scripts to launch and monitor lighttpd and its PHP processes spawned with spawn-fcgi. Here is the README, a tar file with the scripts, and here you can browse the directories with all the scripts.

PS: yes, I like daemontools. It helps me achieving high availability with many services, keeping them up even when a server misbehaves and some process dies. This avoids a lot of late night calls. It’s a great invention. :)

  • Twitter
  • Facebook
  • Meneame
  • email
  • Print
  • PDF
  • RSS

PHP with lighttpd 1.5.0

  • english
  • spanish

PHP integration and configuration in lighttpd 1.5.0 has changed: mod_fastcgi isn’t used any more, you need mod_proxy_backend_fastcgi instead; and lighty won’t launch the PHP processes, you’ll have to start them using the spawn-fcgi program.

In order to setup mod_proxycore for use with PHP, this is the bare minimum configuration (put it in lighttpd.conf, or conf-enabled/php.conf):

[code lang="bash"]

server.modules += ( "mod_proxy_core", "mod_proxy_backend_fastcgi" )

$PHYSICAL["existing-path"] =~ ".php$" {
proxy-core.allow-x-sendfile = "enable"
proxy-core.protocol = "fastcgi"
proxy-core.backends = ( "unix:/tmp/php-fastcgi.sock" )
proxy-core.max-pool-size = 16
}
[/code]
And for the PHP fast-cgi processes, just run or prepare an init.d script that runs the following command:
[code lang="bash"]

/usr/bin/spawn-fcgi -s /tmp/php-fastcgi.sock -f /usr/bin/php-cgi -u www-data -g www-data -C 5 -P /var/run/spawn-fcgi.pid

[/code]

  • Twitter
  • Facebook
  • Meneame
  • email
  • Print
  • PDF
  • RSS

lighttpd 1.5.0-SVN r1992 for Debian Sarge

  • english
  • spanish

I’ve built .deb packages of lighttpd 1.5.0-SVN r1992 for Debian Sarge. They’re based off the latest packages in testing, upgraded to 1.5.0. The only thing missing is mod_mysql_vhost, as I don’t have mySQL 5.0 installed at the moment. This server already runs lighty 1.5.0, so the fact that you’re reading this page is the best proof that it works. ;)

The packages are available for download here.

(PS: I know, I know, what I should do is upgrade to Etch altogether…)

UPDATE (20070921): new release with linux-aio-sendfile support. You’ll need the libaio port too.

  • Twitter
  • Facebook
  • Meneame
  • email
  • Print
  • PDF
  • RSS

De vuelta de todo

Ya he vuelto de Almería, y también he vuelto al trabajo después de tres semanas de vacaciones que me han sabido a poco (qué dura es la vuelta al trabajo, joer).

El viaje bastante bien, de tranqui: playa, comer bien en plan pescadito y chipirones, más playa, siesta, buena compañía… Al final no buceamos con Isub, ya que cuando fuimos a preguntar nos dijeron que tenían todas las plazas ocupadas hasta el lunes. Pero tampoco fue mayor problema, en todos los pueblecitos costeros había varios clubes de buceo, y al final nos decidimos por La Isleta en La Isleta del Moro.

Buceamos sábado y domingo, en la cala El Carnaje y en la punta de La Isleta. Inmersiones a poca profundidad (máximo 15m), lo que significa también inmersiones largas (casi una hora cada una). Bastante variedad de peces, varios bancos de peces enormes, barracudas, morenas, congrios…

Muy recomendable, tanto la zona para bucear o disfrutar de las numerosas calas, como el centro de buceo La Isleta.

  • Twitter
  • Facebook
  • Meneame
  • email
  • Print
  • PDF
  • RSS

Viaje a Almería

Ésta tarde después de comer salgo para Almería con otros tres amigos. Hemos alquilado un apartamento en Las Negras (Níjar) y el plan es desconectar de todo unos días antes de volver al trabajo y bucear si el tiempo lo permite.

La gente de Aquaventura nos ha recomendado hablar con Isub, en San José, así que el viernes por la mañana iremos para allá a ver qué inmersiones tienen planificadas para el fin de semana. Y a partir de ahí… lo que se presente. :)

Y respecto a lo del trabajo de ayer… ya tengo otro mail en el que me piden que ponga fecha y hora para que me llamen desde EEUU para hacer una entrevista telefónica. :D Me han pasado ésta dirección, que no conocía y me parece muy útil a la hora de cuadrar horarios entre distintas zonas: The World Clock Meeting Planner.

  • Twitter
  • Facebook
  • Meneame
  • email
  • Print
  • PDF
  • RSS



Bear
Creative Commons Attribution-NonCommercial 2.5 Spain
This work is licensed under a Creative Commons Attribution-NonCommercial 2.5 Spain.