<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>nemediano &#187; nemediano</title>
	<atom:link href="http://www.nemediano.com.mx/author/nemediano/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nemediano.com.mx</link>
	<description>Reflexiones de un espiritu curioso</description>
	<lastBuildDate>Fri, 16 Jul 2010 22:07:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Organizando fotos con ImageMagick</title>
		<link>http://www.nemediano.com.mx/2010/organizando-fotos-con-imagemagick/</link>
		<comments>http://www.nemediano.com.mx/2010/organizando-fotos-con-imagemagick/#comments</comments>
		<pubDate>Fri, 16 Jul 2010 22:07:36 +0000</pubDate>
		<dc:creator>nemediano</dc:creator>
				<category><![CDATA[Computación]]></category>
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.nemediano.com.mx/?p=317</guid>
		<description><![CDATA[El semestre antepasado lleve la clase de tratamiento de imágenes multiespectrales con el Dr jorge Lira. Fue un curso muy pesado tareas y practicas a diestra y siniestra, además incluían manejar imágenes en un formato RAW para evitar la pedida de información, (esto se traducía en que cada practica o tarea que queríamos hacer, involucraba [...]]]></description>
			<content:encoded><![CDATA[<p>El semestre antepasado lleve la clase de tratamiento de imágenes multiespectrales con el <a href="http://turing.iimas.unam.mx/~siav/Gente/jorgelira.htm">Dr jorge Lira</a>. Fue un curso muy pesado tareas y practicas a diestra y siniestra, además incluían manejar imágenes en un formato RAW para evitar la pedida de información, (esto se traducía en que cada practica o tarea que queríamos hacer, involucraba de 500MB a 1GB en 10 o 15 imágenes).  Lo mas feo del asunto es que las imágenes en RAW no son interpretables en casi ningún programa, para poder transformarlas en lindos png o jpg (o tiff) que pudiéramos usar en los reportes y tareas (Documentos de <a href="http://www.latex-project.org/">LaTeX</a> o de <a href="www.openoffice.org">Open Office</a>).</p>
<p>Prácticamente dependíamos de un programa comercial (privativo) que el Dr tenia en su laboratorio para guardar una copia de la imagen en algún formato mas universal. No contentos con llevar nuestro GB de imágenes en raw con los datos de la practica, teníamos que viajar con una copia de la imagen en jpg para poder escribir nuestro reporte.</p>
<p>Fue entonces cuando mi amiga Etna, me presento con <a href="http://www.imagemagick.org/script/index.php">ImageMagick</a>.<br />
<span id="more-317"></span></p>
<h2>Y que es ImageMagick&#8230;</h2>
<p>Es un conjunto de programas libres que sirven para convertir, transformar, y procesar imágenes en casi cualquier formato (y lo digo en serio). Lo que lo hace tan poderoso y flexible es que su interfaz es en linea de comandos, por lo que es ideal para desarrollar programas que ocupen ImageMagick y procesen imágenes (de hecho hay bindings para varios lenguajes de programación).</p>
<p>Una de las chucherias de ImageMagick es convertir de formato raw a cualquier formato.</p>
<h2>Por que lo querría usar uno normalmente.</h2>
<p>La segunda vez que me encontré con la necesidad de procesar un montón de imágenes y que me motivo a escribir este post fue regresando de las vacaciones en Oaxaca. Yo no llevaba mi cámara, pero Erika y Mag me pasaron sus fotos.</p>
<p>Ya saben tenia cientos de imágenes con títulos bien descriptivos como IMG_2379.JPG que pesaban algo así como 600Kb y median como 3072&#215;2304 píxeles. Lo cual si hubiera querido subir en mi blog, conllevan un montón de trafico de red, y además seria un desperdicio, por que quien tiene un monitor con esa resolución (Vamos los que las vieran las tendrían que rescalar antes de verlas).</p>
<p>La solución de nuevo es ImageMagick</p>
<h2>Como se usa ImageMagik</h2>
<p>Pues el comando convert (que no es el único que conforma ImageMagick), nos da toda la versatilidad que queremos.</p>
<h3>Escalando una imagen</h3>
<p>Al escalar una imagen debemos de tener cuidado de hacerlo de una manera de que conserve su proporción (su aspect ratio), la mayoría del SW nos deja hacerlo si le decimos que no queremos deformaciones, también se puede hacer en ImageMagick</p>
<pre>convert -resize 50% input.jpg output.jpg</pre>
<p>Al darle en porcentaje el tamaño, Imagemagick sabe que no debe modificar el aspect ratio.</p>
<h3>Reduciendo la calidad de la imagen</h3>
<p>Hay dos tipos de compresión una donde no se pierde información llamada lossless, y otra llamada lossy compresión que es cuando un imagen pierde parte de su información al comprimirse. Cuando guardamos una imagen en formato jpg se esta haciendo una compresión con pérdida (lossy). El algoritmo del jpg es lo suficientemente flexible para dejarnos controlar la perdida con un parámetro de calidad. Mientras menos sea la calidad menor sera la perdida y mayor el tamaño de la imagen.</p>
<p>Sin embargo el algoritmo es tan bueno que bajar un poco la calidad de la imagen, suele bajar en mucho el tamaño (en bytes) de la misma, aproximadamente una imagen al 90% de calidad mide una cuarta parte que la imagen original. El estándar para publicar en una web es del 85%.</p>
<p>Para hacerlo en ImageMagick se ocupa el siguiente comando</p>
<pre>convert -quality 85% input.jpg output.jpg</pre>
<h3>Corrigiendo la orientación</h3>
<p>Otra cosa interesante es que ImageMagick puede corregir la orientación de una imagen de una cámara si los metadatos de la foto tienen esa orientación con el comando</p>
<pre>convert -auto-orient input.jpg output.jpg</pre>
<p>Ojo esto no siempre funciona (a veces los metadatos de la cámara no están bien), por lo que siempre es bueno darle una checada a la imagen de salida. También recuerda que en muchos navegadores de archivos se aplica esta corrección, pero eso no quiere decir que la imagen este volteada, si no que el visor de imágenes la esta transformando para que la veas.</p>
<p>Eso puede provocar que en tu máquina tu veas la imagen al derecho y cuando la subas a un sitio web, la veas al revés. La única forma de saberlo es viendo el tamaño de la imagen y ver si es mas alta que ancha o viceversa.</p>
<p>Y desde luego todos estos pasos se pueden llevar a cabo al mismo tiempo. Por ejemplo:</p>
<pre>convert -auto-orient -quality 85% -resize 50% input.jpg output.jpg</pre>
<h2>Y poniendo todo en un script</h2>
<p>Aprovechando que tuve que aprender un poco de bash, para un programa de la tesis, escribí el siguiente scrip en bash, para hacer las operaciones antes descritas sobre una carpeta con muchas imágenes.</p>
<p>El script tiene las siguientes características:</p>
<ul>
<li>Siempre trata de hacer la corrección de orientación</li>
<li>Acepta opcionalmente los siguientes parámetros</li>
<li><strong>-q quality</strong> Para reducir de calidad las imágenes, el parámetro debe ser entero y estar en el intervalo (0, 100)</li>
<li><strong>-s size</strong> Para reducir el tamaño en un porcentaje, (en ImageMagick esto no necesariamente tiene que especificarse así, pero en el scrip valido que solo se pueda cambiar el tamaño en un porcentaje) que acepta enteros en el intervalo (0, 100)</li>
<li><strong>-n name</strong> Para especificar un patrón de nombre de la imagen de salida, en caso de que este parámetro no se le proporcione, las imágenes de salida tendrán el mismo nombre que las de salida (puede que las sobrescriban), con la única excepción que valido que en la imagen de salida la extensión siempre sea en minúsculas (odio que en la mayoría de las cámaras, las extensiones de las imágenes estén en mayúsculas DSC_001.JPG)</li>
</ul>
<p>En resumen el scrip corrido en su forma completa por ejemplo:</p>
<pre>photo2wp.sh -q 85 -s 50  –name Vacaciones</pre>
<p>Tomara todas las imágenes con extensión jpg ó JPG que haya en el directorio actual. A cada una de ellas las escalará al 50% respetando su aspect ratio, las comprimirá en jpg, con el 85% de calidad y las imágenes de salida tendrán el nombre VacacionesXXX.jpg. Donde XXX es un numero progresivo que depende de la cantidad de imágenes que haya en la carpeta.</p>
<p>Es posible pasar mas de una palabra en el nombre pero entonces hay que encerrarlo en comillas:</p>
<pre>photo2wp.sh -q 85 -s 50  –name “Mis Vacaciones”</pre>
<p>Todos los argumentos son opcionales:</p>
<pre>photo2wp.sh -q 85  –name Vacaciones</pre>
<p>Por ejemplo comprime todas las imágenes al 85% y las renombra como VacacionesXXX.jpg, sin escalar su tamaño.</p>
<p>En un abuso de las opciones, puede usarse sin argumentos</p>
<pre>photo2wp.sh</pre>
<p>Que toma todas las imágenes, trata de corregir su orientación, y las guarda con el mismo nombre pero asegurándose que la extensión sea en minúsculas (si las imágenes originales tienen su extensión en minúsculas, las va a sobrescribir)</p>
<p>Por ultimo algunas recomendaciones:</p>
<ul>
<li><strong>No he testeado el script al 100%</strong>, así que siempre ten una copia de tus imágenes originales. (Aún cuando no uses mi script esto es buena practica)</li>
<li>Recuerda que el script solo funciona cuando <strong>ya tienes instalado</strong> el ImageMagick en tu maquina.</li>
<li>Si quieres usar el script, recuerda que antes que nada debes darle permisos de ejecución.</li>
<li>Recuerda que el script solo actúa sobre el directorio en el que esta siendo ejecutado. <strong>No se mete recursivamente</strong> en carpetas.</li>
</ul>
<p>Finalmente el script esta aqui (copia y pega en un archivo de texto yo lo llame photo2wp.sh, pero pon el nombre que quieras):</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/bash</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#Este scrip toma todas las fotos de la carpeta donde se ejecute y las</span>
<span style="color: #666666; font-style: italic;">#procesa. Primero la pone al derecho dependiendo de los metadatos, </span>
<span style="color: #666666; font-style: italic;">#les cambia de nombre y las guarda con un tamaño y una calidad </span>
<span style="color: #666666; font-style: italic;">#determinadas por las opciones</span>
&nbsp;
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> dameNumero <span style="color: #7a0874; font-weight: bold;">&#123;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #007800;">$total</span> <span style="color: #660033;">-lt</span> <span style="color: #000000;">100</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
&nbsp;
		<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #007800;">$cont</span> <span style="color: #660033;">-lt</span> <span style="color: #000000;">10</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
			<span style="color: #007800;">number</span>=<span style="color: #ff0000;">&quot;0<span style="color: #007800;">$cont</span>&quot;</span>
		<span style="color: #000000; font-weight: bold;">else</span>
			<span style="color: #007800;">number</span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">$cont</span>&quot;</span>
		<span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">elif</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #007800;">$total</span> <span style="color: #660033;">-lt</span> <span style="color: #000000;">1000</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
&nbsp;
		<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #007800;">$cont</span> <span style="color: #660033;">-lt</span> <span style="color: #000000;">10</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
			<span style="color: #007800;">number</span>=<span style="color: #ff0000;">&quot;00<span style="color: #007800;">$cont</span>&quot;</span>
		<span style="color: #000000; font-weight: bold;">elif</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #007800;">$cont</span> <span style="color: #660033;">-lt</span> <span style="color: #000000;">100</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
			<span style="color: #007800;">number</span>=<span style="color: #ff0000;">&quot;0<span style="color: #007800;">$cont</span>&quot;</span>
		<span style="color: #000000; font-weight: bold;">else</span>
			<span style="color: #007800;">number</span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">$cont</span>&quot;</span>
		<span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">else</span>
&nbsp;
		<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #007800;">$cont</span> <span style="color: #660033;">-lt</span> <span style="color: #000000;">10</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
			<span style="color: #007800;">number</span>=<span style="color: #ff0000;">&quot;000<span style="color: #007800;">$cont</span>&quot;</span>
		<span style="color: #000000; font-weight: bold;">elif</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #007800;">$cont</span> <span style="color: #660033;">-lt</span> <span style="color: #000000;">100</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
			<span style="color: #007800;">number</span>=<span style="color: #ff0000;">&quot;00<span style="color: #007800;">$cont</span>&quot;</span>
		<span style="color: #000000; font-weight: bold;">elif</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #007800;">$cont</span> <span style="color: #660033;">-lt</span> <span style="color: #000000;">1000</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
			<span style="color: #007800;">number</span>=<span style="color: #ff0000;">&quot;0<span style="color: #007800;">$cont</span>&quot;</span>
		<span style="color: #000000; font-weight: bold;">else</span>
			<span style="color: #007800;">number</span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">$cont</span>&quot;</span>
		<span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">fi</span> 
&nbsp;
<span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#Aqui parseamos las opciones</span>
<span style="color: #007800;">qflag</span>=<span style="color: #000000;">0</span>
<span style="color: #007800;">sflag</span>=<span style="color: #000000;">0</span>
<span style="color: #007800;">nflag</span>=<span style="color: #000000;">0</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">while</span> <span style="color: #7a0874; font-weight: bold;">getopts</span> <span style="color: #ff0000;">'q:s:n:'</span> OPTION
<span style="color: #000000; font-weight: bold;">do</span>
  <span style="color: #000000; font-weight: bold;">case</span> <span style="color: #007800;">$OPTION</span> <span style="color: #000000; font-weight: bold;">in</span>
  q<span style="color: #7a0874; font-weight: bold;">&#41;</span>	<span style="color: #007800;">qflag</span>=<span style="color: #000000;">1</span>
		<span style="color: #007800;">quality</span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">$OPTARG</span>&quot;</span>
		<span style="color: #000000; font-weight: bold;">;;</span>
  s<span style="color: #7a0874; font-weight: bold;">&#41;</span>	<span style="color: #007800;">sflag</span>=<span style="color: #000000;">1</span>
		<span style="color: #007800;"><span style="color: #c20cb9; font-weight: bold;">size</span></span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">$OPTARG</span>&quot;</span>
		<span style="color: #000000; font-weight: bold;">;;</span>
  n<span style="color: #7a0874; font-weight: bold;">&#41;</span>	<span style="color: #007800;">nflag</span>=<span style="color: #000000;">1</span>
		<span style="color: #007800;">nameBase</span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">$OPTARG</span>&quot;</span>
		<span style="color: #000000; font-weight: bold;">;;</span>
  <span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>	<span style="color: #7a0874; font-weight: bold;">printf</span> <span style="color: #ff0000;">&quot;Usage: photo2wp.sh [-q &lt;quality&gt;] [-s &lt;size&gt;] [-n &lt;name&gt;]&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&amp;</span><span style="color: #000000;">2</span>
		<span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">2</span>
		<span style="color: #000000; font-weight: bold;">;;</span>
  <span style="color: #000000; font-weight: bold;">esac</span>
<span style="color: #000000; font-weight: bold;">done</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#Si no nos dieron quality asume el 100</span>
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #007800;">$qflag</span> <span style="color: #660033;">-ne</span> <span style="color: #000000;">1</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
	<span style="color: #007800;">quality</span>=<span style="color: #000000;">100</span>
<span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#Si no nos dieron size asume el 100</span>
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #007800;">$sflag</span> <span style="color: #660033;">-ne</span> <span style="color: #000000;">1</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
	<span style="color: #007800;"><span style="color: #c20cb9; font-weight: bold;">size</span></span>=<span style="color: #000000;">100</span>
<span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
&nbsp;
<span style="color: #666666; font-style: italic;">#Checamos que quality sea valido</span>
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #007800;">$quality</span> =~ ^<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">0</span>-<span style="color: #000000;">9</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>+$ <span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
    <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #007800;">$quality</span> <span style="color: #660033;">-gt</span> <span style="color: #000000;">100</span> <span style="color: #660033;">-o</span> <span style="color: #007800;">$quality</span> <span style="color: #660033;">-lt</span> <span style="color: #000000;">0</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>
    <span style="color: #000000; font-weight: bold;">then</span>
		<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;El parámetro quality debe se un número entero en el intervalo [0, 100]&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&amp;</span><span style="color: #000000;">2</span>
		<span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">3</span>
    <span style="color: #000000; font-weight: bold;">fi</span>
<span style="color: #000000; font-weight: bold;">else</span> 
	<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;El parámetro quality debe se numérico y entero&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&amp;</span><span style="color: #000000;">2</span>
    <span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">3</span>
<span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#Ahora validamos el valor de size</span>
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #007800;">$size</span> =~ ^<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">0</span>-<span style="color: #000000;">9</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>+$ <span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
    <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #007800;">$size</span> <span style="color: #660033;">-gt</span> <span style="color: #000000;">100</span> <span style="color: #660033;">-o</span> <span style="color: #007800;">$size</span> <span style="color: #660033;">-lt</span> <span style="color: #000000;">0</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>
    <span style="color: #000000; font-weight: bold;">then</span>
		<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;El parámetro size debe se un número entero en el intervalo [0, 100]&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&amp;</span><span style="color: #000000;">2</span>
		<span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">3</span>
    <span style="color: #000000; font-weight: bold;">fi</span>
<span style="color: #000000; font-weight: bold;">else</span> 
	<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;El parámetro size debe se numérico y entero&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&amp;</span><span style="color: #000000;">2</span>
    <span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">3</span>
<span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#Contamos cuantas imagenes hay</span>
<span style="color: #007800;">total</span>=<span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">ls</span> <span style="color: #000000; font-weight: bold;">*</span>.<span style="color: #7a0874; font-weight: bold;">&#91;</span>jJ<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#91;</span>pP<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#91;</span>gG<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">&gt;/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">wc</span> -l<span style="color: #000000; font-weight: bold;">`</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #007800;">$total</span> <span style="color: #660033;">-eq</span> <span style="color: #000000;">0</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
	<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;No hay imagenes que procesar en esta carpeta&quot;</span>
	<span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">1</span>
<span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#Calculemos las opciones y avisemos al usuario que vamos a hacer</span>
<span style="color: #007800;">opciones</span>=<span style="color: #ff0000;">&quot;-auto-orient&quot;</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Hay <span style="color: #007800;">$total</span> fotos&quot;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #007800;">$sflag</span> <span style="color: #660033;">-eq</span> <span style="color: #000000;">1</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
	<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Se van a escalar a un tamaño de: <span style="color: #007800;">$size</span>%&quot;</span>
	<span style="color: #007800;">opciones</span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">$opciones</span> -resize <span style="color: #007800;">$size</span>%&quot;</span>
<span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #007800;">$qflag</span> <span style="color: #660033;">-eq</span> <span style="color: #000000;">1</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
	<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Se van a comprimir con una calidad de: <span style="color: #007800;">$quality</span>%&quot;</span>
	<span style="color: #007800;">opciones</span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">$opciones</span> -quality <span style="color: #007800;">$quality</span>%&quot;</span>
<span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #007800;">$nflag</span> <span style="color: #660033;">-eq</span> <span style="color: #000000;">1</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
	<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Se guardaran con el nombre: <span style="color: #007800;">$nameBase</span>[XXX].jpg&quot;</span>
<span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#Todo correcto empezamos a procesar</span>
<span style="color: #007800;">cont</span>=<span style="color: #000000;">0</span>
<span style="color: #007800;">number</span>=<span style="color: #ff0000;">&quot;&quot;</span>
<span style="color: #007800;">output_file</span>=<span style="color: #ff0000;">&quot;&quot;</span>
<span style="color: #007800;">images</span>=<span style="color: #000000; font-weight: bold;">*</span>.<span style="color: #7a0874; font-weight: bold;">&#91;</span>jJ<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#91;</span>pP<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#91;</span>gG<span style="color: #7a0874; font-weight: bold;">&#93;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#Ciclo principal sobre todas las imagenes de entrada</span>
<span style="color: #000000; font-weight: bold;">for</span> input_file <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #007800;">$images</span>
<span style="color: #000000; font-weight: bold;">do</span>
	<span style="color: #666666; font-style: italic;">#Calculamos el nombre de la imagen de salida</span>
	<span style="color: #007800;">cont</span>=<span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">expr</span> <span style="color: #007800;">$cont</span> + <span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">`</span>
	dameNumero
	<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #007800;">$nflag</span> <span style="color: #660033;">-eq</span> <span style="color: #000000;">1</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
		<span style="color: #007800;">output_file</span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">$nameBase</span><span style="color: #007800;">$number</span>&quot;</span>
	<span style="color: #000000; font-weight: bold;">else</span>
		<span style="color: #007800;">output_file</span>=<span style="color: #800000;">${input_file%%.*}</span>
	<span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
	<span style="color: #666666; font-style: italic;">#Realizamos la conversion</span>
	<span style="color: #000000; font-weight: bold;">if</span> convert <span style="color: #007800;">$opciones</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$input_file</span>&quot;</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$output_file</span>.jpg&quot;</span> <span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">&gt;/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null ; <span style="color: #000000; font-weight: bold;">then</span>
		<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Imagen <span style="color: #007800;">$cont</span> de <span style="color: #007800;">$total</span>&quot;</span>
	<span style="color: #000000; font-weight: bold;">else</span>
		<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$input_file</span> no pudo ser procesada...&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&amp;</span><span style="color: #000000;">2</span>
	<span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">done</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">0</span></pre></td></tr></table></div>

<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.nemediano.com.mx%2F2010%2Forganizando-fotos-con-imagemagick%2F&amp;t=Organizando%20fotos%20con%20ImageMagick" id="facebook_share_icon_317" style="font-size:11px; line-height:13px; font-family:'lucida grande',tahoma,verdana,arial,sans-serif; text-decoration:none;"><img src="http://b.static.ak.fbcdn.net/images/share/facebook_share_icon.gif" alt="Share on Facebook" /></a>
	<script type="text/javascript">
	var button = document.getElementById('facebook_share_link_317') || document.getElementById('facebook_share_icon_317') || document.getElementById('facebook_share_both_317') || document.getElementById('facebook_share_button_317');
	if (button) {
		button.onclick = function(e) {
			var url = this.href.replace(/share\.php/, 'sharer.php');
			window.open(url,'sharer','toolbar=0,status=0,width=626,height=436');
			return false;
		}
	
		if (button.id === 'facebook_share_button_317') {
			button.onmouseover = function(){
				this.style.color='#fff';
				this.style.borderColor = '#295582';
				this.style.backgroundColor = '#3b5998';
			}
			button.onmouseout = function(){
				this.style.color = '#3b5998';
				this.style.borderColor = '#d8dfea';
				this.style.backgroundColor = '#fff';
			}
		}
	}
	</script>
	]]></content:encoded>
			<wfw:commentRss>http://www.nemediano.com.mx/2010/organizando-fotos-con-imagemagick/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>What&#8217;s going on?</title>
		<link>http://www.nemediano.com.mx/2010/whats-going-on/</link>
		<comments>http://www.nemediano.com.mx/2010/whats-going-on/#comments</comments>
		<pubDate>Tue, 01 Jun 2010 22:19:06 +0000</pubDate>
		<dc:creator>nemediano</dc:creator>
				<category><![CDATA[Acerca de mi]]></category>

		<guid isPermaLink="false">http://www.nemediano.com.mx/?p=309</guid>
		<description><![CDATA[Y una rola mas por aquello de la nostalgia. La versión en piano de what&#8217;s up, por 4 non blondes. What&#8217;s up (piano versión) Tweny-five years and still trying To get up that great big hill of hope I realized quickly when I knew I should That the world was made up of this brotherhood [...]]]></description>
			<content:encoded><![CDATA[<p>Y una rola mas por aquello de la nostalgia. La versión en piano de <a href="http://en.wikipedia.org/wiki/What%27s_Up_%28song%29">what&#8217;s up</a>, por <a href="http://en.wikipedia.org/wiki/4_Non_Blondes">4 non blondes</a>.</p>
<p><span id="more-309"></span></p>
<h2>What&#8217;s up (piano versión)</h2>
<blockquote><p>Tweny-five years and still trying<br />
To get up that great big hill of hope<br />
I realized quickly when I knew I should<br />
That the world was made up of this brotherhood of man<br />
For whatever that means<br />
And so I cry sometimes<br />
When I&#8217;m lying in bed<br />
Just to get it all out<br />
What&#8217;s in my head<br />
And I am start feeling a little peculiar<br />
And so I wake in the morning<br />
And I step outside<br />
And I take a deep breath and I get real high<br />
And I scream form the top of my lungs<br />
What&#8217;s going on?<br />
And I say, hey hey uhhmmm, hey hey uhhmmm,<br />
hey hey what&#8217;s going on?<br />
And I say, hey hey uhhmmm, hey hey uhhmmm,<br />
hey hey what&#8217;s going on?</p>
<p>ooh, ooh ooh<br />
ooh, ooh ooh<br />
ooh, ooh ooh<br />
ooh, ooh ooh</p>
<p>And I try, oh my god do I try<br />
I try all the time, in this institution<br />
And I pray, oh my god do I pray<br />
oh my god do I pray<br />
I pray for a revolution<br />
And so I cry sometimes<br />
When I&#8217;m lying in bed<br />
Just to get it all out<br />
What&#8217;s in my head<br />
And I am start feeling a little peculiar<br />
And so I wake in the morning<br />
And I step outside<br />
And I take a deep breath and I get real high<br />
And I scream at the top of my lungs<br />
What&#8217;s going on?</p>
<p>And I say, hey hey uhhmmm, hey hey uhhmmm,<br />
hey hey what&#8217;s going on?<br />
And I say, hey hey no no no no, hey hey no no no no,<br />
hey hey what&#8217;s going on?<br />
And I say, hey hey yeha yeha yeha yeha, hey hey yeha yeha yeha yeha,<br />
hey hey what&#8217;s going on?</p>
<p>ooh, ooh ooh<br />
ooh, ooh ooh</p>
<p>Twenty-five years and my life is still<br />
Trying to get up that great big hill of hope<br />
For a destination</p></blockquote>
<p>Una cosa curiosa es que la canción jamas menciona la frase What&#8217;s up. Se me hace raro <img src='http://www.nemediano.com.mx/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<p>El mp3 para escuchar o para su descarga esta aquí:</p>
<p><a class="wpaudio" href="http://www.nemediano.com.mx/wp-content/uploads/2010/06/4-non-blondes-what-s-up-piano-version.mp3">4 Non Blondes &#8211; What&#8217;s up (piano versión)</a></p>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.nemediano.com.mx%2F2010%2Fwhats-going-on%2F&amp;t=What%27s%20going%20on%3F" id="facebook_share_icon_309" style="font-size:11px; line-height:13px; font-family:'lucida grande',tahoma,verdana,arial,sans-serif; text-decoration:none;"><img src="http://b.static.ak.fbcdn.net/images/share/facebook_share_icon.gif" alt="Share on Facebook" /></a>
	<script type="text/javascript">
	var button = document.getElementById('facebook_share_link_309') || document.getElementById('facebook_share_icon_309') || document.getElementById('facebook_share_both_309') || document.getElementById('facebook_share_button_309');
	if (button) {
		button.onclick = function(e) {
			var url = this.href.replace(/share\.php/, 'sharer.php');
			window.open(url,'sharer','toolbar=0,status=0,width=626,height=436');
			return false;
		}
	
		if (button.id === 'facebook_share_button_309') {
			button.onmouseover = function(){
				this.style.color='#fff';
				this.style.borderColor = '#295582';
				this.style.backgroundColor = '#3b5998';
			}
			button.onmouseout = function(){
				this.style.color = '#3b5998';
				this.style.borderColor = '#d8dfea';
				this.style.backgroundColor = '#fff';
			}
		}
	}
	</script>
	]]></content:encoded>
			<wfw:commentRss>http://www.nemediano.com.mx/2010/whats-going-on/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
<enclosure url="http://www.nemediano.com.mx/wp-content/uploads/2010/06/4-non-blondes-what-s-up-piano-version.mp3" length="3985408" type="audio/mpeg" />
		</item>
		<item>
		<title>De regreso de vacaciones</title>
		<link>http://www.nemediano.com.mx/2010/de-regreso-de-vacaciones/</link>
		<comments>http://www.nemediano.com.mx/2010/de-regreso-de-vacaciones/#comments</comments>
		<pubDate>Thu, 08 Apr 2010 17:23:50 +0000</pubDate>
		<dc:creator>nemediano</dc:creator>
				<category><![CDATA[Acerca de mi]]></category>

		<guid isPermaLink="false">http://www.nemediano.com.mx/?p=285</guid>
		<description><![CDATA[Por fin tuve vacaciones. OK admito que quizás no las merecía, ¡Pero vaya que las necesitaba! Fui con Kika y unas amigas a Oaxaca via uno de esos anuncios de viajes que luego pegan en las Universidad. El nombre era prometedor pocovaroviajes (justo lo que necesitábamos ). Y aunque al principio no me pareció adecuado [...]]]></description>
			<content:encoded><![CDATA[<p>Por fin tuve vacaciones. OK admito que quizás no las merecía, ¡Pero vaya que las necesitaba! Fui con Kika y unas amigas a Oaxaca via uno de esos anuncios de viajes que luego pegan en las Universidad. El nombre era prometedor <a title="Poco varo viajes" href="http://www.pocovaroviajes.com.mx/" target="_blank">pocovaroviajes</a> (justo lo que necesitábamos <img src='http://www.nemediano.com.mx/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  ).</p>
<p>Y aunque al principio no me pareció adecuado estuvo al final bien. Excepto por que llegaron bien tarde a recogernos. XD</p>
<p>En fin, para no hacerles el cuento largo después de como 18 hrs de viaje (que se supone iban a ser 16)  llegamos a la playa de Mazunte donde levantamos el campamento. Después alguien me diaría que llego a pensar que Mazunte no existía era algo así como un lugar mítico, como <a href="http://en.wikipedia.org/wiki/El_Dorado">el Dorado</a>, o <a href="http://en.wikipedia.org/wiki/Seven_Cities_of_Gold_%28myth%29">Cibola</a>.</p>
<p><span id="more-285"></span></p>
<p>Al otro día el calor se empezaba a notar estábamos sudando como cerdos, (bueno al menos yo) y fuimos a conocer Zipolite, en la tarde regresamos a Mazunte.</p>
<p>El segundo día fue muy bueno, primero fuimos a dar un paseo en lancha en alta mar, vimos tortugas y delfines, y un montón de aves marinas, tuvimos la oportunidad de hacer snorkeling en un arrecife. Después fuimos ya con el resto del grupo a Ventanilla, que es un manglar donde estuvimos en un tour por el río y acabamos en un museo, vimos cocodrilos y un montón de aves muy elegantes. De lo mas sobresaliente es que comimos unos tacos de pescado de $20.0 la orden. Ahhh claro y todo el paseo en si. (ok, ok, admito que lo mas padre fue la liberación de las tortugas, hasta quería llorar <img src='http://www.nemediano.com.mx/wp-includes/images/smilies/icon_cry.gif' alt=':cry:' class='wp-smiley' /> )</p>
<p>El siguiente día conocimos Puerto escondido que estaba feo feo (<em>puerco</em> escondido)  y una playa cercana llamada Zicatela. En donde fuimos terriblemente tostados por el sol. Pero nos recuperamos comiendo tacos de canasta al mas puro estilo chilango. XD. Después Erika y yo casi somos abandonados en el regreso por la búsqueda de un banco.</p>
<p>El ultimo día de playa conocimos Huatlco, donde nos enjaretaron en un restaurante algo fuera del presupuesto. (lo bueno es que ya habíamos conseguido banco). Después de comer fuimos al centro de Huatulco donde comimos tacos al pastor y subimos al Crazy Bus (en vez de entrar al cine).</p>
<p>El ultimo día, visitamos dos sitios arqueológicos <a href="http://en.wikipedia.org/wiki/Mitla">Mitla</a> y <a href="http://en.wikipedia.org/wiki/Monte_Alban">Monte Alban</a>. Bueno la magali-e, no visito Mitla <img src='http://www.nemediano.com.mx/wp-includes/images/smilies/icon_lol.gif' alt=':lol:' class='wp-smiley' />  . Y aun con todo y la desmañanada, en la tarde estábamos en el centro de Oaxaca, donde turisteamos la central de abastos y los mercados Benito Juárez y 20 de noviembre. Al final acabamos agotadisismos en una banquita del centro de Oaxaca. Luego visitamos la iglesia de Santo Domingo y terminamos en <a href="http://www.comoaguapachocolate.com/">comoaguapachocolate</a>.</p>
<p>Llegamos a Mexico el sábado a las 5:00 de la mañana. O muy temprano la neta ni me fije en la hora. Desde donde caminamos de regreso al cubil felino y dormimos hasta medio día. Ya saben que las fotos (a reserva que me falta intercambiar) estan en la pagina de fotos, del blog. Y pongo la galería solita aquí.</p>
<p><strong>
<div class="ngg-galleryoverview" id="ngg-gallery-16-285">

	<!-- Slideshow link -->
	<div class="slideshowlink">
		<a class="slideshowlink" href="http://www.nemediano.com.mx/2010/de-regreso-de-vacaciones/?show=slide">
			[Show as slideshow]		</a>
	</div>

	
	<!-- Thumbnails -->
		
	<div id="ngg-image-175" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.nemediano.com.mx/wp-content/gallery/oaxaca/IMG_2352.JPG" title="Saliendo de México con Erika" class="thickbox" rel="set_16" >
								<img title="IMG_2352" alt="IMG_2352" src="http://www.nemediano.com.mx/wp-content/gallery/oaxaca/thumbs/thumbs_IMG_2352.JPG" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-176" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.nemediano.com.mx/wp-content/gallery/oaxaca/IMG_2359.JPG" title="Una mantis religiosa" class="thickbox" rel="set_16" >
								<img title="IMG_2359" alt="IMG_2359" src="http://www.nemediano.com.mx/wp-content/gallery/oaxaca/thumbs/thumbs_IMG_2359.JPG" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-177" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.nemediano.com.mx/wp-content/gallery/oaxaca/IMG_2362.JPG" title="A un lado del camino" class="thickbox" rel="set_16" >
								<img title="IMG_2362" alt="IMG_2362" src="http://www.nemediano.com.mx/wp-content/gallery/oaxaca/thumbs/thumbs_IMG_2362.JPG" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-178" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.nemediano.com.mx/wp-content/gallery/oaxaca/IMG_2366.JPG" title="Equilibrismo" class="thickbox" rel="set_16" >
								<img title="IMG_2366" alt="IMG_2366" src="http://www.nemediano.com.mx/wp-content/gallery/oaxaca/thumbs/thumbs_IMG_2366.JPG" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-179" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.nemediano.com.mx/wp-content/gallery/oaxaca/IMG_2370.JPG" title="Noche en la playa" class="thickbox" rel="set_16" >
								<img title="IMG_2370" alt="IMG_2370" src="http://www.nemediano.com.mx/wp-content/gallery/oaxaca/thumbs/thumbs_IMG_2370.JPG" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-180" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.nemediano.com.mx/wp-content/gallery/oaxaca/IMG_2374.JPG" title="Mazunte" class="thickbox" rel="set_16" >
								<img title="IMG_2374" alt="IMG_2374" src="http://www.nemediano.com.mx/wp-content/gallery/oaxaca/thumbs/thumbs_IMG_2374.JPG" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-181" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.nemediano.com.mx/wp-content/gallery/oaxaca/IMG_2378.JPG" title="Mazunte" class="thickbox" rel="set_16" >
								<img title="IMG_2378" alt="IMG_2378" src="http://www.nemediano.com.mx/wp-content/gallery/oaxaca/thumbs/thumbs_IMG_2378.JPG" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-182" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.nemediano.com.mx/wp-content/gallery/oaxaca/IMG_2379.JPG" title="Kika junto al mar" class="thickbox" rel="set_16" >
								<img title="IMG_2379" alt="IMG_2379" src="http://www.nemediano.com.mx/wp-content/gallery/oaxaca/thumbs/thumbs_IMG_2379.JPG" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-183" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.nemediano.com.mx/wp-content/gallery/oaxaca/IMG_2393.JPG" title="Mazunte" class="thickbox" rel="set_16" >
								<img title="IMG_2393" alt="IMG_2393" src="http://www.nemediano.com.mx/wp-content/gallery/oaxaca/thumbs/thumbs_IMG_2393.JPG" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-184" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.nemediano.com.mx/wp-content/gallery/oaxaca/IMG_2415.JPG" title="Playa (no palmeras)" class="thickbox" rel="set_16" >
								<img title="IMG_2415" alt="IMG_2415" src="http://www.nemediano.com.mx/wp-content/gallery/oaxaca/thumbs/thumbs_IMG_2415.JPG" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-185" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.nemediano.com.mx/wp-content/gallery/oaxaca/IMG_2418.JPG" title=" " class="thickbox" rel="set_16" >
								<img title="IMG_2418" alt="IMG_2418" src="http://www.nemediano.com.mx/wp-content/gallery/oaxaca/thumbs/thumbs_IMG_2418.JPG" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-186" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.nemediano.com.mx/wp-content/gallery/oaxaca/IMG_2424.JPG" title="Pensando..." class="thickbox" rel="set_16" >
								<img title="IMG_2424" alt="IMG_2424" src="http://www.nemediano.com.mx/wp-content/gallery/oaxaca/thumbs/thumbs_IMG_2424.JPG" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-187" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.nemediano.com.mx/wp-content/gallery/oaxaca/IMG_2432.JPG" title="Atardecer" class="thickbox" rel="set_16" >
								<img title="IMG_2432" alt="IMG_2432" src="http://www.nemediano.com.mx/wp-content/gallery/oaxaca/thumbs/thumbs_IMG_2432.JPG" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-188" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.nemediano.com.mx/wp-content/gallery/oaxaca/IMG_2446.JPG" title="Mariposas amarillas, en el mar :)" class="thickbox" rel="set_16" >
								<img title="IMG_2446" alt="IMG_2446" src="http://www.nemediano.com.mx/wp-content/gallery/oaxaca/thumbs/thumbs_IMG_2446.JPG" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-189" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.nemediano.com.mx/wp-content/gallery/oaxaca/IMG_2450.JPG" title="Camino obstaculizado" class="thickbox" rel="set_16" >
								<img title="IMG_2450" alt="IMG_2450" src="http://www.nemediano.com.mx/wp-content/gallery/oaxaca/thumbs/thumbs_IMG_2450.JPG" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-190" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.nemediano.com.mx/wp-content/gallery/oaxaca/IMG_2456.JPG" title="Decorado natural" class="thickbox" rel="set_16" >
								<img title="IMG_2456" alt="IMG_2456" src="http://www.nemediano.com.mx/wp-content/gallery/oaxaca/thumbs/thumbs_IMG_2456.JPG" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-191" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.nemediano.com.mx/wp-content/gallery/oaxaca/IMG_2461.JPG" title="Contra las rocas" class="thickbox" rel="set_16" >
								<img title="IMG_2461" alt="IMG_2461" src="http://www.nemediano.com.mx/wp-content/gallery/oaxaca/thumbs/thumbs_IMG_2461.JPG" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-192" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.nemediano.com.mx/wp-content/gallery/oaxaca/IMG_2468.JPG" title="Azul" class="thickbox" rel="set_16" >
								<img title="IMG_2468" alt="IMG_2468" src="http://www.nemediano.com.mx/wp-content/gallery/oaxaca/thumbs/thumbs_IMG_2468.JPG" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-193" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.nemediano.com.mx/wp-content/gallery/oaxaca/IMG_2487.JPG" title="Punta" class="thickbox" rel="set_16" >
								<img title="IMG_2487" alt="IMG_2487" src="http://www.nemediano.com.mx/wp-content/gallery/oaxaca/thumbs/thumbs_IMG_2487.JPG" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-194" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.nemediano.com.mx/wp-content/gallery/oaxaca/IMG_2500.JPG" title="Listos para entrar al manglar" class="thickbox" rel="set_16" >
								<img title="IMG_2500" alt="IMG_2500" src="http://www.nemediano.com.mx/wp-content/gallery/oaxaca/thumbs/thumbs_IMG_2500.JPG" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 	 	
	<!-- Pagination -->
 	<div class='ngg-navigation'><span>1</span><a class="page-numbers" href="http://www.nemediano.com.mx/2010/de-regreso-de-vacaciones/?nggpage=2">2</a><a class="page-numbers" href="http://www.nemediano.com.mx/2010/de-regreso-de-vacaciones/?nggpage=3">3</a><a class="page-numbers" href="http://www.nemediano.com.mx/2010/de-regreso-de-vacaciones/?nggpage=4">4</a><a class="next" id="ngg-next-2" href="http://www.nemediano.com.mx/2010/de-regreso-de-vacaciones/?nggpage=2">&#9658;</a></div> 	
</div>

</strong></p>
<p>También estamos estrenando plugin de <a href="http://wordpress.org/extend/plugins/network-publisher/">Network Publishing</a>, que se supone debe publicar las entradas de mi blog en mi perfil de facebook, así que a toda la banda de culeros que namas se la pasan en el caralibro y no visitan mi blog, esta es su oportunidad. (están a un click de distancia y los estoy observando XD).</p>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.nemediano.com.mx%2F2010%2Fde-regreso-de-vacaciones%2F&amp;t=De%20regreso%20de%20vacaciones" id="facebook_share_icon_285" style="font-size:11px; line-height:13px; font-family:'lucida grande',tahoma,verdana,arial,sans-serif; text-decoration:none;"><img src="http://b.static.ak.fbcdn.net/images/share/facebook_share_icon.gif" alt="Share on Facebook" /></a>
	<script type="text/javascript">
	var button = document.getElementById('facebook_share_link_285') || document.getElementById('facebook_share_icon_285') || document.getElementById('facebook_share_both_285') || document.getElementById('facebook_share_button_285');
	if (button) {
		button.onclick = function(e) {
			var url = this.href.replace(/share\.php/, 'sharer.php');
			window.open(url,'sharer','toolbar=0,status=0,width=626,height=436');
			return false;
		}
	
		if (button.id === 'facebook_share_button_285') {
			button.onmouseover = function(){
				this.style.color='#fff';
				this.style.borderColor = '#295582';
				this.style.backgroundColor = '#3b5998';
			}
			button.onmouseout = function(){
				this.style.color = '#3b5998';
				this.style.borderColor = '#d8dfea';
				this.style.backgroundColor = '#fff';
			}
		}
	}
	</script>
	]]></content:encoded>
			<wfw:commentRss>http://www.nemediano.com.mx/2010/de-regreso-de-vacaciones/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Un lenguaje extraño, y un error mas extraño.</title>
		<link>http://www.nemediano.com.mx/2010/un-lenguaje-extrano-y-un-error-mas-extrano/</link>
		<comments>http://www.nemediano.com.mx/2010/un-lenguaje-extrano-y-un-error-mas-extrano/#comments</comments>
		<pubDate>Wed, 10 Mar 2010 00:01:45 +0000</pubDate>
		<dc:creator>nemediano</dc:creator>
				<category><![CDATA[Acerca de mi]]></category>
		<category><![CDATA[Computación]]></category>
		<category><![CDATA[Mis demonios]]></category>

		<guid isPermaLink="false">http://www.nemediano.com.mx/?p=282</guid>
		<description><![CDATA[Hoy ha estado el día muy extraño, un error de aritmética entera del procesador intel de mi laptop, no me dejaba en paz, hasta que por fin se me ocurrió compilar el mismo programa en otra maquina y ahí si me funciona. Me castra, me castra, ¡¿Como es posible que ni en la aritmética entera [...]]]></description>
			<content:encoded><![CDATA[<p>Hoy ha estado el día muy extraño, un error de aritmética entera del procesador intel de mi laptop, no me dejaba en paz, hasta que por fin se me ocurrió compilar el mismo programa en otra maquina y ahí si me funciona. Me castra, me castra, ¡¿Como es posible que ni en la aritmética entera de un procesador podamos confiar?!</p>
<p>Eso no fue todo, <strong>Fatima</strong> me hizo la corrección y me sorprende tanto, es un código que a todas luces es equivalente al mio (o debería de ser para cualquier programador) y pues resulta que lo es en una maquina que no tenga procesador intel (o bueno al menos es mi conjetura).</p>
<p>El caso es que Pixie, solo lo acepta de una forma y que en Ometochtli (la maquina servidor en la que trabajamos), con un procesador AMD chorrocientas veces mas poderoso funciona a la perfección de ambas maneras).<br />
<span id="more-282"></span><br />
Para no enojarme mas reduzco mi programa mas grande a un caso de prueba, para que vean de lo que hablo:</p>

<div class="wp_syntax"><div class="code"><pre class="cpp" style="font-family:monospace;"><span style="color: #0000ff;">int</span> factor <span style="color: #000080;">=</span> <span style="color: #0000dd;">1000</span><span style="color: #008080;">;</span>
&nbsp;
<span style="color: #0000dd;">cout</span> <span style="color: #000080;">&lt;&lt;</span> <span style="color: #FF0000;">&quot;factor * 1.345 = &quot;</span> <span style="color: #000080;">&lt;&lt;</span> <span style="color: #008000;">&#40;</span><span style="color: #0000ff;">int</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#40;</span>factor <span style="color: #000040;">*</span> <span style="color:#800080;">1.345</span><span style="color: #008000;">&#41;</span> <span style="color: #000080;">&lt;&lt;</span> endl<span style="color: #008080;">;</span>
<span style="color: #0000dd;">cout</span> <span style="color: #000080;">&lt;&lt;</span> <span style="color: #FF0000;">&quot;factor * 2.344 = &quot;</span> <span style="color: #000080;">&lt;&lt;</span> <span style="color: #008000;">&#40;</span><span style="color: #0000ff;">int</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#40;</span>factor <span style="color: #000040;">*</span> <span style="color:#800080;">2.344</span><span style="color: #008000;">&#41;</span> <span style="color: #000080;">&lt;&lt;</span> endl<span style="color: #008080;">;</span>
&nbsp;
<span style="color: #0000dd;">cout</span> <span style="color: #000080;">&lt;&lt;</span> <span style="color: #FF0000;">&quot;1000 * 1.345 = &quot;</span> <span style="color: #000080;">&lt;&lt;</span> <span style="color: #008000;">&#40;</span><span style="color: #0000ff;">int</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#40;</span><span style="color: #0000dd;">1000</span> <span style="color: #000040;">*</span> <span style="color:#800080;">1.345</span><span style="color: #008000;">&#41;</span> <span style="color: #000080;">&lt;&lt;</span> endl<span style="color: #008080;">;</span>
<span style="color: #0000dd;">cout</span> <span style="color: #000080;">&lt;&lt;</span> <span style="color: #FF0000;">&quot;1000 * 2.344 = &quot;</span> <span style="color: #000080;">&lt;&lt;</span> <span style="color: #008000;">&#40;</span><span style="color: #0000ff;">int</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#40;</span><span style="color: #0000dd;">1000</span> <span style="color: #000040;">*</span> <span style="color:#800080;">2.344</span><span style="color: #008000;">&#41;</span> <span style="color: #000080;">&lt;&lt;</span> endl<span style="color: #008080;">;</span></pre></div></div>

<p>La cosa es que las primeras lineas escriben:<br />
<code><br />
factor * 1.345 = 1344<br />
factor * 2.344 = 2343<br />
</code><br />
Mientras que las segundas escriben:<br />
<code><br />
1000 * 1.345 = 1345<br />
1000 * 2.344 = 2344<br />
</code><br />
Este error parece que solo esta presenta cuando los números en cuestión tienen en su parte decimal y 3 seguido de un cuatro. Es increíble pero si cambian el numero por 1.253, todo funciona perfectamente. Desde luego con cualquier caso en un procesador AMD parece que funciona bien.</p>
<p>!!!Es cierto!!! se que no me lo van a creer así que pongo el pantallazo, se que con todo y eso algunos no me van a creer. Pero ya no hay mas que pueda hacer.<br />
<a href="http://www.nemediano.com.mx/wp-content/uploads/2010/03/HorrorDeIntel.png"><img src="http://www.nemediano.com.mx/wp-content/uploads/2010/03/HorrorDeIntel-300x175.png" alt="Si es cierto!!" title="HorrorDeIntel" width="300" height="175" class="aligncenter size-medium wp-image-283" /></a><br />
Y eso no es lo mas triste del asunto, lo mas triste es la manera como lo corrigió <strong>Fatima</strong>:</p>

<div class="wp_syntax"><div class="code"><pre class="cpp" style="font-family:monospace;"><span style="color: #0000ff;">double</span> aux<span style="color: #008080;">;</span>
aux <span style="color: #000080;">=</span> <span style="color: #008000;">&#40;</span><span style="color: #0000ff;">double</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#40;</span>factor <span style="color: #000040;">*</span> <span style="color:#800080;">1.345</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
<span style="color: #0000dd;">cout</span> <span style="color: #000080;">&lt;&lt;</span> <span style="color: #FF0000;">&quot;factor * 1.345 = &quot;</span> <span style="color: #000080;">&lt;&lt;</span> <span style="color: #008000;">&#40;</span><span style="color: #0000ff;">int</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#40;</span>aux<span style="color: #008000;">&#41;</span> <span style="color: #000080;">&lt;&lt;</span> endl<span style="color: #008080;">;</span></pre></div></div>

<p>¡¡¡Y así si funciona!!!, Aun cuando el código es equivalente al mio. Desde luego el programa que queremos hacer es mucho mas extenso que esto, pero no me deja de molestar, que cosas así pasen, me pone muy nervioso.</p>
<p>Ya para seguir en el tono pongo un poema que vi en mi clase de ingles, que escribió Lord Cromer, que seguro en su momento se sintió como yo ahora. </p>
<h2>Our Queer Language</h2>
<blockquote><p>
When the English tongue we speak,<br />
Why is &#8220;break&#8221; not rhymed with &#8220;freak&#8221;?<br />
Will you tell me why it’s true<br />
We say &#8220;sew&#8221; but likewise &#8220;few&#8221;;</p>
<p>And the maker of a verse<br />
Cannot cap his &#8220;horse&#8221; with &#8220;worse&#8221;?<br />
&#8220;Beard&#8221; sounds not the same as &#8220;heard&#8221;;<br />
&#8220;Cord&#8221; is different from &#8220;word&#8221;;<br />
Cow is &#8220;cow,&#8221; but low is &#8220;low&#8221;;<br />
&#8220;Shoe&#8221; is never rhymed with &#8220;foe.&#8221;</p>
<p>Think of &#8220;hose&#8221; and &#8220;dose&#8221; and &#8220;lose&#8221;;<br />
&#8220;Doll&#8221; and &#8220;roll&#8221; and &#8220;home&#8221; and &#8220;some.&#8221;<br />
And since &#8220;pay&#8221; is rhymed with &#8220;say,&#8221;<br />
Why not &#8220;paid&#8221; with &#8220;said,&#8221; I pray?</p>
<p>We have &#8220;blood&#8221; and &#8220;food&#8221; and &#8220;goo d&#8221;;<br />
&#8220;Mould&#8221; is not pronounced as &#8220;could.&#8221;<br />
Wherefore &#8220;done&#8221; but &#8220;gone&#8221; and &#8220;lone&#8221;?<br />
Is there any reason known?<br />
And, in short, it seems to me,<br />
Sounds and letters disagree.
</p></blockquote>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.nemediano.com.mx%2F2010%2Fun-lenguaje-extrano-y-un-error-mas-extrano%2F&amp;t=Un%20lenguaje%20extra%C3%B1o%2C%20y%20un%20error%20mas%20extra%C3%B1o." id="facebook_share_icon_282" style="font-size:11px; line-height:13px; font-family:'lucida grande',tahoma,verdana,arial,sans-serif; text-decoration:none;"><img src="http://b.static.ak.fbcdn.net/images/share/facebook_share_icon.gif" alt="Share on Facebook" /></a>
	<script type="text/javascript">
	var button = document.getElementById('facebook_share_link_282') || document.getElementById('facebook_share_icon_282') || document.getElementById('facebook_share_both_282') || document.getElementById('facebook_share_button_282');
	if (button) {
		button.onclick = function(e) {
			var url = this.href.replace(/share\.php/, 'sharer.php');
			window.open(url,'sharer','toolbar=0,status=0,width=626,height=436');
			return false;
		}
	
		if (button.id === 'facebook_share_button_282') {
			button.onmouseover = function(){
				this.style.color='#fff';
				this.style.borderColor = '#295582';
				this.style.backgroundColor = '#3b5998';
			}
			button.onmouseout = function(){
				this.style.color = '#3b5998';
				this.style.borderColor = '#d8dfea';
				this.style.backgroundColor = '#fff';
			}
		}
	}
	</script>
	]]></content:encoded>
			<wfw:commentRss>http://www.nemediano.com.mx/2010/un-lenguaje-extrano-y-un-error-mas-extrano/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>De interpretes y canciones</title>
		<link>http://www.nemediano.com.mx/2010/de-interpretes-y-canciones/</link>
		<comments>http://www.nemediano.com.mx/2010/de-interpretes-y-canciones/#comments</comments>
		<pubDate>Fri, 12 Feb 2010 18:12:46 +0000</pubDate>
		<dc:creator>nemediano</dc:creator>
				<category><![CDATA[Acerca de mi]]></category>
		<category><![CDATA[Mis demonios]]></category>
		<category><![CDATA[Janice joplin]]></category>
		<category><![CDATA[Me and Bobby McGee]]></category>
		<category><![CDATA[Whatchmen]]></category>

		<guid isPermaLink="false">http://www.nemediano.com.mx/?p=273</guid>
		<description><![CDATA[Ayer estaba escuchando una canción del soundtrack de la película Watchmen. Y me dio por leer un poco acerca de ella, resulto ser una canción con una historia muy particular La canción es: Me and Bobby McGee, y fue escrita por Kris Kristofferson y Fred Foster. Al primer interprete en hacerla famosa fue Roger Miller. [...]]]></description>
			<content:encoded><![CDATA[<p>Ayer estaba escuchando una canción del soundtrack de la película <a href="http://en.wikipedia.org/wiki/Watchmen_(film)">Watchmen</a>. Y me dio por leer un poco acerca de ella, resulto ser una canción con una historia muy particular</p>
<p>La canción es: <a href="http://en.wikipedia.org/wiki/Me_and_Bobby_McGee">Me and Bobby McGee</a>, y fue escrita por <a href="http://en.wikipedia.org/wiki/Kris_Kristofferson">Kris Kristofferson</a> y<em> Fred Foster</em>. Al primer interprete en hacerla famosa fue <em>Roger Miller</em>.</p>
<p><span id="more-273"></span></p>
<p>En la versión original <em>Bobby</em> es una chica, que cantaba el blues. Sin embargo a nosotros nos ha llegado una versión interpretada por la <a href="http://en.wikipedia.org/wiki/Janis_Joplin">bruja blanca</a> donde Bobby es hombre (que tiene también mucho sentido). Lo curioso es que aunque <em>Janice</em> y <em>Kris Kristofferson</em>, fueron amigos y amantes, el dijo que la canción no se la escribió a ella, aunque en la parte de <em>Somewhere near Salinas, Lord, I let her slip away.</em> si esta asociada de alguna manera a <em>Janice</em>.</p>
<p>Lo que convierte esta canción en una leyenda es que <em>Janice</em> escucho de <em>Kris</em> la canción y decidió grabarla en su álbum <a href="http://en.wikipedia.org/wiki/Pearl_(album)">Perl</a>, pero no le dijo nunca a <em>Kris</em> que lo había hecho. <em>Janice</em> murió como toda una leyenda del rock (por una sobredosis) unos días antes de que el álbum saliera a la venta y el sencillo se convirtió en la segunda canción póstuma en entrar a las listas de popularidad en EU.</p>
<p><em>Janice</em> adapto la canción cambiando un poco de la letra, para que <em>Bobby</em> fuera hombre. Y ésta versión interpretada por <em>Janice</em> estuvo en las lista del 2004 de las 500 mejores canciones en la historia. En la película de Watchmen, la canción se escucha en el fondo en la escena donde al terminar la guerra de Vietnam, <a href="http://en.wikipedia.org/wiki/Characters_of_Watchmen#The_Comedian_.28Edward_Morgan_Blake.29">The comedian</a> y <a href="http://en.wikipedia.org/wiki/Characters_of_Watchmen#Doctor_Manhattan_.28Dr._Jon_Osterman.29">Dr. Manhatan</a> están en un bar y una mujer se acerca al The Comedian y le dice que es momento que reconozca al hijo que tuvo con ella, la mujer lo ataca dejándole una cicatriz y este la mata ante la mirada del Dr Manhatan, sin que este ultimo oponga ninguna acción.</p>
<p>A mi me gustaba mucho esta canción por la letra y siempre pensé en <em>Bobby</em> como hombre. Ahora que se la historia me preguntó como no me dí cuenta antes, es tan obvio. Que sea una chica la que hace el <em>auto stop</em>, que sea una chica la que canta mientras <em>Kirs</em> toca la guitarra y que este último extrañe tanto a <em>Bobby</em> que cambiara todas sus mañanas por un solo ayer.</p>
<blockquote><p>Busted flat in Baton Rouge, waiting for a train<br />
And I&#8217;s feeling nearly as faded as my jeans.<br />
Bobby thumbed a diesel down just before it rained,<br />
It rode us all the way to New Orleans.</p>
<p>I pulled my harpoon out of my dirty red bandanna,<br />
I was playing soft while Bobby sang the blues.<br />
Windshield wipers slapping time, I was holding Bobby&#8217;s hand in mine,<br />
We sang every song that driver knew.</p>
<p>Freedom&#8217;s just another word for nothing left to lose,<br />
Nothing don&#8217;t mean nothing honey if it ain&#8217;t free, now now.<br />
And feeling good was easy, Lord, when he sang the blues,<br />
You know feeling good was good enough for me,<br />
Good enough for me and my Bobby McGee.</p>
<p>From the Kentucky coal mines to the California sun,<br />
Hey, Bobby shared the secrets of my soul.<br />
Through all kinds of weather, through everything we done,<br />
Hey Bobby baby? kept me from the cold.</p>
<p>One day up near Salinas,I let him slip away,<br />
He&#8217;s looking for that home and I hope he finds it,<br />
But I&#8217;d trade all of my tomorrows for just one yesterday<br />
To be holding Bobby&#8217;s body next to mine.</p>
<p>Freedom is just another word for nothing left to lose,<br />
Nothing, that&#8217;s all that Bobby left me, yeah,<br />
But feeling good was easy, Lord, when he sang the blues,<br />
Hey, feeling good was good enough for me, hmm hmm,<br />
Good enough for me and my Bobby McGee.</p>
<p>La la la, la la la la, la la la, la la la la<br />
La la la la la Bobby McGee.<br />
La la la la la, la la la la la<br />
La la la la la, Bobby McGee, la.</p>
<p>La La la, la la la la la la,<br />
La La la la la la la la la, ain`t no bumb on my bobby McGee yeah.<br />
Na na na na na na na na, na na na na na na na na na na na<br />
Hey now Bobby now, Bobby McGee, yeah.</p>
<p>Lord, I&#8217;m calling my lover, calling my man,<br />
I said I&#8217;m calling my lover just the best I can,<br />
C&#8217;mon, hey now Bobby yeah, hey now Bobby McGee, yeah,<br />
Lordy Lordy Lordy Lordy Lordy Lordy Lordy Lord<br />
Hey, hey, hey, Bobby McGee, Lord!</p>
<p>Yeah! Whew!</p>
<p>Lordy Lordy Lordy Lordy Lordy Lordy Lordy Lord<br />
Hey, hey, hey, Bobby McGee.</p></blockquote>
<p><a class="wpaudio" href="http://www.nemediano.com.mx/wp-content/uploads/2010/02/05-Me-And-Bobby-McGee.mp3">Me And Bobby McGee</a></p>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.nemediano.com.mx%2F2010%2Fde-interpretes-y-canciones%2F&amp;t=De%20interpretes%20y%20canciones" id="facebook_share_icon_273" style="font-size:11px; line-height:13px; font-family:'lucida grande',tahoma,verdana,arial,sans-serif; text-decoration:none;"><img src="http://b.static.ak.fbcdn.net/images/share/facebook_share_icon.gif" alt="Share on Facebook" /></a>
	<script type="text/javascript">
	var button = document.getElementById('facebook_share_link_273') || document.getElementById('facebook_share_icon_273') || document.getElementById('facebook_share_both_273') || document.getElementById('facebook_share_button_273');
	if (button) {
		button.onclick = function(e) {
			var url = this.href.replace(/share\.php/, 'sharer.php');
			window.open(url,'sharer','toolbar=0,status=0,width=626,height=436');
			return false;
		}
	
		if (button.id === 'facebook_share_button_273') {
			button.onmouseover = function(){
				this.style.color='#fff';
				this.style.borderColor = '#295582';
				this.style.backgroundColor = '#3b5998';
			}
			button.onmouseout = function(){
				this.style.color = '#3b5998';
				this.style.borderColor = '#d8dfea';
				this.style.backgroundColor = '#fff';
			}
		}
	}
	</script>
	]]></content:encoded>
			<wfw:commentRss>http://www.nemediano.com.mx/2010/de-interpretes-y-canciones/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
<enclosure url="http://www.nemediano.com.mx/wp-content/uploads/2010/02/05-Me-And-Bobby-McGee.mp3" length="8710082" type="audio/mpeg" />
		</item>
		<item>
		<title>Se acabaron las materias!</title>
		<link>http://www.nemediano.com.mx/2010/se-acabaron-las-materias/</link>
		<comments>http://www.nemediano.com.mx/2010/se-acabaron-las-materias/#comments</comments>
		<pubDate>Thu, 21 Jan 2010 23:08:38 +0000</pubDate>
		<dc:creator>nemediano</dc:creator>
				<category><![CDATA[Acerca de mi]]></category>

		<guid isPermaLink="false">http://www.nemediano.com.mx/?p=262</guid>
		<description><![CDATA[Tenia un montón de no escribir nada por aquí. Han pasado varias cosas, lo mas importante es que terminé el tercer semestre de la maestría. Lo que significa que no mas materias, solo me queda darle duro a la tesis. El semestre pasado me fue bien con el promedio, de hecho me parece que fue [...]]]></description>
			<content:encoded><![CDATA[<p>Tenia un montón de no escribir nada por aquí. Han pasado varias cosas, lo mas importante es que terminé el tercer semestre de la maestría. Lo que significa que no mas materias, solo me queda darle duro a la tesis.</p>
<p><a href="http://www.nemediano.com.mx/wp-content/uploads/2010/01/TerminarEl3erSemestre.gif"><img class="aligncenter size-full wp-image-263" title="TerminarEl3erSemestre" src="http://www.nemediano.com.mx/wp-content/uploads/2010/01/TerminarEl3erSemestre.gif" alt="TerminarEl3erSemestre" width="400" height="67" /></a></p>
<p><span id="more-262"></span>El semestre pasado me fue bien con el promedio, de hecho me parece que fue el promedio mas alto por semestre que he tenido desde que entre a la maestría (como bien me lo dijo <strong>Etna</strong>, desde que estaba en la primaria).</p>
<p>En la materia de <em>imágenes biomédicas</em>, saque <strong>10</strong>. La materia en si, era mas o menos fácil, pero a mi me costo mucho trabajo por no saber MATLAB, al final creo que si aprendí un par de buenos trucos. Y pude aprovechar el trabajo final para avanzar de mi tesis.</p>
<p>En la de <em>imágenes multiespectrles</em> aprendí muchísimo, y consumió bastante tiempo. Tareas kilométricas y prácticas a diestra y siniestra. Además de que fue increíble como pude medio morder la física necesaria para entender la mayor parte del curso. Al final creo que valió la pena y aunque fue por mucho la materia que mas me mató si alcance el <strong>10</strong>. <strong>Lira</strong> es un gran profesor pero si es demasiado material para un solo curso (y eso que nos dio horas extras). Espero poder ir a verlo en la semana para ver si me dedica su libro. (ya me puso calificación y está en actas; así que nadie puede decir que soy barbero).</p>
<p>En <em>metaheurísticas para la optimización combinatoria</em>, saque <strong>9</strong>. Creo yo que merecía mas, programamos muchismas cosas. Bueno en realidad solo dos problemas por varios métodos distintos. El famoso problema de las <em>n reinas</em> a modo de ejemplo y conocimiento de las heurísticas y después un problema mas en serio: el <em>calendario del club de bridge</em>. El resultado fue un par de reportes y mucho mucho código. Después lo subiré en otra entrada.</p>
<p>Por último también saque <strong>10</strong> en mi curso de ingles. Tomé el avanzado de producción oral. Lo que mas me sirvió fue practicar mi ingles y conocer gente de muchas áreas distintas. No se que tomar este semestre pero parece ser que haré caso a los consejos y tomaré el de pronunciación.</p>
<p>También tengo mi tema de tesis definido y aunque no he recibido la aprobación del consejo, ya tengo un rato trabajando en el, se titulara: <span style="text-decoration: underline;">Visualización Suavizada de Superficies Obtenidas por Rastreo de Fronteras Aplicado a Volúmenes Discretizados</span>. Y de momento es a lo que me estoy dedicando.</p>
<p>No prometo un <em>cuando</em>, pero tengo varios post en mente para el blog. Y espero pronto tener la extraña combinación de tiempo suficiente y ganas de postear.</p>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.nemediano.com.mx%2F2010%2Fse-acabaron-las-materias%2F&amp;t=Se%20acabaron%20las%20materias%21" id="facebook_share_icon_262" style="font-size:11px; line-height:13px; font-family:'lucida grande',tahoma,verdana,arial,sans-serif; text-decoration:none;"><img src="http://b.static.ak.fbcdn.net/images/share/facebook_share_icon.gif" alt="Share on Facebook" /></a>
	<script type="text/javascript">
	var button = document.getElementById('facebook_share_link_262') || document.getElementById('facebook_share_icon_262') || document.getElementById('facebook_share_both_262') || document.getElementById('facebook_share_button_262');
	if (button) {
		button.onclick = function(e) {
			var url = this.href.replace(/share\.php/, 'sharer.php');
			window.open(url,'sharer','toolbar=0,status=0,width=626,height=436');
			return false;
		}
	
		if (button.id === 'facebook_share_button_262') {
			button.onmouseover = function(){
				this.style.color='#fff';
				this.style.borderColor = '#295582';
				this.style.backgroundColor = '#3b5998';
			}
			button.onmouseout = function(){
				this.style.color = '#3b5998';
				this.style.borderColor = '#d8dfea';
				this.style.backgroundColor = '#fff';
			}
		}
	}
	</script>
	]]></content:encoded>
			<wfw:commentRss>http://www.nemediano.com.mx/2010/se-acabaron-las-materias/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>A brief history of Maths</title>
		<link>http://www.nemediano.com.mx/2009/a-brief-history-of-maths/</link>
		<comments>http://www.nemediano.com.mx/2009/a-brief-history-of-maths/#comments</comments>
		<pubDate>Tue, 06 Oct 2009 19:29:38 +0000</pubDate>
		<dc:creator>nemediano</dc:creator>
				<category><![CDATA[Matematicas]]></category>
		<category><![CDATA[Mis demonios]]></category>
		<category><![CDATA[clase]]></category>
		<category><![CDATA[historia]]></category>
		<category><![CDATA[matematicas]]></category>
		<category><![CDATA[presentacion]]></category>

		<guid isPermaLink="false">http://www.nemediano.com.mx/?p=256</guid>
		<description><![CDATA[Ayer presente para mi midterm exam, de mi clase de Producción Oral en ingles, una charla acerca de la historia de las matemáticas. Por un lado fue muy divertido para mi, la misma maestra nos había dicho que escogiéramos un tema de nuestro agrado. Sin embargo teníamos la limitante del tiempo: una presentación de 5 [...]]]></description>
			<content:encoded><![CDATA[<p>Ayer presente para mi <em>midterm exam</em>, de mi clase de Producción Oral en ingles, una charla acerca de la historia de las matemáticas.</p>
<p>Por un lado fue muy divertido para mi, la misma maestra nos había dicho que escogiéramos un tema de nuestro agrado. Sin embargo teníamos la limitante del tiempo: una presentación de 5 minutos. Al principio no me preocupo, finalmente uno dice muchas cosas muy rápido al hablar. Pero ayer que estaba haciendo la presentación me empecé a poner nervioso.</p>
<p><span id="more-256"></span></p>
<p>La cantidad de material que yo tenia era enorme; después de todo, al ser uno de mis temas favorito había consultado mas de 7 libros diferentes del tema. (si lo se, es mas de los que usualmente consulto para un trabajo de a de veras de la maestría) y la presentación que el principio pensé en hacer en <img style="border:0px;vertical-align:middle;" src='http://l.wordpress.com/latex.php?latex=%5CLaTeX&bg=FFFFFF&fg=000000'  alt="\LaTeX" /> beamer. Pero después de ver la enorme cantidad de información no me quedo mas remedio que usar Open Office Presentation.</p>
<p>Al terminar la presentación, decidí exportarla a pdf y ppt. Uno nunca sabe en que maquina va a presentar. Pero cuando me quedaron 25 diapositivas me <em>frikie</em> un poco.</p>
<p>Llego el lunes del examen, yo tenia mucho sueño pues no había dormido bien, y no había tenido tiempo de bañarme (estúpido posgrado que me deja sin tiempo <img src='http://www.nemediano.com.mx/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  ). Se me olvidaron mis notas en casa y como de costumbre no tenia tiempo de regresar por ellas. Llegando al auditorio la maestra llego tarde y tardaron muchísimo en conectar el proyector y anexos. Finalmente la maestra pregunto si hacíamos un sorteo para determinar el orden de las presentaciones. Antes (o en vez) de hacer el sorteo nos pusimos de acuerdo: yo pedí el <strong>primer turno</strong>.</p>
<p>A principio <em>panique</em> un poco por que algunas palabras se me olvidaron y la verdad es que al improvisar tome mucho mas tiempo, creo que la presentación duro casi 10 minutos. Al momento de las preguntas ya estaba muy relajado y me tomo otro tanto contestar. Pero al final creo que la presentación salio bien, no se aburrieron mucho y <strong>Majo</strong> y <strong>Marco</strong> me dijeron después que había estado bien.</p>
<p>Durante la presentación deje muchos cabos sueltos con la esperanza de que me preguntaran de eso, pero no sucedió y al final las preguntas que me hicieron fueron sorpresivas. Pero pude contestar mas o menos bien. Por ejemplo deje en el aire la historia de <a title="Wikipedia" href="http://en.wikipedia.org/wiki/Galois" target="_blank">Galois</a>, la de <a title="Wikipedia" href="http://en.wikipedia.org/wiki/Ramanujan" target="_blank">Ramanujan</a>, la de <a title="Wikipedia" href="http://en.wikipedia.org/wiki/Paul_Erd%C5%91s" target="_blank">Erdos</a> y la de <a title="Wikipedia" href="http://en.wikipedia.org/wiki/Bourbaki" target="_blank">Nicolas Burbaki</a> (nadie me preguntó por que no existió).</p>
<p>Aquí esta la <a title="Mi presentacion en pdf" href="http://www.nemediano.com.mx/wp-content/uploads/2009/10/presentacion.pdf">presntacion</a> en pdf, por si a alguien le sirviera de algo. La maestra quedo de dar DVD con las presentaciones grabadas; si lo hace, quizás me anime a subir el vídeo.</p>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.nemediano.com.mx%2F2009%2Fa-brief-history-of-maths%2F&amp;t=A%20brief%20history%20of%20Maths" id="facebook_share_icon_256" style="font-size:11px; line-height:13px; font-family:'lucida grande',tahoma,verdana,arial,sans-serif; text-decoration:none;"><img src="http://b.static.ak.fbcdn.net/images/share/facebook_share_icon.gif" alt="Share on Facebook" /></a>
	<script type="text/javascript">
	var button = document.getElementById('facebook_share_link_256') || document.getElementById('facebook_share_icon_256') || document.getElementById('facebook_share_both_256') || document.getElementById('facebook_share_button_256');
	if (button) {
		button.onclick = function(e) {
			var url = this.href.replace(/share\.php/, 'sharer.php');
			window.open(url,'sharer','toolbar=0,status=0,width=626,height=436');
			return false;
		}
	
		if (button.id === 'facebook_share_button_256') {
			button.onmouseover = function(){
				this.style.color='#fff';
				this.style.borderColor = '#295582';
				this.style.backgroundColor = '#3b5998';
			}
			button.onmouseout = function(){
				this.style.color = '#3b5998';
				this.style.borderColor = '#d8dfea';
				this.style.backgroundColor = '#fff';
			}
		}
	}
	</script>
	]]></content:encoded>
			<wfw:commentRss>http://www.nemediano.com.mx/2009/a-brief-history-of-maths/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Lectura recomendada: El amante de Janis Joplin.</title>
		<link>http://www.nemediano.com.mx/2009/lectura-recomendada-el-amante-de-janis-joplin/</link>
		<comments>http://www.nemediano.com.mx/2009/lectura-recomendada-el-amante-de-janis-joplin/#comments</comments>
		<pubDate>Tue, 21 Jul 2009 23:21:16 +0000</pubDate>
		<dc:creator>nemediano</dc:creator>
				<category><![CDATA[Libros]]></category>
		<category><![CDATA[Mis demonios]]></category>
		<category><![CDATA[el amante de janice joplin]]></category>
		<category><![CDATA[elmer mendoza]]></category>
		<category><![CDATA[libro]]></category>

		<guid isPermaLink="false">http://www.nemediano.com.mx/?p=251</guid>
		<description><![CDATA[Acabo de terminar el magnifico libro que me recomendó Erika. Se trata de: &#8220;El amante de Janice Joplin&#8221; de Elmer Mendoza. El libro, situado en un México de los principio de los 70s trata de la historia de David Valenzuela, un autentico tipo X, que vive en un pueblito del norte de México. Que si [...]]]></description>
			<content:encoded><![CDATA[<p>Acabo de terminar el magnifico <a title="El amante de Janice Joplin en Gandhi" href="http://www.gandhi.com.mx/index.cfm/id/Producto/dept/libros/pid/60587" target="_blank">libro</a> que me recomendó Erika. Se trata de: &#8220;<em>El amante de Janice Joplin</em>&#8221; de <strong>Elmer Mendoza</strong>.</p>
<p>El libro, situado en un México de los principio de los 70s trata de la historia de David Valenzuela, un autentico tipo X, que vive en un pueblito del norte de México. Que si querer mata a un narcotraficante. De ahí en adelante vive una serie de aventuras, relacionadas con el narco, la guerrilla, y el beisbol.</p>
<p>El personaje principal es en toda la extensión de la palabra un tonto con suerte, de esos que de entrada te caen bien, es inocente y de pensamientos simples. aunque durante todo el libro es manipulado por mucha gente termina teniendo un no se que que que se yo, que le permite salir vivo de muchas situaciones peligrosas. Es algo así como un <strong>Forres Gump</strong>, pero a la mexicana.</p>
<p>Los demas personajes son memorables y pintorescos, sobre todo sus amigos <em>el Chato</em> y <em>el Cholo</em>. La lectura es simple y entre una mezcla de literatura trash, con nueva narrativa mexicana. Es segun mi opinion como leer las aevnturas de <a href="http://vivirmexico.com/2006/12/la-serie-belascoaran-shayne" target="_blank">Belascorane Shane</a>, con el plus que el personaje es mucho mas agradable.</p>
<p>Erika lo leyo como parte de una clase que tomo en su facultad, donde conocio tambien al autor. Espero no perjudicar a nadie en el intento, pero precisamente documentandome para al post, me encontre cn que el pdf es ridiculamente sencillo de conseguir <a href="http://sucecoti.files.wordpress.com/2008/09/mendoza-elmer-el-amante-de-janis-joplin.pdf" target="_blank">aqui</a>.</p>
<p>Sin duda alguna esta es una lectura muy recomendada.</p>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.nemediano.com.mx%2F2009%2Flectura-recomendada-el-amante-de-janis-joplin%2F&amp;t=Lectura%20recomendada%3A%20El%20amante%20de%20Janis%20Joplin." id="facebook_share_icon_251" style="font-size:11px; line-height:13px; font-family:'lucida grande',tahoma,verdana,arial,sans-serif; text-decoration:none;"><img src="http://b.static.ak.fbcdn.net/images/share/facebook_share_icon.gif" alt="Share on Facebook" /></a>
	<script type="text/javascript">
	var button = document.getElementById('facebook_share_link_251') || document.getElementById('facebook_share_icon_251') || document.getElementById('facebook_share_both_251') || document.getElementById('facebook_share_button_251');
	if (button) {
		button.onclick = function(e) {
			var url = this.href.replace(/share\.php/, 'sharer.php');
			window.open(url,'sharer','toolbar=0,status=0,width=626,height=436');
			return false;
		}
	
		if (button.id === 'facebook_share_button_251') {
			button.onmouseover = function(){
				this.style.color='#fff';
				this.style.borderColor = '#295582';
				this.style.backgroundColor = '#3b5998';
			}
			button.onmouseout = function(){
				this.style.color = '#3b5998';
				this.style.borderColor = '#d8dfea';
				this.style.backgroundColor = '#fff';
			}
		}
	}
	</script>
	]]></content:encoded>
			<wfw:commentRss>http://www.nemediano.com.mx/2009/lectura-recomendada-el-amante-de-janis-joplin/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>LaTeX hasta que te salga por las orejas!!!</title>
		<link>http://www.nemediano.com.mx/2009/latex-hasta-que-te-salga-por-las-orejas/</link>
		<comments>http://www.nemediano.com.mx/2009/latex-hasta-que-te-salga-por-las-orejas/#comments</comments>
		<pubDate>Thu, 16 Jul 2009 21:58:08 +0000</pubDate>
		<dc:creator>nemediano</dc:creator>
				<category><![CDATA[Mis demonios]]></category>
		<category><![CDATA[Recetario de Ubuntu]]></category>
		<category><![CDATA[gnome]]></category>
		<category><![CDATA[kile]]></category>
		<category><![CDATA[LaTeX]]></category>
		<category><![CDATA[pidgin]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.nemediano.com.mx/?p=247</guid>
		<description><![CDATA[Pues estoy muy contento con mi nueva costumbre de usar , para todo lo que se pueda. Costumbre obtenida un poco por obligaciones del posgrado y también por influencia de las roomies. Mi siguiente proyecto es contagiar a quien se deje de usar para todo lo que puedan. Que es LaTeX Es un lenguaje de [...]]]></description>
			<content:encoded><![CDATA[<p>Pues estoy muy contento con mi nueva costumbre de usar <img style="border:0px;vertical-align:middle;" src='http://l.wordpress.com/latex.php?latex=%5CLaTeX&bg=FFFFFF&fg=000000'  alt="\LaTeX" />, para todo lo que se pueda. Costumbre obtenida un poco por obligaciones del posgrado y también por influencia de las <em>roomies</em>. Mi siguiente proyecto es contagiar a quien se deje de usar <img style="border:0px;vertical-align:middle;" src='http://l.wordpress.com/latex.php?latex=%5CLaTeX&bg=FFFFFF&fg=000000'  alt="\LaTeX" /> para todo lo que puedan.</p>
<p><span id="more-247"></span></p>
<h2>Que es LaTeX</h2>
<p>Es un lenguaje de marcado y de preparación de textos. Creado por <a href="http://en.wikipedia.org/wiki/Donald_Knuth">Donal Knuth</a>, el lenguaje TeX, fue después extendido, es decir se la añadieron un conjunto de macros, para hacer el TeX, mas fácil de usar para el usuario común. Estas fueron introducidas por <a href="http://en.wikipedia.org/wiki/Leslie_Lamport">Leslie Lamport</a> y de ahí que ahora el lenguaje Tex extendido con las macros se llama <img style="border:0px;vertical-align:middle;" src='http://l.wordpress.com/latex.php?latex=%5CLaTeX&bg=FFFFFF&fg=000000'  alt="\LaTeX" />.</p>
<p>LaTex es un lenguaje ampliamente usado en la comunidad científica, sobre todo para preparar documentos donde hay muchas formulas matemáticas. sin embargo aun cuando queramos hacer un escrito donde no haya matemáticas LaTeX es una muy buena opción pues podemos beneficiarnos de su gran calidad en el formato y en la facilidad con la que se pueden hacer documentos académicos, por ejemplo con un montón de citas bibliográficas.</p>
<h2>Latex en GNU/Linux</h2>
<p>Primero pretendía escribir una guía de como instalar y configurar correctamente LaTeX en Ubuntu. Pero me encontré que ya hay una excelente referencia en <a href="http://enfoquevirtual.wordpress.com/2009/05/10/configurando-latex-y-kile-en-ubuntu/">este blog</a>, así que mejor pongo la cita. Y algunos tips</p>
<ul>
<li>Es ampliamente recomendable usar codificación utf-8, para todos tus documentos en LaTeX.</li>
<li>En conjunto con el utf-8, e uso del paquete inputec y del paquete babel, para hacer los documentos en español de manera mas simple.</li>
<li>En Linux no hay nada mejor que usar Kile (conste que lo digo yo, que no me gusta KDE), y ahora es muy fácil configurarlo para usarlo con GNOME.</li>
<li>Nada mejor que tener correctamente configurado el KIle, es decir, sustituir los programas de KDE de visualización por sus respectivos en GNOME y el corrector ortográfico.</li>
<li>Ampliamente recomendado instalar los extras, para que tengamos beamer.</li>
</ul>
<h2>Cosas extras</h2>
<p>Una cosa bastante interesante es instalar el plugin para poder escribir <a href="http://wordpress.org/extend/plugins/wp-latex/">LateX en wordpress</a>, como comenté en un <a href="http://www.nemediano.com.mx/2009/hay-latex-en-wordpress/">post pasado</a>.<br />
Nada mejor que poder instalar el <a href="http://tapas.affenbande.org/wordpress/?page_id=70">plugin de LaTeX para Pidgin</a> y así poder escribir y chatear a gusto con tus compas con un montón de matemáticas. (vaya que se oyo geek).<br />
la instalación me fue mas o menos sencilla, <strong>make</strong> , <strong>sudo make install</strong>, ojo que debemos de tener instalado, tanto el Latex, como el <a href="http://www.imagemagick.org/script/index.php">Image Magick</a>. Después de la instalación tuve problemas pues al parecer mi Image Magick se reusaba a convertir un .dvi en un .png, pero lo pude seleccionar agregando una linea al archivo de confguración de image magic como dice <a href="http://bugs.archlinux.org/task/8914">este</a> post.</p>
<h2>Bibliografía recomendada</h2>
<p>Yo aprendí con <a href="http://books.google.com.mx/books?id=0gKwF41cSVcC&amp;dq=composicion+de+textos+cientificos+con+latex&amp;printsec=frontcover&amp;source=bn&amp;hl=es&amp;ei=oKFfSq7EB4K6MIDWgcAC&amp;sa=X&amp;oi=book_result&amp;ct=result&amp;resnum=4">este</a> libro, pero honestamente creo que ya esta un poco pasado de moda, <em>Laura</em> me recomendó éste otro <a href="http://www.amazon.com/Guide-LaTeX-Techniques-Computer-Typesetting/dp/0321173856">libro excelente</a>, y además recuerden que la documentación oficial de LaTeX así como excelentes manuales-tutoriales, viene en los repositorios en los paquetes <em>texlive-doc-base</em> y <em>texlive-doc-es</em>. Así que no hay excusa además hay un montón de documentación en la red.</p>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.nemediano.com.mx%2F2009%2Flatex-hasta-que-te-salga-por-las-orejas%2F&amp;t=LaTeX%20hasta%20que%20te%20salga%20por%20las%20orejas%21%21%21" id="facebook_share_icon_247" style="font-size:11px; line-height:13px; font-family:'lucida grande',tahoma,verdana,arial,sans-serif; text-decoration:none;"><img src="http://b.static.ak.fbcdn.net/images/share/facebook_share_icon.gif" alt="Share on Facebook" /></a>
	<script type="text/javascript">
	var button = document.getElementById('facebook_share_link_247') || document.getElementById('facebook_share_icon_247') || document.getElementById('facebook_share_both_247') || document.getElementById('facebook_share_button_247');
	if (button) {
		button.onclick = function(e) {
			var url = this.href.replace(/share\.php/, 'sharer.php');
			window.open(url,'sharer','toolbar=0,status=0,width=626,height=436');
			return false;
		}
	
		if (button.id === 'facebook_share_button_247') {
			button.onmouseover = function(){
				this.style.color='#fff';
				this.style.borderColor = '#295582';
				this.style.backgroundColor = '#3b5998';
			}
			button.onmouseout = function(){
				this.style.color = '#3b5998';
				this.style.borderColor = '#d8dfea';
				this.style.backgroundColor = '#fff';
			}
		}
	}
	</script>
	]]></content:encoded>
			<wfw:commentRss>http://www.nemediano.com.mx/2009/latex-hasta-que-te-salga-por-las-orejas/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cambiamos la maquinaria.</title>
		<link>http://www.nemediano.com.mx/2009/cambiamos-la-maquinaria/</link>
		<comments>http://www.nemediano.com.mx/2009/cambiamos-la-maquinaria/#comments</comments>
		<pubDate>Sat, 11 Jul 2009 15:54:02 +0000</pubDate>
		<dc:creator>nemediano</dc:creator>
				<category><![CDATA[Acerca de mi]]></category>

		<guid isPermaLink="false">http://www.nemediano.com.mx/?p=245</guid>
		<description><![CDATA[Pues desde hace dos días, había estado peleando con la maquinaria y aunque el blog, se ve casi como antes, ya esta usando la última versión de wordpress al momento de escribir esto es la 2.8.1. La migración llevo mucho tiempo, en primera por que no había hecho los respaldos pertinentes y en segunda por [...]]]></description>
			<content:encoded><![CDATA[<p>Pues desde hace dos días, había estado peleando con la maquinaria y aunque el blog, se ve casi como antes, ya esta usando la última versión de wordpress al momento de escribir esto es la 2.8.1.</p>
<p>La migración llevo mucho tiempo, en primera por que no había hecho los respaldos pertinentes y en segunda por que algunos de los plugins, no tienen información sobre la <a title="LIsta de compatibilidad de plugins con 2.8" href="http://codex.wordpress.org/Plugins/Plugin_Compatibility/2.8" target="_blank">compatibilidad con la versión 2.8</a>, al final todos los plugins que estaban en la anterior versión están aquí.</p>
<p><span id="more-245"></span>El <strong>front end</strong>, es casi igual sigue ocupando la versión mas nueva del tema <a title="Creador del tema blixed" href="http://themecorp.com/themes/blixed/" target="_blank">blixed</a>, que aunque no esta en la lista de temas soportados por wordpress 2.8 al parecer lo sigue haciendo bien. El <strong>backend</strong> esta muy cambiado, pasaran unos días antes de que me acostumbre a usarlo.</p>
<p>El susto mas grande me lo dieron el plugin de <a title="wp-latex" href="http://wordpress.org/extend/plugins/wp-latex/" target="_blank">wp-latex </a>y el de <a title="Qutes collection plugin" href="http://wordpress.org/extend/plugins/quotes-collection/" target="_blank">quotes collection</a>, que en un principio parecían no funcionar, al <em>quotes collection</em> fue solo cuestión de moverle unas opciones el <em>wp-latex</em>, si parsea un poco diferente y fue necesario editar los post que lo usaban (solo dos), al parecer ahora todo esta bien.</p>
<p>En fin, estoy pensando seriamente en clavar la versión pronto (eso mismo dije hace seis meses con la 2.6.2 que estábamos usando) pero al final la necesidad de tener lo mas nuevo me gano <img src='http://www.nemediano.com.mx/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.nemediano.com.mx%2F2009%2Fcambiamos-la-maquinaria%2F&amp;t=Cambiamos%20la%20maquinaria." id="facebook_share_icon_245" style="font-size:11px; line-height:13px; font-family:'lucida grande',tahoma,verdana,arial,sans-serif; text-decoration:none;"><img src="http://b.static.ak.fbcdn.net/images/share/facebook_share_icon.gif" alt="Share on Facebook" /></a>
	<script type="text/javascript">
	var button = document.getElementById('facebook_share_link_245') || document.getElementById('facebook_share_icon_245') || document.getElementById('facebook_share_both_245') || document.getElementById('facebook_share_button_245');
	if (button) {
		button.onclick = function(e) {
			var url = this.href.replace(/share\.php/, 'sharer.php');
			window.open(url,'sharer','toolbar=0,status=0,width=626,height=436');
			return false;
		}
	
		if (button.id === 'facebook_share_button_245') {
			button.onmouseover = function(){
				this.style.color='#fff';
				this.style.borderColor = '#295582';
				this.style.backgroundColor = '#3b5998';
			}
			button.onmouseout = function(){
				this.style.color = '#3b5998';
				this.style.borderColor = '#d8dfea';
				this.style.backgroundColor = '#fff';
			}
		}
	}
	</script>
	]]></content:encoded>
			<wfw:commentRss>http://www.nemediano.com.mx/2009/cambiamos-la-maquinaria/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
