<?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>Luanatic with features &#187; recetas</title>
	<atom:link href="http://www.pplux.com/category/recetas/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pplux.com</link>
	<description>PpluX &#039;s blog</description>
	<lastBuildDate>Mon, 11 May 2009 08:21:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>rsync, root and sudo</title>
		<link>http://www.pplux.com/2009/02/07/rsync-root-and-sudo/</link>
		<comments>http://www.pplux.com/2009/02/07/rsync-root-and-sudo/#comments</comments>
		<pubDate>Sat, 07 Feb 2009 20:21:20 +0000</pubDate>
		<dc:creator>PpluX</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[linux/unix]]></category>
		<category><![CDATA[recetas]]></category>

		<guid isPermaLink="false">http://www.pplux.com/?p=214</guid>
		<description><![CDATA[Here is the thing, the other day I wanted to copy one subdirectory from one computer to another, I can not rely on scp because I needed root permissions, neither tar worked because there was symlinks, different file permissions and owners, and there wasn&#8217;t space enough to do it (of course, you can send the [...]]]></description>
			<content:encoded><![CDATA[<p>Here is the thing, the other day I wanted to copy one subdirectory from one computer to another, I can not rely on scp because I needed root permissions, neither tar worked because there was symlinks, different file permissions and owners, and there wasn&#8217;t space enough to do it (of course, you can send the tar using netcat&#8230;). The perfect solution to do such a copy is use rsync, it works nice, and can be used to reupdate a backup, and so on. </p>
<p>The problem is I need both root permissions on both machines, on the local machine having root permissions is the easy part but how should we proceed to get root permissions at the other end ?</p>
<p>You can do several things, like creating the root user, disable sudo asking for password, &#8230; but I won&#8217;t recommend them. The solution I came across ( I don&#8217;t remember from where ) is simple, but quite forgivable (that&#8217;s why I&#8217;m writing a post-to-myself). Here it is:</p>
<pre name="code" class="c">
stty -echo; ssh myUser@REMOTE_SERVER "sudo -v"; stty echo
rsync -avze ssh --rsync-path='sudo rsync' myUser@REMOTE_SERVER:/REMOTE_PATH/ LOCAL_PATH
</pre>
<p>The second line tells sudo to execute &#8220;sudo rsync&#8221; instead of &#8220;rsync&#8221; on the remote host. Without the first line sudo will prompt for a password (and we won&#8217;t be able to input it), the &#8220;sudo -v&#8221; is the one which does the trick. It simply touches the timestamp sudo has to avoid asking the password on each call. </p>
<p>The &#8220;stty [-]echo&#8221; avoid others to have a look at our passwords while we type them <img src='http://www.pplux.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.pplux.com/2009/02/07/rsync-root-and-sudo/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>from subversion to git</title>
		<link>http://www.pplux.com/2008/11/26/from-subversion-to-git/</link>
		<comments>http://www.pplux.com/2008/11/26/from-subversion-to-git/#comments</comments>
		<pubDate>Wed, 26 Nov 2008 14:55:55 +0000</pubDate>
		<dc:creator>PpluX</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[recetas]]></category>
		<category><![CDATA[subversion]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[SCM]]></category>

		<guid isPermaLink="false">http://www.pplux.com/?p=194</guid>
		<description><![CDATA[Recently I&#8217;ve been playing with git and I found it fascinating!, for those that still don&#8217;t know what it is, git is a really fast distributed revision control system (wikipedia). Now the problem is how to switch from subversion to git, fortunately git-svn helps a lot and we can play with git and subversion in [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I&#8217;ve been playing with git and I found it fascinating!, for those that still don&#8217;t know what it is, git is a really fast distributed revision control system (<a href="http://en.wikipedia.org/wiki/Git_%28software%29">wikipedia</a>). Now the problem is how to switch from subversion to git, fortunately <a href="http://www.kernel.org/pub/software/scm/git/docs/git-svn.html">git-svn</a> helps a lot and we can play with git and subversion in many ways. Let&#8217;s talk about them from the easiest to the not-so-easy way. I&#8217;m supposing here that you want to move from a centralized subversion to a git repository that probably will be online on a server.</p>
<h2>Complete migration from subversion to git</h2>
<p>This is for those that want to throw  subversion away completely, for some reason this is the easiest way to switch. First what you would do on the server:</p>
<p><code><span class="blue"># first clone the repository from subversion<br />
#  if you can use file:// it will be faster,<br />
#  otherwise use </span><span class="red">http://your-project-url.com/svn/MySuperProject </span><br />
[server]$ git svn clone -s <span class="red">file:///home/pplux/.../svn/MySuperProject</span> tmp<br />
<span class="blue"># clone to a bare new git repository (with no track of subversion)</span><br />
[server]$ git clone --bare file://`pwd`/tmp MySuperProject<br />
<span class="blue"># remove the old git repo from subversion, no longer needed</span><br />
[server]$ rm -rf tmp/<br />
<span class="blue"># update server info, for "dumb" servers this is needed</span><br />
[server]$ cd MySuperProject/<br />
[server]$ git --bare update-server-info<br />
</code></p>
<p>Now clients can simple clone your repository and start working:<br />
<code><span class="blue"># use this for normal-read-only, or maybe you could use ssh://<br />
#   if you plan to upload data.</span><br />
[client] $ git clone <span class="green">http://your-server-url.com/git/MySuperProject</span><br />
</code></p>
<h2>Mirroring the subversion repository and keep subversion</h2>
<p>Here we want to keep the subversion repository like the main reference of the project, but let people (or ourselves) use git for development. The reason to mirror the subversion is just a matter of speed, it is much faster to clone an existing git repository than cloning from subversion each time. </p>
<p>Here we will need to do a bit more of work, but it&#8217;s a much smoother way to migrate from subversion to git. First what we need to do on the server:</p>
<p><code><span class="blue"># Create and initialize a bare git repository</span><br />
[server]$ mkdir MySuperProject[server]$ cd MySuperProject/<br />
[server]$ git --bare init<br />
Initialized empty Git repository in /home/pplux/.../MySuperProject/<br />
<br/><br />
<span class="blue"># set svn project to import</span><br />
[server]$ git --bare svn init -s <span class="red">http://your-server-url.com/svn/MySuperProject</span><br />
<br/><br />
<span class="blue"># fetch svn data (sloooow)</span><br />
[server]$ git --bare svn fetch --all<br />
    A   src/CMakeLists.txt<br />
        A   CMakeLists.txt<br />
        W: +empty_dir: trunk/include<br />
...<br />
<br/><br />
<span class="blue"># auxiliary files to help "dumb" servers</span><br />
[server]$ git --bare update-server-info<br />
</code></p>
<p>Now the client, here we will do much more work than before to setup both the origin from the git mirror and the subversion config to commit there future changes.</p>
<p><code><span class="blue"># Create and initialize our copy of the git repository</span><br />
[client] $ mkdir MySuperProject<br />
[client] $ cd MySuperProject/<br />
[client] $ git init<br />
Initialized empty Git repository in /Users/pplux/projects/MySuperProject/.git/<br />
<br/><br />
<span class="blue"># setup the server as the initial origin of data</span><br />
[client] $ git remote add origin <span class="green">http://your-server-url.com/git/MySuperProject</span><br />
<br/><br />
<span class="blue"># also tell git to fecth data from the remote origin(that case svn)</span><br />
[client] $ git config --add remote.origin.fetch '+refs/remotes/*:refs/remotes/*'<br />
<br/><br />
<span class="blue"># fetch data from the git mirror(takes a bit)</span><br />
[client] $ git fetch<br />
got 2c68737541f19685f667f601a502447425d1fcfe<br />
walk 2c68737541f19685f667f601a502447425d1fcfe<br />
got d4916373650b9bb636c0284dd501e6c7bfa8e304<br />
got 13af9568120f8e7771bd386d9b7dadf69f1181cb<br />
...<br />
<br/><br />
<span class="blue"># setup the original subversion as</span><br />
[client] $ git svn -s init <span class="red">http://your-server-url.com/svn/MySuperProject</span><br />
<br/><br />
<span class="blue"># rebuild data...</span><br />
[client] $ git svn fetch<br />
Rebuilding .git/svn/trunk/.rev_map.1a3bf6a2-ba3d-0410-9263-a3f888f14dcd ...<br />
r1 = 126490373bfbc2a770d762398b67fffeef73bead<br />
r2 = a2288725c8c68ef426b97cf2b28a9135a34734d3<br />
r3 = 4158b92a5c68489bb6ff2b4f4567cf8f830d7282<br />
<br/><br />
<span class="blue"># to start working create a master that will track "trunk"</span><br />
[client] $ git checkout -b master -t trunk<br />
</code></p>
<h2> Reasons for switching to git </h2>
<p>The post ends here you can safely stop reading now, but if you ask me, there are some good reasons to switch to git:</p>
<ul>
<li> it&#8217;s faster, not only faster when doing actual SCM work, it allows you to develop faster, no need to wait while the commit is transmitted to the server, you can work offline wherever you are&#8230; </li>
<li> it works well with subversion, you can use it even if the main project never moves from a subversion repository or you are the only one using git while everybody else is using subversion </li>
<li> you don&#8217;t need to develop a full feature before a commit, you can work on your own doing commits often without worrying about anybody else.</li>
<li> git is meant to work on branches, this is a different approach from the normal subversion use, with git you are supposed to work on branches, and it&#8217;s great! I like to develop different &#8220;features&#8221; on different branches, I can switch the branch, do several things at the same time&#8230; and so on.</li>
<li>you have the whole history, not just the last commit.</li>
<li>it&#8217;s secure, you don&#8217;t need several people to share the same repository, git &#8220;default&#8221; model works in a different way where each person has its own public git. But, everything in git is hashed, even branches, so you can easily check if your private git has the same things as the remote git (that&#8217;s difficult to achieve with subversion)</li>
<li> it&#8217;s like vim vs notepad! I like git because is fun, it can do many many things, and it&#8217;s always good to have something new to play with.</li>
<li> if CVS was for dinosaurs when you started using SVN, now SVN is for the Neanderthals&#8230; so start using git!</li>
<li> You don&#8217;t have to be a ruby developer to use git! git is another SCM&#8230; not the cool tool just for cool ruby developers&#8230; come on.</li>
<li> Because Linus Torvalds made it:<br/><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/4XpnKHJAok8&#038;hl=es&#038;fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/4XpnKHJAok8&#038;hl=es&#038;fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object></li>
<li> &#8230; well, maybe Linus is not a good reason to use it&#8230; I don&#8217;t fancy calling people ugly and idiot, anyway git is great.</li>
</ul>
<p>And big thanks to <a href="http://slack.codemaniacs.com/">slack</a> for pointing me out git, if he says something is good stuff&#8230; believe him <img src='http://www.pplux.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Other good links about what we&#8217;ve talked here:</p>
<p><a href="http://www.gnome.org/~federico/news-2008-11.html#27">http://www.gnome.org/~federico/news-2008-11.html#27</a><br />
<a href="http://markmcb.com/tag/workflow/">http://markmcb.com/tag/workflow/</a><br />
<a href="http://utsl.gen.nz/talks/git-svn/intro.html#howto-track-rebuildmeta">http://utsl.gen.nz/talks/git-svn/intro.html#howto-track-rebuildmeta</a><br />
<a href="http://www.viget.com/extend/effectively-using-git-with-subversion/">http://www.viget.com/extend/effectively-using-git-with-subversion/</a><br />
<a href="http://techbase.kde.org/Development/Tutorials/Git#Interfacing_KDE.27s_SVN_repository_with_git-svn">http://techbase.kde.org/Development/Tutorials/Git#Interfacing_KDE.27s_SVN_repository_with_git-svn</a><br />
<a href="http://live.gnome.org/GitForGnomeDevelopers">http://live.gnome.org/GitForGnomeDevelopers</a><br />
<a href="http://tsunanet.blogspot.com/2007/07/learning-git-svn-in-5min.html">http://tsunanet.blogspot.com/2007/07/learning-git-svn-in-5min.html</a><br />
<a href="http://blogs.gnome.org/johncarr/2008/06/21/git-mirrorgnomeorg/">http://blogs.gnome.org/johncarr/2008/06/21/git-mirrorgnomeorg/</a><br />
<a href="http://markmcb.com/2008/09/17/migrating-a-subversion-svn-project-and-server-to-git/">http://markmcb.com/2008/09/17/migrating-a-subversion-svn-project-and-server-to-git/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.pplux.com/2008/11/26/from-subversion-to-git/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>The return to the dark side</title>
		<link>http://www.pplux.com/2008/11/24/the-return-to-the-dark-side/</link>
		<comments>http://www.pplux.com/2008/11/24/the-return-to-the-dark-side/#comments</comments>
		<pubDate>Mon, 24 Nov 2008 10:50:09 +0000</pubDate>
		<dc:creator>PpluX</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[English]]></category>
		<category><![CDATA[recetas]]></category>

		<guid isPermaLink="false">http://www.pplux.com/?p=184</guid>
		<description><![CDATA[Since October 31st, around 9:45am, I&#8217;m the proudly owner of a new macbook! So again I&#8217;m quitting linux, not really, but for a notebook apple is the only one that delivers a truly &#8220;notebook-experience&#8221;, IMHO. I could not do without the close-the-lid-and-leave thing, the unix feeling, and my terminal,but it took me some days to [...]]]></description>
			<content:encoded><![CDATA[<p>Since <a href="http://twitter.com/pplux/status/984116656">October 31st, around 9:45am,</a> I&#8217;m the proudly owner of a new macbook!  So again I&#8217;m quitting linux, not really, but for a notebook apple is the only one that delivers a truly &#8220;notebook-experience&#8221;, IMHO. I could not do without the close-the-lid-and-leave thing, the unix feeling, and my terminal,but it took me some days to tweak this things to feel back at home, and just as a reminder for myself I&#8217;m going to write down some little tips.<br />
<span id="more-184"></span><br />
<strong>Suspension, safe sleep and deep sleep:</strong></p>
<p>That&#8217;s the thing I love most from mac: how fast is to suspend and de-suspend. But, I&#8217;ve noticed that the led which indicates when the notebook is suspended, takes quite long to start pulsing. Actually, it is not safe to move the notebook until the led starts pulsing so&#8230; why? with my old G4 mac the led started almost instantly pulsing meaning that you could safely pick the notebook up and leave. Well the reason is that apple has switched to &#8220;SafeSleep&#8221; since intel notebooks, and basically means that it will store the memory content to the hard disk just in case you run out of battery. </p>
<p>I can not simply run out of battery, I&#8217;m always near a plug, and it doesn&#8217;t take more than few hours until I use the notebook again&#8230; so there must be some way to use the not-so-safe-sleep-but-much-quicker. I searched a bit, and found this:</p>
<p><a href="http://www.macworld.com/article/53471/2006/10/sleepmode.html">http://www.macworld.com/article/53471/2006/10/sleepmode.html</a><br />
<a href="http://kimklai.blogspot.com/2007/11/hibernate-on-osx.html">http://kimklai.blogspot.com/2007/11/hibernate-on-osx.html</a><br />
<a href="http://www.radiotope.com/content/os-x-105-leopard-hibernate-options">http://www.radiotope.com/content/os-x-105-leopard-hibernate-options</a><br />
<a href="http://installingcats.com/tag/safe-sleep/">http://installingcats.com/tag/safe-sleep/</a></p>
<p>The quick answer is you can turn off safeSleep with:</p>
<blockquote><p>sudo pmset -a hibernatemode 0<br />
And then take rid of the sleep image<br />
sudo rm /var/vm/sleepimage</p></blockquote>
<p>But there is a better way and is a little dashboard widget that does the same thing, allows you to change and perform a deep sleep on demand (deep sleep means store the memory state to the hard disk and shut down the machine completely, so no battery is used at all). </p>
<p><a href="http://deepsleep.free.fr/">http://deepsleep.free.fr/</a></p>
<p><strong>Disable space switching on command-tab:</strong></p>
<p>That annoys me, when I&#8217;m working on a space I don&#8217;t want to be switched to another when changing the application focus. This is straightforward:<br />
<a href="http://www.macosxhints.com/article.php?story=2008021122525348">http://www.macosxhints.com/article.php?story=2008021122525348</a> </p>
<blockquote><p>defaults write com.apple.Dock workspaces-auto-swoosh -bool NO<br />
killall Dock</p></blockquote>
<p>To reset settings:</p>
<blockquote><p>defaults delete com.apple.Dock workspaces-auto-swoosh</p></blockquote>
<p>About Software</strong></p>
<p>Good software for your mac:</p>
<ul>
<li>MacVim : beautiful graphical vim</li>
<li>macports: Why ports and not fink? basically if you want the good stuff from fink you will end up compiling, so&#8230; why do not start from the beginning ?</li>
<li>iSerialReader : &#8230; no comments &#8230;</li>
<li>TED and Transmision : great for watching TV shows&#8230; in English of course (this two are platform independent, not just for mac)</li>
<li>Adium: far better than iChat&#8230; and also works great with Bonjour.</li>
<li>vmware fusion: &#8230; not free software, but works great to run a windows when you need it, or a Linux</li>
<li>QuickSilver: No, this one is no longer needed, for me Spotlight is now better than quicksilver for just launching applications.</li>
</ul>
<p><strong>About the Terminal and screen</strong></p>
<p>I spend most of the time working with terminal and vim, so the first I&#8217;ve done is change the colors to a much better white over black background, but most of the colors work better with a white background by default, so now the problem is how to change that. I&#8217;ve added this to the &#8220;~/.bash_profile&#8221;:</p>
<blockquote>
<pre>
alias gvim="open -a macvim"
export SVN_EDITOR=`which vim`

alias ls="ls -G"
export LSCOLORS="gxfxcxdxbxgegdabaeacad"

if [ -f /opt/local/etc/bash_completion ]; then
	. /opt/local/etc/bash_completion
fi

if [ -f $HOME/.profile ]; then
	. $HOME/.profile
fi

alias screen='SCREEN_PWD=$(pwd) /usr/bin/screen'

case "$TERM" in
	xterm-color)
		PS1='\[\033[01;32m\]\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\] \u\$ '
		;;
	screen )
		PS1="\[\033[01;33m\]${STY%%.*}-${WINDOW}\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\] \u\$ ";
		cd "$SCREEN_PWD";
		;;
	*)
		PS1='\h:\w \u\$ '
		;;
esac
</pre>
</blockquote>
<p>Here I&#8217;ve tweaked the color of the &#8220;ls&#8221; output to be more readable with black background, and also changed the prompt to have colors and give more info. There are some lines to make the screen command ( if you don&#8217;t know what screen is for, you&#8217;re missing a really good program here) work better, you will also need to add this to the  &#8220;~/.screenrc&#8221;</p>
<blockquote><p>startup_message off<br />
shell -/bin/bash</p></blockquote>
<p>When screen is launched the prompt will change, it will show in yellow something like &#8220;5867-0:/opt/local pplux$&#8221; the first number is the PID of the current screen instance, that could help you if you run more than one because writing &#8220;screen -ls&#8221; will show the list of instances identified by its PID. The number after the stroke is the window number inside screen.</p>
<p>And that&#8217;s all&#8230; <img src='http://www.pplux.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.pplux.com/2008/11/24/the-return-to-the-dark-side/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Trabajar en consola: Terminator &amp; screen</title>
		<link>http://www.pplux.com/2008/04/29/trabajar-en-consola-terminator-screen/</link>
		<comments>http://www.pplux.com/2008/04/29/trabajar-en-consola-terminator-screen/#comments</comments>
		<pubDate>Tue, 29 Apr 2008 10:33:18 +0000</pubDate>
		<dc:creator>PpluX</dc:creator>
				<category><![CDATA[linux/unix]]></category>
		<category><![CDATA[recetas]]></category>
		<category><![CDATA[screen]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[terminator]]></category>

		<guid isPermaLink="false">http://www.pplux.com/?p=165</guid>
		<description><![CDATA[¿Quién dijo que la consola estaba muerta? no śe vosotros, pero personalmente es de lo primero que arranco cada mañana para trabajar. ¿Por qué? pues sencillamente por ser invariante en el tiempo, gnome cambia, kde cambia, mac os X cambia, cada vez las interfaces son mejores, pero mi consola responde igual desde el primer día [...]]]></description>
			<content:encoded><![CDATA[<div class="floatRight"><img src="/files/terminator-logo.png" alt="Terminator logo" /></div>
<p>¿Quién dijo que la consola estaba muerta? no śe vosotros, pero personalmente es de lo primero que arranco cada mañana para trabajar. ¿Por qué? pues sencillamente por ser invariante en el tiempo, gnome cambia, kde cambia, mac os X cambia, cada vez las interfaces son mejores, pero mi consola responde igual desde el primer día que empecé a usarla. Más aun, te sirve para trabajar remotamente y muchas otras veces es la única opción para arreglar catástrofes (vamos, que no está de más aprender a usarla).</p>
<p>Pese a que a día de hoy hay aplicaciones gráficas para bajar ficheros, torrents, mover/copiar/pegar directorios, conectarse a unidades samba, etc&#8230; personalmente, en la mayoría de los casos, sigo prefiriendo arrancar una consola y hacerlo a mano, wget, cp/rm/mv/rsync, smbclient, smbfs, &#8230; ¿ya sabes, no?</p>
<p>Y si, como yo, eres un adicto a la terminal, conocerás <a href="http://www.gnu.org/software/screen/">screen</a> el multiplexador-de-terminales (si no, o si quieres aprender a usarlo, prueba <a href="http://www.kuro5hin.org/story/2004/3/9/16838/14935">aquí</a> ) multiplataforma, super funcional, y con la maravillosa opción de poder <em>detachear</em> y <em>atachear</em> sesiones.</p>
<p>Y qué hacer con las pantallas de hoy día, son grandes, muy grandes, caben muchas consolas, o una a pantalla completa con screen (que permite dividir la consola en varias regiones)&#8230; pues mejor que eso podemos usar <a href="https://launchpad.net/terminator">terminator</a>, del que ya podemos disfrutar en hoary. Terminator permite arrancar una terminal y, en vez de usar tabs, podemos dividir horizontal y verticalmente la consola las veces como queramos, sacando partido de verdad a los nuevos tamaños de pantalla que tenemos ahora.</p>
<blockquote><p>
<a href="https://launchpad.net/terminator">Terminator</a>  is a program that allows users to set up flexible arrangements of GNOME terminals. It is aimed at those who normally arrange lots of  terminals near each other, but don’t want to use a frame based window manager.
</p></blockquote>
<p>Gracias a que usa gnome-terminals se integra muy bien con las preferencias de gnome-terminal (toma los colores que use este, el tipo de letra, control+, control-, etc..) y tiene atajos de teclado para cambiar de región (<em>$man terminator</em>).</p>
<p>¡ Un placer !</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pplux.com/2008/04/29/trabajar-en-consola-terminator-screen/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Color de auto-completado del vim</title>
		<link>http://www.pplux.com/2008/04/11/color-de-auto-completado-del-vim/</link>
		<comments>http://www.pplux.com/2008/04/11/color-de-auto-completado-del-vim/#comments</comments>
		<pubDate>Fri, 11 Apr 2008 07:32:25 +0000</pubDate>
		<dc:creator>PpluX</dc:creator>
				<category><![CDATA[recetas]]></category>
		<category><![CDATA[Vim]]></category>

		<guid isPermaLink="false">http://www.pplux.com/2008/04/11/color-de-auto-completado-del-vim/</guid>
		<description><![CDATA[No sé qué razón se oculta tras la configuración por defecto de mi vim/gvim que el auto-completado se ve de pena. Tenía un color rosa de fondo con letras blancas, con tan poco contraste que molesta. Para cambiar esta opción y que nuestro vim deje de tener pluma, podemos hacer lo siguiente: highlight Pmenu guibg=blue [...]]]></description>
			<content:encoded><![CDATA[<p>No sé qué razón se oculta tras la configuración por defecto de mi vim/gvim que el auto-completado se ve de pena. Tenía un color rosa de fondo con letras blancas, con tan poco contraste que molesta. Para cambiar esta opción y que nuestro vim deje de tener pluma, podemos hacer lo siguiente:</p>
<div class="alignCenter"><img src="/files/vim-completion-color.png" alt="Completado del vim, resultado" /></div>
<blockquote class="go" ><p>
highlight Pmenu guibg=blue guifg=white ctermbg=blue ctermfg=white<br />
highlight PmenuSel guibg=white guifg=blue ctermbg=white ctermfg=blue
</p></blockquote>
<p>Esto en el ~/.vimrc y problema resuelto.</p>
<p>Gracias al <a href="http://www.vim.org/tips/tip.php?tip_id=1486">vim-tip-1486</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.pplux.com/2008/04/11/color-de-auto-completado-del-vim/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>vim: Completando nombres de ficheros</title>
		<link>http://www.pplux.com/2008/04/01/vim-completando-nombres-de-ficheros/</link>
		<comments>http://www.pplux.com/2008/04/01/vim-completando-nombres-de-ficheros/#comments</comments>
		<pubDate>Tue, 01 Apr 2008 13:30:01 +0000</pubDate>
		<dc:creator>PpluX</dc:creator>
				<category><![CDATA[recetas]]></category>
		<category><![CDATA[Vim]]></category>

		<guid isPermaLink="false">http://www.pplux.com/2008/04/01/vim-completando-nombres-de-ficheros/</guid>
		<description><![CDATA[Estoy demasiado acostumbrado a como completa bash los nombres de ficheros, escribes un cacho le das a TAB y esperas a que complete hasta donde pueda&#8230; si insistes te saca una lista de opciones y vas completando hasta llegar al destino. Vim, cuando estás en modo comando, tiene la fea costumbre de completar todo el [...]]]></description>
			<content:encoded><![CDATA[<p>Estoy demasiado acostumbrado a como completa bash los nombres de ficheros, escribes un cacho le das a TAB y esperas a que complete hasta donde pueda&#8230; si insistes te saca una lista de opciones y vas completando hasta llegar al destino. Vim, cuando estás en modo comando, tiene la fea costumbre de completar todo el nombre con cada TAB&#8230; en un directorio con varios ficheros suele ser un suplicio llegar al que toca. Pero afortunadamente todo en vim es configurable, en este caso la opción se llama <strong>wildmode</strong>.</p>
<p>Para tener un comportamiento similar al bash, puedes poner esto en tu ~/.vimrc:</p>
<blockquote class="go" ><p>set wildmode=longest,list:longest</p></blockquote>
<p><em>wildmode</em> tiene hasta dos parámetros separados por &#8216;,&#8217; el primero es lo que ocurre justo después del primer TAB, el segundo cuando el TAB se vuelve a pulsar. En este caso le estamos pidiendo que haga un match con la entrada común más larga posible (por defecto es <em>full</em>, que viene a decir un match completo), y si vuelves a presionar TAB mostará una lista y seguirá haciendo match con la entrada común más larga.</p>
<p>Para más info &#8216;:h wildmode&#8217;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pplux.com/2008/04/01/vim-completando-nombres-de-ficheros/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Recodificar video y subtítulos para el iphone/ipod-touch</title>
		<link>http://www.pplux.com/2008/03/27/recodificar-video-y-subtitulos-para-el-iphoneipod-touch/</link>
		<comments>http://www.pplux.com/2008/03/27/recodificar-video-y-subtitulos-para-el-iphoneipod-touch/#comments</comments>
		<pubDate>Thu, 27 Mar 2008 15:06:21 +0000</pubDate>
		<dc:creator>PpluX</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[linux/unix]]></category>
		<category><![CDATA[recetas]]></category>

		<guid isPermaLink="false">http://www.pplux.com/2008/03/27/recodificar-video-y-subtitulos-para-el-iphoneipod-touch/</guid>
		<description><![CDATA[Se me había olvidado que tenía hecho desde hace tiempo un script para pasar un video al formato del iphone (básicamente genera un mpeg4 con el tamaño adecuado para ahorrar espacio) y que además empotra los subtítulos si los encuentra. Todo ello usando mencoder y ffmpeg. ipod-video.sh De alguna parte saqué las opciones pero ya [...]]]></description>
			<content:encoded><![CDATA[<p>Se me había olvidado que tenía hecho desde hace tiempo un script para pasar un video al formato del iphone (básicamente genera un mpeg4 con el tamaño adecuado para ahorrar espacio) y que <strong>además empotra los subtítulos si los encuentra</strong>. Todo ello usando mencoder y ffmpeg. </p>
<div class="alignCenter"> <a href="http://svn.pplux.com/lab/scripts/ipod-video.sh">ipod-video.sh</a></div>
<p>De alguna parte saqué las opciones pero ya no me acuerdo, el caso es que funciona <img src='http://www.pplux.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  (en linux por lo menos)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pplux.com/2008/03/27/recodificar-video-y-subtitulos-para-el-iphoneipod-touch/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ver videos de Youtube en HD</title>
		<link>http://www.pplux.com/2008/03/24/ver-videos-de-youtube-en-hd/</link>
		<comments>http://www.pplux.com/2008/03/24/ver-videos-de-youtube-en-hd/#comments</comments>
		<pubDate>Mon, 24 Mar 2008 17:43:08 +0000</pubDate>
		<dc:creator>PpluX</dc:creator>
				<category><![CDATA[google]]></category>
		<category><![CDATA[recetas]]></category>
		<category><![CDATA[Tecnología]]></category>

		<guid isPermaLink="false">http://www.pplux.com/2008/03/24/ver-videos-de-youtube-en-hd/</guid>
		<description><![CDATA[Buscando el último trailer de wall-e por youtube me encuentro con esto: El autor pone &#8220;HD&#8221; por ahí pero se ve bastante mal. Haciendo scroll encuentro un tipet que dice: añade &#038;fmt=18 a cualquier url de youtube y se verá en alta resolución así que probé: http://youtube.com/watch?v=pC96tIhLDN0 http://youtube.com/watch?v=pC96tIhLDN0&#038;fmt=18 y algo hace! El truco no es [...]]]></description>
			<content:encoded><![CDATA[<p>Buscando el último trailer de wall-e por youtube me encuentro con esto:</p>
<div class="alignCenter">
<object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/pC96tIhLDN0&#038;hl=en"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/pC96tIhLDN0&#038;hl=en" type="application/x-shockwave-flash" wmode="transparent" width="425" height="355"></embed></object>
</div>
<p>El autor pone &#8220;HD&#8221; por ahí pero se ve bastante mal. Haciendo scroll encuentro un <em>tipet</em> que dice:</p>
<blockquote><p>añade <strong>&#038;fmt=18</strong> a cualquier url de youtube y se verá en alta resolución</p></blockquote>
<p>así que probé:</p>
<p><a href="http://youtube.com/watch?v=pC96tIhLDN0">http://youtube.com/watch?v=pC96tIhLDN0</a><br />
<a href="http://youtube.com/watch?v=pC96tIhLDN0&#038;fmt=18">http://youtube.com/watch?v=pC96tIhLDN0&#038;fmt=18</a></p>
<p>y algo hace! El truco no es nuevo pero yo no tenía ni idea, por si algún despistado tampoco lo sabía&#8230; ahí queda.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pplux.com/2008/03/24/ver-videos-de-youtube-en-hd/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

