Sobre la obsolescencia del PC
November 29th 2012

Iba a poner un comentario a esta entrada en Xataka, pero como no tengo usuario, y además apenas escribo en el blog… pues me he dicho: voy a ponerlo aquí.

El PC está obsolesciendo para la gente que realmente nunca lo necesitó. Para la gente que lo tiene porque todo el mundo lo tiene, o simplemente para navegar por internet sin saber muy bien por qué debe querer navegar (pero todos sus amigos “están online”, así que debe de estar guay).

Pero para una gran parte de usuarios más “avanzados”, el PC es insustituible. Si quieres jugar de verdad, irónicamente ningún otro “juguete” te vale: ni tablet, ni móvil, ni (al menos para algunos juegos) las consolas. ¿Y si quieres programar, o cualquier otra cosa que requiera teclear mucho? Ah, ya, le enchufas un teclado al tablet y lo conviertes en un incómodo PC… vale. Y si quieres editar un video o una foto, le enchufas una pantalla externa… como un PC, pero peor, vamos.

El PC proporciona al usuario una libertad que ningún otro gadget proporciona, en dos frentes: hardware y software. En hardware, nada como poder elegir los componentes individualmente y montarte tu equipo (o que te lo monten) como quieras. Buena suerte comprando un segundo módulo de memoria para tu tablet porque X GB se te quedaron cortos. En software, nada como comprar un hardware “limpio” e instalar el SO que tú quieras, por no mencionar compilar tus aplicaciones desde código fuente. Buena suerte instalando WinXP en tu tablet Android o Linux en tu iPad (que no digo que sea imposible).

Es dolorosamente obvio que la industria está dirigiendo a los usuarios hipsters hacia esta “gadgetificación” en la que sustituyamos nuestros computadores de propósito general (= libertad) por cacharros con software y hardware fijo diseñados para hacer lo que el fabricante quiere que hagas con ellos (= control). Lo último es ya convertir en “smartTV” (cota de cinismo alcanzada: god level) la caja tonta, lo cual es un paso más en reconducir la libertar tecnológica/informática a través de canales controlables (y controladores de masas) tradicionales.

No tag for this post.

1 Comment »

Sobre la constitucionalidad del matrimonio homosexual
February 7th 2012

Aparentemente ahora que la derecha ha vuelto al gobierno de España, están afilando las garras para aplicar recortes de derechos de trabajadores, libertades civiles y todo lo que puedan pillar por banda. Una de tales libertades es el matrimonio homosexual, que el gobierno de Zapatero aprobó en el 2005, con el apoyo de una amplia mayoría del Parlamento a la que, ¡sorpresa-sorpresa!, se opuso el PP. Ya en su momento estos elementos reaccionarios llevaron la cuestión al Tribunal Constitucional, alegando que tal Ley (permitir que los homosexuales se casaran) vulneraba la Constitución.

A raiz de unas declaraciones de Gallardón (personalmente no contrario al matrimonio homosexual), me he preguntado: ¿será cierto que la Constitución deniega a los ciudadanos homosexuales que se casen?. Me parecía un poco raro, porque la Constitución precisamente otorga derechos a los ciudadanos, no limitaciones de derechos. De hecho, las limitaciones de derechos que impone son tales para garantizar derechos al resto de ciudadanos, no para quitar derechos por quitar. Un poco de googleo me confirmaba mis sospechas (ver, p.e., laconstitucion.es).

El PP alega que la Ley de matrimonio homosexual vulnera concretamente 7 Artículos de la Constitución: 32, 10, 14, 39, 53, 9 y 167. Empecemos por el 32:

Artículo 32

1. El hombre y la mujer tienen derecho a contraer matrimonio con plena igualdad jurídica.

2. La ley regulará las formas de matrimonio, la edad y capacidad para contraerlo, los derechos y deberes de los cónyuges, las causas de separación y disolución y sus efectos.

Empezando por lo más obvio: el segundo punto indica que será mediante las leyes (no la propia Constitución, ni la Iglesia, ni la moral, ni la costumbre) que se articularán las normas concretas de cómo contraerán matrimonio los ciudadanos. Es decir, delega completamente en el Parlamento (los que en 2005 promulgaron la Ley de matrimonio homosexual que el PP llevó al TC) la potestad para hacer esas normas (por ejemplo, si los conyuges deben ser de sexos opuestos o no).

Pero sigamos por lo más jugoso, el primer punto. Si leemos correctamente, el artículo dice que tanto hombres como mujeres pueden contraer matrimonio, y que lo deben hacer en igualdad ante la Ley. Pero ojo, que no dice que tenga que ser entre ellos. En ningún momento dice que los hombres deben casarse con mujeres y viceversa. Simplemente no lo especifica. Pero es que la cosa no acaba ahí. Aunque el primer punto dijera explícitamente: “una persona tendrá derecho a casarse con otra persona de sexo opuesto”, (cosa que NO dice), seguiría sin ir contra ese Artículo el que dos hombres o dos mujeres se casaran, a menos que en el Artículo añadiera explícitamente “… y sólo con una persona de sexo opuesto”. Asumir que el hecho de que la Constitución otorgue el derecho sólo a parejas heterosexuales (cosa que NO hace) deniega ese derecho a parejas homosexuales sería tan ridículo como suponer que si la Constitución dice que todo ciudadano tiene derecho a una educación básica gratuita, cualquier colegio de pago es inconstitucional. Sería un caso de aplicar la misma lógica: pone que tienes derecho a educación gratis, luego sólo tienes derecho a educación gratis, luego no tienes derecho a educación de pago. Pone (que NO lo pone, pero es un suponer) que tienes derecho a matrimonio heterosexual, luego sólo tienes derecho a ese matrimonio, luego no tienes derecho a ningún otro matrimonio.

No pensaba comentar más sobre el resto de Artículos, pero hagámoslo, por completitud:

Artículo 10

1. La dignidad de la persona, los derechos inviolables que le son inherentes, el libre desarrollo de la personalidad, el respeto a la ley y a los derechos de los demás son fundamento del orden político y de la paz social.

2. Las normas relativas a los derechos fundamentales y a las libertades que la Constitución reconoce se interpretarán de conformidad con la Declaración Universal de Derechos Humanos y los tratados y acuerdos internacionales sobre las materias ratificados por España.

Esto tiene poquísimo que ver con el matrimonio (homosexual o no), pero si algo tiene que ver, es que el punto 1 dice claramente que permitir que los ciudadanos desarrollen libremente sus personalidades (por ejemplo su amor homosexual) y respetar los derechos de los demás (por ejemplo su derecho a unirse en matrimonio voluntariamente) son un fundamento. Prohibir el matrimonio homosexual iría, en todo caso, contra este Artículo, no a favor.

Artículo 14

Los españoles son iguales ante la ley, sin que pueda prevalecer discriminación alguna por razón de nacimiento, raza, sexo, religión, opinión o cualquier otra condición o circunstancia personal o social.

Otra palada más de piedras contra el tejado del PP. Dice claramente que no puede haber discriminación por razon, entre otras, de sexo ni opinión. Es de presuponer que tampoco por preferencia sexual (la unión de opinión y sexualidad), a menos que el PP opine que la opción sexual es una de las opiniones por las que sí puede discriminarse. No se me ocurre ejemplo más patente de discriminación por motivo de opinión y orientación sexual que permitir que los hetereosexuales contraigan matrimonio, pero los homosexuales no.

Artículo 39

1. Los poderes públicos aseguran la protección social, económica y jurídica de la familia.

2. Los poderes públicos aseguran asimismo, la protección integral de los hijos, iguales éstos ante la ley con independencia de su filiación, y de las madres, cualquiera que sea su estado civil. La ley posibilitará la investigación de la paternidad.

3. Los padres deben prestar asistencia de todo orden a los hijos habidos dentro o fuera del matrimonio, durante su minoría de edad y en los demás casos en los que legalmente proceda.

4. Los niños gozarán de la protección prevista en los acuerdos internacionales que velan por sus derechos.

Nótese cómo se habla de la familia, pero no se define qué es “familia”. Sospecho que los reaccionarios de la derecha querrán argumentar que la familia a la que se alude es exclusivamente la formada por un hombre y una mujer (y sus hijos), pero esto es su opinión, no lo que dice la Constitución. Nótese también que se habla de “padres” y “madres”, pero no necesariamente en conjunto. Si lo hiciera, sería una norma ridícula, que haría inconstitucional que un hombre viudo o una madre soltera, por poner ejemplos, siguiera cuidando de sus hijos: como no son una “familia” con padre+madre, ya no están amparados por la Constitución. Obviamente esto no es así. Además, nótese que en el punto 2 se habla de “paternidad”, pero no se refiere sólo a la filiación respecto a un progenitor masculino. Un niño podría haber sido abandonado por su madre, y tener derecho a investigar su “paternidad”, entendiendo por ello saber quién es su padre Y TAMBIÉN su madre. Ídem con el punto 3 al hablar de “padres”: obviamente se refiere a padres y madres, sin distinción. Si se entendiera que hace distinción deberíamos aceptar que la única “familia” que define la constitución es la unión homosexual de 2 hombres.

Artículo 53

1. Los derechos y libertades reconocidos en el Capítulo segundo del presente Título vinculan a todos los poderes públicos. Sólo por ley, que en todo caso deberá respetar su contenido esencial, podrá regularse el ejercicio de tales derechos y libertades, que se tutelarán de acuerdo con lo previsto en el artículo 161, 1, a)

2. Cualquier ciudadano podrá recabar la tutela de las libertades y derechos reconocidos en el artículo 14 y la Sección primera del Capítulo segundo ante los Tribunales ordinarios por un procedimiento basado en los principios de preferencia y sumariedad y, en su caso, a través del recurso de amparo ante el Tribunal Constitucional. Este último recurso será aplicable a la objeción de conciencia reconocida en el artículo 30.

3. El reconocimiento, el respeto y la protección de los principios reconocidos en el Capítulo tercero informará la legislación positiva, la práctica judicial y la actuación de los poderes públicos. Sólo podrán ser alegados ante la Jurisdicción ordinaria de acuerdo con lo que dispongan las leyes que los desarrollen.

Más normas de dudosa pertinencia al tema, pero que en todo caso indican que es la Ley (lo que se define en el Parlamento, no en el TC) lo que debe regular los derechos y libertades Articuladas previamente (mientras no contradigan el espíritu de lo articulado). No veo nada de “matrimonio gay = malo”.

Artículo 9

1. Los ciudadanos y los poderes públicos están sujetos a la Constitución y al resto del ordenamiento jurídico.

2. Corresponde a los poderes públicos promover las condiciones para que la libertad y la igualdad del individuo y de los grupos en que se integra sean reales y efectivas; remover los obstáculos que impidan o dificulten su plenitud y facilitar la participación de todos los ciudadanos en la vida política, económica, cultural y social.

3. La Constitución garantiza el principio de legalidad, la jerarquía normativa, la publicidad de las normas, la irretroactividad de las disposiciones sancionadoras no favorables o restrictivas de derechos individuales, la seguridad jurídica, la responsabilidad y la interdicción de la arbitrariedad de los poderes públicos.

Queda claro que el Artículo más relevante es mencionado en primer lugar (el 32), y que según avanzamos en la lista esgrimida por el PP cada vez hay menos relación con el tema. Aquí lo único que dice es que nadie puede saltarse la Constitución, y que los poderes públicos deben defenderla, y defender los derechos de los ciudadanos. El punto 2 deja claro, en todo caso, que la Constitución obliga a eliminar todo obstáculo que “dificulte la plenitud de la libertad e igualdad del individuo y de los grupos”. Es decir, que una Ley que impidiera ejercer cierta libertad a un grupo (por ejemplo el matrimonio a los homosexuales) chocaría de frente con este Artículo de la Constitución.

Artículo 167

1. Los proyectos de reforma constitucional deberán ser aprobados por una mayoría de tres quintos de cada una de las Cámaras. Si no hubiera acuerdo entre ambas, se intentará obtenerlo mediante la creación de una Comisión de composición paritaria de Diputados y Senadores, que presentará un texto que será votado por el Congreso y el Senado.

2. De no lograrse la aprobación mediante el procedimiento del apartado anterior, y siempre que el texto hubiere obtenido el voto favorable de la mayoría absoluta del Senado, el Congreso, por mayoría de dos tercios, podrá aprobar la reforma.

3. Aprobada la reforma por las Cortes Generales, será sometida a referéndum para su ratificación cuando así lo soliciten, dentro de los quince días siguientes a su aprobación, una décima parte de los miembros de cualquiera de las Cámaras.

Llegamos ya al esperpento argumentístico final, con un Artículo que no habla ni remotamente del tema en cuestión (recordemos: había que decidir si la Constitución permite a una pareja homosexual que contraiga matrimonio). Supongo que el argumento es que la Ley de 2005 que legalizaba los matrimonios homosexuales vulnera los supuestos en los cuales puede enmendarse la Constitución. Pero es que primero ha de decidirse si esa Ley está en desacuerdo con la Constitución, que hemos visto que no lo está. Además, recordemos los Artículos 32 y 53, en los cuales se deja meridianamente claro que es potestad de la Ley (es decir, lo dictado por el Parlamento), el construir las reglas que rijan lo articulado en la Constitución (en general, y en concreto lo referente a matrimonios, véase Artículo 32, punto 2).

Tags: , , ,

No Comments yet »

Linux is not a bicycle
January 5th 2012

I recently found this blog: linux-is-a-bicycle.blogspot.com, and tried to leave a comment there, regarding the motto of the site (Linux being a bicycle), but for the life of me I just could not. Hitting either “Publish” or “Preview” just resulted in the comment I had just written to disappear. A bit frustrating.

So I decided to publish my comment in my own blog, and send a trackback.

Hi!

You say that Linux is a “bicycle” (I assume that making Windows/Mac a “car”), but I do not agree. Linux is not a Win/Mac counterpart, designed for the same purposes, but with free maitenance, at the expense of having less power, and requiring much more effort (as a bicycle is to a car).

I would instead compare Linux to a bulldozer or a Formula 1 (actually, to a bulldozer AND a Formula 1 AND many other things, at the same time). A bulldozer is more suited (than a car) for some task, but requires some expertise to be used. Power comes at the price of training to use it, and Linux is a perfect example of it.

Anyone can drive a car, but handling heavy machinery or racing cars to the inexperienced can lead to disaster. On the other hand, acquiring the required experience with heavy machinery or a racing car can be quite rewarding, as it allows one to perform at one’s full potential. Training for racing or moving heavy rocks around with a regular car, on the other hand, will quickly prove frustrating.

Tags: , ,

3 Comments »

Desktop environment manipulation from the command line
January 9th 2011

I recently discovered Regnum Online, a very good MMORPG, with two interesting properties: it has a native Linux version, and is free to download and play (NGD, its owner, gets revenue through so called “premium items”, which are sold for real money. Premium items are not really necessary to play, but include convenience items like mounts, to travel faster than on foot).

It so happens that Regnum can be played either in windowed mode, or fullscreen. Obviously the latter takes advantage of the whole screen, but sadly it can not be minimized or alt-tabbed to a different window. Being able to minimize the Regnum window and switching to another task is interesting, for example, to leave your character resting after a battle (it takes some time to heal back to normality), and checking your e-mail meanwhile. However, playing in windowed mode feels uncomfortable, with not all the screen being used, and having your desktop bars above and/or below the window you are playing on.

To have the advantages of both windowed and fullscreen mode at the same time (and none of their disadvantages), I thought of the following: I can play on 1440×900 resolution (my whole screen), hiding the top and bottom bars (I use GNOME, with both bars), and getting rid of the window decoration of the Regnum window (which would eat some of the 900 vertical pixels). While we are at it, it would be cool to stop Compiz Fusion before running Regnum (to dedicate the whole video card to the game), and starting it again after closing it.

The problem is, I do not like to have autohiding panels in GNOME, and I like window decorations and Compiz effects, so the desktop settings for playing would have to be turned on before playing, and off after that. The next problem in the line is that I don’t like performing repetitive tasks such as pointing, clicking and choosing options from menus every time I feel like playing a game. Since I already click a button to start Regnum, it would be cool to have all configuration stuff happen by just clicking that same button. Obviously, that means automating all the configuration by placing the corresponding commands in a script, and making the Regnum button execute that script.

Stopping Compiz

That part was easy. We want to switch from Compiz to Metacity, which can be done with:

metacity --replace

Autohiding GNOME panels

Some googling yielded this ubuntu-tutorials page, which led me to:

gconftool-2 --set "/apps/panel/toplevels/top_panel_screen0/auto_hide" --type bool "true"
gconftool-2 --set "/apps/panel/toplevels/bottom_panel_screen0/auto_hide" --type bool "true"

Eliminating window decorations

All you can google about it will lead you to a little wonder called Devil’s Pie. In short, it’s a kind of daemon that checks for windows that match some user-defined rules, and performs on them the corresponding user-defined actions.

In my case, I defined a rule (in ~/.devilspie/regnum.ds):

(if
    (is (application_name) "Untitled window")
    (begin
        (undecorate)
    )
)

Running devilspie from the command line will show the properties of all open windows, which will help you create the appropriate condition for the rule. In my case, apparently the final Regnum window is identified only as “Untitled window”.

Running Regnum, and waiting for it to finish

Waiting for Regnum to finish is not trivial, since once fully running it returns the control to the shell. For that reason, the following will not work:

$ echo "start"
$ regnum-online
$ echo "end"

It will echo “start”, then start Regnum, then echo “end”, while Regnum is still running. To fix that, I added a loop to my script, which only exits once Regnum has finished. There must be more elegant and less hacky ways of doing it, but this one works:

while [[ -n "`ps aux| grep -e regnum-online -e "./game" | grep -v grep`" ]]
do
    sleep 5
done

Every 5 seconds, it runs some ps command, and exits when the output is empty. The command itself is a simple grep to a ps, adding the grep -v grep so that the grep command is not catched by itself.

After closing Regnum, and whole script

So, after the while loop above exits, all we have to do is undo the settings changes we just did, and exit. The whole script would read:

#!/bin/bash

# Substitute Compiz with Metacity:
metacity --replace &

# Autohide top and bottom pannels:
gconftool-2 --set "/apps/panel/toplevels/top_panel_screen0/auto_hide" --type bool "true"
gconftool-2 --set "/apps/panel/toplevels/bottom_panel_screen0/auto_hide" --type bool "true"

# Run devilspie, to remove decoration in Regnum Online windows:
/usr/bin/devilspie &

# Run Regnum Online:
/usr/bin/regnum-online

# Wait until RO finishes:
while [[ -n "`ps aux| grep -e regnum-online -e "./game" | grep -v grep`" ]]
do
    sleep 5
done

# Kill devilspie:
killall devilspie

# Show top and bottom pannels:
gconftool-2 --set "/apps/panel/toplevels/top_panel_screen0/auto_hide" --type bool "false"
gconftool-2 --set "/apps/panel/toplevels/bottom_panel_screen0/auto_hide" --type bool "false"

# Run Compiz again:
compiz --replace --sm-disable --ignore-desktop-hints ccp --loose-binding --indirect-rendering &

Finally, I just named this script “RegnumRun.sh”, made it executable, placed it in a suitable place, and associated the Regnum icon on my top panel with RegnumRun.sh, instead of with regnum-online directly, and voilà: every time I click on that icon I get to play Regnum with purpose-chosen settings, and I get my regular settings back once I exit Regnum.

Tags: , , , , , , , , , ,

No Comments yet »

Tiny introduction to GNU Terminator
August 30th 2010

Some weeks ago, I came across this little wonder called GNU Terminator (or “GNOME” Terminator). It is an unfortunate coincidence that there is another similar tool with the same name (Terminator). I am not going to judge which one is “better”. I just use the one at tenshu.net, which is the one that Arch Linux ships as package “terminator”.

Terminator is a terminal emulator that allows for splitting of the window into several smaller terminals. Its main advantage over just using tabs (which Terminator can also do), is that all windows are simultaneously visible (main obvious drawback: they are smaller). Its main advantage over opening multiple terminals and tiling them is that (except if a tiling window manager is used, which would also have this advantage) is that Terminator automaticaly avoids overlaps, while maximizing the space usage. Some tools, such as the Grid module of Compiz Fusion can arrange windows similarly. Actually, I have been using this module extensively, and I still do. However, Terminator is more convenient, both because it allows arbitrary sizes (Grid allows windows to occupy an integer number of virtual screen sections, in an imaginary 3×3 grid), and because resizing a sub-terminal automatically adapts all the others, avoiding overlapping and wasting space.

I uploaded a short video to YouTube, showing a basic usage of Terminator. Below the video you can read some explanations of what you see:

We start by opening a Terminator window, and maximizing it. Next, we split the window into 4 terminals. We first split the original terminal vertically, with Ctrl-Shift-o (with a “horizontal” line), then we split each terminal horizontally with Ctrl-Shift-e (with a vertical line). We can act on each terminal individually. To navigate the terminals with the keyboard: Alt-Left for left, etc.

We continue by resizing the terminals. The borders separating the terminals are actually grab bars, so we can drag them with the mouse to move those boundaries, so the terminals resize accordingly. With the keyboard: Ctrl-Shift-Left grows the current terminal (the one with the cursor) to the left, etc.

Apart from tiled terminals, we have access to tabs. To open one, right-click with mouse and select “Open Tab” in the context menu, or with the keyboard: Ctrl-Shift-t. Move from tab to tab with Shift-Left and Right.

Finally, we close the terminals we don’t need anymore, and the remaining ones adapt, to always maximize the space used. Closing all terminals will, of course, close Terminator.

Tags: , , , , , , , ,

2 Comments »

Crítica a una crítica a Origen (Inception)
August 15th 2010

Hace mucho que no uso el blog para criticar alguna película, y voy a aprovechar que me mueve a ello la crítica de un usuario de FilmAffinity al film Origen. El usuario es KesheR, y su crítica es esta.

Vaya por delante que aunque mi crítica a su crítica sea casi tan dura como la suya a la película Origen, ello no desmerece a KesheR, cuyas críticas, incluida esta, son (parece ser, por lo que he leído en su perfil) muy lúcidas. Por ejemplo su opinión de El Caballero Oscuro (también dirigida por Chris Nolan) es bastante coincidente con la mía (bueno, eso no quiere decir que sea acertada, jejeje).

Si alguien estuviera interesado en mi opinión de la película Origen, diré que me gustó mucho (le he puesto un 8 en FilmAffinity, aunque es incluso menos que la media, ya que lleva un 8.3 en 10000 votos), y que aunque es verdad que es un poco enrevesada, creo que su enrevesamiento está justificado.

AVISO – WARNING – SPOILER

El texto que sigue cuenta cosas de la película que te la pueden destrozar si no la has visto todavía. Incluso si la has visto, y tienes intención de verla de nuevo para enterarte mejor, te recomiendo que no sigas leyendo, por si aquí se mencionan ideas que desearías descubrir por ti misma.

Lo que pasa “de verdad” en la peli

Empecemos por el final: la “gran” explicación. Es un detalle que a KesheR parece escapársele, pero creo que es vital. La película, en su totalidad, es un sueño de Cobb (Di Caprio). Lo que Cobb vive como “mundo real” (el trato con Saito, el viaje en avión, la reunión final con sus hijos), es el “nivel” de sueño donde él vive permanentemente (el “limbo”), y todo lo demás son artificios de su subconsciente para superar el quid de la cuestión, el núcleo de la historia: su sentimiento de culpa por la “muerte” de su mujer.

Cuando Cobb y su mujer “despiertan” de su mundo onírico particular (donde pasan esos proverbiales 50 años) al “mundo real”, donde la mujer sigue pensando que está en un sueño, en realidad la mujer tiene razón, y es Cobb quien está engañado. La mujer se suicida y (quizá) despierta. Cobb sigue en el sueño, atormentado por la “muerte” de su mujer, y creyendo que está en el mundo de vigilia. Todo lo que sucede después es una continuación de ese sueño, en el cual Cobb pelea (o colabora) con su propio subconsciente para elaborar una trama que le absuelva de su pecado, y le permita dejar atrás la muerte de su mujer.

Respuesta a la crítica de KesheR

Aunque citaré aquí fragmentos, os recomiendo que la leáis, pues es muy interesante: crítica en FilmAffinity.

“Inception” es una película sobre los sueños.

El principal problema es que yo no he visto ni un solo minuto de sueños en ella.

Christopher Nolan dedica media película a explicar las normas de sus sueños, [...]

Pero es que falta una cosa. Es que faltan los sueños.

No nos engañemos. Nadie sueña así, yo no sueño así y al menos eso puedo asegurarlo. Mis sueños no son lineales, no tienen lógica interna, no siguen un patrón [...]

Los sueños “demasiado lógicos” que muestra la película tienen un doble motivo, y están plenamente justificados. En primer lugar, KesheR tiene razón en que los sueños de verdad son inconexos, irracionales e ilógicos, pero nuestra mente los ve lógicos mientras ocurren. El problema es que Nolan necesita transmitir al espectador el punto de vista del durmiente: que lo que pasa es lógico. Para ello, no cuenta con la piadosa complicidad del subconsciente del espectador, ya que este está despierto (o eso desea el director), y por lo tanto tiene que hacer el sueño lógico de verdad. Desde este punto de vista, son los sueños fantasiosos plasmados por otros directores, que menciona KesheR, los que están “mal”. Están mal porque muestran hechos increibles (para el espectador), mientras que en realidad los sueños son perfectamente creibles (para el durmiente). Un sueño fantasioso (como la historia de zombies y trenes a Berlín que describe KesheR), no es una plasmación fiel de un sueño, ya que para el durmiente el sueño nunca es fantasioso. Tal depicción de un sueño sería tramposa para el espectador.

El segundo motivo de la racionalidad de los sueños en la película está unido al primero, y es que Nolan necesita que Cobb se engañe a sí mismo (y nos engañe durante 150 minutos) sobre la naturaleza onírica de lo que se nos presenta como real (el plan con Saito, el vuelo en avión, etc). Si los sueños fuesen manifiestamente fantasiosos, el espectador sabría desde el minuto 0 que toda la película es un sueño de Cobb, lo cual sería estafar al espectador, que no compartiría el punto de vista del personaje (ver párrafo anterior).

Como he dicho, dedica media película a explicar sus leyes; aún así, se las salta; aún así, la película es tremendamente confusa.

¿Confusa?, quizá. ¿Tramposa?, nunca. Nolan respeta las normas que describe, y debemos aceptar que sigue estas normas para que ciertas irregularidades (que KesheR mismo menciona) nos hagan ver la verdad (que Cobb sigue soñando), en vez de pensar que son fallos en el guión. Por ejemplo: supuestamente sólo el subconsciente del durmiente se manifiesta en un sueño. ¿Nolan se lo salta al sacar cosas del subconsciente de Cobb dentro de los sueños de otras personas? No. Simplemente son pistas de que en realidad todo es parte de un sueño de Cobb. Hay un motivo por el que Nolan pierde tanto tiempo explicando las reglas que luego aplica: para que el espectador esté pertrechado para detectar la gran mentira, el sueño de Cobb.

¿Por qué el personaje del “falsificador” es capaz de sacar un pedazo de arma en un momento dado? ¿Por qué no lo hace nunca más? ¿Por qué no sueña un pulverizador láser, o un tiranosaurio, o una lluvia de relámpagos?
¿Por qué el amenazado durante el sueño no puede imaginarse en medio del océano, o en la luna, o con el traje de Supermán puesto y lanzando hostias como panes?

Las leyes que explica Nolan nos dicen que la manipulación del sueño ajeno se basa en la verosimilitud. Los intrusos deben interactuar con el sueño del durmiente de manera “creible”, ya que la introducción de elementos fuera de lugar en el sueño hace que el subconsciente del durmiente se percate de la invasión, y luche contra ella (“como los glóbulos blancos contra las infecciones”, tal y como dicen en la peli). Pulverizadores láser, o tiranosaurios salidos de la nada, generarían una respuesta brutal por parte del subconsciente (ver escena del principio, cuando Cobb y la arquitecta son rodeados inmediatamente por una turba al crear esta segunda escenarios imposibles).

¿Por qué el arquitecto (=renderizador), en vez de diseñar laberintos de propósito muy poco claro, no diseña miles de trampas mortales para las amenazas del sueño?

El propósito de los laberintos es mantener la mente del durmiente ocupada, sin que esta sepa que lo está. Crear un escenario donde actuar, que sea a la vez pequeño y controlable, y realista. No puede llenarse de trampas mortales ni de elementos altamente increibles, porque el subconsciente del durmiente se rebelaría. La viabilidad de la interacción con el sueño se basa en no desatar una respuesta excesiva del subconsciente del durmiente.

¿Por qué el subconsciente del acosado sólo lanza contra los intrusos a las “proyecciones” (=personas) que hay por ahí pululando, y no les envía una bomba atómica o un calamar de doscientos metros de largo?

Porque el subconsciente no es “consciente” de la agresión. Las modificaciones hechas por los intrusos son molestias mayores o menores, que el subconsciente combate en proporción a la amenaza percibida. Cuando un mosquito nos pica, le damos un manotazo. No sacamos la recortada hasta darnos cuenta de que el supuesto mosquito es la nariz de un rinoceronte en celo. Precisamente los intrusos no usan los métodos que KesheR sugiere más arriba (tiranosaurios o pulverizadores láser), para no desatar una escalada de violencia del subconsciente.

¿Por qué Di Caprio no le pega un tiro a su mujer en vez de esperar 50 años a que ella decida poner la cabeza en las vías del tren (bizarra forma de suicidarse)?

Porque quiere convencerla de que el mundo donde viven no es real. Aparentemente, cuando la gente vuelve del limbo de forma violenta, se vuelve loca. Cobb quiere “curar” a su mujer, antes de despertarla. La manera de suicidarse, como todo en los sueños, es simbólica: un tren los lleva de la estación de la locura, a la de la cordura, mediante la muerte.

¿Por qué un crimen como el de asesinar a tu mujer (bastante común) es suficiente para que se haga una excepción a las leyes de extradición? ¿Por qué puede escapar del país tan ricamente? ¿Realmente no tenía tiempo para darles un besico a los críos?

Todo esto son más indicios de que la trama es un sueño de Cobb. Su paranoia lo lleva a pensar que todos le persiguen. La naturaleza del sueño hace que le ocurran situaciones inconexas (en una escena muere su mujer, en otra se despide de sus hijos, en otra ya ha huido al extranjero…). Su complejo de culpa se manifiesta en el castigo autoinfligido de no poder despedirse de sus hijos en condiciones.

¿Por qué el subconsciente de Di Caprio se manifiesta para joder la misión, no sería más lógico que ayudara? ¿Por qué el subconsciente de los demás intrusos no se manifiesta?

¡Efectivamente! El único subconsciente que se manifiesta es el del durmiente, según dicen las reglas. Es decir, que con esta reflexión podemos darnos cuenta de que es Cobb el que sueña. No es que el subconsciente de Cobb “joda” la misión. Es que no hay misión ninguna. Todo es un invento de la mente subconsciente de Cobb, para llevarlo por un camino que acabe en redención, en superación del sentimiento de culpa, en reconciliación con la pérdida de su mujer. Obviamente tal redención sólo es posible si el propio Cobb se cree la mentira. Es decir, el subconsciente engaña a Cobb.

¿Por qué no le suena al niño rico la cara de los demás cuando se despierta en el avión? ¿Por qué alguien tran ultramillonario viaja sin guardaespaldas, igual que el japo? ¿Por qué él si recuerda a los intrusos? Etcétera.

Todo eso son artefactos del sueño de Cobb. Ocurren detalles inconsistentes, pero que para Cobb son irrelevantes. Es una muestra más de que la construcción del sueño de Cobb contiene solamente los elementos racionales que Cobb necesite para creérselo, y el resto es opcional.

No le encuentro sentido a la mitad de las cosas y tampoco me apetece buscárselo. Al final estaba tan confuso y aburrido de tanto tiro y tantos aires de grandeza y de “auteur” que sólo tenía ganas de que dieran la patada ésa (fuera lo que fuese) y que se despertaran todos de una puta vez. Me daba exactamente igual la mujer de Di Caprio, sus hijos, el tío de la compañía, y la madre que los parió a todos.

Pues es una lástima, porque esta película merece el que se le busque el sentido. Está construida con suficiente inteligencia como para que las inconsistencias nos hagan plantearnos qué es lo que se nos ha escapado, en vez de por qué el director ha metido la pata. Que no significa que Nolan no haya metido la pata de vez en cuando.

Todo son excusas para hacer una película de acción como otra cualquiera, revestida de pretenciosidad, pseudociencia, y supuesta complejidad para que la gente salga del cine pensando: “he visto la típica película de tiros, pero ojo, ésta es profunda”. “Ésta tiene chicha”. Y con su final abierto para que el espectador sienta que no le toman por tonto (a pesar de que le han explicado las cosas doscientos millones de veces).

No entiendo del todo lo que KesheR quiere decir con lo de “final abierto”. ¿A que no se sabe si es un sueño o no? Porque si es así, y el espectador se da cuenta de ello (el que la peonza nunca se detenga es señal inequívoca de que es un sueño, aunque Nolan corta antes de que sea 100% obvio), el resto de dudas se despejan automáticamente.

P.D.: ¿qué pinta Michael Caine aquí, qué pinta su personaje, de qué da clase, qué relación tiene con Di Caprio, qué estudia la chica?

¡Claro! Por enésima vez, Nolan nos da más pistas de que Cobb sueña. El padre de Cobb no es más que un accesorio mental para hacer creible al consciente de Cobb que ha encontrado otra arquitecta. La arquitecta no es más que un accesorio mental para hacer creible a Cobb que no es él el que genera los sueños, sino “otra persona”. El oficio de Cobb Sr. o los estudios de la arquitecta son irrelevantes. Son exactamente el tipo de detalles que generan inconexiones en el sueño, que el durmiente se salta a la torera. No se nos explica más porque Cobb no necesita más explicación. El hecho de que se nos omitan detalles importantes es una pista más de que es un sueño, y que Cobb puede creérselo, pero nosotros no.

P.D. 2: el doblaje es como para echar la papilla, y la máquina con la que se conectan es para mear y no echar ni una puta gota.

Hombre, el doblaje no es culpa del pobre director (y a mí no me ha parecido tan malo, pero bueno). En cuanto a la máquina, estoy con KesheR, es un poco cutre :^)

Tags: , , , ,

No Comments yet »

Does reason exist among religious people?
August 3rd 2010

The title should read “theist”, not “religious”, people, but I sacrificed correctness for impact. I didn’t want the reader to spend time wondering what a theist is (if you wonder it now, a theist is someone who is almost, but not 100%, an atheist: one that disbelieves in all gods, except one).

I recently stumbled across an essay by David Anderson (a very religious fellow, or at least theist), where he asks: “Does Richard Dawkins exist?”. He makes a parallelism between Richard Dawkins’s arguments supporting doubts about (some) god’s existence (in his book The God Delusion), and similar arguments against the existence of Dawkins himself.

Apparently, the argument of Anderson’s essay (I’ll sumarize here, for those readers with severe fallacyfobia, who could suffer a seizure if they read the original), goes as follows: Dawkins, in his book, offers some arguments against the assumption that god exists. These arguments are based mainly on skepticism. Anderson (thinks he) applies the same reasoning to Dawkins himself, and concludes that Richard Dawkins must not exist. Since this is apparently ridiculous, Anderson has cleverly shown how stupid we were for believing Dawkins, and how “Hyper-scepticism” is bad. What he fails to tell us is, then, what alternative mindset he recommends… “hyper-gullibility”, perhaps?

I will debunk this theist zealot’s points with three both alternative and additive propositions. The first one is that Dawkins’s existence does not need to be proven to reasonable people (god’s does). However, if it needed to be proven, it could be (god’s can’t). Thirdly, if Dawkins’s existence could not be proven, the validity of the arguments in his (alleged, maybe he doesn’t exist) book would hold just the same (the Bible has no validity if there is no god to back it up).

If you’re not into never-ending dissertations (unlikely, if you read so far), you can skip the first two sections, and head directly to “The existence of Richard Dawkins is irrelevant”.

Dawkins’s existence does not need to be proven

The very essence of skepticism is not to doubt about everything, but about anything that defies our logic, experience or widely accepted principle. We (should) build our ideas by piling up our experiences, such as “things fall towards the ground” or “banks have no scruples”. It is only fair that we should apply skepticism to concepts that defy those ideas, not to the ones perfectly fitting. If my sister told me “I hurled the ball through the window, and it fell on a car”, I would tend to believe her. If she told me the ball suddenly turned upwards and headed for the Moon instead, I would tend not to believe her. Of course, the first claim could also be false: maybe she didn’t hurl the ball at all, or she did, but it landed on the road, not on a car. But it is the second claim (the ball heading for the Moon) that deserves skepticism.

Similarly, it might well be that Richard Dawkins does not exist, but the simplest explanation is that he does. One could have seen him on TV, or read one book allegedly by him. One could have a friend who went to a talk by Dawkins, or an uncle who studied in the same highschool as he did. Yes, the guy on TV could be fake, the book could have been forged, your friend can lie to you about the talk, and your uncle might just have Alzheimer’s. But the simplest explanation is that there is some guy by the name Richard Dawkins. Skepticism would make us place the burden of proof on anyone claiming the opposite. At the very least, we would need some evidence that the notion of his existence is not reasonable. For example: the existence of Clark Kent could be accepted as reasonable (shy men with glasses working for newspapers are known to exist), whereas that of Superman would grant some skepticism (flying aliens with X-ray eyes and unlimited strength are scarce in my neighborhood).

On the other hand, god is our Superman here. It does fall (far, far away) beyond what is reasonable, so skepticism is required. Many, if not all, what we experience every single day of our lives would be mistaken if god existed. Obviously, it could well be the case, but it stands to reason that we should doubt it.

The existence of Richard Dawkins can be reasonably proven

I don’t mean so much that Dawkins actually exists, as that there are ways to find out if he does. For example, David Anderson could offer all his money to anyone coming to him and convincing him that they are Richard Dawkins. If I were Dawkins, I would go! I seriously doubt Anderson is such a die-hard skeptic that he’d risk making that claim. On the other hand, I have no problem in imagining Dawkins taking the same vow towards god, and never ever losing the money, of course.

One could find “Dawkins” in the telephone guide of Oxford, England, and visit them all, until one meets the guy in this Wikipedia article. With god, we have no picture. This should be no problem, as god is everywhere. However, apparently there is no way of meeting him, having a conversation with him (other than a monologue), or even devising any course of action that would result in an outcome if god existed, and in a different one if it didn’t exist. Please re-read this last sentence until you are fully aware of its meaning: it is impossible to even imagine any test that would have one of two results (lets say, “positive” and “negative”) depending of god existing or not. With Dawkins, let’s say it is possible.

The existence of Richard Dawkins is irrelevant

OK, you got me. I confess: Dawkins does not exist. It was all a hoax.

The question is: so what? Dawkins is just a guy presenting some arguments that stand on their own. We do not concur with Dawkins because he exists, but because the arguments themselves convince us. Dawkins’s works, his books, interviews, talks and arguments in general, would have the same validity if they had been produced by a monkey on crack, just as 2+2=4 holds regardless of it being said by Einstein or Hitler.

On the other hand, the Bible (or Qur’an, or whatever “sacred” text) has only meaning as long as one believes there is a god authoring it. Most, if not all, of its content coud be called unreasonable, unfair, outrageous, insane, false or simply wrong, except for the little detail that it’s the word of god. Well, if god wrote it, it must be right. After all, the guy is all-knowing. Religions, and all that is sacred, stand solely on the argument of authority: god said it, so it’s the pure, unadulterated, Truth. Period. Anyone with an IQ over absolute zero can find a circular argument here: god exists because the sacred text says so, the text is sacred because it’s god’s work.

The arguments in The God Delusion would have the same validity (or lack of it), even if it were written by a schizophrenic kid. His talks would mean no less (and no more) if given by a gorilla in disguise. His appearances on video would convey the same message (or misinformation) if they were all computer-generated by a 10-line Python script written by rabid rabbits randomly biting a keyboard.

I suggest the reader think about the effect of knowing that the Bible was actually written by a schizophrenic kid (which, by the way, some of its contents seem to suggest), that all alleged apparitions of the virgin Mary were gorillas in disguise, and that the 10 commandments are actually a 10-line Python script, written by rabid rabbits randomly biting a keyboard.

See the problem with the Dawkins/god, Bible/The God Delusion parallelism?

Tags: , , , , , ,

1 Comment »

The nightmare of tagging multiple photos with digiKam, and a hacky way around it. Part II
July 8th 2010

Yesterday I posted about how to put multiple tags in tons of pictures, with digiKam. Apparently, the method I described there does not work (blame it on digiKam, of course). Still, the post makes for an interesting reading (hey, I am the author. What would I say?).

Here I’ll describe a new way to acomplish what the previous method couldn’t. If you want to know what on Earth I’m talking about, read the The problem section of the previous post.

Fairy tale-like solution

I found out how to implement a solution much like the one in the Fairy tale solution section of my previous post. Question: what is the next best thing to a single keystroke to tag a file? Answer: a single mouse click.

Following our ideal method, we will do a visual scan of all photos, one by one, succesively tagging (or ignoring) each file in which a certain person appears (or doesn’t). The tagging will be done by a single mouse click (right hand always on mouse), and the photos will advance with space bar strokes (left thumb always on space bar).

To do so, one must go to the first picture in the set, and maximize it. Next, open the right panel, and go to the Captions/Tags tab. Find the tag of the person you are dealing with in the tag tree, and place the mouse over it. See the following screenshot (click on it to maximize):

I assure you the fabled person A is hidding somewhere within those Cuban trees

Now, place your left hand on the keyboard (to hit the space bar), and let the fun begin. Each time person A appears in a photo, left-click with the mouse (never ever move the pointer from the tag. Space bar will make the photos advance wherever the mouse pointer is). When it doesn’t, ignore and go on. When you reach the last pic, rinse, and repeat for persons B through Z.

With this method I tagged 197 pictures in under one hour yesterday. A bit over 3 pictures tagged per minute does not look too impressive, but the 197 pictures contained 9 different persons (9 tags to apply), each one of which appeared in roughly 30 pictures. This means I did 9 slide shows of all the pictures, applying a total of more than 250 tags.

Linearly scaling method

The above method is very fast with respect to each tag applied. However it scales up quite badly, because it is slower the more pictures one has to tag (obviously), and also the more different tags one is applying (one full scan of the picture set per individual tag to apply). The dependency with pic count is unavoidable, but let’s see if we can devise a way to reduce the impact of the latter.

We begin by grouping all the potential tags (say, all people who appear in the set of pictures) within a single parent tag (see following screenshot):

A’s friend, C, is somewhere over there, as well. Do you C him?

Now, we can follow steps similar to the ones above, for the fairy tale method, but for each picture we will apply tags for all people appearing in it. This will make tagging each picture slower, but will require a single pass. Doesn’t a single N-times-slower pass take as long as N fast passes? Yes. But recall our single pass here will not take N times longer (assuming N people to tag for). A lot of pictures with no people on it will be just as fast to (not) tag as in the method above, plus most photos will feature one or two people, and very seldom will all N people appear together, so this single pass will not be N-times slower than our N passes above.

[Update]: After writing this post, I put the second method here to test, and tagged almost 1300 pics in one hour!

Tags: , , , , , , , ,

2 Comments »

The nightmare of tagging multiple photos with digiKam, and a hacky way around it
July 6th 2010

[Update and big fat warning]: apparently, renaming or moving files does mess with the tags the image already has. A way around this, and maybe a generally good idea (use your own judgement on that one), is to make digiKam save the tags as metadata into the picture files themselves. On the con side, tagging your pictures will actually modify the files (maybe you don’t want that), but on the pro side, the tags will travel along with the files, no matter what name or location they have (even to other computers, which may or may not be what you want).

[Update #2]: apparently the metadata approach doesn’t work either. It seems that each time a tag is assigned, the metadata is immediately saved (which is great), but only the tags digiKam is aware of at that moment. Also, digiKam is not immediately aware of the tag metadata of the pics it’s showing (you have to tell him so, I think). Let’s say you tag a pic as “A”. Metadata for “A” is saved. OK. Now, you change the name of the file, and digiKam loses track of it. You rename back, and digiKam thinks the picture has no tag (the metadata is obviously still there, inside the file, but digiKam doesn’t read it until you tell it to). Now, you assign tag “B” to the picture, expecting the file to end up with both tags: A and B. Tough luck. The split second you tag the file with “B”, it is written to the metadata (OK), but only tag B is written (the only one digiKam is aware of at that moment), so tag “A” is lost. In two words: the following post is full of crap. If a third word is allowed, let me say that digiKam is too.

First off, let me admit that my problem might have a simple solution. Maybe my goal is much simpler to achieve than I think. But what I am doing seems fairly common to me, and a pain-free recipe to do it escapes me.

The problem

I use digiKam to manage my photo collection. A very handy (and basic) function of digiKam is to tag photos. I tag photos with three criteria: where it was taken (e.g. “Donostia”), the event it can be framed within (e.g. “Wedding of A and B”), and a tag per person that appears in it (e.g. “John Smith”, “Jane Doe” and “Janet Johnson”). It involves some work, but afterwards I can really easily find say, all pictures in which John Smith and Jane Doe appear together, in any place but Donostia. Why I would want to do that is anyone’s guess, but that’s offtopic.

Every time I have a batch of photos (say, a wedding or some holidays), I sit down in front of my computer, and tag evey one of them. Tagging by event is a breeze (99.9% of the time, the whole batch of pics belongs to the same event), and tagging by location is also simple (each pic has a single location, and many, if not all, share that location). However, tagging by person is a bit trickier. Each photo can have many (or no) people appearing on it, plus it takes a bit of attention to spot all people appearing.

When tagging by people, two approaches can be taken:

  1. Parse photo by photo, tagging each one once per person appearing on it. Don’t move to the next photo until tags for eveyone appearing on current one have been asigned.
  2. Parse whole batch, once per person. You pick a person, select all pics where she appears, then you tag all of them simultaneously. Repeat for each person.

I have found that, for large amounts of pictures, the second approach is fairly superior. However, it is not problem-free. Firstly, multiple selection is only possible in a grid view. That is, pictures are presented as thumbnails, aligned in columns and rows. Even in the largest possible size for such pictures, often times there are many photos that are too small to spot all people in them. Secondly, having selected some dozens of pictures out of some hundreds, and mistakenly unselecting them by clicking where you shouldn’t, or failing to hold the Ctrl key when clicking (or whatever error whose probability to happen increases with the amount of pictures to tag) is just painful.

Fairy tale solution

I realized a hybrid method would be advantageous, but that’s where the problem comes: I find no simple way to accomplish it. I would like to be able to do the following comfortably: inspect the photos one by one, tagging each one in which person A appears. When all are tagged, repeat for person B, and so on. Right now this approach will take longer than either approaches above, because it borrows the worse characteristics from both (one-by-one tagging of method 1, scanning all the photos repeatedly, once per person, from method 2). The reason for that is that asigning a single tag to a single photo is cumbersome. You right-click on the photo, then select “Assign Tag” from the menu that appears, then choose a tag from the drop-down menu (and submenus if case be).

There is no shortcut that one can assign to some tag, or, even better, a single-key shortcut for “assign to this photo the last tag I have assigned to the previous one”. If there was, my hybrid approach would be really fast: take person A, appearing in picture 1. Tag pic 1 with “A”. Then go picture by picture (a single hit of the space bar), either ignoring the pics where person “A” does not appear, or pressing the “apply last tag” shortcut (a single keystroke) where she does.

Hacky solution

Of the tools that digiKam offers, which one can modify a photo in a way that the contents are not touched, yet we can group them afterwards based on that change? Easy: rename (F2 key). When you press F2, a rename dialog appears, with a field where you can enter the new name for the currently selected pic. The good thing is the field is already filled with the current name of the photo. So, if you want to rename a photo to, say, the same name but with a trailing dot, all you have to do is press the sequence: F2 + . + Enter.

Now, how on Earth would the renaming help? Well, we could use the above “trick” to quickly rename all pictures in which person A appears, making all of them have the same name, but with a trailing dot added. Then, we could Alt-Tab to a terminal, cd to the dir where the photos reside, and execute the following (zsh syntax, translate to your favorite shell):

% mkdir totag
% for file in *.; mv $file totag/`echo $file | sed ‘s/.$//’`

That will put all files ending in a dot inside a subfolder called “totag”, renaming them back to their original name (chopping off the last character, which would be the dot). Don’t forget the fact that these files happen to be all in which person A appears. Recall as well that digiKam keeps track of the tags applied to each photo by its md5sum (OK, I made that up, but it must be true), so moving files around and/or renaming them (both things are one and the same, actually) doesn’t mess with the tags. (see warning at the top of this post).

So, once all pics with person A reside in folder “totag”, we can Alt-Tab back to digiKam, go to that folder, select all pics, and tag them all at once. After that, Alt-Tab to the terminal, and execute:

% mv totag/* .

The real beauty of using a shell for that (even with the apparently complicated command with the for loop above), is that you can reuse the commands trivially. For person B, once all relevant photos have been renamed with a dot, Alt-Tab to the terminal, hit the Up arrow twice, then Enter, and you will move and rename all files again in just three keystrokes (two of them being the same key hit twice). Alt-Tab to digiKam, tag all pics in the “totag” dir. Alt-Tab to the terminal, Up+Up+Enter (which now executes the mv), and you have the files in the main dir again.

Conclusion

Yeah, I bet right now you are considering whether my idea of what is “simple” or “comfortable” is seriously off. I’d still vote for the “Reapply last tag” shortcut in digiKam. It would make a three-keystroke step (F2+.+Enter, to rename) a single keystroke one (reapply last tag with shortcut), plus would make the steps involving the terminal unnecessary. But reality is a bitch, and we don’t have such a shortcut. I could either just rant about it on my blog, or go ahead and find a solution myself. I chose to do both :^)

Tags: , , , , , , , , ,

3 Comments »

Scrobbling to Last.fm with Amarok 2.3 and no Kwallet
June 13th 2010

I am not a great KWallet fan (probably due to ignorance), so when I introduce my Last.fm credentials in Amarok I get this warning that they will be saved in plain text (because Kwallet is not running). That didn’t bother me much, until recently. As it happens, my computer at work (Amarok 2.3 on Arch Linux) does not scrobble (publish) the tracks I play into Last.fm.

The root of the problem seems to be that my Last.fm credentials are not actually saved. If I go to Settings -> Configure Amarok -> Internet Services -> Last.fm, I can write my “Username” and “Password” there. If I click on “Test login”, it will report a success for valid credentials, and a failure for wrong ones. If I click “OK” (that is, save and exit), the aforementioned warning about Kwallet not running appears (no big deal so far), and if I choose to accept the proposal of saving the password in plain text Amarok seems to accept it. The problem is, it doesn’t really. My tracks don’t get scrobbled, and if I go to the Last.fm settings again, the credentials are empty.

In my computer at home, with an identical Amarok 2.3 on Arch Linux and with no Kwallet, the credentials do get saved, and the scrobbling does work. It might well be because I alreadly applied the trick I will explain next (and I don’t remember having done it). I came accross the solution at bug report 555688 at Launchpad, the Ubuntu bugtracking site.

The solution is simple. Edit the following file:

~/.kde4/share/config/amarokrc

and add the following (section [Service_LastFm] will most likely already exist):

[Service_LastFm]
fetchSimilar=true
ignoreWallet=yes
password=YOURPASSWORD
scrobble=true
username=YOURUSERNAME

where YOURPASSWORD and YOURUSERNAME must obviously be changed for the appropriate values.

Tags: , , , , , , ,

7 Comments »

Next »