<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<?xml-stylesheet type="text/css" href="http://www.gfc.edu.co/woakas/weblog/styles/feed.css"?>
<title type="html">Blog de Woakas</title>
<link rel="alternate" type="text/html" href="http://www.gfc.edu.co/woakas/weblog" />
<link rel="self" type="application/atom+xml" href="http://www.gfc.edu.co/woakas/weblog/atom.xml" />
<updated>2011-07-06T20:48:31-05:00</updated>
<author>
<name>Gustavo Andr&#195;&#169;s Angulo</name>
<uri>http://www.gfc.edu.co/woakas/weblog</uri>
</author>
<id>http://www.gfc.edu.co/woakas/weblog/</id>
<generator uri="http://nanoblogger.sourceforge.net" version="3.3">NanoBlogger</generator>
<entry>
<title type="html">Una frase para recordar</title>
<author>
<name>Gustavo Andr&#195;&#169;s Angulo</name>
</author>
<link rel="alternate" type="text/html" href="http://www.gfc.edu.co/woakas/weblog/archives/2011/07/06/una_frase_para_recordar/" />
<id>http://www.gfc.edu.co/woakas/weblog/archives/2011/07/06/una_frase_para_recordar/</id>
<published>2011-07-06T20:42:17-05:00</published>
<updated>2011-07-06T20:42:17-05:00</updated>
<category term="Personal" />
<category term="Otros" />
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<![CDATA[<p>Recientemente volviendo a ver Cars 1 escuche una frase de <a href="http://en.wikipedia.org/wiki/Mater_(Cars)">Mate</a> muy interesante <em>No necesito saber a donde voy, solo saber donde he estado</em>, creo aplica completamente a Colombia y adicionalmente a la frase <em>El pueblo que no recuerda su historia está condenado a repetirla</em>, para cada uno de nosotros Colombianos debemos recordar y no olvidarnos de los pasos que hemos dado en nuestra vida hacia donde nos dirijimos y de donde venimos.</p>]]>
</div>
</content>
</entry>
<entry>
<title type="html">Un bueno video</title>
<author>
<name>Gustavo Andr&#195;&#169;s Angulo</name>
</author>
<link rel="alternate" type="text/html" href="http://www.gfc.edu.co/woakas/weblog/archives/2010/06/03/un_bueno_video/" />
<id>http://www.gfc.edu.co/woakas/weblog/archives/2010/06/03/un_bueno_video/</id>
<published>2010-06-03T20:56:46-05:00</published>
<updated>2010-06-03T20:56:46-05:00</updated>
<category term="Software" />
<category term="Otros" />
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<![CDATA[<p>
Un buen video de la satasfacción del trabajo en el software libre
<center>
<object width="425" height="350"><param name="movie"
value="http://www.youtube.com/v/u6XAPnuFjJc"></param><param
name="wmode" value="transparent"></param><embed
src="http://www.youtube.com/v/u6XAPnuFjJc"
type="application/x-shockwave-flash" wmode="transparent" width="425"
height="350"></embed></object>
</center>

</p>]]>
</div>
</content>
</entry>
<entry>
<title type="html">Encuesta Mockus.</title>
<author>
<name>Gustavo Andr&#195;&#169;s Angulo</name>
</author>
<link rel="alternate" type="text/html" href="http://www.gfc.edu.co/woakas/weblog/archives/2010/04/23/encuesta_mockus/" />
<id>http://www.gfc.edu.co/woakas/weblog/archives/2010/04/23/encuesta_mockus/</id>
<published>2010-04-23T09:36:43-05:00</published>
<updated>2010-04-23T09:36:43-05:00</updated>
<category term="Otros" />
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<![CDATA[<p>
Una encuesta realizada por CM& y el centro nacional de consultoría
sobre elecciones para presidente en Colombia.
<center>
<object width="425" height="350"><param name="movie"
value="http://www.youtube.com/v/Iwh8a_iwjCY"></param><param
name="wmode" value="transparent"></param><embed
src="http://www.youtube.com/v/Iwh8a_iwjCY"
type="application/x-shockwave-flash" wmode="transparent" width="425"
height="350"></embed></object>
</center>

</p>]]>
</div>
</content>
</entry>
<entry>
<title type="html">Mapserver + Mapscript + web.py</title>
<author>
<name>Gustavo Andr&#195;&#169;s Angulo</name>
</author>
<link rel="alternate" type="text/html" href="http://www.gfc.edu.co/woakas/weblog/archives/2010/01/22/mapserver__mapscript__web_py/" />
<id>http://www.gfc.edu.co/woakas/weblog/archives/2010/01/22/mapserver__mapscript__web_py/</id>
<published>2010-01-22T09:54:58-05:00</published>
<updated>2010-01-22T09:54:58-05:00</updated>
<category term="Python" />
<category term="Software" />
<category term="Desarrollo" />
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<![CDATA[<p>Recientemente he utilizado mapscript con web.py para generar mapas que 
sean generados en tiempo de ejecución, esta porción de código permite leer 
archivos .map y luego se renderizan con las opciones habituales de mapserver
para WMS, el método POST adiciona algunas lines para permitir el uso de un 
servicio WFS dentro de mapserver. </p>

<p>Se puede utilizar jinja2 o algún otro manejador de templates para cambiar el
.map en tiempo de ejecución y de esta forma poder enviar algún parámetro 
adicional para realizar cambios en el servicio WMS o WFS.</p>

<pre><code>import web
import mapscript


# URLS
urls = (
    '/','Basic',
)

def info_layer(cls):
    aux=''
    pathUrl=str(web.ctx.realhome+web.ctx.path)
    web.header("Content-Type","text/html; charset=utf-8")
    aux+='&lt;b&gt;Description: &lt;/b&gt;%s&lt;br&gt;' % (str(cls.__doc__))
    aux+='&lt;b&gt;Capabilities WMS: &lt;/b&gt;&lt;a href="%s?SERVICE=wms&amp;REQUEST=GetCapabilities&amp;VERSION=1.1.1&amp;REQUEST=GetCapabilities"&gt;%s&lt;/a&gt;&lt;br&gt;'%(pathUrl,pathUrl)
    aux+='&lt;b&gt;Checker WMS FGDC: &lt;/b&gt;&lt;a href="http://registry.fgdc.gov/statuschecker/services/rest/index.php?url=%s?SERVICE=wms&amp;REQUEST=GetCapabilities&amp;VERSION=1.1.1&amp;type=wms&amp;formattype=html"&gt;%s&lt;/a&gt;&lt;br&gt;'%(str(web.ctx.realhome+web.ctx.path),str(web.ctx.path))

    return aux

class Basic:
    """Layers Basics
    """
    def GET(self):

        vars = web.input()
        if len(vars)==0:
            return info_layer(Basic)
        req = mapscript.OWSRequest()
        for i in vars.keys():
            req.setParameter( i, vars[i])


        map = mapscript.mapObj('basic.map')

        mapscript.msIO_installStdoutToBuffer()
        map.OWSDispatch( req )

        content_type = mapscript.msIO_stripStdoutBufferContentType()
        content = mapscript.msIO_getStdoutBufferBytes()
        web.header("Content-Type","%s; charset=utf-8"%(content_type))
        return content


    def POST(self):

        vars = web.input()
        req = mapscript.OWSRequest()
        for i in vars.keys():
            req.setParameter( i, vars[i])

        req.postrequest=web.data()
        req.type=mapscript.MS_POST_REQUEST
        map = mapscript.mapObj('basic.map')

        mapscript.msIO_installStdoutToBuffer()
        map.OWSDispatch( req )

        content_type = mapscript.msIO_stripStdoutBufferContentType()
        content = mapscript.msIO_getStdoutBufferBytes()
        web.header("Content-Type","%s; charset=utf-8"%(content_type))
        return content

app = web.application(urls, globals())

#web.internalerror = web.debugerror 


if __name__ == "__main__":
    app.run()
</code></pre>]]>
</div>
</content>
</entry>
<entry>
<title type="html">M&#195;&#179;dulo para tryton de colores</title>
<author>
<name>Gustavo Andr&#195;&#169;s Angulo</name>
</author>
<link rel="alternate" type="text/html" href="http://www.gfc.edu.co/woakas/weblog/archives/2009/10/02/m&#195;&#179;dulo_para_tryton_de_colores/" />
<id>http://www.gfc.edu.co/woakas/weblog/archives/2009/10/02/m&#195;&#179;dulo_para_tryton_de_colores/</id>
<published>2009-10-02T10:58:31-05:00</published>
<updated>2009-10-02T10:58:31-05:00</updated>
<category term="tryton" />
<category term="Software" />
<category term="Desarrollo" />
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<![CDATA[<p>He liberado un pequeño módulo para el manejo de colores en trython
esto permitirá el manejo de colores y la visualización RGB en la vista
de tabla (tree view). Los colores fueron tomados de <a href="http://en.wikipedia.org/wiki/List_of_colors">Wikipedia</a>  y  si se desea 
el módulo se encuentra en <a href="http://mercurial.intuxication.org/hg/color">Intuxication</a> </p>

<p><img src="http://www.gfc.edu.co/woakas/weblog/images/tryton-colors.jpg" alt="Módulo Tryton Colors" title="" /></p>]]>
</div>
</content>
</entry>
<entry>
<title type="html"></title>
<author>
<name>Gustavo Andr&#195;&#169;s Angulo</name>
</author>
<link rel="alternate" type="text/html" href="http://www.gfc.edu.co/woakas/weblog/archives/2009/09/18/untitled/" />
<id>http://www.gfc.edu.co/woakas/weblog/archives/2009/09/18/untitled/</id>
<published>2009-09-18T09:23:59-05:00</published>
<updated>2009-09-18T09:23:59-05:00</updated>
<category term="Software" />
<category term="Otros" />
<category term="Universidad" />
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<![CDATA[<p>
Este es un claro ejemplo para que nosotros como seres humanos reflexionemos 
y no dejemos que los medios de comunicación nos impidan hacer nuestros
propios análisis sobre situaciones que nos rodean día tras día.

<center>
<object width="425" height="350"><param name="movie"
value="http://www.youtube.com/v/gKwk8Kq8QXA"></param><param
name="wmode" value="transparent"></param><embed
src="http://www.youtube.com/v/gKwk8Kq8QXA"
type="application/x-shockwave-flash" wmode="transparent" width="425"
height="350"></embed></object>
</center>

Según el video la fuente es de Associated Press, esta fuente es sin confirmar


</p>]]>
</div>
</content>
</entry>
<entry>
<title type="html">Colores en la Terminal</title>
<author>
<name>Gustavo Andr&#195;&#169;s Angulo</name>
</author>
<link rel="alternate" type="text/html" href="http://www.gfc.edu.co/woakas/weblog/archives/2009/07/24/colores_en_la_terminal/" />
<id>http://www.gfc.edu.co/woakas/weblog/archives/2009/07/24/colores_en_la_terminal/</id>
<published>2009-07-24T08:50:21-05:00</published>
<updated>2009-07-24T08:50:21-05:00</updated>
<category term="Software" />
<category term="Linux" />
<category term="Desarrollo" />
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<![CDATA[<p>Para determinar los colores de uso en la terminar muchas veces puede ser una tarea tediosa y complicada y en ocaciones no se sabe como se verá los colores realmente, este <a href="http://www.gfc.edu.co/woakas/weblog/testtty.sh">script</a> permite visualizar los colores configurados para una terminal.</p>

<p><img src="http://www.gfc.edu.co/woakas/weblog/tty.jpg" alt="testtty.sh" title="" /></p>

<p><a href="http://www.gfc.edu.co/woakas/weblog/testtty.sh">testtty.sh</a></p>]]>
</div>
</content>
</entry>
<entry>
<title type="html">Test de Velocidad a la terminal</title>
<author>
<name>Gustavo Andr&#195;&#169;s Angulo</name>
</author>
<link rel="alternate" type="text/html" href="http://www.gfc.edu.co/woakas/weblog/archives/2009/07/21/test_de_velocidad_a_la_terminal/" />
<id>http://www.gfc.edu.co/woakas/weblog/archives/2009/07/21/test_de_velocidad_a_la_terminal/</id>
<published>2009-07-21T10:32:06-05:00</published>
<updated>2009-07-21T10:32:06-05:00</updated>
<category term="Software" />
<category term="Linux" />
<category term="Desarrollo" />
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<![CDATA[<p>Luego de probar varios emuladores de terminal he escogido <a href="http://software.schmorp.de/pkg/rxvt-unicode.html">urxvt</a> debido a su rapidez y su soporte para Unicode. Realice la siguiente prueba para comprobar la velocidad del scrolling de algunos de l
os emuladores de terminal mas conocidos, aquí estan los resultados:</p>

<p>En todos los emuladores se coloco la siguiente instrucción:</p>

<pre><code>time seq -f 'teeeeeeeeeeeeeeeeeeeeeeeeeeeeeest %g' 1000000
</code></pre>

<p>Y los resultados son los siguientes:</p>

<h3>gnome-terminal</h3>

<pre><code>real     1m30.059s
user     0m0.664s
sys      0m0.660s
</code></pre>

<h3>urxvt</h3>

<pre><code>real     0m3.886s
user     0m1.132s
sys      0m1.784s
</code></pre>

<h3>urxt + screen</h3>

<pre><code>real    0m13.204s
user    0m1.172s
sys     0m1.096s
</code></pre>

<h3>xterm</h3>

<pre><code>real    0m40.119s
user    0m1.172s
sys     0m1.032s
</code></pre>

<h3>konsole</h3>

<pre><code>real    0m5.947s
user    0m1.144s
sys     0m1.064s
</code></pre>

<p>como se ve el más rápido de todos es <strong>urxvt</strong> seguido de <strong>konsole</strong>.</p>]]>
</div>
</content>
</entry>
<entry>
<title type="html">Modificaci&#195;&#179;n a Markdown</title>
<author>
<name>Gustavo Andr&#195;&#169;s Angulo</name>
</author>
<link rel="alternate" type="text/html" href="http://www.gfc.edu.co/woakas/weblog/archives/2009/07/16/modificaci&#195;&#179;n_a_markdown/" />
<id>http://www.gfc.edu.co/woakas/weblog/archives/2009/07/16/modificaci&#195;&#179;n_a_markdown/</id>
<published>2009-07-16T13:25:50-05:00</published>
<updated>2009-07-16T13:25:50-05:00</updated>
<category term="Personal" />
<category term="Otros" />
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<![CDATA[<p>Debido a que estoy pensando en migrar de nanoblogger a ikiwiki tuve la necesidad de tener todas mis entradas a [markdown] (http://daringfireball.net/projects/markdown/) para ello en utilizar la información de <a href="http://aliceandval.com/valswork/blog/archives/2008/10/28/nanoblogger_setup_notes/index.html">este blog</a> seguir los pasos y listo.</p>

<p>Esta es una prueba con markdown
*   Candy.
*   Gum.
*   Booze.</p>

<ul>
<li>Candy.</li>
<li>Gum.</li>
<li>Booze.</li>
</ul>

<p><a href="http://example.com/">example link</a>.</p>]]>
</div>
</content>
</entry>
<entry>
<title type="html">Modificacion de rxvt-unicode con tabs</title>
<author>
<name>Gustavo Andr&#195;&#169;s Angulo</name>
</author>
<link rel="alternate" type="text/html" href="http://www.gfc.edu.co/woakas/weblog/archives/2008/08/05/modificacion_de_rxvt-unicode_con_tabs/" />
<id>http://www.gfc.edu.co/woakas/weblog/archives/2008/08/05/modificacion_de_rxvt-unicode_con_tabs/</id>
<published>2008-08-05T11:49:54-05:00</published>
<updated>2008-08-05T11:49:54-05:00</updated>
<category term="Software" />
<category term="Linux" />
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<![CDATA[<p>rxvt-unicode es un emulador de terminal muy bonito, lo que le
hacía falta era que pudiera tener tabs, buscando un poco en google se
encuentra que colocando <b>urxvt -pe tabbed</b> se puede tener tabs
los shorcuts son con Shift y las flechas:</p>
<pre>
Nuevo Tab                               Shift + Flecha Abajo
Mover a la tab del lado derecho         Shift + Flecha Derecha
Mover a la tab del lado izquierdo       Shift + Flecha Izquierda
</pre>
<p>al probarlo se tiene problemas con las tildes y las ñ este problema
se soluciona cambiando el archivo <i>/usr/lib/urxvt/perl/tabbed</i>
en la función <b>tab_key_press</b>, cambiaremos los shortcuts
parecidos a los de firefox o a los de gnome terminal.</p>
<pre>
Se cambia:
urxvt::ShiftMask   >   urxvt::ControlMask
0xff51             >   0xff55
0xff53             >   0xff56
0xff54             >   0x74
</pre>
<p>Con estola función queda de la siguiente manera</p>
<pre>
sub tab_key_press {
   my ($self, $tab, $event, $keysym, $str) = @_;

   if ($event->{state} & urxvt::ControlMask) {
      if ($keysym == 0xff55 || $keysym == 0xff56) {
         my ($idx) = grep $self->{tabs}[$_] == $tab, 0 .. $#{ $self->{tabs} };

         --$idx if $keysym == 0xff55;
         ++$idx if $keysym == 0xff56;

         $self->make_current ($self->{tabs}[$idx % @{ $self->{tabs}}]);

         return 1;
      } elsif ($keysym == 0x74) {
         $self->new_tab;

         return 1;
      }
   }
   elsif ($event->{state} & urxvt::ControlMask) {
      if ($keysym == 0xff55 || $keysym == 0xff56) {
         my ($idx1) = grep $self->{tabs}[$_] == $tab, 0 .. $#{ $self->{tabs} };
         my  $idx2  = ($idx1 + ($keysym == 0xff55 ? -1 : +1)) % @{ $self->{tabs} };

         ($self->{tabs}[$idx1], $self->{tabs}[$idx2]) =
            ($self->{tabs}[$idx2], $self->{tabs}[$idx1]);

         $self->make_current ($self->{tabs}[$idx2]);

         return 1;
      }
   }

   ()
}

</pre>]]>
</div>
</content>
</entry>
</feed>

