Refugio VirtuaMental de un Internauta2009-03-20T13:07:59+00:00
This is an Atom syndication feed. It is intended to be viewed in a news aggregator or syndicated to another site. Please visit the Atom Project for more information.
Gastronomíathe-shaker: that blog/flickr/multimedia-aggregator kind of thingRefugio VirtuaMental de un Internautahttp://s3.amazonaws.com/lcp/eckelon/myfiles/eckelon65x65.pnghttp://eckelon.espacioblog.com/post/2009/03/20/como-ahorrar-tiempo-con-google-readerCómo ahorrar tiempo con Google Reader2009-03-20T13:07:59+00:002009-03-23T22:52:53+00:00
<p>En estos tiempos de crisis, a nadie nos gusta perder tiempo. Por eso últimamente estoy tan pesado con hacer cosas de una forma eficiente. No, tranquilos, no voy a explicar como leer <a href="http://reader.google.com">Google Reader</a> desde Vim XD</p>
<p>Hace ya mucho tiempo <a href="http://eckelon.net/2007/06/06/pequeno-respiro-momentaneo-y-cosas-¡cosas/">que cambié</a> del hoy casi extinto Bloglines al que entonces era el rejuvenecido Google Reader (Me he dado cuenta releyendo ese post, que estaba metido o algo: Normal, estaba en exámenes :P). Hace casi dos años que lo uso todos los días sin excepción, antes solo en el ordenador, y ahora con el iPhone, gano tiempo leyendo mis feeds en el bus de camino a la Escuela.</p>
<p>Optimizando mi uso de Google Reader, he ganado tiempo y he hecho mi experiencia con Google Reader mucho mas acogedora, gracias a ciertos atajos de teclado que integra de serie. Aquí van los que yo más uso:</p>
<ul>
<li>ga: Abre "All Items", así lo leemos todo.</li>
<li>u: Oculta la barra lateral haciendo mas grande la zona de lectura.</li>
<li>n / p: Para ir bajando/ subiendo entre los posts, para elegir cual queremos leer.</li>
<li>space / shift-space: Para bajar / subir la página y continuar leyendo (así no recurrimos a las flechitas. :D</li>
<li>o: Abrir / Cerrar un post.</li>
<li>m: Marcar como leído / no leído.</li>
<li>s: Marcar / desmarcar con una estrella.</li>
<li>shift-s: Compartir / descompartir.</li>
<li>gl: abrir una etiqueta.</li>
<li>r: Refrescar.</li>
</ul>
<p>Hay unos cuantos más, que podéis encontrar <a href="http://www.google.com/support/reader/bin/answer.py?answer=69973&topic=12012">aquí</a>.</p>
<p>Estos atajos pueden parecer raros, pero si lo pensáis, tiene mucho sentido: "<strong>n</strong> y <strong>p</strong>", son "<strong>n</strong>ext" y "<strong>p</strong>revious", "<strong>gl</strong>" es "<strong>g</strong>o to <strong>l</strong>abel", "<strong>s</strong>" es "<strong>s</strong>tar", "<strong>o</strong>" es "<strong>o</strong>pen"...
</p>
Refugio VirtuaMental de un Internautahttp://s3.amazonaws.com/lcp/eckelon/myfiles/eckelon65x65.pnghttp://eckelon.espacioblog.com/post/2009/03/19/how-to-do-remote-administration-of-windows-from-osxHow to do a remote administration of Windows from OSX2009-03-19T16:02:54+00:002009-03-23T22:52:51+00:00
<p><img class="alignleft" src="http://farm4.static.flickr.com/3645/3367410151_344d963f69_o.jpg" alt="" width="210" height="100" />This week I was selected for a <em>new mission</em>: help somebody with his Windows administration. The first I thought was using a VNC server and connect to it from my comfortable home.</p>
<p><strong>1st Round</strong></p>
<p>Well, using VNC with spanish Internet connections is an utopia: It was so slow that I couldn't do anything.</p>
<p><strong>2nd Round</strong></p>
<p>The next I thought was using Microsoft's remote admin tool. It worked! And it was really simple in a few steps:</p>
<ul>
<li>Activate Remote Admin from your Windows Settings. In my case: My Computer propierties, in the advanced tab.</li>
<li> Create an administrator account, protected by password (unless you protect it with a password, you couldn't do anything).</li>
<li>Download Microsoft Remote Desktop Connection (for <a href="http://www.microsoft.com/windowsxp/downloads/tools/rdclientdl.mspx">Windows</a> or <a href="http://www.microsoft.com/mac/products/remote-desktop/default.mspx">Mac</a>), and install it on the client machine.</li>
<li>The only thing you'll need to access to the server machine, is the username credentials and the public IP.</li>
</ul>
<p>Personnally I prefered to set up a <a href="http://dyndns.com">DynDNS</a> account, because I didn´t want to look for the public IP each time ;)</p>
<p>What I want to do now is to admin a Windows or Mac machine from GNU/Linux and vice versa :D
</p>
Refugio VirtuaMental de un Internautahttp://s3.amazonaws.com/lcp/eckelon/myfiles/eckelon65x65.pnghttp://eckelon.espacioblog.com/post/2009/03/18/using-regular-expressions-in-search-and-replace-with-vimUsing Regular Expressions in search and replace with Vim2009-03-18T22:00:06+00:002009-03-23T22:52:51+00:00
<p>This evening I've learned to use regular expressions in sql code, and I'm loving it. Talking with <a href="http://capitangolo.net">GoLo</a> about this, he showed me how to use regular expressions on the Vim´s search and replace tool (Instead <a href="http://eckelon.net/2009/03/10/cosas-que-hacen-que-vim-pase-de-molar-a-ser-necesario/#comment-1138"> he doesn't like Vim</a> :P). E.g. If you want to comment some lines of code, you may want to use:</p>
<p>[sourcecode language='css']<br />
:4,9 s/^/\/\/ /g<br />
[/sourcecode]</p>
<p>Where 4 and 9 are the lines between which you want to comment on the code, ^ is what you must use to go to the begin of the lines and \ allow us to insert the /. This would be more efficient if you record it into a macro.</p>
<p>This is a very extensive topic, and this is only a minimal part of it. If you want to learn more about it, you can <a href="http://www.geocities.com/volontir">read this tutorial</a>.
</p>
Refugio VirtuaMental de un Internautahttp://s3.amazonaws.com/lcp/eckelon/myfiles/eckelon65x65.pnghttp://eckelon.espacioblog.com/post/2009/03/17/how-to-force-ntfs-3g-mountingHow to force ntfs-3g mounting2009-03-17T06:00:57+00:002009-06-09T16:16:44+00:00
<p style="text-align:justify;">Sometimes, when a ntfs partition is open, or partially corrupted, or it had been bad closed, if you try to mount it, you'll find an error message telling you that it's impossible to mount.</p>
<p style="text-align:justify;">Today, I have to help a friend with her computer, wich was infected by a virus or a trojan... and she can't access her windows partition.</p>
<p style="text-align:justify;">The first I've done is using an Ubuntu Live CD (it's always on my bag :P) to mount her Windows partition and moving her files to another hard drive. But always got that error message. Finally I've typed this command on the Terminal, et voilà:</p>
<p>[sourcecode language='css']<br />
$sudo mkdir /media/HDD<br />
$sudo mount -t ntfs-3g /dev/sda1 /media/HDD -o force<br />
[/sourcecode]</p>
<p>This only forces the ntfs partition mounting by using the <a href="http://www.ntfs-3g.org/">ntfs-3g driver</a>, and it had worked great.
</p>
Refugio VirtuaMental de un Internautahttp://s3.amazonaws.com/lcp/eckelon/myfiles/eckelon65x65.pnghttp://eckelon.espacioblog.com/post/2009/03/16/vrapper-the-plugin-that-makes-me-happyVrapper: the plugin that makes me happy2009-03-16T11:19:20+00:002009-03-23T22:52:50+00:00
<p>It had to exist. For a few years I've have been using both <a href="http://vim.org">Vim</a> and <a href="http://eclipse.org">Eclipse</a> to edit code. Actually, I only use Eclipse for Java, because it's really a powerful tool. Vim, on the other hand makes me much more efficient when typing, but it isn't an IDE, so, I'm forced to use Eclipse too (or another IDE, obviously). My attemps to become Vim into an IDE had failed, so, I abandoned, and I only use Vim to type, but not to compile, or stuff like that. That's why I use Vim with PHP or Python, but not with Java.</p>
<p>The problem using two editors is easy: you have to learn two different ways of editing text, and that isn't cool, e.g. I have an error on my Java app, and when I look the mistaken line, I found ":wq".</p>
<p>So I started searching a solution for integrating Vim into Eclipse. All the plugins I found, perfectly integrate Vim into the Eclipse editor, but, all the Eclipse features broke. And I don't want to program without the code assist. But finally I found <a href="http://vrapper.sourceforge.net/">Vrapper</a>, witch is a plugin that emulate some Vim commands in Eclipse, and, despite it´s not a totally Vim experience, it makes me much more efficient.</p>
<p>Vrapper turns Eclipse into a modal editor, with the 3 Vim modes: normal, insert and visual. Today the visual mode only allows to select a few lines, and operate with y, d and c, but the author is working hard on it.</p>
<p>Some things I can do now with Eclipse are:</p>
<p>- browse the code using h,j,k,l<br />
- search with / and * (the Vim find and replace tool will be soon add :D)<br />
- use :noremap in my configuration file to make my own mappings</p>
<p>I´m using it since a couple of hours, so, I don't have a complete opinion yet, but for now It's really comfortable :D</p>
<p><strong>How I install it in my Eclipse?</strong></p>
<p>It´s really simple: add a new location on your "find and install" menu, and paste this url: http://vrapper.sourceforge.net/eclipse-update-site
</p>
Refugio VirtuaMental de un Internautahttp://s3.amazonaws.com/lcp/eckelon/myfiles/eckelon65x65.pnghttp://eckelon.espacioblog.com/post/2009/03/10/cosas-hacen-vim-pase-molar-ser-necesarioCosas que hacen que Vim pase de molar a ser necesario2009-03-10T00:16:52+00:002009-04-03T09:06:30+00:00
<p>Pese a que en mi paso a Mac, intenté darle una oportunidad a <a title="Textmate" href="http://macromates.com">Textmate</a>, no he podido. Y es que tras unas cuantas semanas me he dado cuenta de que mis líneas de código tenían lindezas como :wq y cosas así. Tuve que volver a <a title="Vim" href="http://vim.org">Vim</a>. Por varios motivos:</p>
<ul>
<li>Me he hecho a él</li>
<li>Aún no conozco sus límites</li>
<li>Lo puedo ejecutar en cualquier máquina: hoy he tenido que picar código en un Windows, y Vim y el vimrc que llevo siempre conmigo, me han salvado la vida.</li>
</ul>
<p>El caso es que <a title="Capitán GoLo" href="http://capitangolo.net">GoLo</a> pese a que suele usar Vim para modificar cosas del sistema, a la hora de la verdad abre el <a title="Eclipse" href="http://eclipse.org">Eclipse</a>, y para según que cosas es normal (yo soy el primero que lo hace) pero para programar en Python, Perl o Php, me parece una burrada. Desde que empecé a usar Vim de verdad, suelo llevar encima una pequeña <a title="Moleskine @ Refugio" href="http://eckelon.net/2008/01/26/cuadernos-moleskine/">Moleskine</a> donde voy apuntando truquillos que me van haciendo más y más rápido a la hora de picar código. De este cuadernito he hecho una selección que le vendrá a GoLo que ni pintada :D Si no eres GoLo, también puedes usarla :D ¡Y hasta comentar!</p>
<p><strong>Inserciones (en modo normal)</strong></p>
<ul>
<li>i : empiezas a escribir a la izquierda de la letra sobre la que tienes el cursor</li>
<li>I : empiezas a escribir al principio de la línea en la que estás</li>
<li>a : empiezas a escribir a la derecha de la letra donde tienes el cursor</li>
<li>A : empiezas a escribir al final de la línea en la que estás</li>
<li>o : empiezas a escribir en la linea de abajo. Importantísimo.</li>
<li>O: empiezas a escribir en la línea de arriba</li>
</ul>
<p><strong>Moverse por el texto (en modo normal)</strong></p>
<ul>
<li>e : pone el cursor al final de la línea</li>
<li>b: pone el cursor al principio de la línea</li>
<li>yy : copia la línea actual</li>
<li>dd : corta la línea actual</li>
<li>y3y o d3d: copia o corta 3 líneas, hacia abajo desde la que está el cursor. Esto es genial para mover grandes bloques de texto de un lugar a otro. (Si GoLo, si, como me dijiste que hace el Eclipse :P)</li>
</ul>
<p><strong>Otros, pero no menos importantes</strong></p>
<ul>
<li>:1,$ s/hola/mundo/g : reemplaza de la línea 1 hasta el final todas las palabras "hola" por "mundo". Si cambiamos $ por un 5, lo hará en las 5 primeras líneas, y si cambiamos el 1 por un 5 lo hará de la línea 5 hasta el final. Si solo lo queremos para un pequeño bloque de texto, pues, tan sencillo como poner las dos líneas entre las que quieres acotar. En que le coges el tranquillo, lo echas de menos en todas las</li>
<li>:set nu : activa la numeración</li>
<li>:tabnew : abre nueva pestaña</li>
<li>gt : para moverse entre las pestañas. Comodísimo.</li>
<li>:tab sba : abre todos los buffers activos en pestañas. Utilísimo.</li>
</ul>
<p>Me dejo muchos en el tintero, pero estos son imprescindibles :D Seguiré añadiendo más poco a poco <a title="Vim @ Refugio" href="http://eckelon.net/tag/vim/">para la sección de Vím</a> :D GoLo, espero haberte convencido :P
</p>
Refugio VirtuaMental de un Internautahttp://s3.amazonaws.com/lcp/eckelon/myfiles/eckelon65x65.pnghttp://eckelon.espacioblog.com/post/2009/03/05/how-to-make-up-your-mindHow to make up your mind2009-03-05T00:07:13+00:002009-03-23T22:52:48+00:00
<p><code>sudo apt-get install openarena</code>
</p>
Refugio VirtuaMental de un Internautahttp://s3.amazonaws.com/lcp/eckelon/myfiles/eckelon65x65.pnghttp://eckelon.espacioblog.com/post/2009/02/27/solucionar-problema-gmail-safari-4Solucionar el problema de Gmail en Safari 42009-02-27T00:04:48+00:002009-03-23T22:52:48+00:00
<p>Dados los comentarios sobre la beta de la nueva versión de Safari, decidí a instalármelo. Funcionaba todo perfectamente expecto un pequeño detalle, que no funcionaba Gmail. Desinstalé, instalé, reinstalé, y todo lo que acaba en alé, pero nada funcionaba. Desesperado, intenté que algún lector del blog me ayudara <a href="http://eckelon.net/2009/02/27/safari-4-mola/">publicando este post</a>. Y, como siempre <a href="http://ramonrey.net/" title="Blog de Ramón Rey">Ramón</a> vino al rescate con el consejo de que desinstalara Gears. Efectivamente, se soluciónó</p>
<p><b>Pero, ¿cómo desinstalo Gears?</b></p>
<p>Abre una terminal y pega esto (comillas incluidas)</p>
<p><code>'/Library/Internet Plug-Ins/Gears.plugin/Contents/Resources/uninstall.command'</code></p>
<p>Al dar a enter, te pide la contraseña y listo. Cierra y abre Safari, y todo debería ir sobre ruedas.</p>
Refugio VirtuaMental de un Internautahttp://s3.amazonaws.com/lcp/eckelon/myfiles/eckelon65x65.pnghttp://eckelon.espacioblog.com/post/2009/02/26/safari-4-molaSafari 4 mola2009-02-26T23:21:01+00:002009-03-23T22:52:47+00:00
<p>Pero por qué diablos no me carga Gmail?!?!?
</p>
Refugio VirtuaMental de un Internautahttp://s3.amazonaws.com/lcp/eckelon/myfiles/eckelon65x65.pnghttp://eckelon.espacioblog.com/post/2009/02/10/charlando-con-roberto-no-tengo-iphoneCharlando con Roberto en No Tengo iPhone2009-02-10T00:21:01+00:002009-03-23T22:52:45+00:00
<p> </p>
<p><img class=" alignleft" style="border:0 initial initial;" title="No Tengo iPhone" src="http://notengoiphone.files.wordpress.com/2009/01/logonti.jpg?w=203&h=203" alt="No Tengo iPhone" width="203" height="203" /></p>
<p>Esta tarde he compartido una charla muy interesante con mi colega Roberto, que tiene el blog / podcast "<a title="No Tengo iPhone" href="http://notengoiphone.wordpress.com" target="_blank">No Tengo iPhone</a>". Pese a que es un podcast de temática Apple, hemos hablado bastante del mundo GNU/Linux, de cuales son mis preferencias, e incluso de por qué mordí la manzana. La verdad es que ha sido un placer, y creo que se nota el <em>buenrollismo</em> en la grabación.</p>
<p> </p>
<p>¡<a title="Escuchar" href="http://notengoiphone.wordpress.com/2009/02/10/podcast-42-de-no-tengo-iphone-charla-sobre-mac-y-linux-con-eckelon/" target="_blank">Escucha el episodio</a>!
</p>