<?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>D&#039;oh! &#187; ubuntu</title>
	<atom:link href="http://pabloseminario.com/tag/ubuntu/feed/" rel="self" type="application/rss+xml" />
	<link>http://pabloseminario.com</link>
	<description>pabluk&#039;s blog</description>
	<lastBuildDate>Thu, 15 Sep 2011 23:16:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Le greffon OpenSubtitles de Totem</title>
		<link>http://pabloseminario.com/2010/05/25/le-greffon-opensubtitles-de-totem/</link>
		<comments>http://pabloseminario.com/2010/05/25/le-greffon-opensubtitles-de-totem/#comments</comments>
		<pubDate>Tue, 25 May 2010 20:18:53 +0000</pubDate>
		<dc:creator>Pablo</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[bugs]]></category>
		<category><![CDATA[gnome]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://pabloseminario.com.ar/?p=336</guid>
		<description><![CDATA[Si vous n&#8217;avez pas encore mis à jour votre système Ubuntu vers la dernière version 10.04 « Lucid Lynx » et si vous utilisez le greffon de téléchargement de sous-titres du lecteur vidéo Totem, vous remarquerez que le greffon ne marche plus. Cela est dû à un changement de l&#8217;API XML-RPC du site opensubtitles.org. Mais]]></description>
			<content:encoded><![CDATA[<p>Si vous n&#8217;avez pas encore mis à jour votre système Ubuntu vers la dernière version 10.04 « Lucid Lynx » et si vous utilisez le greffon de téléchargement de sous-titres du lecteur vidéo Totem, vous remarquerez que le greffon ne marche plus. Cela est dû à un changement de l&#8217;<a href="http://trac.opensubtitles.org/projects/opensubtitles/wiki/XMLRPC" target="_blank">API XML-RPC</a> du site <a href="http://www.opensubtitles.org" target="_blank">opensubtitles.org</a>.</p>
<p>Mais bon pour le corriger, sans mettre à jour votre système Ubuntu 9.10, vous pouvez ouvrir un terminal et lancez la commande suivante</p>
<pre class="brush:bash; light: true;">cd /usr/lib/totem/plugins/opensubtitles/
sudo sed -i 's/www/api/' opensubtitles.py</pre>
<p>Ainsi, vous pouvez continuer à télécharger vos sous-titres sans problème.</p>
]]></content:encoded>
			<wfw:commentRss>http://pabloseminario.com/2010/05/25/le-greffon-opensubtitles-de-totem/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Metacity Window Buttons</title>
		<link>http://pabloseminario.com/2010/03/10/metacity-window-buttons/</link>
		<comments>http://pabloseminario.com/2010/03/10/metacity-window-buttons/#comments</comments>
		<pubDate>Tue, 09 Mar 2010 23:24:58 +0000</pubDate>
		<dc:creator>Pablo</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[desktop]]></category>
		<category><![CDATA[gnome]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://pabloseminario.com.ar/?p=247</guid>
		<description><![CDATA[Una simple herramienta para configurar los botones de Metacity (el window manager del escritorio GNOME). Si estas usando Ubuntu Karmic Koala y querés configurar los botones para que se vean como en la nueva versión Lucid Lynx. O si usas Lucid Lynx y querés volver la configuración al estilo de Karmic Koala, lo podés hacer]]></description>
			<content:encoded><![CDATA[<p>Una simple herramienta para configurar los botones de Metacity (el window manager del escritorio GNOME).<br />
Si estas usando Ubuntu Karmic Koala y querés configurar los botones para que se vean como en la nueva versión Lucid Lynx. O si usas Lucid Lynx y querés volver la configuración al estilo de Karmic Koala, lo podés hacer sin tener que usar el editor de configuraciones de GNOME (gconf-editor).<br />
Me parece muy bueno el cambio en los botones de las ventanas para la nueva versión de Ubuntu, para hacerlo diferente, único. Costará un poco adaptarse pero es como todo, por eso yo ya cambié el estilo de los botones en mi Karmic <img src='http://pabloseminario.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> . De todas formas si a alguien no le gusta lo puede cambiar a su gusto, incluso si lo preferís, podés sacar todos los botones de las ventanas <img src='http://pabloseminario.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> <br />

<a href='http://pabloseminario.com/2010/03/10/metacity-window-buttons/pantallazo/' title='Pantallazo'><img width="150" height="150" src="http://pabloseminario.com/wp-content/uploads/2010/03/Pantallazo1-150x150.jpg" class="attachment-thumbnail" alt="Pantallazo" title="Pantallazo" /></a>
<a href='http://pabloseminario.com/2010/03/10/metacity-window-buttons/screenshot-3-2/' title='Screenshot-3'><img width="150" height="150" src="http://pabloseminario.com/wp-content/uploads/2010/03/Screenshot-31-150x150.jpg" class="attachment-thumbnail" alt="Screenshot-3" title="Screenshot-3" /></a>
<a href='http://pabloseminario.com/2010/03/10/metacity-window-buttons/screenshot-2-2/' title='Screenshot-2'><img width="150" height="150" src="http://pabloseminario.com/wp-content/uploads/2010/03/Screenshot-21-150x150.jpg" class="attachment-thumbnail" alt="Screenshot-2" title="Screenshot-2" /></a>
<a href='http://pabloseminario.com/2010/03/10/metacity-window-buttons/screenshot-1-2/' title='Screenshot-1'><img width="150" height="150" src="http://pabloseminario.com/wp-content/uploads/2010/03/Screenshot-11-150x150.jpg" class="attachment-thumbnail" alt="Screenshot-1" title="Screenshot-1" /></a>
<a href='http://pabloseminario.com/2010/03/10/metacity-window-buttons/screenshot-5/' title='Screenshot'><img width="150" height="150" src="http://pabloseminario.com/wp-content/uploads/2010/03/Screenshot2-150x150.jpg" class="attachment-thumbnail" alt="Screenshot" title="Screenshot" /></a>
<br />
Este es el enlace a la página de <a href="https://launchpad.net/mwbuttons/+download">descarga</a>.<br />
Y estos son los pasos para descargarlo y ejectuarlo desde una terminal</p>
<pre class="brush:bash; light: true; auto-links: false;">wget http://launchpad.net/mwbuttons/trunk/v0.2/+download/mwbuttons
chmod +x
./mwbuttons</pre>
<p>La aplicación esta hosteada en <a href="https://launchpad.net/mwbuttons">Launchpad</a> y la idea inicial fue solo para probar el módulo gconf de Python y el plugin de Launchpad para Bazaar.</p>
]]></content:encoded>
			<wfw:commentRss>http://pabloseminario.com/2010/03/10/metacity-window-buttons/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Pimp your GNOME Desktop</title>
		<link>http://pabloseminario.com/2010/01/19/pimp-your-gnome-desktop/</link>
		<comments>http://pabloseminario.com/2010/01/19/pimp-your-gnome-desktop/#comments</comments>
		<pubDate>Tue, 19 Jan 2010 16:45:56 +0000</pubDate>
		<dc:creator>Pablo</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[desktop]]></category>
		<category><![CDATA[gnome]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://blog.pabloseminario.com.ar/?p=115</guid>
		<description><![CDATA[The real title of this post should have been Pimp your Metacity, but not everyone knows that Metacity is the official window manager of GNOME. This is just a modified version of the default theme in Ubuntu Karmic Koala. The main difference is that the minimize, maximize and close window bottons has been removed. They]]></description>
			<content:encoded><![CDATA[<p>The real title of this post should have been Pimp your Metacity, but not everyone knows that Metacity is the official window manager of GNOME.</p>
<p>This is just a modified version of the default theme in Ubuntu Karmic Koala. The main difference is that the minimize, maximize and close window bottons has been removed. They are only activated by mouseover.</p>
<p>It is useful for users who already know the position of the window buttons in GNOME and all the time use keyboard shortcuts to manage the windows. And especially useful on small screens like netbooks where there is not enough space avaliable to display redundant things.</p>
<p>The Human Simple theme can be downloaded from GNOME-Look <a title="Human Simple theme" href="http://gnome-look.org/content/show.php?content=118052">http://gnome-look.org/content/show.php?content=118052</a></p>

<a href='http://pabloseminario.com/2010/01/19/pimp-your-gnome-desktop/screenshot/' title='Screenshot'><img width="150" height="150" src="http://pabloseminario.com/wp-content/uploads/2010/01/Screenshot1-150x150.jpg" class="attachment-thumbnail" alt="Screenshot" title="Screenshot" /></a>
<a href='http://pabloseminario.com/2010/01/19/pimp-your-gnome-desktop/screenshot-2/' title='Screenshot-2'><img width="150" height="150" src="http://pabloseminario.com/wp-content/uploads/2010/01/Screenshot-21-150x150.jpg" class="attachment-thumbnail" alt="Screenshot-2" title="Screenshot-2" /></a>
<a href='http://pabloseminario.com/2010/01/19/pimp-your-gnome-desktop/screenshot-1/' title='Screenshot-1'><img width="150" height="150" src="http://pabloseminario.com/wp-content/uploads/2010/01/Screenshot-11-150x150.jpg" class="attachment-thumbnail" alt="Screenshot-1" title="Screenshot-1" /></a>
<a href='http://pabloseminario.com/2010/01/19/pimp-your-gnome-desktop/screenshot-3/' title='Screenshot-3'><img width="150" height="150" src="http://pabloseminario.com/wp-content/uploads/2010/01/Screenshot-31-150x150.jpg" class="attachment-thumbnail" alt="Screenshot-3" title="Screenshot-3" /></a>
<a href='http://pabloseminario.com/2010/01/19/pimp-your-gnome-desktop/screenshot-4/' title='Screenshot-4'><img width="150" height="150" src="http://pabloseminario.com/wp-content/uploads/2010/01/Screenshot-41-150x150.jpg" class="attachment-thumbnail" alt="Screenshot-4" title="Screenshot-4" /></a>

]]></content:encoded>
			<wfw:commentRss>http://pabloseminario.com/2010/01/19/pimp-your-gnome-desktop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ext4 support in Ubuntu Intrepid 8.10</title>
		<link>http://pabloseminario.com/2009/07/01/ext4-support-in-ubuntu-intrepid-8-10/</link>
		<comments>http://pabloseminario.com/2009/07/01/ext4-support-in-ubuntu-intrepid-8-10/#comments</comments>
		<pubDate>Wed, 01 Jul 2009 01:34:00 +0000</pubDate>
		<dc:creator>Pablo</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[filesystem]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://blog.pabloseminario.com.ar/?p=46</guid>
		<description><![CDATA[This is just a simple tip to use ext4 filesystems in Ubuntu Intrepid Ibex 8.10. In Ubuntu Jaunty ext4 filesystems is fully supported but in Intrepid was in developing. To use it we must load the module ext4dev sudo modprobe ext4dev to check the filesystems supported by the kernel we can do cat /proc/filesystems there]]></description>
			<content:encoded><![CDATA[<p>This is just a simple tip to use ext4 filesystems in Ubuntu Intrepid Ibex 8.10.<br />
In Ubuntu Jaunty ext4 filesystems is fully supported but in Intrepid was in developing.<br />
To use it we must load the module <span style="font-family: monospace;">ext4dev</span></p>
<pre class="brush:bash; light: true;">sudo modprobe ext4dev</pre>
<p>to check the filesystems supported by the kernel we can do</p>
<pre class="brush:bash; light: true;">cat /proc/filesystems</pre>
<p>there should be a line with <span style="font-family: monospace;">ext4dev</span>.<br />
Now, if we try to mount a formatted partition as ext4, will see that we can not do</p>
<pre class="brush:bash; light: true;">sudo dmesg | tail</pre>
<p>shows a line that says</p>
<pre class="brush:bash; light: true;">EXT4-fs: sda2: not marked OK to use with test code.</pre>
<p>to solve it we need to enable <span style="font-family: monospace;">test_fs</span>, an extended option for ext4 partitions</p>
<pre class="brush:bash; light: true;">sudo tune2fs -E test_fs /dev/sda1</pre>
<p>Now, we can mount it without problems</p>
<pre class="brush:bash; light: true;">sudo mount -t ext4dev /dev/sda1 /mnt/disk</pre>
<p>That&#8217;s all folks!</p>
<p><span style="font-style: italic;">Note 1: replace sda1 by the appropiate device<br />
Note 2: sorry for my english <img src='http://pabloseminario.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> <br />
</span></p>
]]></content:encoded>
			<wfw:commentRss>http://pabloseminario.com/2009/07/01/ext4-support-in-ubuntu-intrepid-8-10/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Compilando php-gtk2 en Ubuntu 8.10</title>
		<link>http://pabloseminario.com/2009/01/11/compilando-php-gtk2-en-ubuntu-8-10/</link>
		<comments>http://pabloseminario.com/2009/01/11/compilando-php-gtk2-en-ubuntu-8-10/#comments</comments>
		<pubDate>Sun, 11 Jan 2009 18:14:00 +0000</pubDate>
		<dc:creator>Pablo</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://blog.pabloseminario.com.ar/?p=36</guid>
		<description><![CDATA[Update! you can read this post translated to English here. Escribo este post porque compilar PHP-GTK 2 en Ubuntu Intrepid no es tan obvio como debería ser, o al menos como dicen acá. Descargué la última versión estable de PHP-GTK 2, la 2.0.1 pero al intentar compilarlo tira algunos errores, en LaunchPad hay un reporte]]></description>
			<content:encoded><![CDATA[<p><em><span style="color: #ff0000;">Update!</span></em> you can read this post translated to English <a href="/howtos/php-gtk2/">here</a>.</p>
<p>Escribo este post porque compilar <a href="http://gtk.php.net" target="_blank">PHP-GTK 2</a> en Ubuntu Intrepid no es tan obvio como debería ser, o al menos como dicen <a href="http://gtk.php.net/manual/en/tutorials.installation.linux.php" target="_blank">acá</a>.<br />
Descargué la última versión estable de PHP-GTK 2, la <a href="http://gtk.php.net/download.php" target="_blank">2.0.1</a> pero al intentar compilarlo tira algunos errores, en <a href="https://bugs.launchpad.net/ubuntu/+source/php5/+bug/262251" target="_blank">LaunchPad</a> hay un reporte sobre este bug. El fix para esto es</p>
<pre class="brush:shell; light: true;">cd /usr/share/aclocal
cat lt~obsolete.m4 ltoptions.m4 ltsugar.m4 ltversion.m4 &gt;&gt; libtool.m4</pre>
<p>por un problema con libtool.<br />
El tema es que después de hacer esto tampoco compiló. Se me ocurrió probar la versión del CVS de PHP-GTK pero pasaba el <span style="font-family: monospace;">configure</span> pero al hacer <span style="font-family: monospace;">make</span> tiraba otros errores.<br />
La solución fue descargar la versión anterior a la estable de PHP-GTK, la 2.0.0. Este es el link para descargarla <a href="http://gtk.php.net/do_download.php?download_file=php-gtk-2.0.0.tar.gz" target="_blank">http://gtk.php.net/do_download.php?download_file=php-gtk-2.0.0.tar.gz</a><br />
Una vez descargado, solo hay que hacer</p>
<pre class="brush:shell; light: true;">./buildconf --with-phpize=/usr/bin/phpize5
./configure --with-php-config=/usr/bin/php-config5
make
sudo make install</pre>
<p>Después para poder usarlo hay que crear <span style="font-family: monospace;">/etc/php5/conf.d/php_gtk2.ini</span>, con el siguiente contenido</p>
<pre class="brush:shell; light: true;">extension=php_gtk2.so</pre>
<p>para comprobar si el módulo carga correctamente</p>
<pre class="brush:shell; light: true;">php -m|grep php-gtk</pre>
<p>y listo, ese fue todo el post dominguero <img src='http://pabloseminario.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://pabloseminario.com/2009/01/11/compilando-php-gtk2-en-ubuntu-8-10/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Castellanizando mi teclado!</title>
		<link>http://pabloseminario.com/2008/10/31/castellanizando-mi-teclado/</link>
		<comments>http://pabloseminario.com/2008/10/31/castellanizando-mi-teclado/#comments</comments>
		<pubDate>Fri, 31 Oct 2008 01:45:00 +0000</pubDate>
		<dc:creator>Pablo</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[gnome]]></category>
		<category><![CDATA[laptop]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://blog.pabloseminario.com.ar/?p=34</guid>
		<description><![CDATA[Mi eeePC viene con teclado en inglés, lo que no es muy útil para escribir textos en español. Y existen muchas formas y recetas para cambiar la configuración del teclado, entre algunas está la de ponerlo en español y adivinar de memoria donde esta cada tecla, otros sugieren cambiar las teclas usando xmodmap y creando]]></description>
			<content:encoded><![CDATA[<p>Mi <a href="http://www.asus.com/products.aspx?l1=24&amp;l2=164&amp;l3=0&amp;l4=0&amp;model=2303&amp;modelmenu=1" target="_blank">eeePC</a> viene con teclado en inglés, lo que no es muy útil para escribir textos en español. Y existen muchas formas y <span style="font-style:italic;">recetas</span> para cambiar la configuración del teclado, entre<br />
algunas está la de ponerlo en español y adivinar de memoria donde esta cada tecla, otros sugieren cambiar las teclas usando <span style="font-family:monospace;">xmodmap</span> y creando un archivo <span style="font-family:monospace;">.Xmodmap</span> en el home, o editando <span style="font-family:monospace;">xorg.conf</span>. Pero la forma más fácil que encontré para hacerlo en <span style="font-style:italic;">Ubuntu</span> con <span style="font-style:italic;">Gnome</span> es ir a <span style="font-style:italic;">Sistema-&gt;Preferencias-&gt;Teclado</span> y ahí dentro de la solapa <span style="font-style:italic;">Distribuciones</span>, añadir la distribución <span style="font-style:italic;">EEUU</span> y seleccionar como variante <span style="font-style:italic;">Internacional (AltGr dead keys)</span> y voil&amp;agrave! De esta forma ya se pueden agregar, usando la tecla <span style="font-family:monospace;">ALT</span> derecha, las vocales acentuadas, la ñ y algunas otras.</p>
]]></content:encoded>
			<wfw:commentRss>http://pabloseminario.com/2008/10/31/castellanizando-mi-teclado/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Webcam shots and the Picasa Web Data API</title>
		<link>http://pabloseminario.com/2008/06/03/webcam-shots-and-the-picasa-web-data-api/</link>
		<comments>http://pabloseminario.com/2008/06/03/webcam-shots-and-the-picasa-web-data-api/#comments</comments>
		<pubDate>Tue, 03 Jun 2008 13:20:00 +0000</pubDate>
		<dc:creator>Pablo</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[laptop]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://blog.pabloseminario.com.ar/?p=21</guid>
		<description><![CDATA[Hace unos días estuve probando darle algún otro uso a la webcam de mi latop. Y terminé probando esto. Capturar imágenes con la webcam y enviarlas a un webserver, en este caso como no tengo un hosting ni tengo forma de llegar al puerto 80 de mi router desde internet, se me ocurrió usar la]]></description>
			<content:encoded><![CDATA[<p><a href="http://picasaweb.google.com/pabluk/Webcam/photo#5196300634587782386" target="_blank"><img style="float: left; margin:0 10px 0 0;" src="http://lh3.ggpht.com/pabluk/SBz35V693PI/AAAAAAAAEFM/5eoiK7IuW-0/s144/Picture18.jpg" alt="" /></a><br />
Hace unos días estuve probando darle <span style="text-decoration: line-through;">algún</span> otro uso a la webcam de mi latop. Y terminé probando esto.<br />
Capturar imágenes con la webcam y enviarlas a un webserver, en este caso como no tengo un hosting ni tengo forma de llegar al puerto 80 de mi router desde internet, se me ocurrió usar la <a href="http://code.google.com/apis/picasaweb/overview.html" target="_blank">API</a> de Picasa Web para subir las fotos a un álbum desde un script.<br />
Para capturar las imágenes probé varios programas que están en los repos de Ubuntu, pero termine usando <a href="http://www.firestorm.cx/fswebcam/" target="_blank">fswebcam</a> que no está en los repos, más que nada porque soporta <span style="font-family:monospace;">v4l2</span>, que es el driver con el que funciona mi webcam.<br />
Con fswebcam tomo la foto, le seteo el tamaño, un titulo, etc. Y usando <span style="font-family:monospace;">curl</span> subo la imagen a un álbum público de Picasa Web. La <a href="http://code.google.com/apis/picasaweb/overview.html" target="_blank">API</a> de Picasa Web está bastante documentada así que no hubo muchos problemas para hacerlo.<br />
Acá están los scripts para capturar la imagen y para subirla a Picasa Web.</p>
<pre class="brush: shell;">
#!/bin/sh

fswebcam  --resolution 640x480 --timestamp "%d.%m.%Y %H:%M GMT-03:00" \
          --banner-colour "#AA000000" --line-colour "#ff000000" --skip 50 \
          --loop 30 --title "PaBLuK" \
          --font "/usr/share/fonts/truetype/freefont/FreeSans.ttf:10" \
          --exec subirFotoPicasa.sh ~/webcamshots/habitacion.jpg
</pre>
<p>Con la opción <span style="font-family:monospace;">&#8211;exec</span> ejecuta el script que sube la imagen después de capturada.</p>
<pre class="brush: shell">
#!/bin/bash

FOTO="/home/pabluk/webcamshots/habitacion.jpg"

AUTHKEY="$(curl --silent https://www.google.com/accounts/ClientLogin \
                --data Email=pabluk@gmail.com --data Passwd=eltuyo \
                --data accountType=GOOGLE --data source=Google-cURL-Example \
                --data service=lh2 | grep Auth)"

FOTOID="$(curl --silent --header "Authorization: GoogleLogin $AUTHKEY" \
      "http://picasaweb.google.com/data/feed/api/user/pabluk/album/Webcam?kind=photo" \
      | tidy -quiet -xml|grep -A 1 edit-media|grep href| cut -d "'" -f 2)"

curl --silent --request PUT --data-binary "@$FOTO" --header "Content-Type: image/jpg" \
     --header "Authorization: GoogleLogin $AUTHKEY" "$FOTOID" | tidy -quiet -xml
</pre>
<p>En estas líneas se autentifica, toma el id de la imagen dentro del albúm, en mi caso el álbum se llama Webcam, y con la última línea sube y reemplaza la imagen.</p>
<p>Lo bueno:</p>
<ul>
<li>No se necesita tener un hosting.</li>
<li>No me preocupo por el BW consumido, que no es poco.</li>
</ul>
<p>Lo malo:</p>
<ul>
<li>No se puede agregar Javascript o algo para recargar la página de la foto automáticamente desde Picasa Web.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://pabloseminario.com/2008/06/03/webcam-shots-and-the-picasa-web-data-api/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Freedesktop specs y mi patch para Conky</title>
		<link>http://pabloseminario.com/2008/05/17/freedesktop-specs-y-mi-patch-para-conky/</link>
		<comments>http://pabloseminario.com/2008/05/17/freedesktop-specs-y-mi-patch-para-conky/#comments</comments>
		<pubDate>Sat, 17 May 2008 18:59:00 +0000</pubDate>
		<dc:creator>Pablo</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://blog.pabloseminario.com.ar/?p=14</guid>
		<description><![CDATA[Para los que no lo conocen se podría decir que Conky es un monitor de sistema, como gkrellm, nada más que este es un fork de Torsmo. Se lo puede utilizar para monitorear casi cualquier cosa, uso de CPU, memoria, tráfico de red, sockets, disco, mpd, etc. En esta imagen lo que está a la]]></description>
			<content:encoded><![CDATA[<p>Para los que no lo conocen se podría decir que <a href="http://conky.sourceforge.net/" target="_blank">Conky</a> es un monitor de sistema, como gkrellm, nada más que este es un fork de Torsmo. Se lo puede utilizar para monitorear casi cualquier cosa, uso de CPU, memoria, tráfico de red, sockets, disco, mpd, etc. En esta <a href="http://4.bp.blogspot.com/_q0bemMki3uo/SBFpI16927I/AAAAAAAADj0/fO-KQNxc2N8/s1600-h/EmacsFirefox.jpg" target="_blank">imagen</a> lo que está a la derecha es Conky.<br />
Hasta ahí todo muy bueno pero tengo el problema que si maximizo una aplicación me lo tapa o cuando el window manager mapea una ventana nueva a veces me lo tapa. Y es un perno, al menos para mí.<br />
Para solucionarlo probé cambiando el <span style="font-style:italic;">placement mode</span> de mi window manager a <span style="font-style:italic;">Centered</span>, <span style="font-style:italic;">Random</span>, <span style="font-style:italic;">Smart</span> y nada. Cambiar el tamaño del <span style="font-style:italic;">output device</span> en Compiz tampoco, busqué si había alguna opción para que las ventanas solo se maximizaran hasta un tamaño máximo pero ni ahí. Tampoco era una solución que aparezca siempre encima de todas las ventanas, porque tapa el contenido de la ventana que queda debajo. En internet, incluida la web de Conky, no encontré nada, parece que a nadie le molesta <img src='http://pabloseminario.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> <br />
Después me dí cuenta de que el comportamiento que yo quería es como el de los panels de Gnome, así que fui a ver la fuentes de Conky y para entender un poco tuve que consultar algunas especificaciones de freedesktop.org, en especial <a href="http://standards.freedesktop.org/wm-spec/wm-spec-1.4.html" target="_blank">esta</a>.<br />
Para bajar las fuentes y poder compilar Conky en Ubuntu hay que poner</p>
<pre class="brush:bash; light: true;">
sudo apt-get install build-essential
sudo apt-get build-dep conky
apt-get source conky
</pre>
<p>Después de un rato entendí que lo que había que hacer es setear una propiedad de la ventana de Conky que se llama <span style="font-family:monospace;">_NET_WM_STRUT</span>.<br />
Y bueno con mi conocimiento básico de C hice este patch</p>
<pre class="brush:diff; light: true;">
--- conky-1.5.1.orig/src/x11.c 2008-03-31 01:56:42.000000000 -0300
+++ conky-1.5.1/src/x11.c 2008-05-17 16:03:21.000000000 -0300
@@ -535,6 +535,38 @@
  return (long) color.pixel;
 }

+/* Reserve space at the borders of the desktop */
+void set_strut(int window, int x, int y, int w, int h)
+{
+    Atom xa;
+
+    xa = ATOM(_NET_WM_STRUT);
+    if (xa != None) {
+        int left = 0;
+        int right = 0;
+        int top = 0;
+        int bottom = 0;
+
+        if (w &lt; h) {
+            if (x &lt;= display_width / 2) {
+                left = w;
+            } else {
+                right = w;
+            }
+        } else {
+            if (y &lt;= display_height / 2) {
+                top = h;
+            } else {
+                bottom = h;
+            }
+        }
+
+     CARD32 prop[4] = { left, right, top, bottom };
+     XChangeProperty(display, window, xa, XA_CARDINAL, 32,
+  PropModeAppend, (unsigned char *) prop, 4);
+    }
+}
+
 void create_gc(void)
 {
  XGCValues values;

--- conky-1.5.1.orig/src/conky.c 2008-04-01 00:52:20.000000000 -0300
+++ conky-1.5.1/src/conky.c 2008-05-17 14:45:58.000000000 -0300
@@ -7208,6 +7208,7 @@
      window.height = text_height + border_margin * 2 + 1;
      XResizeWindow(display, window.window, window.width,
       window.height);
+     set_strut(window.window, window.x, window.y, window.width, window.height);
      if (own_window) {
       set_transparent_background(window.window);
      }
</pre>
<p>Con eso funciona y queda solucionado mi problema!</p>
]]></content:encoded>
			<wfw:commentRss>http://pabloseminario.com/2008/05/17/freedesktop-specs-y-mi-patch-para-conky/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Preview de películas</title>
		<link>http://pabloseminario.com/2008/05/06/preview-de-peliculas/</link>
		<comments>http://pabloseminario.com/2008/05/06/preview-de-peliculas/#comments</comments>
		<pubDate>Tue, 06 May 2008 09:55:00 +0000</pubDate>
		<dc:creator>Pablo</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://blog.pabloseminario.com.ar/?p=12</guid>
		<description><![CDATA[Un programa interesante para hacer un preview de las pelis que uno se baja con su cliente P2P o BitTorrent favorito es DivFix++. No miré mucho su sitio web pero parece, no sé porque razón, no viene una versión compilada para x86, asi que a compilarla en mi flamante Ubuntu 8.04. Los fuentes los podemos]]></description>
			<content:encoded><![CDATA[<p>Un programa interesante para hacer un preview de las pelis que uno se baja con su cliente P2P o BitTorrent favorito es <a href="http://divfixpp.sourceforge.net/">DivFix++</a>.<br />
No miré mucho su sitio web pero parece, no sé porque razón, no viene una versión compilada para x86, asi que a compilarla en mi flamante Ubuntu 8.04.<br />
Los fuentes los podemos descargar de la sección Download del sitio.<br />
Necesitamos instalar algunos paquetes para compilarlo</p>
<div class="code">
<pre>sudo aptitude install build-essential gettext libwxgtk2.8-dev</pre>
</div>
<p>Una vez instalados los paquetes y descargadas las fuentes hacemos</p>
<div class="code">
<pre>tar xvjf DivFix++_v0.29-src.tar.bz2
cd DivFix++_v0.29
make</pre>
</div>
<p>Y listo, opcionalmente podemos mover el binario al directorio bin dentro de nuestro home con</p>
<div class="code">
<pre>cp DivFix++ ~/bin/</pre>
</div>
<p>Para usarlo solo tenemos que ejecutar</p>
<div class="code">
<pre>DivFix++</pre>
</div>
<p>Desde la interfaz gráfica tenemos que seleccionar un directorio para colocar el archivo generado, también nos pide agregar el archivo que queremos reconstruir y finalmente con Rebuild Index generamos el nuevo video.<br />
También trae algunas opciones interesantes en la línea de comandos para poder ejecutarlo directamente desde nuestro cliente P2P/BitTorrent, las podemos ver con</p>
<div class="code">
<pre>pabluk@amidala:/~$ DivFix++ --help
Usage: DivFix++ [-h] [-nc] [-nk] [-ns] [-o ] -i  [-p] [-s] [-e ]
-h, --help              shows help
-nc, --dont_cut_out     doesn't cuts out bad parts of file
-nk, --dont_keep        overwrites original file
-ns, --dont_skip_frames doesn't skip unwanted frames
-o, --output=      output file or directory
-i, --input=       input file
-p, --preview           deletes output file after player is closed
-s, --skip_fix          skips fix process and play file directly if index is available
-e, --execute=     executes player with output file after fix</pre>
</div>
]]></content:encoded>
			<wfw:commentRss>http://pabloseminario.com/2008/05/06/preview-de-peliculas/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Usando Emacs con Firefox</title>
		<link>http://pabloseminario.com/2008/04/25/usando-emacs-con-firefox/</link>
		<comments>http://pabloseminario.com/2008/04/25/usando-emacs-con-firefox/#comments</comments>
		<pubDate>Fri, 25 Apr 2008 04:42:00 +0000</pubDate>
		<dc:creator>Pablo</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://blog.pabloseminario.com.ar/?p=11</guid>
		<description><![CDATA[Antes que nada debo aclarar que después de usar casi intensivamente Vi, me decidí volver al viejo y bien ponderado Emacs. Que la verdad rulea, la última versión trae soporte para fuentes TrueType entre otras cosas. Además extrañaba lo cómoda que son las combinaciones de teclas, que hacen que uno no tenga que sacar los]]></description>
			<content:encoded><![CDATA[<p><a href="http://4.bp.blogspot.com/_q0bemMki3uo/SBFpI16927I/AAAAAAAADj0/fO-KQNxc2N8/s1600-h/EmacsFirefox.jpg" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"><img id="BLOGGER_PHOTO_ID_5193047445969165234" style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;" src="http://4.bp.blogspot.com/_q0bemMki3uo/SBFpI16927I/AAAAAAAADj0/fO-KQNxc2N8/s200/EmacsFirefox.jpg" border="0" alt="" /></a><br />
Antes que nada debo aclarar que después de usar casi intensivamente Vi, me<br />
decidí volver al viejo y bien ponderado Emacs. Que la verdad rulea, la última versión trae soporte para fuentes TrueType entre otras cosas.<br />
Además extrañaba lo cómoda que son las combinaciones de teclas, que hacen que<br />
uno no tenga que sacar los dedos del teclado.<br />
Entonces después de todas estas buenas razones uno no quiere escribir<br />
en nada que no sea Emacs. Y para eso existe una extensión para Firefox<br />
llamada <a href="https://addons.mozilla.org/firefox/addon/4125">It&#8217;s all text!</a><br />
con la que podemos invocar nuestro editor de texto preferido para editar los<br />
textareas dentro de una página web. Por ejemplo, este post <img src='http://pabloseminario.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://pabloseminario.com/2008/04/25/usando-emacs-con-firefox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

