<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Egg on Karpoke - Just Another Blog</title><link>http://karpoke.ignaciocano.com/tags/egg/</link><description>Recent content in Egg on Karpoke - Just Another Blog</description><generator>Hugo -- 0.159.0</generator><language>es</language><lastBuildDate>Sat, 28 May 2011 16:03:00 +0100</lastBuildDate><atom:link href="http://karpoke.ignaciocano.com/tags/egg/index.xml" rel="self" type="application/rss+xml"/><item><title>¿Dónde está el site-packages?</title><link>http://karpoke.ignaciocano.com/2011/05/28/donde-esta-el-site-packages/</link><pubDate>Sat, 28 May 2011 16:03:00 +0100</pubDate><guid>http://karpoke.ignaciocano.com/2011/05/28/donde-esta-el-site-packages/</guid><description>&lt;p&gt;&lt;a href="http://docs.djangoproject.com/en/dev/topics/install/?from=olddocs#remove-any-old-versions-of-django"&gt;Nota&lt;/a&gt; mental:&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;$ python -c &amp;#34;from distutils.sysconfig import get_python_lib; print get_python_lib()&amp;#34;
/usr/lib/python2.7/dist-packages
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id="ligeramente-relacionado"&gt;Ligeramente relacionado&lt;/h2&gt;
&lt;p&gt;» &lt;a href="http://karpoke.ignaciocano.com/2011/03/27/creando-y-leyendo-codigos-qr-desde-python/"&gt;Creando y leyendo códigos QR desde Python&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;A lo mejor, si el intérprete de Python no encuentra un paquete es que no
está donde debería&amp;hellip; :facepalm:&lt;/p&gt;</description></item><item><title>Creando y leyendo códigos QR desde Python</title><link>http://karpoke.ignaciocano.com/2011/03/27/creando-y-leyendo-codigos-qr-desde-python/</link><pubDate>Sun, 27 Mar 2011 19:46:00 +0100</pubDate><guid>http://karpoke.ignaciocano.com/2011/03/27/creando-y-leyendo-codigos-qr-desde-python/</guid><description>&lt;p&gt;Un código QR (Quick Response Barcode) permite almacenar información en
un código de barras de dos dimensiones.&lt;/p&gt;
&lt;p&gt;&lt;img alt="cc.qr.code.capacity`" loading="lazy" src="http://karpoke.ignaciocano.com/images/cc.qr_.code_.capacity-300x166.jpg"&gt;&lt;/p&gt;
&lt;p&gt;Hay bastantes servicios en la web que nos permiten crear nuestros
propios códigos, por ejemplo &lt;a href="http://code.google.com/apis/chart/infographics/docs/qr_codes.html"&gt;el de Google&lt;/a&gt;, que podemos emplear desde
la línea de comandos:&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;$ curl http://chart.apis.google.com/chart?chs=150x150&amp;amp;cht=qr&amp;amp;chld=H|0&amp;amp;chl=texto -o qr.png
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;img alt="QR Code Python" loading="lazy" src="http://karpoke.ignaciocano.com/images/qrcode-python.png"&gt;&lt;/p&gt;
&lt;p&gt;Un pequeño alias para tenerlo siempre a mano:&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;$ alias qrurl=&amp;#39;qrurl() { curl http://chart.apis.google.com/chart?chs=150x150&amp;amp;cht=qr&amp;amp;chld=H|0&amp;amp;chl=${@// /%20} -o qr.$(date +%Y%m%d%H%M%S).png; }; qrurl&amp;#39;
$ qrurl una ranita iba caminando
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Esto creará un fichero con un nombre parecido a &lt;code&gt;qr.20110325161706.png&lt;/code&gt;.&lt;/p&gt;</description></item></channel></rss>