Friday 20 March 2009

BabelFish en Konqueror

Es una boludez de detalle, y no se realmente hasta que punto se puede confiar en BabelFish para hacer una traducción de este tipo[1], pero bueno, es interesante.

Y es simple... si uno abre el Konqueror en perfil web (es decir, abrís una página, o lo abrís en casos que no sea como filemanager) aparece la barra llamada Extra Toolbar, que generalmente viene cargada con boludeces como el Agente de Identificación de Browser[2] (depende de versión, distro, gustos personales, todo se cambia).



Y ahí está el botón del pez amarillo. Si lo clickeás sin estar en un site, es como clickear en un bookmark de BabelFish: te manda al site, donde ponés texto y/o la dire de un site para traducir, elegís idiomas, etc.



Si, por otro lado, estás en un site, el pez no te manda a ningún lado, sino que te muestra ese menú que se ve en la segunda imagen.
Al elegir de qué idioma queremos traducir, a cuál otro... BebelFish se encarga de traducirme el site...
Una papa.
En el ejemplo: imdb en inglés, lo pasé a ponja (no pregunten cómo quedó, no leo kanji, ni idea...)



Espero que les sirva de algo...

[1] Ha mejorado. Mucho. Cuando yo lo descubrí hace años, era un desastre, no servía para más que una palabra, si uno intentaba con oraciones simples ya fallaba horriblemente. Hoy no. Si lo mantenés simple, se equivoca poco.

[2] Más de un site te dice que el browser no está "soportado" y en muchos casos no es así (ya que Konqueror puede usar plugins externos sin problemas), por eso no siempre hace falta usar otro. Con el agente mentiroso, el site se cree que estás usando Firefox/Explorer/Opera/Safari/etc. y listo.

Monday 16 March 2009

Fresh Install with Fucked-up CD-ROM




I bet the web is full of this sort of information already, but this is only to show a more personal view, by retelling how I adressed the problem and how it worked for me.
The problem is the following:
1. I own a laptop [1].
2. Its DVD/CD-ROM is NOT reliable [2].
3. My OS (Slack11) doesn't work that well now [3].
4. My PhoenixBIOS DOES NOT recognize any removable devices (USB/FireWire) on boot, although it 'seems to say' it should.
5. Slackware 12.2 is WAY TOO AWESOME to ignore, I must have it.

What do I have to make it work?
I have a corrupt Slackware Linux 11.0 that 'does' work, but fails with audio, glibc, most compilers, and pretty much anything fun.
How did I make it work?

First, let's review the hard drive partition scheme[4], to see what I did.
My disk was thus:
hda1: swap partition for Slack (about 600 MB)
hda2: root partition (/) for Slack (about 7 GB)
hda3: home partition (/home) for Slack (about 17 GB)
hda4: free space to install Windows XP (about 15 GB)
I didn't need to change that, it seemed reasonable, so I left it as was.

Fact 1: Linux installation CDs run the kernel before anything else. This, you might not realise, is a HUGE advantage. Since once you get a nice kernel working, all media (including removable) works as well. So, what I really needed was to run the kernel from somewhere besides the faulty DVD/CD tray... such as a hard drive partition.

Step 1: As root, I made a slack12 directory on the /home partition (hda3). Basically: "mkdir /home/slack12." I then used the external DVD-RW to get the kernel and RamDisk images and copy them to my newly created directory: "mnt /dev/sr0 /media/dvd; cp /media/dvd/isolinux/initrd.img /home/slack12; cp /media/dvd/kernel/hugesmp.s/bzImage /home/slack12". Done. Those steps can be done differently, or from a GUI, but shell commands work EVERY TIME on ALL SYSTEMS, so you can copy-paste them (without the quotation marks, obviously...) The semi-colon, as you know, separates commands, you could run each at a time (I recommend that you do, actually.)

Fact 2: LILO[5] is pretty awesome (although probably GRUB is even better), because you can really tune your multi-booting with it, and launch pretty much any OS you run. But the automatic-guess script of liloconfig is not that neat. So, manual edition of the lilo.conf file is the way to go. Isn't that dangerous? No, as long as you only add entries, and don't change the ones already working. If something goes awry, however, LILO will warn you and refuse to reinstall (remaining fine.)

Step 2: As root, I opened the lilo.conf file ("vim /etc/lilo.conf", but doing so from a GUI with kate/kwrite is much easier), and added the following lines:
image = /home/slack12/bzImage
root = /dev/hda3
initrd = /home/slack12/initrd.img
label = Slack12
I do not know how important the order is, but the 'label' part simply contains the name LILO will display, you can put anything you want there.
Now we reinstall LILO: "lilo". If it works fine, it will list the boot options, marking the default one with a *:
Linux*
Slack12
Oh, if you were booting only one OS, you probably have to add these lines to lilo.conf (between the lines "# Start LILO global section" and "# End LILO global section"):
prompt
timeout = 100
Those lines will make LILO prompt you as to what OS to run, and wait $timeout/10 seconds for your choice (with timeout=100, 10 seconds.)

Fact 3: Slackware is the only distro to use a console-based installer? Probably. Is there a difference? No. Cute and easy-looking, graphical, mouse-intensive installers such as Anaconda (Red Hat, Fedora) or those on LiveDVD distros (Ubuntu) might seem easier. They only seem easier, because the options are pretty much the same. And if you CAN READ, YOU WILL get through a Slackware installation. If you can use a keyboard, you won't have major troubles. Still, there is some info you need to know for a non-typical (even weird) installation such as this one (on my oddly beaten laptop.) In fact, for this kinds of installation, you will find that the console-driven Slackware install is in fact ideal, since it offers immense flexibility.

Step 3: Rebooted. Chose Slack12 entry. Waited for kernel to load. Done.
"Enter 1 to select keyboard map:" 1 (this is what I typed, then pushed Enter).
Now we get the keyboard select option, and since my keyboard was bought in Argentina, I use a qwerty/es.map form. Just scroll down until you find it (If you type "r" and then "e" and get exactly there, no scrolling).
"Slackware login:" root (this is a no-brainer, the help tells you to do so.)
Now the system tells you a bit about partitions, I did not "cfdisk" because my partitions were fine. If you need to, cfdisk is extremely easy to use [6]. fdisk, not so much.
Then I ran "setup" which launched the Slackware installer. The program is NOT sequential, you get to choose which part of the installation to do, but if you go from top to bottom, you can't go wrong. The first entries are help and something else, ignore.
I chose "Setup swap partition". If your partitions are fine, and you have ONE swap, you'll get what I got, one choice only. I entered the name of the partition that it showed me "/dev/hda1". You are asked if you want to check the swap partition for bad blocks before activating it... not necessary if your computer is not old enough to vote.
"Select Linux installation partition". I had only one, so only one option: /dev/hda2. Chose "Quick format", as "ReiserFS".
"Other partitions". Added the "/dev/hda3" FAT32[7], mount point "/fat".

And here is the real key to the whole process... "Source media selection". Now we get to chose where to Install Slackware 12.2 from. You have many options (including ftp/http), but I chose "1. Install from a Slackware CD or DVD". Then I chose "Manual" (manually specify device or something), and then I scrolled down to "/dev/sr0" (which is the first SCSI CD/DVD drive). Piece of cake. "Slackware installation disc detected..." Thank you.

Now we get to a sequence, started by "Package series selection". By default, Slack selects all but the KDEi part, which is multi-language support for KDE. I recommend that you add that (in case you didn't know, space-bar checks an option).
You are now prompted on what specific packages you want installed, I chose (as should everyone else) FULL Installation (4.8+ GB). It is actually 5.5 GB when newly installed (which is very slim for such a killer distro.)

Then we are taken to the setup scripts. Some of them automatic, some ask for very silly and easy information. The netconfig script is quite straight-forward, but I should add something: if you have cablemodem or other DHCP-discovered service, your hostname and domain are irrelevant, anything will do. As with the rest, that script is very Enter-intensive, you seldom type anything at all.
I did not create an USB Boot Disk (no more floppy bootdisk, things got big).
I tried the LILO automatic configuration, on the MBR, it failed. Something to do with the /dev/hda3 partition, fuck it. No matter, I'll fix later. More options, like local time setting and the like. Easy, scroll-and-enter options.
Done. Exeunt the setup program. The system is installed, we should reboot.. NO!
Since LILO was not correctly installed, it will boot to... NOTHING.

So, before that, I needed to install LILO properly. The ideal form is the Expert mode, which is very easy. Yes, easy. On the prompt, once you exited the setup program:
"pkgtool"
That shows some options, similar to the installer, but not quite. I chose "Setup scripts" or something of the order... A list of scripts, most of them were run during system install (as configuration scripts). I checked "liloconfig" (space-barred it) and 'Entered', then chose "Expert mode".
"Header" (which is the first option, I'm certain), followed by a few Enters, "no UTF" (Enter, since it's default), "Slackware logo" (probably default as well), "Master Boot Record".
Now I get back to the liloconfig menu, "Linux partition", and I added the only one, "/dev/hda2".
Back to the menu. And here I realised what the problem with the automatic install was: it added the /dev/hda3 partition as a Windows partition, and there is no Windows to launch there.
I DID NOT add a Windows partition, instead I just chose "Install LILO". That worked, since I got no error messages.

And then I was done.
Rebooted.
LILO prompt, now with the Slackware logo, Linux as only option...
Like a charm. Slackware 12.2 with the wicked 2.6.27.7 kernel. And Compiz.

So, that's all.
If you had the same problem, I hope that helps.

Notes on [x]:
[1] Kind of. Since its battery has died already, the CD/DVD thingie is fucked, and the keyboard has been destroyed, and I HATE the popular mouse-like touch-screen thingie, it is pretty much a smaller desktop PC: I needs to be plugged, and it has an external DVD-RW, a keyboard and a mouse plugged at all times.
[2] That's a serious understatement. It works ONLY with a few DVDs. And not very well. It simply ignores CDs.
[3] Installing it with the 'faulty' DVD-ROM resulted in many missing packages and some more corrupted material. It works pretty much like a government.
[4] Unix* users are quite familiar with the concept, especially multi-distro-Freenixers (such as myself.) It isn't hard: first IDEs are hda and hdb, first partitions are hda1 and hda2... Logical partition are >4, like hda5-hda15 (since an HD can hold only 4 primary partitions). It's a no-nonsense scheme (unlike in other systems...)
[5] When installing LILO, you get to choose among installing on root partition, Master Boot Record and somewhere else (can't remember). It usually advises against the last choice (MBR), because it "can be dangerous." It has ALWAYS worked perfectly for me on MBR. I find that LILO/GRUB on MBR is the best way to multi-boot Unix*+Windows OSs. But that's just my experience.
[6] Although when choosing filesystems you might feel a bit overwhelmed, since it features all FSs known by GNU/Linux... around 100.
[7] FAT32 sucks, but I intent to use it to install Windows. Then it will probably be an XFS migrated /home partition.

Disclaimer: I probably missed some options, if I did it is because they were too obvious to note. If they weren't, I'm sorry, my mistake. And most of the option titles are not quite textual... they are still obvious and you will recognize them.

Tuesday 3 March 2009

Las mejores grabaciones de todos los tiempos

OK. No.
Yo no soy quién para decir cuales son los mejores, pero estos son los indispensables para mi vida. (Mentira, podrías vivir tranquilamente sin estos, pero sería menos agradable hacerlo...)
¿Grabación? Sí, albums en general, pero en muchos casos no. Como saben los conciertos para pianos (por ejemplo) son relativamente cortos, y generalmente salen 2 o más por lanzamiento (CD). En esos casos me refiero a uno específico.

10. Desatormentandonos (Pescado Rabioso, 1972)
Sí, es que no me gustó tanto Artaud. No, está bueno, pero no tanto. Este (además) es más Pescado RABIOSO que Artaud (obviamente, acá no era el flaco solo.) Me encanta el "feeling" que tiene, porque es muy psicodélico sin serlo musicalmente... no se si me explico. O sea, es demasiado Blues-Rock bien marcado como para pensar que estos podrían ser teloneros de (por ejemplo) Jefferson Airplane. No se parecen en nada. Pero... tiene algo así, medio hongo alucinógeno-ish... Muy copado album.
Y ya que hablamos de Jefferson...

9. Surrealistic Pillow (Jefferson Airplane, 1967)
Tremendo. Este album ES el "verano del amor" del '67. Es que no hay otro (no, NO HAY) que resuma todo eso que se vivía. OK, tal vez no todo... Volunteers es mucho más político, pero a mi eso no me interesa porque yo, cero relación con Vietnam. El punto es que este album es genial, y hace SENTIR todo el Flower Power, implícitamente. Y White Rabbit es uno de los temas más envolventes que escuché en mi vida: no se puede evitar darle bola, no se puede ni pensar cuando suena, solamente escucharlo. Tremendo. Embryonic Journey está bárbaro también, al igual que Today. Enorme album. ¡Y la voz de Grace Slick... por Allah!

8. Luzbelito (Patricio Rey y sus Redonditos de Ricota, 1996)
¿El menos ricotero? Quizás. Me interesa poco, yo no soy ricotero. Es el más oscuro también. Casi cero Rock and Roll --me refiero al rocanrol que te hace mover, el que inventó Chuck--, pero tiene mucho huevo. Sí, huevo. Skay suena tremendo, hace vibrar, y la bata simple y pesada estilo Zeppeliniano, que suena en varios temas ("Rock Yugular" suena muy "When the Levee Breaks") hace resonar MÁS esa guitarra tan visceral. Recomendadísimo.

7. Goldberg Variations (Glenn Gould, 1955 - compuesto por J.S. Bach)
Variaciones de Goldberg. Dicen que "JoSé" compuso esto como un experimento, como un "template" para práctica de clave, buscando explorar justamente eso: variaciones. O sea: si sos un profe, podés usar esto para enseñarle a un pibe a manejar un par de teclados. Tal vez sea verdad (nadie lo niega), pero es también verdad que semejante genio es capaz de crear maravillas de casi-casualidad. Lo sabemos, todos vimos jugar al Diego. También se dice que si se quiere escuchar realmente a Bach Papá, el único intérprete posible es Glenn... que parece pelotudo considerando que Glenn tocaba el piano, y dudo que JoSé alguna vez haya visto uno. Pero sí creo que esta grabación es genial. (La aria inicial y final es lo único de real valor en la película Hannibal...)

6. Maxinquaye (Tricky, 1995)
OK. Acá la cosa se pone jodida, porque hay otros albums de Massive Attack que me gustan mucho también. Pero este suena más en mi compu (me fijé.) Porque este album ES el Trip-Hop, género por el que tengo alguna rara debilidad. Es que ESTE album fue el primero en CERRAR el estilo (como también lo hizo el próximo en la lista, en su departamento). Cerrar en el sentido de completar: que ya no se pueda innovar dentro del mismo, que cualquier cambio resulte en un alejamiento, en otra cosa. Es el estilo en su máxima expresión... Esto LO TIENEN que escuchar. Es muy "envolvente" (otra vez esa palabra.)

5. Die Kunst der Fuge (Davitt Moroney, 1985 - por J.S. Bach)
El Arte de la Fuga. Suena pedante, ¿no? "¿Quieren fugas?" dijo Bach, "yo les enseño cómo tienen que sonar..." En fin... fugas, por un maestro, en clave. No es que las fugas sean copadas porque sean jodidas, eso es ridículo. Alguno incluso diría que tal vez sean las responsables por la muerte de la música Baroca, porque la cosa se puso casi científica, matemática incluso, etc. Las bolas. Estamos hablando de música --que es al pedo, la música se escucha, pero igual--, obvio que hay matemática. Música > sonidos > ondas > física > matemática. ¿No? Pero dudo que el flaco haya compuesto eso con una calculadora (no habían). Por eso, esta música es fantástica y listo. (Además esta grabación tiene un bonus: una versión completa de la última fuga, por el mismo Moroney, tal vez la más fiel y cercana al estilo de Johann...)

4. Led Zeppelin III (Led Zeppelin, 1970)
LZ III es uno de los que menos vendió, y no goza de demasiado popularidad, en el repertorio de la banda --pero en realidad no vendió poco: hay que tener en cuenta que sólo los Beatles vendieron más que Led Zeppelin-- y ¿la razón? LZ es una "banda de rock pesado", y el tercero es el menos pesado de su repertorio. Lejos. Primero, a mi las ventas me importan CERO. Segundo, en este album se nota que Jimmy ES UNA AS de la guitarra... ¡acústica! Ah, esa no se la esperaban. Además en este album se escucha claramente lo genial que es John Paul Jones. Está bien, LZ II y IV (y ni hablar de PG) tienen muchos temas más famosos, copados, potentes... me chupa un huevo. Este me gusta más. Tal vez porque los demás sean más parecidos entre ellos... no sé, pero "Tangerine," "Since I've Been Loving You" y "Bron-y-Aur Stomp" están geniales. Y muestran un lado muy distinto de la BANDA DE ROCK MAS GRANDE DE TODOS LOS TIEMPOS.

3. Kind of Blue (Miles Davis, 1959)
¡Wow! ¿Qué se puede decir de Miles? Genio absoluto, todo lo que tocó fue oro. Fue Charlie Parker genial por sí solo, o el joven Miles... nah, no se si tanto. El punto es que acá se nota en serio que no es necesario ser el mejor trompetista del mundo para hacer el mejor album en el que suene alguna trompeta. Igual no voy a comentar demasiado esto porque a nadie le sorprende que esté en el top 10. Y al que no lo escuchó: ¡¡HACELO, por el amor de Allah!!

2. The Soul of the Tango (Yo-Yo Ma, 1997 - por Astor Piazzolla)
Increíble. Nunca hubiese creído que música de Astor podía sonar tan bien sin él. Tal vez no mejor, pero esto tiene a favor que es casi un compilado... en el que por casualidad hay dos de las piezas musicales más hermosas que escuché: "Milonga del ángel" y "Mumuki." Está hecho para mí parece, porque encima de que Yo-Yo Ma es un cellista sobrehumano, tocan la bendita "Fugata," que seguramente lo que JoSé hubiese compuesto de haber sido tanguero. Esta grabación es genial desde cualquier punto de vista, y no es un show del cellista chino, acá suenan realmente bien juntos, todos en un nivel altísimo. The Soul of the Tango no es Yo-Yo Ma tocando música de Astor. Es Astor, nada más.

1. Piano Concerto No. 3 in D Minor (Martha Argerich, 1982 - por Sergei Rachmaninov)
Sí, está primero, ¿y? Puede no ser lo mejor, pero eso no va al caso. El punto es que estoy obsesionado con esta grabación. La estoy escuchando todos los días, porque me encanta 'así de mucho'. Es famosísma, es verdad. Por la velocidad, dicen. También dicen que Ricky Chailly sudaba tratando de mantener el ritmo desenfrenado de la pianista argenta. Emocionante. Argerich no es Horowitz: es Argerich, que no es menos cosa. Lo que pasa es que la gente a veces no puede entender que no siempre el pasado fue mejor, y que no siempre los mejores están muertos...

Faltantes:

Revolver ¿El mejor de los Beatles? Sí. Pero tiene algo en contra: los Beatles. Para que una grabación sea excelente necesitás dos cosas: excelente música (composición), y excelente interpretación (tocarla bien). Los Beatles nunca fueron virtuosos, seamos honestos. Super-bandas como The Jeff Beck Group, la de los hermanos Allman, Cream, Led Zeppelin; tenían tipos que la rompían cada vez que tocaban. Tremendos guitarristas (Jeff Beck, Duane Allman, Eric Clapton, Jimmy Page), tremendos cantantes (Rod Stewart, Greg Allman, Robert Plant), bueno... en fin. Los Beatles, no. Además, "We all live in a Yellow Submarine..." ¿Qué? ¿De qué estamos hablando? Obviamente el mensaje, y la música, me pasaron MUY de largo, porque no se ni qué decir al respecto...

Y no. Sergeant Pepper's Lonely Hearts Club Band no se compara a Surrealistic Pillow. Me chupa un huevo si vendió más o menos, ni suena tan ASI. Me importa poco quién lo considere el mejor album, y menos si hablamos de la revista Rolling Stone. Son cualquiera.

Sviatoslav Richter, los dos concierto de Franz Liszt... OK. ¿Cómo está Argerich/Rachmaninov y no Richter/Liszt? ¿Es un chiste? No. Insisto, no está ordenados por "calidad" (¿quién soy yo para determinar eso?) sino por "promedio de ganas de escucharlo que tengo en una semana." Simple.

Charly... basta con Charly García, por favor. Nada del flaco ese (que es un buen músico) se compara con La Biblia (Vox Dei), que ni está en la lista (raspando, estaría 11va seguramente...)

Madonna. ¡Dejate de joder!
Andá a escuchar la radio...

CHAU

PS: Tengo más de 400 grabaciones/albums... entiendan si en la lista faltan grandes obras, por mí las pondría todas.