<?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/"
	xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule"
>

<channel>
	<title>Nethazard.net &#187; Tutorials &amp; Tips</title>
	<atom:link href="http://blog.nethazard.net/category/tutorials/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.nethazard.net</link>
	<description>Gabriel Saldana&#039;s blog about web development, free software and other lifestyle topics</description>
	<lastBuildDate>Wed, 25 Aug 2010 20:57:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
<creativeCommons:license>http://creativecommons.org/licenses/by-sa/2.5/mx/</creativeCommons:license>
		<item>
		<title>Search and replace recursively in multiple files</title>
		<link>http://blog.nethazard.net/search-and-replace-recursively-in-multiple-files/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</link>
		<comments>http://blog.nethazard.net/search-and-replace-recursively-in-multiple-files/#comments</comments>
		<pubDate>Tue, 18 May 2010 23:01:36 +0000</pubDate>
		<dc:creator>Gabriel Saldaña</dc:creator>
				<category><![CDATA[GNU/Linux, Free Software & Open Source]]></category>
		<category><![CDATA[Tutorials & Tips]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[gnu]]></category>
		<category><![CDATA[sed]]></category>
		<category><![CDATA[text]]></category>

		<guid isPermaLink="false">http://blog.nethazard.net/?p=604</guid>
		<description><![CDATA[Lately I&#8217;ve been working with a lot of static HTML files with lots of repeating text structures. In the past I&#8217;ve talked about editing multiple files with Emacs. This approach works very well when the number of multiple files and text matches in each file is manageable, since you need to confirm pressing &#8220;y&#8221; on [...]


Related posts:<ol><li><a href='http://blog.nethazard.net/emacs-tip-how-to-edit-multiple-files/' rel='bookmark' title='Permanent Link: Emacs tip: How to edit multiple files on several directories in less than a minute'>Emacs tip: How to edit multiple files on several directories in less than a minute</a></li>
<li><a href='http://blog.nethazard.net/command-line-tools-for-web-developers/' rel='bookmark' title='Permanent Link: command line tools for web developers'>command line tools for web developers</a></li>
<li><a href='http://blog.nethazard.net/going-to-drupalcon-2010/' rel='bookmark' title='Permanent Link: Going to DrupalCon 2010'>Going to DrupalCon 2010</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Lately I&#8217;ve been working with a lot of static HTML files with lots of repeating text structures. In the past I&#8217;ve talked about <a href="http://blog.nethazard.net/emacs-tip-how-to-edit-multiple-files/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed">editing multiple files with Emacs</a>. This approach works very well when the number of multiple files and text matches in each file is manageable, since you need to confirm pressing &#8220;y&#8221; on every text match in each file.</p>

<p>On other cases, like the one I had to solve, you can have 84,000 text files where each file can have more than 5 matches. This case, doing it with emacs wouldn&#8217;t reduce much time. For these kind of cases, an &#8220;old&#8221; tool is very handy.</p>

<h3>GNU Sed</h3>

<p>Quoting from the <a href="http://www.gnu.org/software/sed/sed.html">GNU Sed project page</a>, sed is:</p>

<blockquote>
  <p>Sed (streams editor) isn&#8217;t really a true text editor or text processor. Instead, it is used to filter text, i.e., it takes text input and performs some operation (or set of operations) on it and outputs the modified text. Sed is typically used for extracting part of a file using pattern matching or substituting multiple occurrences of a string within a file.</p>
</blockquote>

<p>The way to tell sed to do a search and replace on some given text, the syntax is the following:
<code>sed -n -e 's/regex/text/g' filename</code></p>

<p>The -n switch makes Sed not to output its results to the standard output and overwrite the file with the results. The -e switch specifies that the following string is a command to perform on the file. The regex part is the regular expression to use for searching in your text. The text part is the text you want to replace your search with.</p>

<p>So Sed recieves streams of text as input, makes some operations on it and outputs the results. This way of seeing it, makes it very obvious to understand that the natural way to use it is through bash calls using pipes.</p>

<p>The find tool will help us get a list of all the files that we need to pipe into sed. In the same way we used find from within Emacs, we can call it from bash: <code>find path/to/folder -iname "filenamepattern"</code></p>

<p>So a combination of find with sed can be used in the following way:
<code>find myprojectfolder -iname "*.html" | sed -n -e 's/searchregex/replacementtext/g'</code></p>

<p>As easy as that, and you have edited 84,000 files with one single line of bash.</p>

<p>Hope its useful for anyone. It has been very useful to me. If you have other methods or other sed tips, I&#8217;d like to know in the comments.</p>

<div class="sociable">
<div class="sociable_tagline">
<strong>Share:</strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fblog.nethazard.net%2Fsearch-and-replace-recursively-in-multiple-files%2F&amp;title=Search%20and%20replace%20recursively%20in%20multiple%20files&amp;bodytext=Lately%20I%27ve%20been%20working%20with%20a%20lot%20of%20static%20HTML%20files%20with%20lots%20of%20repeating%20text%20structures.%20In%20the%20past%20I%27ve%20talked%20about%20editing%20multiple%20files%20with%20Emacs.%20This%20approach%20works%20very%20well%20when%20the%20number%20of%20multiple%20files%20and%20text%20matches%20in%20each" title="Digg"><img src="http://blog.nethazard.net/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fblog.nethazard.net%2Fsearch-and-replace-recursively-in-multiple-files%2F&amp;title=Search%20and%20replace%20recursively%20in%20multiple%20files&amp;notes=Lately%20I%27ve%20been%20working%20with%20a%20lot%20of%20static%20HTML%20files%20with%20lots%20of%20repeating%20text%20structures.%20In%20the%20past%20I%27ve%20talked%20about%20editing%20multiple%20files%20with%20Emacs.%20This%20approach%20works%20very%20well%20when%20the%20number%20of%20multiple%20files%20and%20text%20matches%20in%20each" title="del.icio.us"><img src="http://blog.nethazard.net/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fblog.nethazard.net%2Fsearch-and-replace-recursively-in-multiple-files%2F" title="Technorati"><img src="http://blog.nethazard.net/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fblog.nethazard.net%2Fsearch-and-replace-recursively-in-multiple-files%2F&amp;title=Search%20and%20replace%20recursively%20in%20multiple%20files" title="Reddit"><img src="http://blog.nethazard.net/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fblog.nethazard.net%2Fsearch-and-replace-recursively-in-multiple-files%2F&amp;title=Search%20and%20replace%20recursively%20in%20multiple%20files" title="StumbleUpon"><img src="http://blog.nethazard.net/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fblog.nethazard.net%2Fsearch-and-replace-recursively-in-multiple-files%2F&amp;t=Search%20and%20replace%20recursively%20in%20multiple%20files" title="Facebook"><img src="http://blog.nethazard.net/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://meneame.net/submit.php?url=http%3A%2F%2Fblog.nethazard.net%2Fsearch-and-replace-recursively-in-multiple-files%2F" title="Meneame"><img src="http://blog.nethazard.net/wp-content/plugins/sociable/images/meneame.png" title="Meneame" alt="Meneame" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.friendfeed.com/share?title=Search%20and%20replace%20recursively%20in%20multiple%20files&amp;link=http%3A%2F%2Fblog.nethazard.net%2Fsearch-and-replace-recursively-in-multiple-files%2F" title="FriendFeed"><img src="http://blog.nethazard.net/wp-content/plugins/sociable/images/friendfeed.png" title="FriendFeed" alt="FriendFeed" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://identi.ca/notice/new?status_textarea=http%3A%2F%2Fblog.nethazard.net%2Fsearch-and-replace-recursively-in-multiple-files%2F" title="Identi.ca"><img src="http://blog.nethazard.net/wp-content/plugins/sociable/images/identica.png" title="Identi.ca" alt="Identi.ca" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=Search%20and%20replace%20recursively%20in%20multiple%20files%20-%20http%3A%2F%2Fblog.nethazard.net%2Fsearch-and-replace-recursively-in-multiple-files%2F" title="Twitter"><img src="http://blog.nethazard.net/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fblog.nethazard.net%2Fsearch-and-replace-recursively-in-multiple-files%2F&amp;title=Search%20and%20replace%20recursively%20in%20multiple%20files&amp;annotation=Lately%20I%27ve%20been%20working%20with%20a%20lot%20of%20static%20HTML%20files%20with%20lots%20of%20repeating%20text%20structures.%20In%20the%20past%20I%27ve%20talked%20about%20editing%20multiple%20files%20with%20Emacs.%20This%20approach%20works%20very%20well%20when%20the%20number%20of%20multiple%20files%20and%20text%20matches%20in%20each" title="Google Bookmarks"><img src="http://blog.nethazard.net/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
</ul>
</div>
<img src="http://blog.nethazard.net/?ak_action=api_record_view&id=604&type=feed" alt="" />

<p>Related posts:<ol><li><a href='http://blog.nethazard.net/emacs-tip-how-to-edit-multiple-files/' rel='bookmark' title='Permanent Link: Emacs tip: How to edit multiple files on several directories in less than a minute'>Emacs tip: How to edit multiple files on several directories in less than a minute</a></li>
<li><a href='http://blog.nethazard.net/command-line-tools-for-web-developers/' rel='bookmark' title='Permanent Link: command line tools for web developers'>command line tools for web developers</a></li>
<li><a href='http://blog.nethazard.net/going-to-drupalcon-2010/' rel='bookmark' title='Permanent Link: Going to DrupalCon 2010'>Going to DrupalCon 2010</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.nethazard.net/search-and-replace-recursively-in-multiple-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-sa/2.5/mx/</creativeCommons:license>
	</item>
		<item>
		<title>How to install latest Git on Ubuntu</title>
		<link>http://blog.nethazard.net/how-to-install-latest-git-on-ubuntu/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</link>
		<comments>http://blog.nethazard.net/how-to-install-latest-git-on-ubuntu/#comments</comments>
		<pubDate>Tue, 11 Mar 2008 00:59:09 +0000</pubDate>
		<dc:creator>Gabriel Saldaña</dc:creator>
				<category><![CDATA[GNU/Linux, Free Software & Open Source]]></category>
		<category><![CDATA[Programming & Web Development]]></category>
		<category><![CDATA[Tutorials & Tips]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[opensource]]></category>
		<category><![CDATA[version control]]></category>

		<guid isPermaLink="false">http://blog.nethazard.net/2008/03/10/how-to-install-latest-git-on-ubuntu/</guid>
		<description><![CDATA[Git is a distributed version control system. I won&#8217;t go into much details of what Git is or why use Git instead of other VC systems. There&#8217;s plenty other sites where to check that information. I love Git, but there&#8217;s a slight problem with Ubuntu&#8217;s repositories (feisty, gutsy): its an old version. Git&#8217;s version on [...]


Related posts:<ol><li><a href='http://blog.nethazard.net/how-to-install-php-pdo-on-debian-lenny/' rel='bookmark' title='Permanent Link: How to install PHP PDO extensions on Debian Lenny'>How to install PHP PDO extensions on Debian Lenny</a></li>
<li><a href='http://blog.nethazard.net/flash-9-oficial-para-linux-y-como-instalarlo-en-ubuntu/' rel='bookmark' title='Permanent Link: Flash 9 oficial para Linux y como instalarlo en Ubuntu'>Flash 9 oficial para Linux y como instalarlo en Ubuntu</a></li>
<li><a href='http://blog.nethazard.net/kde4-with-ubuntu-gutsy-first-impressions/' rel='bookmark' title='Permanent Link: KDE4 with Ubuntu Gutsy (first impressions)'>KDE4 with Ubuntu Gutsy (first impressions)</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><img src="http://git.or.cz/git-logo.png" alt="Git Logo" /></p>

<p>Git is a distributed version control system. I won&#8217;t go into much details of what Git is or why use Git instead of other VC systems. There&#8217;s <a href="http://del.icio.us/gabrielsaldana/git/">plenty other sites</a> where to check that information.</p>

<p>I love Git, but there&#8217;s a slight problem with Ubuntu&#8217;s repositories (feisty, gutsy): its an old version.</p>

<p>Git&#8217;s version on the repositories is 1.5.2.5. Its an old version and it lacks many of the new cool features like git stash and git citool and many others. So to get the latest version with all the cool features, you have to compile from source.</p>

<p>To do that, you will need the following packages:</p>

<p>First install the all the basic tools for compiling source:</p>

<p><code>sudo aptitude build-essential</code></p>

<p><code>
sudo aptitude install libc6 libcurl3-gnutls libexpat1 zlib1g perl-modules liberror-perl libdigest-sha1-perl cpio openssh patch
gettext curl tk8.4 tcl8.4
</code></p>

<p>Download the tarball from <a href="http://git.or.cz">http://git.or.cz</a> and uncompress it.
<code>
$ tar xvzf git*.tar.gz
</code></p>

<p>Then, run the compilation steps and install:
<code>
$ ./configure
$ make
$ sudo make install
</code></p>

<p>And there it is! Run the following to check your version.
<code>
$ git --version
</code></p>

<p>The only thing that I still don&#8217;t know how to get is git command autocomplete on bash. If you install from repositories, then install from source, you&#8217;ll have it all.</p>

<div class="sociable">
<div class="sociable_tagline">
<strong>Share:</strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fblog.nethazard.net%2Fhow-to-install-latest-git-on-ubuntu%2F&amp;title=How%20to%20install%20latest%20Git%20on%20Ubuntu&amp;bodytext=%0D%0A%0D%0AGit%20is%20a%20distributed%20version%20control%20system.%20I%20won%27t%20go%20into%20much%20details%20of%20what%20Git%20is%20or%20why%20use%20Git%20instead%20of%20other%20VC%20systems.%20There%27s%20plenty%20other%20sites%20where%20to%20check%20that%20information.%0D%0A%0D%0AI%20love%20Git%2C%20but%20there%27s%20a%20slight%20problem%20with%20Ubun" title="Digg"><img src="http://blog.nethazard.net/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fblog.nethazard.net%2Fhow-to-install-latest-git-on-ubuntu%2F&amp;title=How%20to%20install%20latest%20Git%20on%20Ubuntu&amp;notes=%0D%0A%0D%0AGit%20is%20a%20distributed%20version%20control%20system.%20I%20won%27t%20go%20into%20much%20details%20of%20what%20Git%20is%20or%20why%20use%20Git%20instead%20of%20other%20VC%20systems.%20There%27s%20plenty%20other%20sites%20where%20to%20check%20that%20information.%0D%0A%0D%0AI%20love%20Git%2C%20but%20there%27s%20a%20slight%20problem%20with%20Ubun" title="del.icio.us"><img src="http://blog.nethazard.net/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fblog.nethazard.net%2Fhow-to-install-latest-git-on-ubuntu%2F" title="Technorati"><img src="http://blog.nethazard.net/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fblog.nethazard.net%2Fhow-to-install-latest-git-on-ubuntu%2F&amp;title=How%20to%20install%20latest%20Git%20on%20Ubuntu" title="Reddit"><img src="http://blog.nethazard.net/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fblog.nethazard.net%2Fhow-to-install-latest-git-on-ubuntu%2F&amp;title=How%20to%20install%20latest%20Git%20on%20Ubuntu" title="StumbleUpon"><img src="http://blog.nethazard.net/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fblog.nethazard.net%2Fhow-to-install-latest-git-on-ubuntu%2F&amp;t=How%20to%20install%20latest%20Git%20on%20Ubuntu" title="Facebook"><img src="http://blog.nethazard.net/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://meneame.net/submit.php?url=http%3A%2F%2Fblog.nethazard.net%2Fhow-to-install-latest-git-on-ubuntu%2F" title="Meneame"><img src="http://blog.nethazard.net/wp-content/plugins/sociable/images/meneame.png" title="Meneame" alt="Meneame" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.friendfeed.com/share?title=How%20to%20install%20latest%20Git%20on%20Ubuntu&amp;link=http%3A%2F%2Fblog.nethazard.net%2Fhow-to-install-latest-git-on-ubuntu%2F" title="FriendFeed"><img src="http://blog.nethazard.net/wp-content/plugins/sociable/images/friendfeed.png" title="FriendFeed" alt="FriendFeed" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://identi.ca/notice/new?status_textarea=http%3A%2F%2Fblog.nethazard.net%2Fhow-to-install-latest-git-on-ubuntu%2F" title="Identi.ca"><img src="http://blog.nethazard.net/wp-content/plugins/sociable/images/identica.png" title="Identi.ca" alt="Identi.ca" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=How%20to%20install%20latest%20Git%20on%20Ubuntu%20-%20http%3A%2F%2Fblog.nethazard.net%2Fhow-to-install-latest-git-on-ubuntu%2F" title="Twitter"><img src="http://blog.nethazard.net/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fblog.nethazard.net%2Fhow-to-install-latest-git-on-ubuntu%2F&amp;title=How%20to%20install%20latest%20Git%20on%20Ubuntu&amp;annotation=%0D%0A%0D%0AGit%20is%20a%20distributed%20version%20control%20system.%20I%20won%27t%20go%20into%20much%20details%20of%20what%20Git%20is%20or%20why%20use%20Git%20instead%20of%20other%20VC%20systems.%20There%27s%20plenty%20other%20sites%20where%20to%20check%20that%20information.%0D%0A%0D%0AI%20love%20Git%2C%20but%20there%27s%20a%20slight%20problem%20with%20Ubun" title="Google Bookmarks"><img src="http://blog.nethazard.net/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
</ul>
</div>
<img src="http://blog.nethazard.net/?ak_action=api_record_view&id=147&type=feed" alt="" />

<p>Related posts:<ol><li><a href='http://blog.nethazard.net/how-to-install-php-pdo-on-debian-lenny/' rel='bookmark' title='Permanent Link: How to install PHP PDO extensions on Debian Lenny'>How to install PHP PDO extensions on Debian Lenny</a></li>
<li><a href='http://blog.nethazard.net/flash-9-oficial-para-linux-y-como-instalarlo-en-ubuntu/' rel='bookmark' title='Permanent Link: Flash 9 oficial para Linux y como instalarlo en Ubuntu'>Flash 9 oficial para Linux y como instalarlo en Ubuntu</a></li>
<li><a href='http://blog.nethazard.net/kde4-with-ubuntu-gutsy-first-impressions/' rel='bookmark' title='Permanent Link: KDE4 with Ubuntu Gutsy (first impressions)'>KDE4 with Ubuntu Gutsy (first impressions)</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.nethazard.net/how-to-install-latest-git-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-sa/2.5/mx/</creativeCommons:license>
	</item>
		<item>
		<title>Animate your webpage fast and easy with Facebook Animation Library</title>
		<link>http://blog.nethazard.net/animate-your-webpage-fast-and-easy-with-facebook-animation-library/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</link>
		<comments>http://blog.nethazard.net/animate-your-webpage-fast-and-easy-with-facebook-animation-library/#comments</comments>
		<pubDate>Thu, 17 Jan 2008 17:08:17 +0000</pubDate>
		<dc:creator>Gabriel Saldaña</dc:creator>
				<category><![CDATA[Programming & Web Development]]></category>
		<category><![CDATA[Tutorials & Tips]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://blog.nethazard.net/2008/01/17/animate-your-webpage-fast-and-easy-with-facebook-animation-library/</guid>
		<description><![CDATA[Today Facebook released an animation javascript library that modifies CSS properties on the fly. You can download it and use it on your webpages. Its a very light (10.4 Kb compressed version) animation library and its very easy to use. You can chain events or animations to create the effects you want. You can download [...]


Related posts:<ol><li><a href='http://blog.nethazard.net/facebook-terms-for-your-uploaded-content/' rel='bookmark' title='Permanent Link: Facebook terms for your uploaded content'>Facebook terms for your uploaded content</a></li>
<li><a href='http://blog.nethazard.net/nuevas-adquisiciones-para-leer/' rel='bookmark' title='Permanent Link: Nuevas adquisiciones para leer'>Nuevas adquisiciones para leer</a></li>
<li><a href='http://blog.nethazard.net/acm-crossroads-issue-144-online-fast-thanks-to-emacs/' rel='bookmark' title='Permanent Link: ACM Crossroads issue 14.4 online fast, thanks to Emacs'>ACM Crossroads issue 14.4 online fast, thanks to Emacs</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Today Facebook released an animation javascript library that modifies CSS properties on the fly. You can <a href="http://developers.facebook.com/animation/">download</a> it and use it on your webpages.</p>

<p>Its a very light (10.4 Kb compressed version) animation library and its very easy to use. You can chain events or animations to create the effects you want. You can download it on the <a href="http://developers.facebook.com/animation/">facebook developer&#8217;s resources page</a>.</p>

<p>A typical effect used in websites is the flash effect to alert or notify of some action.</p>

<p>Here&#8217;s all you need to accomplish that:</p>

<p><code>
&lt;a href="#" onclick="Animation(this).to('background', '#fff').from('background', '#ffff4b').go(); return false;"&gt;Flash&lt;/a&gt;
</code></p>

<p>The syntax is easy. All you need to do is call Animation(this) on your element and then specify what CSS property you want to change on the .to and .from methods. In this case: go from yellow background to white background. The last .go() method tells Animation to run the specified animation.</p>

<p>You can also mix animations or transitions instead of playing one animation after another. For this you have to use .checkpoint() function and .duration() to specify how long the transition will take (in milliseconds). The checkpoints indicate when the second animation will start playing, allowing you to tweak the default behavior of playing one animation after the other one stopped.</p>

<p>So you can basically change anything: colors, widths, lengths, margins, positions, etc. For complete documentation of the library, go to the <a href="http://wiki.developers.facebook.com/index.php/FBJS/Animation">Facebook Developers Wiki</a>. Its worth checking out.</p>

<p>Its a very simple syntax, with familiar terms (CSS properties) and very lightweight compared to using Prototype and Scriptaculous. Maybe Scriptaulous syntax for doing some animations is simpler or shorter, but you must load Prototype in order to use it, so that makes it heavier. Plus, you need to know the Scriptaculous effects functions and sometimes they are not that tweakable.</p>

<p>Its also nice to see Facebook releasing some open source code (BSD licensed) and contributing back.</p>

<div class="sociable">
<div class="sociable_tagline">
<strong>Share:</strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fblog.nethazard.net%2Fanimate-your-webpage-fast-and-easy-with-facebook-animation-library%2F&amp;title=Animate%20your%20webpage%20fast%20and%20easy%20with%20Facebook%20Animation%20Library&amp;bodytext=Today%20Facebook%20released%20an%20animation%20javascript%20library%20that%20modifies%20CSS%20properties%20on%20the%20fly.%20You%20can%20download%20it%20and%20use%20it%20on%20your%20webpages.%0D%0A%0D%0AIts%20a%20very%20light%20%2810.4%20Kb%20compressed%20version%29%20animation%20library%20and%20its%20very%20easy%20to%20use.%20You%20can%20cha" title="Digg"><img src="http://blog.nethazard.net/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fblog.nethazard.net%2Fanimate-your-webpage-fast-and-easy-with-facebook-animation-library%2F&amp;title=Animate%20your%20webpage%20fast%20and%20easy%20with%20Facebook%20Animation%20Library&amp;notes=Today%20Facebook%20released%20an%20animation%20javascript%20library%20that%20modifies%20CSS%20properties%20on%20the%20fly.%20You%20can%20download%20it%20and%20use%20it%20on%20your%20webpages.%0D%0A%0D%0AIts%20a%20very%20light%20%2810.4%20Kb%20compressed%20version%29%20animation%20library%20and%20its%20very%20easy%20to%20use.%20You%20can%20cha" title="del.icio.us"><img src="http://blog.nethazard.net/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fblog.nethazard.net%2Fanimate-your-webpage-fast-and-easy-with-facebook-animation-library%2F" title="Technorati"><img src="http://blog.nethazard.net/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fblog.nethazard.net%2Fanimate-your-webpage-fast-and-easy-with-facebook-animation-library%2F&amp;title=Animate%20your%20webpage%20fast%20and%20easy%20with%20Facebook%20Animation%20Library" title="Reddit"><img src="http://blog.nethazard.net/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fblog.nethazard.net%2Fanimate-your-webpage-fast-and-easy-with-facebook-animation-library%2F&amp;title=Animate%20your%20webpage%20fast%20and%20easy%20with%20Facebook%20Animation%20Library" title="StumbleUpon"><img src="http://blog.nethazard.net/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fblog.nethazard.net%2Fanimate-your-webpage-fast-and-easy-with-facebook-animation-library%2F&amp;t=Animate%20your%20webpage%20fast%20and%20easy%20with%20Facebook%20Animation%20Library" title="Facebook"><img src="http://blog.nethazard.net/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://meneame.net/submit.php?url=http%3A%2F%2Fblog.nethazard.net%2Fanimate-your-webpage-fast-and-easy-with-facebook-animation-library%2F" title="Meneame"><img src="http://blog.nethazard.net/wp-content/plugins/sociable/images/meneame.png" title="Meneame" alt="Meneame" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.friendfeed.com/share?title=Animate%20your%20webpage%20fast%20and%20easy%20with%20Facebook%20Animation%20Library&amp;link=http%3A%2F%2Fblog.nethazard.net%2Fanimate-your-webpage-fast-and-easy-with-facebook-animation-library%2F" title="FriendFeed"><img src="http://blog.nethazard.net/wp-content/plugins/sociable/images/friendfeed.png" title="FriendFeed" alt="FriendFeed" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://identi.ca/notice/new?status_textarea=http%3A%2F%2Fblog.nethazard.net%2Fanimate-your-webpage-fast-and-easy-with-facebook-animation-library%2F" title="Identi.ca"><img src="http://blog.nethazard.net/wp-content/plugins/sociable/images/identica.png" title="Identi.ca" alt="Identi.ca" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=Animate%20your%20webpage%20fast%20and%20easy%20with%20Facebook%20Animation%20Library%20-%20http%3A%2F%2Fblog.nethazard.net%2Fanimate-your-webpage-fast-and-easy-with-facebook-animation-library%2F" title="Twitter"><img src="http://blog.nethazard.net/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fblog.nethazard.net%2Fanimate-your-webpage-fast-and-easy-with-facebook-animation-library%2F&amp;title=Animate%20your%20webpage%20fast%20and%20easy%20with%20Facebook%20Animation%20Library&amp;annotation=Today%20Facebook%20released%20an%20animation%20javascript%20library%20that%20modifies%20CSS%20properties%20on%20the%20fly.%20You%20can%20download%20it%20and%20use%20it%20on%20your%20webpages.%0D%0A%0D%0AIts%20a%20very%20light%20%2810.4%20Kb%20compressed%20version%29%20animation%20library%20and%20its%20very%20easy%20to%20use.%20You%20can%20cha" title="Google Bookmarks"><img src="http://blog.nethazard.net/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
</ul>
</div>
<img src="http://blog.nethazard.net/?ak_action=api_record_view&id=144&type=feed" alt="" />

<p>Related posts:<ol><li><a href='http://blog.nethazard.net/facebook-terms-for-your-uploaded-content/' rel='bookmark' title='Permanent Link: Facebook terms for your uploaded content'>Facebook terms for your uploaded content</a></li>
<li><a href='http://blog.nethazard.net/nuevas-adquisiciones-para-leer/' rel='bookmark' title='Permanent Link: Nuevas adquisiciones para leer'>Nuevas adquisiciones para leer</a></li>
<li><a href='http://blog.nethazard.net/acm-crossroads-issue-144-online-fast-thanks-to-emacs/' rel='bookmark' title='Permanent Link: ACM Crossroads issue 14.4 online fast, thanks to Emacs'>ACM Crossroads issue 14.4 online fast, thanks to Emacs</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.nethazard.net/animate-your-webpage-fast-and-easy-with-facebook-animation-library/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-sa/2.5/mx/</creativeCommons:license>
	</item>
		<item>
		<title>Como enviar videos al Xbox360 desde Linux</title>
		<link>http://blog.nethazard.net/como-enviar-videos-al-xbox360-desde-linux/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</link>
		<comments>http://blog.nethazard.net/como-enviar-videos-al-xbox360-desde-linux/#comments</comments>
		<pubDate>Sun, 28 Oct 2007 08:48:13 +0000</pubDate>
		<dc:creator>Gabriel Saldaña</dc:creator>
				<category><![CDATA[GNU/Linux, Free Software & Open Source]]></category>
		<category><![CDATA[Tutorials & Tips]]></category>
		<category><![CDATA[avidemux]]></category>
		<category><![CDATA[mp4]]></category>
		<category><![CDATA[videos]]></category>
		<category><![CDATA[xbox369]]></category>

		<guid isPermaLink="false">http://blog.nethazard.net/2007/10/28/como-enviar-videos-al-xbox360-desde-linux/</guid>
		<description><![CDATA[Por fin encontre la forma de enviar videos a mi Xbox360 sin tener que usar Windows. Muy sencillo, solo instala ushare Vas a necesitar libupnp sudo aptitude install libupnp2 ejecuta el siguiente comando para iniciar el servicio de ushare: ushare -p 49153 -D -x -c /home/usuario/videos/ Esto lo puedes poner en un script que se [...]


Related posts:<ol><li><a href='http://blog.nethazard.net/82/' rel='bookmark' title='Permanent Link: Como publicar en tu blog desde Emacs'>Como publicar en tu blog desde Emacs</a></li>
<li><a href='http://blog.nethazard.net/flash-9-oficial-para-linux-y-como-instalarlo-en-ubuntu/' rel='bookmark' title='Permanent Link: Flash 9 oficial para Linux y como instalarlo en Ubuntu'>Flash 9 oficial para Linux y como instalarlo en Ubuntu</a></li>
<li><a href='http://blog.nethazard.net/como-instalar-beryl-y-xgl-en-ubuntu-edgy/' rel='bookmark' title='Permanent Link: Como instalar beryl y Xgl en Ubuntu Edgy'>Como instalar beryl y Xgl en Ubuntu Edgy</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Por fin encontre la forma de enviar videos a mi Xbox360 sin tener que usar Windows.</p>

<p>Muy sencillo, solo instala <a href="http://ushare.geexbox.org">ushare</a></p>

<p>Vas a necesitar libupnp 
<code>sudo aptitude install libupnp2</code></p>

<p>ejecuta el siguiente comando para iniciar el servicio de ushare:</p>

<p><code>ushare -p 49153 -D -x -c /home/usuario/videos/</code></p>

<p>Esto lo puedes poner en un script que se ejecute al iniciar la sesion lo como quieras.</p>

<p>Ahora, si el Xbox360 se queja de que no soporta el tipo de archivo o que no encuentra ningun video, puedes convertir tus videos facilmente con Avidemux.</p>

<p><code>sudo aptitude install avidemux</code></p>

<p>Abres el video, en el lado derecho seleccionas Mpeg4(lavc) como codec de video, FAAC como codec de Audio y MP4 como Formato. Guarda el proyecto y Avidemux empezara a convertir tu video a MP4.</p>

<p>Esta informacion la saque del <a href="http://linux.vanvalkinburgh.org/2007/05/25/stream-videos-to-xbox-360-with-patched-ushare/">Linux HowTo Blog</a>. Habia estado varias semanas buscando una forma de hacer esto hasta que por fin he visto la luz.</p>

<p>Para mas detalles y paquetes deb para Ubuntu, chequen el <a href="http://linux.vanvalkinburgh.org/2007/05/25/stream-videos-to-xbox-360-with-patched-ushare/">post del Linux HowTo Blog</a>.</p>

<div class="sociable">
<div class="sociable_tagline">
<strong>Share:</strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fblog.nethazard.net%2Fcomo-enviar-videos-al-xbox360-desde-linux%2F&amp;title=Como%20enviar%20videos%20al%20Xbox360%20desde%20Linux&amp;bodytext=Por%20fin%20encontre%20la%20forma%20de%20enviar%20videos%20a%20mi%20Xbox360%20sin%20tener%20que%20usar%20Windows.%0D%0A%0D%0AMuy%20sencillo%2C%20solo%20instala%20ushare%20%0D%0A%0D%0AVas%20a%20necesitar%20libupnp%20%0D%0Asudo%20aptitude%20install%20libupnp2%0D%0A%0D%0Aejecuta%20el%20siguiente%20comando%20para%20iniciar%20el%20servicio%20de%20ushare%3A%0D" title="Digg"><img src="http://blog.nethazard.net/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fblog.nethazard.net%2Fcomo-enviar-videos-al-xbox360-desde-linux%2F&amp;title=Como%20enviar%20videos%20al%20Xbox360%20desde%20Linux&amp;notes=Por%20fin%20encontre%20la%20forma%20de%20enviar%20videos%20a%20mi%20Xbox360%20sin%20tener%20que%20usar%20Windows.%0D%0A%0D%0AMuy%20sencillo%2C%20solo%20instala%20ushare%20%0D%0A%0D%0AVas%20a%20necesitar%20libupnp%20%0D%0Asudo%20aptitude%20install%20libupnp2%0D%0A%0D%0Aejecuta%20el%20siguiente%20comando%20para%20iniciar%20el%20servicio%20de%20ushare%3A%0D" title="del.icio.us"><img src="http://blog.nethazard.net/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fblog.nethazard.net%2Fcomo-enviar-videos-al-xbox360-desde-linux%2F" title="Technorati"><img src="http://blog.nethazard.net/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fblog.nethazard.net%2Fcomo-enviar-videos-al-xbox360-desde-linux%2F&amp;title=Como%20enviar%20videos%20al%20Xbox360%20desde%20Linux" title="Reddit"><img src="http://blog.nethazard.net/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fblog.nethazard.net%2Fcomo-enviar-videos-al-xbox360-desde-linux%2F&amp;title=Como%20enviar%20videos%20al%20Xbox360%20desde%20Linux" title="StumbleUpon"><img src="http://blog.nethazard.net/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fblog.nethazard.net%2Fcomo-enviar-videos-al-xbox360-desde-linux%2F&amp;t=Como%20enviar%20videos%20al%20Xbox360%20desde%20Linux" title="Facebook"><img src="http://blog.nethazard.net/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://meneame.net/submit.php?url=http%3A%2F%2Fblog.nethazard.net%2Fcomo-enviar-videos-al-xbox360-desde-linux%2F" title="Meneame"><img src="http://blog.nethazard.net/wp-content/plugins/sociable/images/meneame.png" title="Meneame" alt="Meneame" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.friendfeed.com/share?title=Como%20enviar%20videos%20al%20Xbox360%20desde%20Linux&amp;link=http%3A%2F%2Fblog.nethazard.net%2Fcomo-enviar-videos-al-xbox360-desde-linux%2F" title="FriendFeed"><img src="http://blog.nethazard.net/wp-content/plugins/sociable/images/friendfeed.png" title="FriendFeed" alt="FriendFeed" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://identi.ca/notice/new?status_textarea=http%3A%2F%2Fblog.nethazard.net%2Fcomo-enviar-videos-al-xbox360-desde-linux%2F" title="Identi.ca"><img src="http://blog.nethazard.net/wp-content/plugins/sociable/images/identica.png" title="Identi.ca" alt="Identi.ca" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=Como%20enviar%20videos%20al%20Xbox360%20desde%20Linux%20-%20http%3A%2F%2Fblog.nethazard.net%2Fcomo-enviar-videos-al-xbox360-desde-linux%2F" title="Twitter"><img src="http://blog.nethazard.net/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fblog.nethazard.net%2Fcomo-enviar-videos-al-xbox360-desde-linux%2F&amp;title=Como%20enviar%20videos%20al%20Xbox360%20desde%20Linux&amp;annotation=Por%20fin%20encontre%20la%20forma%20de%20enviar%20videos%20a%20mi%20Xbox360%20sin%20tener%20que%20usar%20Windows.%0D%0A%0D%0AMuy%20sencillo%2C%20solo%20instala%20ushare%20%0D%0A%0D%0AVas%20a%20necesitar%20libupnp%20%0D%0Asudo%20aptitude%20install%20libupnp2%0D%0A%0D%0Aejecuta%20el%20siguiente%20comando%20para%20iniciar%20el%20servicio%20de%20ushare%3A%0D" title="Google Bookmarks"><img src="http://blog.nethazard.net/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
</ul>
</div>
<img src="http://blog.nethazard.net/?ak_action=api_record_view&id=129&type=feed" alt="" />

<p>Related posts:<ol><li><a href='http://blog.nethazard.net/82/' rel='bookmark' title='Permanent Link: Como publicar en tu blog desde Emacs'>Como publicar en tu blog desde Emacs</a></li>
<li><a href='http://blog.nethazard.net/flash-9-oficial-para-linux-y-como-instalarlo-en-ubuntu/' rel='bookmark' title='Permanent Link: Flash 9 oficial para Linux y como instalarlo en Ubuntu'>Flash 9 oficial para Linux y como instalarlo en Ubuntu</a></li>
<li><a href='http://blog.nethazard.net/como-instalar-beryl-y-xgl-en-ubuntu-edgy/' rel='bookmark' title='Permanent Link: Como instalar beryl y Xgl en Ubuntu Edgy'>Como instalar beryl y Xgl en Ubuntu Edgy</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.nethazard.net/como-enviar-videos-al-xbox360-desde-linux/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-sa/2.5/mx/</creativeCommons:license>
	</item>
		<item>
		<title>Como sincronizar archivos entre computadoras</title>
		<link>http://blog.nethazard.net/como-sincronizar-archivos-entre-computadoras/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</link>
		<comments>http://blog.nethazard.net/como-sincronizar-archivos-entre-computadoras/#comments</comments>
		<pubDate>Sat, 21 Jul 2007 21:52:20 +0000</pubDate>
		<dc:creator>Gabriel Saldaña</dc:creator>
				<category><![CDATA[GNU/Linux, Free Software & Open Source]]></category>
		<category><![CDATA[Tutorials & Tips]]></category>

		<guid isPermaLink="false">http://blog.nethazard.net/2007/07/21/como-sincronizar-archivos-entre-computadoras/</guid>
		<description><![CDATA[Tengo una PC en mi casa y una laptop que me acompaña a todos lados. Muchas veces trabajo mas en mi laptop que en mi PC, pero cuando estoy en casa prefiero mi PC por el monitor y todo mas grande. El problema esta en que siempre tengo que estar mandando archivos de un lado [...]


Related posts:<ol><li><a href='http://blog.nethazard.net/82/' rel='bookmark' title='Permanent Link: Como publicar en tu blog desde Emacs'>Como publicar en tu blog desde Emacs</a></li>
<li><a href='http://blog.nethazard.net/hacienda-y-las-computadoras-vivas/' rel='bookmark' title='Permanent Link: Hacienda y las computadoras &#8220;vivas&#8221;'>Hacienda y las computadoras &#8220;vivas&#8221;</a></li>
<li><a href='http://blog.nethazard.net/como-instalar-beryl-y-xgl-en-ubuntu-edgy/' rel='bookmark' title='Permanent Link: Como instalar beryl y Xgl en Ubuntu Edgy'>Como instalar beryl y Xgl en Ubuntu Edgy</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Tengo una PC en mi casa y una laptop que me acompaña a todos lados. Muchas veces trabajo mas en mi laptop que en mi PC, pero cuando estoy en casa prefiero mi PC por el monitor y todo mas grande. El problema esta en que siempre tengo que estar mandando archivos de un lado a otro, borrando unos, actualizando otros, etc etc. Esto puede costarte horas de trabajo o de relajacion.</p>

<p>Una solucion clasica seria usar rsync para respaldar mi laptop en mi PC. El problema con esto es que rsync es unidireccional. Esto es, si hago cambios en mi PC, mi laptop nunca vera esos cambios a menos que yo mismo los haga&#8230;lo cual me regresa al problema de actualizacion de archivos.</p>

<p>Encontre una aplicacion muy buena que ayuda a resolver esta situacion: Unison.</p>

<p><img src="http://www.cis.upenn.edu/~bcpierce/unison/Unison.gif" alt="Unison logo" /></p>

<p><a href="http://www.cis.upenn.edu/~bcpierce/unison/">Unison</a> en un programa que sincroniza archivos ya sea entre carpetas locales o entre varias computadoras, via ssh, rsh o conexion por socket.</p>

<p>Explicare brevemente (un pequeño tutorial) de como usar Unison.</p>

<p>Primero, instalamos Unison en ambas computadoras. Si solo lo instalas en una, tendras un mensaje de error que dice: &#8220;lost connection&#8221; (penosamente, esto me tomo unos minutos en descubrir).  Unison es compatible con Windows, Linux, BSD y MacOS X, por lo tanto puedes sincronizar archivos entre computadoras con diferentes sistemas operativos, algo bastante util.</p>

<p>En mi caso, tengo mi laptop y PC con Ubuntu Feisty, y Unison esta en los repositorios:</p>

<p><code>sudo aptitude install unison unison-gtk</code></p>

<p>Esto instala la aplicacion de linea de comandos y una interfaz grafica (GUI) para manejarlo mas facil (dependiendo de tus preferencias).</p>

<p>Una vez hecho esto en ambas computadoras, y asuimendo que tambien tienen ssh corriendo, podemos abrir unison desde el menu. En el caso de Kubuntu (mi caso) esta en K menu &gt; Internet &gt; Unison.</p>

<p><img src="http://blog.nethazard.net/wp-content/uploads/2007/07/unison_profile.png" alt="Unison elegir profile" /></p>

<p>Nos aparece una seleccion de profile, seleccionamos el default que ya viene ahi, y damos click en OK.</p>

<p><img src="http://blog.nethazard.net/wp-content/uploads/2007/07/unison_select_warning.png" alt="Aviso de primera vez" /></p>

<p>Como es la primera vez que corremos Unison nos aparece un warning que dice esto y otros detalles, damos click en OK.</p>

<p><img src="http://blog.nethazard.net/wp-content/uploads/2007/07/unison_select_root.png" alt="elige un directorio local" /></p>

<p>Despues seleccionamos la carpeta local (o sea, la de la computadora donde estas) que queremos sincronizar. La carpeta se sincronizara con todos sus archivos internos, incluyendo sub carpetas. Si deseas ignorar alguna sub carpeta o archivos (como temporales o cosas asi) lo puedes hacer mas adelante.</p>

<p><img src="http://blog.nethazard.net/wp-content/uploads/2007/07/unison_select_remote.png" alt="selecciona host remoto" /></p>

<p>Luego nos pide la otra carpeta local o remota (o sea otra computadora) con la que vamos a sincronizar, y que protocolo se va a usar en caso de ser remota. En este caso yo prefiero usar ssh.</p>

<p><img src="http://blog.nethazard.net/wp-content/uploads/2007/07/unison_select_password.png" alt="escribe tu password" /></p>

<p>Al dar click en OK, nos pedira el password del host al que vamos a conectarnos.</p>

<p><img src="http://blog.nethazard.net/wp-content/uploads/2007/07/unison_select_check.png" alt="elige archivos y resuelve conflictos" /></p>

<p>Unison comenzara a ver los archivos de ambos lados y mostrara las diferencias. Cuando unison no sabe que hacer con el archivo, nos lo indicara con un signo de interrogacion rojo. Tendremos que atender el problema manualmente, diciendo si queremos los cambios de un lado o del otro. Aqui tambien podremos elegir si queremos ignorar algunos archivos o carpetas.</p>

<p><img src="http://blog.nethazard.net/wp-content/uploads/2007/07/unison_select_resolve.png" alt="resuelve conflictos" /></p>

<p>Una vez resueltos los conflictos, damos click en el boton de Go, y la sincronizacion comienza. Ve a tomarte un cafe, o refresco, porque va a tardar un poco, dependiendo de que tantos archivos y del tamaño de lo que estes sincronizando, ah y la conexion.</p>

<p>En el statusbar en la parte de abajo de la ventana veremos el progreso de la sincronizacion.</p>

<p><img src="http://blog.nethazard.net/wp-content/uploads/2007/07/unison_select_sync_complete.png" alt="Sincronizacion terminada" /></p>

<p>Listo, una vez completada la sincronizacion, puedes cerrar Unison y disfrutar de tus archivos actualizados en donde los necesitas.</p>

<div class="sociable">
<div class="sociable_tagline">
<strong>Share:</strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fblog.nethazard.net%2Fcomo-sincronizar-archivos-entre-computadoras%2F&amp;title=Como%20sincronizar%20archivos%20entre%20computadoras&amp;bodytext=Tengo%20una%20PC%20en%20mi%20casa%20y%20una%20laptop%20que%20me%20acompa%C3%B1a%20a%20todos%20lados.%20Muchas%20veces%20trabajo%20mas%20en%20mi%20laptop%20que%20en%20mi%20PC%2C%20pero%20cuando%20estoy%20en%20casa%20prefiero%20mi%20PC%20por%20el%20monitor%20y%20todo%20mas%20grande.%20El%20problema%20esta%20en%20que%20siempre%20tengo%20que%20estar%20mandan" title="Digg"><img src="http://blog.nethazard.net/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fblog.nethazard.net%2Fcomo-sincronizar-archivos-entre-computadoras%2F&amp;title=Como%20sincronizar%20archivos%20entre%20computadoras&amp;notes=Tengo%20una%20PC%20en%20mi%20casa%20y%20una%20laptop%20que%20me%20acompa%C3%B1a%20a%20todos%20lados.%20Muchas%20veces%20trabajo%20mas%20en%20mi%20laptop%20que%20en%20mi%20PC%2C%20pero%20cuando%20estoy%20en%20casa%20prefiero%20mi%20PC%20por%20el%20monitor%20y%20todo%20mas%20grande.%20El%20problema%20esta%20en%20que%20siempre%20tengo%20que%20estar%20mandan" title="del.icio.us"><img src="http://blog.nethazard.net/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fblog.nethazard.net%2Fcomo-sincronizar-archivos-entre-computadoras%2F" title="Technorati"><img src="http://blog.nethazard.net/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fblog.nethazard.net%2Fcomo-sincronizar-archivos-entre-computadoras%2F&amp;title=Como%20sincronizar%20archivos%20entre%20computadoras" title="Reddit"><img src="http://blog.nethazard.net/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fblog.nethazard.net%2Fcomo-sincronizar-archivos-entre-computadoras%2F&amp;title=Como%20sincronizar%20archivos%20entre%20computadoras" title="StumbleUpon"><img src="http://blog.nethazard.net/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fblog.nethazard.net%2Fcomo-sincronizar-archivos-entre-computadoras%2F&amp;t=Como%20sincronizar%20archivos%20entre%20computadoras" title="Facebook"><img src="http://blog.nethazard.net/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://meneame.net/submit.php?url=http%3A%2F%2Fblog.nethazard.net%2Fcomo-sincronizar-archivos-entre-computadoras%2F" title="Meneame"><img src="http://blog.nethazard.net/wp-content/plugins/sociable/images/meneame.png" title="Meneame" alt="Meneame" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.friendfeed.com/share?title=Como%20sincronizar%20archivos%20entre%20computadoras&amp;link=http%3A%2F%2Fblog.nethazard.net%2Fcomo-sincronizar-archivos-entre-computadoras%2F" title="FriendFeed"><img src="http://blog.nethazard.net/wp-content/plugins/sociable/images/friendfeed.png" title="FriendFeed" alt="FriendFeed" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://identi.ca/notice/new?status_textarea=http%3A%2F%2Fblog.nethazard.net%2Fcomo-sincronizar-archivos-entre-computadoras%2F" title="Identi.ca"><img src="http://blog.nethazard.net/wp-content/plugins/sociable/images/identica.png" title="Identi.ca" alt="Identi.ca" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=Como%20sincronizar%20archivos%20entre%20computadoras%20-%20http%3A%2F%2Fblog.nethazard.net%2Fcomo-sincronizar-archivos-entre-computadoras%2F" title="Twitter"><img src="http://blog.nethazard.net/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fblog.nethazard.net%2Fcomo-sincronizar-archivos-entre-computadoras%2F&amp;title=Como%20sincronizar%20archivos%20entre%20computadoras&amp;annotation=Tengo%20una%20PC%20en%20mi%20casa%20y%20una%20laptop%20que%20me%20acompa%C3%B1a%20a%20todos%20lados.%20Muchas%20veces%20trabajo%20mas%20en%20mi%20laptop%20que%20en%20mi%20PC%2C%20pero%20cuando%20estoy%20en%20casa%20prefiero%20mi%20PC%20por%20el%20monitor%20y%20todo%20mas%20grande.%20El%20problema%20esta%20en%20que%20siempre%20tengo%20que%20estar%20mandan" title="Google Bookmarks"><img src="http://blog.nethazard.net/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
</ul>
</div>
<img src="http://blog.nethazard.net/?ak_action=api_record_view&id=100&type=feed" alt="" />

<p>Related posts:<ol><li><a href='http://blog.nethazard.net/82/' rel='bookmark' title='Permanent Link: Como publicar en tu blog desde Emacs'>Como publicar en tu blog desde Emacs</a></li>
<li><a href='http://blog.nethazard.net/hacienda-y-las-computadoras-vivas/' rel='bookmark' title='Permanent Link: Hacienda y las computadoras &#8220;vivas&#8221;'>Hacienda y las computadoras &#8220;vivas&#8221;</a></li>
<li><a href='http://blog.nethazard.net/como-instalar-beryl-y-xgl-en-ubuntu-edgy/' rel='bookmark' title='Permanent Link: Como instalar beryl y Xgl en Ubuntu Edgy'>Como instalar beryl y Xgl en Ubuntu Edgy</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.nethazard.net/como-sincronizar-archivos-entre-computadoras/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-sa/2.5/mx/</creativeCommons:license>
	</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk (user agent is rejected)
Database Caching 30/139 queries in 0.748 seconds using disk

Served from: blog.nethazard.net @ 2010-09-09 18:27:16 -->