<?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>ditoinfo in english &#187; howto</title>
	<atom:link href="http://danteregis.com/category/howto/feed/" rel="self" type="application/rss+xml" />
	<link>http://danteregis.com</link>
	<description>talking about programming and computer stuff</description>
	<lastBuildDate>Tue, 09 Jun 2009 21:57:13 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Using ABNTEX on Max OS X</title>
		<link>http://danteregis.com/2008/12/using-abntex-on-max-os-x/</link>
		<comments>http://danteregis.com/2008/12/using-abntex-on-max-os-x/#comments</comments>
		<pubDate>Thu, 18 Dec 2008 03:48:36 +0000</pubDate>
		<dc:creator>Dante Regis</dc:creator>
				<category><![CDATA[howto]]></category>
		<category><![CDATA[mac]]></category>

		<guid isPermaLink="false">http://ditoinfo.wordpress.com/?p=97</guid>
		<description><![CDATA[If you ever want to use ABNT rules on Latex documents, ABNTex is a great resource. ABNT for those who don&#8217;t know, is Brazil&#8217;s national &#8220;ISO&#8221;. 
My experience using it on a Mac was very straightforward. First, I download and installed MacTeX. It is a huge download, more than 1GB. It may work if you get [...]]]></description>
			<content:encoded><![CDATA[<p>If you ever want to use ABNT rules on Latex documents, <a href="http://abntex.codigolivre.org.br" target="_blank">ABNTex</a> is a great resource. ABNT for those who don&#8217;t know, is Brazil&#8217;s national &#8220;ISO&#8221;. </p>
<p>My experience using it on a Mac was very straightforward. First, I download and installed <a href="http://www.tug.org/mactex/" target="_blank">MacTeX</a>. It is a huge download, more than 1GB. It may work if you get the smaller versions, but I never tested.</p>
<p>Then, I was as simple as downloading ABNTex and unpacking it on ~/Library/texmf/tex/latex . This directory structure may not exist, so you may need to create the folders after Library. </p>
<p>Done. It worked fine for my monograph latex files.</p>
]]></content:encoded>
			<wfw:commentRss>http://danteregis.com/2008/12/using-abntex-on-max-os-x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Change Vim Swap (.swp) files default path</title>
		<link>http://danteregis.com/2007/11/change-vim-swap-swp-files-default-path/</link>
		<comments>http://danteregis.com/2007/11/change-vim-swap-swp-files-default-path/#comments</comments>
		<pubDate>Sun, 18 Nov 2007 23:56:58 +0000</pubDate>
		<dc:creator>Dante Regis</dc:creator>
				<category><![CDATA[howto]]></category>

		<guid isPermaLink="false">http://ditoinfo.wordpress.com/2007/11/18/change-vim-swap-swp-files-default-path/</guid>
		<description><![CDATA[I work with subversion as a version controller, and I&#8217;m a big fan of console. But it&#8217;s quite annoying to type a &#8220;svn status&#8221; and receive lots of question marks on something.swp or .sw0 . Other version control system probably suffer from this issue, unless they have recursive ignore (which, as far as I can [...]]]></description>
			<content:encoded><![CDATA[<p>I work with subversion as a version controller, and I&#8217;m a big fan of console. But it&#8217;s quite annoying to type a &#8220;svn status&#8221; and receive lots of question marks on something.swp or .sw0 . Other version control system probably suffer from this issue, unless they have recursive ignore (which, as far as I can tell, svn doesn&#8217;t)</p>
<p>Well, I just found <a href="http://www.vim.org/tips/tip.php?tip_id=20">Vim Tip #20</a>, which teaches us how to change the folder path for swp files. This way, all swap files for Vim (and, of course, gVim) will be saved on the specified directory. </p>
<p>The comand is :</p>
<p>set directory=/path/to/dir,/path/to/another/dir</p>
<p>There is also &#8220;set backupdir=/path/to/dir&#8221; to move those something.rb~</p>
<p>Hope this helps you as much as it helped me!</p>
]]></content:encoded>
			<wfw:commentRss>http://danteregis.com/2007/11/change-vim-swap-swp-files-default-path/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>howto use rtorrent to download torrents</title>
		<link>http://danteregis.com/2007/06/howto-use-rtorrent-to-download-torrents/</link>
		<comments>http://danteregis.com/2007/06/howto-use-rtorrent-to-download-torrents/#comments</comments>
		<pubDate>Tue, 05 Jun 2007 02:06:55 +0000</pubDate>
		<dc:creator>Dante Regis</dc:creator>
				<category><![CDATA[howto]]></category>

		<guid isPermaLink="false">http://ditoinfo.wordpress.com/2007/06/05/howto-use-rtorrent-to-download-torrents/</guid>
		<description><![CDATA[So, you are on our lovely (GNU/)Linux OS right? And, you, being a smart guy (or girl), uses the best ever made torrent client: Azureus, right? Well, I was just like you, untill I found (well, I didn&#8217;t find it, actually, I was told of it&#8217;s existence on a  web-forum&#8230;) RTORRENT!
I don&#8217;t know why, but [...]]]></description>
			<content:encoded><![CDATA[<p>So, you are on our lovely (GNU/)Linux OS right? And, you, being a smart guy (or girl), uses the best ever made torrent client: Azureus, right? Well, I was just like you, untill I found (well, I didn&#8217;t find it, actually, I was told of it&#8217;s existence on a  web-forum&#8230;) RTORRENT!</p>
<p>I don&#8217;t know why, but I like to keep things light. rtorrent is just that: a bit torrent client that runs on the command line. But it&#8217;s not like a wget, that you run, and watch the output. It is ncurses bases, so you will have a user interface, just not graphic. On Ubuntu, it is on the repositories, so you can apt-get install rtorrent and you&#8217;re ready to go!</p>
<p>Here are some tips on how to use it:</p>
<p>First of all, you WILL, some time, want to exit rtorrent. Don&#8217;t try vi-style here. To exit, just type CTRL + Q. Simple right?</p>
<p>Opening a torrent for download:</p>
<ol>
<li>type &#8220;rtorrent  my_torrent_file.torrent&#8221; if you are not already inside the app OR</li>
<li>type ENTER on the main interface to  get the open &#8220;dialog&#8221;: it has TAB completion, so you don&#8217;t have to remember the hole path.</li>
</ol>
<p>Starting the Download</p>
<ul>
<li>If you openned the torrent using the first option, it will start STOPPED. To start it, select it using your keyboard arrows. A few asterisks will be shown to indicate wich torrent is currently selected.  Type Ctrl+S to start the download.</li>
</ul>
<p>Information about the download:</p>
<ul>
<li>You can see more detailed info about each running torrent by selecting it (with the up and down arrows) and pressing the RIGHT arrow. It will show you a new screen, where you can, again, use the arrows to move. To return to the main screen, just keep pressing the LEFT arrow till you are there.</li>
</ul>
<p>These are some basic usage tips. If you want to became the rtorrent guru (I just want to download a few files), I suggest you visit <a href="http://kmandla.wordpress.com/2007/05/02/howto-use-rtorrent-like-a-pro/" target="_blank">this website</a>, a great blog from K Mandla, where I learned these things I&#8217;m passing to you. Or you can go straight to the <a href="http://libtorrent.rakshasa.no/wiki/RTorrentUserGuide" target="_blank">RTorrent user guide</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://danteregis.com/2007/06/howto-use-rtorrent-to-download-torrents/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Moving and using Firefox Plugins on Swiftfox</title>
		<link>http://danteregis.com/2007/05/moving-and-using-firefox-plugins-on-swiftfox/</link>
		<comments>http://danteregis.com/2007/05/moving-and-using-firefox-plugins-on-swiftfox/#comments</comments>
		<pubDate>Mon, 21 May 2007 02:20:53 +0000</pubDate>
		<dc:creator>Dante Regis</dc:creator>
				<category><![CDATA[firefox]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://ditoinfo.wordpress.com/2007/05/21/moving-and-using-firefox-plugins-on-swiftfox/</guid>
		<description><![CDATA[So, have you ever heard of Swiftfox? If you are coming from google, probably yes. It is just like Firefox (the same source code) but it is compiled with optimizators for the major CPUs avaiable. So, it will perform better on your machine. It&#8217;s like having Firefox on Steroids. So, since it has the same [...]]]></description>
			<content:encoded><![CDATA[<p>So, have you ever heard of Swiftfox? If you are coming from google, probably yes. It is just like Firefox (the same source code) but it is compiled with optimizators for the major CPUs avaiable. So, it will perform better on your machine. It&#8217;s like having Firefox on Steroids. So, since it has the same source code, you can use your existing extensions (and install new ones) as well as use your plugins. There&#8217;s an platform independent installer on the website, but if it does not import the plugins for you, or, for some reason, you have installed it using another method (like Automatix, or tarball), you can create soft links from your existing plugins to use them on swift fox.</p>
<p>1. Go to /usr/lib/firefox/plugins</p>
<p>2. Do a &#8216;ls -l&#8217;  so that you can see where the link points to</p>
<p>3. Now, create links on /opt/swiftfox/plugins to the original files</p>
<p>Tip: ln receives the target and then the name for the link (I always misplace them)</p>
<p>Example:</p>
<p>Giving ls -l you find out that the java plugin (firefox-javaplugin.so) is in /etc/alternatives/firefox-javaplugin.so. So you do a</p>
<p>ln -s /etc/alternatives/firefox-javaplugin.so /opt/swiftfox/plugins/</p>
<p>Swiftfox will automatically use the new plugins.</p>
]]></content:encoded>
			<wfw:commentRss>http://danteregis.com/2007/05/moving-and-using-firefox-plugins-on-swiftfox/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>how to install ruby on rails and lighttpd on ubuntu</title>
		<link>http://danteregis.com/2007/03/how-to-install-ruby-on-rails-and-lighttpd-on-ubuntu/</link>
		<comments>http://danteregis.com/2007/03/how-to-install-ruby-on-rails-and-lighttpd-on-ubuntu/#comments</comments>
		<pubDate>Tue, 06 Mar 2007 05:39:46 +0000</pubDate>
		<dc:creator>Dante Regis</dc:creator>
				<category><![CDATA[howto]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://ditoinfo.wordpress.com/2007/03/06/how-to-install-ruby-on-rails-and-lighttpd-on-ubuntu/</guid>
		<description><![CDATA[Hey folks. It&#8217;s interesting how difficult it was for me to get Rails up and running on Lighttpd. I&#8217;ve tried lot&#8217;s and lot&#8217;s of tutorials, but none of them seemed fit to me. I came up with this solution, wich is actually a merge of lot&#8217;s tips. Feel free to contribute, and I hope that [...]]]></description>
			<content:encoded><![CDATA[<p>Hey folks. It&#8217;s interesting how difficult it was for me to get Rails up and running on Lighttpd. I&#8217;ve tried lot&#8217;s and lot&#8217;s of tutorials, but none of them seemed fit to me. I came up with this solution, wich is actually a merge of lot&#8217;s tips. Feel free to contribute, and I hope that this helps you out.</p>
<p>1) First, include UNIVERSE on your sources.list. It is located on /etc/apt/sources.list. If you are unsure, take a look at <a href="http://www.ubuntu-nl.org/source-o-matic/" target="_blank">this web-site</a>. It may help you out. Remember to <strong>sudo</strong>, or be root to do everything<span id="more-20"></span></p>
<p>2) Then update your package list and upgrade your machine.<br />
<code><br />
apt-get update<br />
apt-get upgrade<br />
</code></p>
<p>3) Install the build-essential package. It has the most-used tools to compile programs from source.<br />
<code><br />
apt-get install build-essential<br />
</code></p>
<p>4) Install ruby and everything it needs.<br />
<code><br />
apt-get install ruby1.8 ruby1.8-dev irb1.8 rdoc1.8 libyaml-ruby libzlib-ruby libopenssl-ruby<br />
</code></p>
<p>5) Create simbolic links for ruby. The installation made before create binaries with unfriendly names (e.g. ruby1.8). So, we create links to be able to use &#8220;ruby&#8221; and &#8220;irb&#8221; from the console:<br />
<code><br />
ln -s /usr/bin/ruby1.8 /usr/bin/ruby<br />
ln -s /usr/bin/irb1.8 /usr/bin/irb<br />
</code></p>
<p>6) Download and install RubyGems<br />
<code><br />
cd ~<br />
mkdir ruby_install/ruby_gems<br />
cd ruby_install/ruby_gems<br />
wget http://rubyforge.org/frs/download.php/11289/rubygems-0.9.0.tgz<br />
tar xvzf rubygems-0.9.0.tgz<br />
cd rubygems-0.9.0<br />
ruby setup.rb<br />
</code></p>
<p>7) Install Rails with RubyGems<br />
<code><br />
gem install rails --include-dependencies<br />
</code><br />
PS: Sometimes, on machines behind network proxies, the above command will not work. On this case, you can manually install each of Rails components. They can be downloaded from <a href="http://www.rubyforge.org">rubyforge.org</a> and must be installed on this order:</p>
<ul>
<li>Rake</li>
<li>ActiveSupport</li>
<li>ActiveRecord</li>
<li>ActionPack</li>
<li>ActionMailer</li>
<li>ActionWebService</li>
<li>Rails</li>
</ul>
<p>8 ) Install RedCloth if you plan on using textilize.<br />
<code><br />
gem install redcloth<br />
</code></p>
<p>9) Now, it&#8217;s time to install FastCGI<br />
<code><br />
apt-get install libfcgi libfcgi-dev libfcgi-ruby1.8<br />
gem install fcgi<br />
</code></p>
<p>10) Install MySQL client libraries (if you are using MySQL)<br />
<code><br />
apt-get install libmysqlclient15-dev libmysql-ruby1.8<br />
gem install mysql<br />
</code><br />
PS: When gem install asks you whitch version of mysql to install, just choose the greater version number for your system.</p>
<p>11) Install lighttdp<br />
<code><br />
apt-get install lighttpd<br />
</code></p>
<p>12) Save a backup copy of your /etc/lighttpd/lighttpd.conf</p>
<p>13) Use this lighttpd.conf. Remember to change <strong>var.railsdir</strong><br />
server.modules           = ( &#8220;mod_rewrite&#8221;, &#8220;mod_accesslog&#8221;, &#8220;mod_fastcgi&#8221;, &#8220;mod_compress&#8221;, &#8220;mod_expire&#8221; )</p>
<p>server.pid-file = “/var/run/lighttpd.pid”</p>
<p>var.railsdir = &#8220;/home/web/test&#8221;</p>
<p>server.error-handler-404 = &#8220;/dispatch.fcgi&#8221;<br />
server.document-root     = var.railsdir + &#8220;/public/&#8221;</p>
<p>server.errorlog          = var.railsdir + &#8220;/log/lighttpd.error.log&#8221;<br />
accesslog.filename       = var.railsdir + &#8220;/log/lighttpd.access.log&#8221;</p>
<p>url.rewrite              = ( &#8220;^/$&#8221; =&gt; &#8220;index.html&#8221;, &#8220;^([^.]+)$&#8221; =&gt; &#8220;$1.html&#8221; )</p>
<p>compress.filetype        = ( &#8220;text/plain&#8221;, &#8220;text/html&#8221;, &#8220;text/css&#8221;, &#8220;text/javascript&#8221; )<br />
compress.cache-dir       = var.railsdir + &#8220;/tmp/cache&#8221;</p>
<p>expire.url               = ( &#8220;/favicon.ico&#8221;  =&gt; &#8220;access 3 days&#8221;,<br />
&#8220;/images/&#8221;      =&gt; &#8220;access 3 days&#8221;,<br />
&#8220;/stylesheets/&#8221; =&gt; &#8220;access 3 days&#8221;,<br />
&#8220;/javascripts/&#8221; =&gt; &#8220;access 3 days&#8221; )</p>
<p># Change *-procs to 2 if you need to use Upload Progress or other tasks that<br />
# *need* to execute a second request while the first is still pending.<br />
fastcgi.server      = ( &#8220;.fcgi&#8221; =&gt; ( &#8220;localhost&#8221; =&gt; (<br />
&#8220;min-procs&#8221;       =&gt; 4,<br />
&#8220;max-procs&#8221;       =&gt; 4,<br />
&#8220;socket&#8221;          =&gt; var.railsdir + &#8220;/tmp/sockets/fcgi.socket&#8221;,<br />
&#8220;bin-path&#8221;        =&gt; var.railsdir + &#8220;/public/dispatch.fcgi&#8221;,<br />
&#8220;bin-environment&#8221; =&gt; ( &#8220;RAILS_ENV&#8221; =&gt; &#8220;production&#8221; )<br />
) ) )</p>
<p>mimetype.assign = (<br />
&#8220;.css&#8221;        =&gt;  &#8220;text/css&#8221;,<br />
&#8220;.gif&#8221;        =&gt;  &#8220;image/gif&#8221;,<br />
&#8220;.htm&#8221;        =&gt;  &#8220;text/html&#8221;,<br />
&#8220;.html&#8221;       =&gt;  &#8220;text/html&#8221;,<br />
&#8220;.jpeg&#8221;       =&gt;  &#8220;image/jpeg&#8221;,<br />
&#8220;.jpg&#8221;        =&gt;  &#8220;image/jpeg&#8221;,<br />
&#8220;.js&#8221;         =&gt;  &#8220;text/javascript&#8221;,<br />
&#8220;.png&#8221;        =&gt;  &#8220;image/png&#8221;,<br />
&#8220;.swf&#8221;        =&gt;  &#8220;application/x-shockwave-flash&#8221;,<br />
&#8220;.txt&#8221;        =&gt;  &#8220;text/plain&#8221;<br />
)</p>
<p># Making sure file uploads above 64k always work when using IE or Safari<br />
# For more information, see http://trac.lighttpd.net/trac/ticket/360<br />
$HTTP["useragent"] =~ &#8220;^(.*MSIE.*)|(.*AppleWebKit.*)$&#8221; {<br />
server.max-keep-alive-requests = 0<br />
}</p>
<p>14) Set adequate permissions on your application&#8217;s folders:<br />
<code><br />
chmod -R 775 log/<br />
chmod -R 775 public/<br />
chmod -R 775 tmp/<br />
</code></p>
<p>15) You&#8217;re done.</p>
<p><strike>There&#8217;s a small catch on this stuff: You won&#8217;t be able to /etc/init.d/services/lighttpd stop or restart. For some reason, lighttpd loose it&#8217;s connection with init.d, and you can only stop it sending TERM signals from the command line:<br />
</strike> <code><strike><br />
$ sudo ps -A | grep lighttpd<br />
1234   lighttpd<br />
$ sudo kill -9 1234</strike><br />
</code></p>
<p>Using  server.pid-file = “/var/run/lighttpd.pid” will take care of the job! Config example updated. Thanks, raul.<br />
That&#8217;s it. I hope it helped you.<br />
Best</p>
]]></content:encoded>
			<wfw:commentRss>http://danteregis.com/2007/03/how-to-install-ruby-on-rails-and-lighttpd-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>HowTo Forge</title>
		<link>http://danteregis.com/2007/02/howto-forge/</link>
		<comments>http://danteregis.com/2007/02/howto-forge/#comments</comments>
		<pubDate>Sat, 24 Feb 2007 06:18:45 +0000</pubDate>
		<dc:creator>Dante Regis</dc:creator>
				<category><![CDATA[howto]]></category>

		<guid isPermaLink="false">http://ditoinfo.wordpress.com/2007/02/24/howto-forge/</guid>
		<description><![CDATA[If you are interested in GNU/Linux and other free software, then you probably already know this website. If you&#8217;re not, feel free to take a look at it. It is full of how-tos, explaining, step by step, complicated procedures like configuring an anti-spam server for your company. Worth a while! HowToForge.com .
]]></description>
			<content:encoded><![CDATA[<p>If you are interested in GNU/Linux and other free software, then you probably already know this website. If you&#8217;re not, feel free to take a look at it. It is full of how-tos, explaining, step by step, complicated procedures like configuring an anti-spam server for your company. Worth a while! <a href="http://www.howtoforge.com/" target="_blank">HowToForge.com</a> .</p>
]]></content:encoded>
			<wfw:commentRss>http://danteregis.com/2007/02/howto-forge/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
