<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-5041188081161039144</id><updated>2012-01-28T05:14:50.202-08:00</updated><category term='ruby'/><category term='linux'/><category term='asp'/><category term='wma'/><category term='smtp'/><category term='testes'/><category term='mysql'/><category term='java'/><category term='tp link'/><category term='telefones uteis'/><category term='php'/><category term='VirtualBox'/><category term='hosting'/><category term='monkey island'/><category term='oop'/><category term='virtualização'/><category term='Bebidas'/><category term='vlc'/><category term='desenvolvimento'/><category term='mp4'/><category term='firefox'/><category term='jquery'/><category term='m4a'/><category term='imap'/><category term='rails'/><category term='mac'/><category term='telnet'/><category term='imagem'/><category term='mp3'/><category term='ubuntu'/><category term='Android'/><category term='ftp'/><category term='humor'/><title type='text'>federico*</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://federico-digiorgio.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://federico-digiorgio.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Federico</name><uri>http://www.blogger.com/profile/02419411433077910018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>50</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5041188081161039144.post-5173701784750453614</id><published>2011-09-30T09:42:00.000-07:00</published><updated>2011-09-30T10:22:51.672-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='jquery'/><title type='text'>Colorindo os Domingos no jQuery-UI Datepicker</title><content type='html'>$('#something').datepicker({&lt;br /&gt;    beforeShowDay:function(date){&lt;br /&gt;        if(date.toString().indexOf('Sun ')!=-1)&lt;br /&gt;            return [1,'red'];else&lt;br /&gt;            return [1];&lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;css:&lt;br /&gt;&lt;br /&gt;.ui-datepicker td.red a{&lt;br /&gt;color:#ff0000 !importat;&lt;br /&gt;}    &lt;br /&gt;&lt;br /&gt;!important é para dar prioridade ante um conflito no CSS&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5041188081161039144-5173701784750453614?l=federico-digiorgio.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://federico-digiorgio.blogspot.com/feeds/5173701784750453614/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5041188081161039144&amp;postID=5173701784750453614' title='1 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default/5173701784750453614'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default/5173701784750453614'/><link rel='alternate' type='text/html' href='http://federico-digiorgio.blogspot.com/2011/09/colorindo-os-domingos-no-jquery-ui.html' title='Colorindo os Domingos no jQuery-UI Datepicker'/><author><name>Federico</name><uri>http://www.blogger.com/profile/02419411433077910018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5041188081161039144.post-34976764396265610</id><published>2011-08-10T07:20:00.000-07:00</published><updated>2011-08-10T07:28:12.961-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='desenvolvimento'/><category scheme='http://www.blogger.com/atom/ns#' term='Android'/><title type='text'>Executar um Toast dentro de uma Thread</title><content type='html'>		Button btn = (Button) findViewById(R.id.btnAdd);&lt;br /&gt;&lt;br /&gt;		btn.setOnClickListener(new OnClickListener() {&lt;br /&gt;			@Override&lt;br /&gt;			public void onClick(View v) {&lt;br /&gt;				new Thread(new Runnable() {&lt;br /&gt;					@Override&lt;br /&gt;					public void run() {&lt;br /&gt;						runOnUiThread(new Runnable() {&lt;br /&gt;							public void run() {&lt;br /&gt;								Toast.makeText(MinhaClasse.this, "Tracking number is invalid", Toast.LENGTH_LONG).show();&lt;br /&gt;							}&lt;br /&gt;						});&lt;br /&gt;					}&lt;br /&gt;				}).start();&lt;br /&gt;			}&lt;br /&gt;		});&lt;br /&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5041188081161039144-34976764396265610?l=federico-digiorgio.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://federico-digiorgio.blogspot.com/feeds/34976764396265610/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5041188081161039144&amp;postID=34976764396265610' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default/34976764396265610'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default/34976764396265610'/><link rel='alternate' type='text/html' href='http://federico-digiorgio.blogspot.com/2011/08/executar-um-toast-dentro-de-uma-thread.html' title='Executar um Toast dentro de uma Thread'/><author><name>Federico</name><uri>http://www.blogger.com/profile/02419411433077910018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5041188081161039144.post-5937968916110446420</id><published>2011-03-29T12:44:00.001-07:00</published><updated>2011-03-29T12:44:34.990-07:00</updated><title type='text'>Airsoft</title><content type='html'>http://www.uncompany.com/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5041188081161039144-5937968916110446420?l=federico-digiorgio.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://federico-digiorgio.blogspot.com/feeds/5937968916110446420/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5041188081161039144&amp;postID=5937968916110446420' title='1 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default/5937968916110446420'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default/5937968916110446420'/><link rel='alternate' type='text/html' href='http://federico-digiorgio.blogspot.com/2011/03/airsoft.html' title='Airsoft'/><author><name>Federico</name><uri>http://www.blogger.com/profile/02419411433077910018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5041188081161039144.post-6073537049678327981</id><published>2010-08-02T06:30:00.000-07:00</published><updated>2012-01-02T03:11:55.081-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><title type='text'>CRON - Tarefas agendas no Linux</title><content type='html'>&lt;span class="Apple-style-span"  style="line-height: 22px; font-family:arial, verdana, tahoma;font-size:100%;color:#666666;"  &gt;&lt;div&gt;&lt;b&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal; "&gt;Parâmetros :&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal; "&gt;* * * * * [ &lt;/span&gt;&lt;span class="Apple-style-span" style="font-weight: normal; "&gt;&lt;b&gt;&lt;div style="display: inline !important; "&gt;&lt;span class="Apple-style-span" style="font-weight: normal; "&gt;comando a ser executado&lt;/span&gt;&lt;/div&gt;&lt;/b&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-weight: normal; "&gt;&lt;b&gt;&lt;div style="display: inline !important; "&gt;&lt;span class="Apple-style-span" style="font-weight: normal; "&gt; ]&lt;/span&gt;&lt;/div&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal; "&gt;&lt;b&gt;&lt;div style="display: inline !important; "&gt;&lt;span class="Apple-style-span" style="font-weight: normal; "&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;onde cada asterisco representa :&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;primeiro =&amp;gt; &lt;/span&gt;&lt;span class="Apple-style-span" style="font-weight: normal; "&gt;&lt;b&gt;&lt;div style="display: inline !important; "&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;minuto(0-59)&lt;/span&gt;&lt;/div&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal; "&gt;&lt;b&gt;&lt;div style="display: inline !important; "&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;segundo =&amp;gt; &lt;/span&gt;&lt;/div&gt;&lt;/b&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-weight: normal;  "&gt;&lt;b&gt;&lt;div style="display: inline !important; "&gt;&lt;span class="Apple-style-span" style="font-weight: normal;  "&gt;&lt;span class="Apple-style-span" style="line-height: 22px;  "&gt;hora(0-23)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;terceiro&lt;/span&gt;&lt;span class="Apple-style-span" style="font-weight: normal; "&gt;&lt;b&gt;&lt;div style="display: inline !important; "&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;b&gt;&lt;div style="display: inline !important; "&gt;&lt;span class="Apple-style-span" style="font-weight: normal; "&gt;&lt;b&gt;&lt;div style="display: inline !important; "&gt;&lt;span class="Apple-style-span" style="font-weight: normal; "&gt; =&amp;gt; &lt;/span&gt;&lt;/div&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;/b&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-weight: normal; "&gt;&lt;b&gt;&lt;div style="display: inline !important; "&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;dia(1-31)&lt;/span&gt;&lt;/div&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;quarto&lt;/span&gt;&lt;span class="Apple-style-span" style="font-weight: normal; "&gt;&lt;b&gt;&lt;div style="display: inline !important; "&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;b&gt;&lt;div style="display: inline !important; "&gt;&lt;span class="Apple-style-span" style="font-weight: normal; "&gt;&lt;b&gt;&lt;div style="display: inline !important; "&gt;&lt;span class="Apple-style-span" style="font-weight: normal; "&gt; =&amp;gt; &lt;/span&gt;&lt;/div&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;/b&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-weight: normal; "&gt;&lt;b&gt;&lt;div style="display: inline !important; "&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;mes(1-12)&lt;/span&gt;&lt;/div&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;quinto&lt;/span&gt;&lt;span class="Apple-style-span" style="font-weight: normal; "&gt;&lt;b&gt;&lt;div style="display: inline !important; "&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;b&gt;&lt;div style="display: inline !important; "&gt;&lt;span class="Apple-style-span" style="font-weight: normal; "&gt;&lt;b&gt;&lt;div style="display: inline !important; "&gt;&lt;span class="Apple-style-span" style="font-weight: normal; "&gt;&lt;b&gt;&lt;div style="display: inline !important; "&gt;&lt;span class="Apple-style-span" style="font-weight: normal; "&gt;&lt;b&gt;&lt;div style="display: inline !important; "&gt;&lt;span class="Apple-style-span" style="font-weight: normal; "&gt;&lt;b&gt;&lt;div style="display: inline !important; "&gt;&lt;span class="Apple-style-span" style="font-weight: normal; "&gt; =&amp;gt; &lt;/span&gt;&lt;/div&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;/b&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-weight: normal; "&gt;&lt;b&gt;&lt;div style="display: inline !important; "&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;b&gt;&lt;div style="display: inline !important; "&gt;&lt;span class="Apple-style-span" style="font-weight: normal; "&gt;&lt;b&gt;&lt;div style="display: inline !important; "&gt;&lt;span class="Apple-style-span" style="font-weight: normal; "&gt;&lt;b&gt;&lt;div style="display: inline !important; "&gt;&lt;span class="Apple-style-span" style="font-weight: normal; "&gt;dia_da_semana(0-6)&lt;/span&gt;&lt;/div&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;Editar as tarefas agendadas&lt;/span&gt;&lt;/div&gt;&lt;div&gt;crontab -e&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;Listar tarefas agendas&lt;/span&gt;&lt;/div&gt;&lt;div&gt;crontab -l&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;Exemplo&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal; "&gt;00 01 * * 2-6 java -jar /home/federico/teste.jar&lt;/span&gt;&lt;/div&gt;&lt;/b&gt;&lt;/div&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5041188081161039144-6073537049678327981?l=federico-digiorgio.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://federico-digiorgio.blogspot.com/feeds/6073537049678327981/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5041188081161039144&amp;postID=6073537049678327981' title='1 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default/6073537049678327981'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default/6073537049678327981'/><link rel='alternate' type='text/html' href='http://federico-digiorgio.blogspot.com/2010/08/cron-tarefas-agendas-no-linux.html' title='CRON - Tarefas agendas no Linux'/><author><name>Federico</name><uri>http://www.blogger.com/profile/02419411433077910018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5041188081161039144.post-560940482022306836</id><published>2010-05-19T11:12:00.000-07:00</published><updated>2010-05-19T11:16:23.111-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='jquery'/><title type='text'>Jquery - Checkboxes</title><content type='html'>&lt;div&gt;Como saber se um checkbox está checked?&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Nunca uso mas quando preciso esqueço, hehehe&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;$('#checkBox').attr('checked'); &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;ou&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;$('#edit-checkbox-id').is(':checked'); &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5041188081161039144-560940482022306836?l=federico-digiorgio.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://federico-digiorgio.blogspot.com/feeds/560940482022306836/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5041188081161039144&amp;postID=560940482022306836' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default/560940482022306836'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default/560940482022306836'/><link rel='alternate' type='text/html' href='http://federico-digiorgio.blogspot.com/2010/05/jquery-checkboxes.html' title='Jquery - Checkboxes'/><author><name>Federico</name><uri>http://www.blogger.com/profile/02419411433077910018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5041188081161039144.post-3074790155019718417</id><published>2010-05-12T20:47:00.000-07:00</published><updated>2010-05-12T20:49:52.728-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='php'/><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu'/><title type='text'>Ubuntu 10.04 - Primeiros problemas</title><content type='html'>&lt;div&gt;&lt;div&gt;Cakephp&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://iarmar.com/blog/cakephp-deprecated-warnings/"&gt;http://iarmar.com/blog/cakephp-deprecated-warnings/&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5041188081161039144-3074790155019718417?l=federico-digiorgio.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://federico-digiorgio.blogspot.com/feeds/3074790155019718417/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5041188081161039144&amp;postID=3074790155019718417' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default/3074790155019718417'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default/3074790155019718417'/><link rel='alternate' type='text/html' href='http://federico-digiorgio.blogspot.com/2010/05/ubuntu-1004-primeiros-problemas.html' title='Ubuntu 10.04 - Primeiros problemas'/><author><name>Federico</name><uri>http://www.blogger.com/profile/02419411433077910018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5041188081161039144.post-4880870899409986565</id><published>2010-04-04T15:56:00.000-07:00</published><updated>2010-04-04T16:04:34.873-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='virtualização'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='VirtualBox'/><category scheme='http://www.blogger.com/atom/ns#' term='mac'/><title type='text'>Compartilhar pastas entre Mac OS X  e Ubuntu Linux</title><content type='html'>Host : Mac OS X&lt;div&gt;Virtual : Ubuntu Linux 8.04&lt;span class="Apple-style-span"   style="  color: rgb(57, 55, 51); line-height: 18px; font-family:arial, helvetica, sans-serif;font-size:13px;"&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="  color: rgb(57, 55, 51); line-height: 18px; font-family:arial, helvetica, sans-serif;font-size:13px;"&gt;&lt;ul&gt;&lt;li style="margin-bottom: 0.3em; "&gt;Selecione a máquina e vá em Dispositivos &gt; Pastas compartilhadas&lt;/li&gt;&lt;li style="margin-bottom: 0.3em; "&gt;Adicione um new folder, em Folder Path coloque o caminho da pasta que está na máquina host. Em Folder Name dê um nome para a pasta&lt;/li&gt;&lt;li style="margin-bottom: 0.3em; "&gt;Clique em OK e inicialize a máquina virtual&lt;/li&gt;&lt;li style="margin-bottom: 0.3em; "&gt;No ubuntu, crie uma pasta para montar o share.&lt;/li&gt;&lt;li style="margin-bottom: 0.3em; "&gt;Abra o terminal e digite&lt;span class="Apple-style-span"  style=" ;font-family:arial;"&gt; &lt;span class="Apple-style-span"  style=" line-height: normal; font-family:Georgia, serif;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="color:#CC0000;"&gt;sudo mount -t vboxsf [ nome do compartilhamento ] [ path para o diretorio ]&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style="margin-bottom: 0.3em; "&gt;&lt;span class="Apple-style-span"   style="color: rgb(204, 0, 0);   line-height: normal; font-family:Georgia, serif;font-size:small;"&gt;[ nome do compartilhamento ]&lt;/span&gt; é o nome que foi escolhido para a pasta no segundo passo e &lt;span class="Apple-style-span"   style="color: rgb(204, 0, 0);   line-height: normal; font-family:Georgia, serif;font-size:small;"&gt;[ path para o diretorio ]&lt;/span&gt; é o caminho do folder criado no Ubuntu.&lt;/li&gt;&lt;/ul&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5041188081161039144-4880870899409986565?l=federico-digiorgio.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://federico-digiorgio.blogspot.com/feeds/4880870899409986565/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5041188081161039144&amp;postID=4880870899409986565' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default/4880870899409986565'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default/4880870899409986565'/><link rel='alternate' type='text/html' href='http://federico-digiorgio.blogspot.com/2010/04/compartihar-pastas-entre-mac-os-x-e.html' title='Compartilhar pastas entre Mac OS X  e Ubuntu Linux'/><author><name>Federico</name><uri>http://www.blogger.com/profile/02419411433077910018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5041188081161039144.post-2296831292703275018</id><published>2010-02-25T06:09:00.000-08:00</published><updated>2010-02-25T06:10:42.286-08:00</updated><title type='text'>Dinheiro não é tudo</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_Zt0f8qfeCWM/S4aEr0iSGaI/AAAAAAAACCE/2iqHk1Kd44Q/s1600-h/garfield-squish.gif"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 95px;" src="http://2.bp.blogspot.com/_Zt0f8qfeCWM/S4aEr0iSGaI/AAAAAAAACCE/2iqHk1Kd44Q/s320/garfield-squish.gif" alt="" id="BLOGGER_PHOTO_ID_5442183088095500706" border="0" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5041188081161039144-2296831292703275018?l=federico-digiorgio.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://federico-digiorgio.blogspot.com/feeds/2296831292703275018/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5041188081161039144&amp;postID=2296831292703275018' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default/2296831292703275018'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default/2296831292703275018'/><link rel='alternate' type='text/html' href='http://federico-digiorgio.blogspot.com/2010/02/dinheiro-nao-e-tudo.html' title='Dinheiro não é tudo'/><author><name>Federico</name><uri>http://www.blogger.com/profile/02419411433077910018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_Zt0f8qfeCWM/S4aEr0iSGaI/AAAAAAAACCE/2iqHk1Kd44Q/s72-c/garfield-squish.gif' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5041188081161039144.post-3434981724226191084</id><published>2009-12-08T04:24:00.000-08:00</published><updated>2009-12-08T04:34:40.224-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='virtualização'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='VirtualBox'/><title type='text'>VirtualBox - Clonar um disco virtual</title><content type='html'>&lt;span style="font-size:85%;"&gt;Você deve estar imaginando que clonar uma máquina seria simples, pois bastaria dar um Ctrl+c no arquivo original e um Ctrl+v para colar e, assim, teríamos dois arquivos com o mesmo conteúdo, ou seja, um backup da mesma. Pois é, se você fizer isso, a sua cópia não irá rodar no VirtualBox.&lt;br /&gt;&lt;br /&gt;Isso ocorre porque cada disco virtual criado recebe um número de identificação (UUID) específico, o qual é armazenado dentro da própria imagem do disco. O VirtualBox somente carrega discos virtuais unitários, o que significa que se você usou a técnica Ctrl+c/Ctrl+v, você terá criado uma cópia com o mesmo UUID do disco original e, portanto, o VirtualBox se recusará a carregar uma das imagens.&lt;br /&gt;&lt;br /&gt;Para poder realizar uma clonagem de um disco virtual, o VirtualBox disponibiliza o utilitário VBoxManage, o qual possui diversas funcionalidades, e é chamado por meio da linha de comando. Para clonar um disco virtual você deverá seguir os seguintes passos:&lt;br /&gt;&lt;br /&gt;1. acesse a pasta do VirtualBox com o comando no terminal:&lt;br /&gt;&lt;br /&gt;cd /home/seu_login/.VirtualBox/HardDisks&lt;br /&gt;&lt;br /&gt;2. chame o programa VBoxManage seguido dos parâmentros necessários:&lt;br /&gt;&lt;br /&gt;VBoxManage clonehd nome_disco_a_ser_clonado nome_do_clone&lt;br /&gt;&lt;br /&gt;No meu caso, se eu desejar clonar meu disco virtual do Windows XP, os comandos seriam:&lt;br /&gt;&lt;br /&gt;cd /home/trinity/.VirtualBox/HardDisks&lt;br /&gt;VBoxManage clonehd WinXP.vdi WinXP_backup.vdi&lt;br /&gt;&lt;br /&gt;Note que:&lt;br /&gt;&lt;br /&gt;VBoxManage = nome do utilitário&lt;br /&gt;clonehd = tarefa (copiar o hd)&lt;br /&gt;WinXP.vdi = nome do meu disco virtual que desejo clonar&lt;br /&gt;WinXP_backup.vdi = nome que será dado ao clone&lt;br /&gt;&lt;br /&gt;Assim que o disco começar a ser clonado, você poderá acompanhar o seu andamento pelo próprio terminal por meio da indicação da porcentagem de trabalho concluído. Ao terminar, vá até a pasta onde os discos são armazenados:&lt;br /&gt;&lt;br /&gt;/home/seu_login/.VirtualBox/HardDisks&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;Fonte: &lt;/span&gt;&lt;a href="http://ubuntulinuxbr.blogspot.com/2009/08/como-criar-clones-de-suas-maquinas.html"&gt;&lt;span style="font-weight: bold;font-size:78%;" &gt;http://ubuntulinuxbr.blogspot.com&lt;/span&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5041188081161039144-3434981724226191084?l=federico-digiorgio.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://federico-digiorgio.blogspot.com/feeds/3434981724226191084/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5041188081161039144&amp;postID=3434981724226191084' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default/3434981724226191084'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default/3434981724226191084'/><link rel='alternate' type='text/html' href='http://federico-digiorgio.blogspot.com/2009/12/virtualbox-clonar-um-disco-virtual.html' title='VirtualBox - Clonar um disco virtual'/><author><name>Federico</name><uri>http://www.blogger.com/profile/02419411433077910018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5041188081161039144.post-8618115805409532795</id><published>2009-09-06T11:29:00.000-07:00</published><updated>2009-09-06T11:31:25.063-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Bebidas'/><category scheme='http://www.blogger.com/atom/ns#' term='monkey island'/><title type='text'>Receita de GROG</title><content type='html'>&lt;object width="425" height="344"&gt;&lt;param name="movie" value="http://www.youtube.com/v/etkN_pD1_cQ&amp;hl=pt-br&amp;fs=1&amp;"&gt;&lt;/param&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;/param&gt;&lt;param name="allowscriptaccess" value="always"&gt;&lt;/param&gt;&lt;embed src="http://www.youtube.com/v/etkN_pD1_cQ&amp;hl=pt-br&amp;fs=1&amp;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5041188081161039144-8618115805409532795?l=federico-digiorgio.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://federico-digiorgio.blogspot.com/feeds/8618115805409532795/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5041188081161039144&amp;postID=8618115805409532795' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default/8618115805409532795'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default/8618115805409532795'/><link rel='alternate' type='text/html' href='http://federico-digiorgio.blogspot.com/2009/09/receita-de-grog.html' title='Receita de GROG'/><author><name>Federico</name><uri>http://www.blogger.com/profile/02419411433077910018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5041188081161039144.post-751302655316767367</id><published>2009-08-23T18:35:00.000-07:00</published><updated>2009-08-23T18:36:13.067-07:00</updated><title type='text'>Você precisa mesmo de reuniões?</title><content type='html'>http://nerdson.com/blog/groupthink/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5041188081161039144-751302655316767367?l=federico-digiorgio.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://federico-digiorgio.blogspot.com/feeds/751302655316767367/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5041188081161039144&amp;postID=751302655316767367' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default/751302655316767367'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default/751302655316767367'/><link rel='alternate' type='text/html' href='http://federico-digiorgio.blogspot.com/2009/08/voce-precisa-mesmo-de-reunioes.html' title='Você precisa mesmo de reuniões?'/><author><name>Federico</name><uri>http://www.blogger.com/profile/02419411433077910018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5041188081161039144.post-5417956786251108755</id><published>2009-08-10T06:01:00.000-07:00</published><updated>2009-08-10T06:02:17.423-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mysql'/><title type='text'>Replicação assíncronica</title><content type='html'>http://tips.blog.br/2009/?p=200&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5041188081161039144-5417956786251108755?l=federico-digiorgio.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://federico-digiorgio.blogspot.com/feeds/5417956786251108755/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5041188081161039144&amp;postID=5417956786251108755' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default/5417956786251108755'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default/5417956786251108755'/><link rel='alternate' type='text/html' href='http://federico-digiorgio.blogspot.com/2009/08/replicacao-assincronica.html' title='Replicação assíncronica'/><author><name>Federico</name><uri>http://www.blogger.com/profile/02419411433077910018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5041188081161039144.post-6342407861201738648</id><published>2009-07-29T13:28:00.000-07:00</published><updated>2009-07-29T13:29:36.778-07:00</updated><title type='text'>Backup MySQL</title><content type='html'>&lt;pre&gt;&lt;code&gt;#!/bin/bash&lt;br /&gt;U_PASTA="/home/user/backup" # &lt; -- substitua pelo caminho onde vai salvar o backup&lt;br /&gt;U_DATA=$(/bin/date +%Y%m%d%H%M%S)&lt;br /&gt;U_CAMINHO="backup-$U_DATA.sql"&lt;br /&gt;U_HOST="localhost"&lt;br /&gt;U_USER="root"&lt;br /&gt;U_PASSWORD="********"&lt;br /&gt;U_DATABASE="minha_base_mysql"&lt;br /&gt;U_EMAIL="meuemail@meudominio.com.br"&lt;br /&gt;#&lt;br /&gt;erro=""&lt;br /&gt;#&lt;br /&gt;cd $U_PASTA&lt;br /&gt;#&lt;br /&gt;#&lt;br /&gt;# Faz o backup do MySQL&lt;br /&gt;#&lt;br /&gt;mysqldump -h $U_HOST -u $U_USER -p$U_PASSWORD $U_DATABASE &gt; $U_CAMINHO&lt;br /&gt;if [ $? -ne 0 ]&lt;br /&gt;then&lt;br /&gt;   erro="Erro na geracao do SQL"&lt;br /&gt;fi&lt;br /&gt;#&lt;br /&gt;#&lt;br /&gt;# Compacta o arquivo&lt;br /&gt;#&lt;br /&gt;if [ "$erro" == "" ]&lt;br /&gt;then&lt;br /&gt;   gzip $U_CAMINHO&lt;br /&gt;   if [ $? -ne 0 ]&lt;br /&gt;   then&lt;br /&gt;       erro="Erro ao compactar o SQL"&lt;br /&gt;   fi&lt;br /&gt;fi&lt;br /&gt;#&lt;br /&gt;# Apaga arquivos antigos e mantem apenas os 'n' ultimos&lt;br /&gt;#&lt;br /&gt;n=10&lt;br /&gt;c=0&lt;br /&gt;for i in *.sql.gz&lt;br /&gt;do&lt;br /&gt;   let c=$c+1&lt;br /&gt;done&lt;br /&gt;if [ $c -gt $n ]&lt;br /&gt;then&lt;br /&gt;   for i in *.sql.gz&lt;br /&gt;   do&lt;br /&gt;       if [ $c -le $n ]&lt;br /&gt;       then&lt;br /&gt;           break&lt;br /&gt;       fi&lt;br /&gt;       rm $i&lt;br /&gt;       let c=$c-1&lt;br /&gt;   done&lt;br /&gt;fi&lt;br /&gt;#&lt;br /&gt;if [ "$erro" == "" ]&lt;br /&gt;then&lt;br /&gt;   erro="Backup efetuado com sucesso!"&lt;br /&gt;   subject="[Sucesso]"&lt;br /&gt;else&lt;br /&gt;   subject="[Erro]"&lt;br /&gt;fi&lt;br /&gt;echo "$erro =&gt; $U_CAMINHO.gz" | mail -s "$subject Backup em $(/bin/date +'%d/%m/%Y %H:%M:%S')" $U_EMAIL&lt;br /&gt;#&lt;br /&gt;# Volta para a pasta anterior&lt;br /&gt;cd -&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Para agendar a execução, digite:&lt;/p&gt; &lt;p&gt;&lt;code&gt;$ crontab -e&lt;/code&gt;&lt;/p&gt; &lt;p&gt;Vai abrir um editor de texto com o arquivo de configuração da &lt;em&gt;cron&lt;/em&gt;. Daí você pode digitar algo como:&lt;/p&gt; &lt;code&gt;# m h  dom mon dow   command 00 02 * * * /home/user/backup_bd.sh&lt;/code&gt; &lt;p&gt;Onde &lt;em&gt;backup_bd.sh&lt;/em&gt; é o arquivo do script que passei acima.&lt;/p&gt;&lt;pre&gt;&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5041188081161039144-6342407861201738648?l=federico-digiorgio.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://federico-digiorgio.blogspot.com/feeds/6342407861201738648/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5041188081161039144&amp;postID=6342407861201738648' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default/6342407861201738648'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default/6342407861201738648'/><link rel='alternate' type='text/html' href='http://federico-digiorgio.blogspot.com/2009/07/backup-mysql.html' title='Backup MySQL'/><author><name>Federico</name><uri>http://www.blogger.com/profile/02419411433077910018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5041188081161039144.post-5584773321588174741</id><published>2009-07-29T13:13:00.000-07:00</published><updated>2009-07-29T13:18:49.511-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='firefox'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><title type='text'>Melhorando a performance do Firefox</title><content type='html'>&lt;p&gt;A partir da versão 3, o Firefox guarda os favoritos, histórico e mais um punhado de coisas em sqlite. Por isso, manter essa base otimizada pode ser muito saudável ao seu Firefox.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;&lt;/strong&gt;No Ubuntu (testei no 9.04), instale o sqlite3.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Abra o terminal e digite:&lt;/p&gt; &lt;p&gt;&lt;code&gt;sudo aptitude install sqlite3&lt;/code&gt;&lt;/p&gt; &lt;p&gt;Depois, ainda no terminal, acesse a pasta de seu perfil (profile) do Firefox:&lt;/p&gt; &lt;p&gt;&lt;code&gt;cd ~/.mozilla/firefox/alguma_coisa_estranha.default&lt;/code&gt;&lt;/p&gt; &lt;p&gt;Varia de acordo com o computador. No meu, esse &lt;em&gt;alguma_coisa_estranha.default&lt;/em&gt; é &lt;em&gt;73cm0ffy.default&lt;/em&gt;.&lt;/p&gt; &lt;p&gt;Você vai ver que essa pasta possui vários  &lt;a href="http://andrenoel.com.br/2009/07/27/melhorando-a-performance-do-firefox-aspirando-o-sqlite/#" onclick="hwClick225110361345(-2089211736);return false;" style="border-bottom: 1px dotted; color: rgb(0, 102, 0); text-decoration: underline;" onmouseover="hw225110361345(event, this, '-2089211736'); this.style.cursor='hand'; this.style.textDecoration='underline'; this.style.borderBottom='solid';" onmouseout="hideMaybe(event, this); this.style.cursor='hand'; this.style.textDecoration='underline'; this.style.borderBottom='dotted 1px'; " oncontextmenu="return false;"&gt;arquivos&lt;/a&gt; com a extensão .sqlite, que é o que queremos otimizar. Para isso, feche o Firefox (não antes de terminar de ler esse post ou copiá-lo &lt;img src="http://andrenoel.com.br/wp-includes/images/smilies/icon_razz.gif" alt=":P" class="wp-smiley" /&gt; ), depois simplesmente  &lt;a href="http://andrenoel.com.br/2009/07/27/melhorando-a-performance-do-firefox-aspirando-o-sqlite/#" onclick="hwClick1147166295045(-2089211736);return false;" style="border-bottom: 1px dotted; color: rgb(0, 102, 0); text-decoration: underline;" onmouseover="hw1147166295045(event, this, '-2089211736'); this.style.cursor='hand'; this.style.textDecoration='underline'; this.style.borderBottom='solid';" onmouseout="hideMaybe(event, this); this.style.cursor='hand'; this.style.textDecoration='underline'; this.style.borderBottom='dotted 1px'; " oncontextmenu="return false;"&gt;digite&lt;/a&gt;, para cada arquivo:&lt;/p&gt; &lt;p&gt;&lt;code&gt;sqlite3 nome_do_arquivo.sqlite vacuum&lt;/code&gt;&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Tem como fazer em todos os arquivos de uma vez?&lt;/strong&gt; Claro. Você está mexendo em um terminal  &lt;a href="http://andrenoel.com.br/2009/07/27/melhorando-a-performance-do-firefox-aspirando-o-sqlite/#" onclick="hwClick1010949860145(-2089211736);return false;" style="border-bottom: 1px dotted; color: rgb(0, 102, 0); text-decoration: underline;" onmouseover="hw1010949860145(event, this, '-2089211736'); this.style.cursor='hand'; this.style.textDecoration='underline'; this.style.borderBottom='solid';" onmouseout="hideMaybe(event, this); this.style.cursor='hand'; this.style.textDecoration='underline'; this.style.borderBottom='dotted 1px'; " oncontextmenu="return false;"&gt;Linux&lt;/a&gt;! Para fazer todos de uma vez, digite:&lt;/p&gt; &lt;p&gt;&lt;code&gt;for i in *.sqlite; do sqlite3 $i vacuum; done&lt;/code&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5041188081161039144-5584773321588174741?l=federico-digiorgio.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://federico-digiorgio.blogspot.com/feeds/5584773321588174741/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5041188081161039144&amp;postID=5584773321588174741' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default/5584773321588174741'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default/5584773321588174741'/><link rel='alternate' type='text/html' href='http://federico-digiorgio.blogspot.com/2009/07/melhorando-performance-do-firefox.html' title='Melhorando a performance do Firefox'/><author><name>Federico</name><uri>http://www.blogger.com/profile/02419411433077910018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5041188081161039144.post-5258840433807887642</id><published>2009-07-29T04:50:00.000-07:00</published><updated>2009-07-29T04:51:45.881-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='humor'/><title type='text'>Les Luthiers</title><content type='html'>TELEPATÍA: aparato de TV para la hermana de mi mamá.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;BERRO: Bastor Alebán.&lt;br /&gt;CAMARÓN: Aparato enorme que saca fotos.&lt;br /&gt;TELÓN: Tela de 50 metros cuadrados o más.&lt;br /&gt;ANÓMALO: Hemorroides.&lt;br /&gt;BARBARISMO: Colección exagerada de muñecas barbie.&lt;br /&gt;CHINCHILLA: Auchenchia de un objeto para chentarche.&lt;br /&gt;DIADEMAS: Veintinueve de febrero.&lt;br /&gt;MANIFIESTA: Juerga de cacahuetes..&lt;br /&gt;MEOLLO: Me escucho.&lt;br /&gt;ENDOSCOPIO: Prepararse para todos los exámenes, excepto dos.&lt;br /&gt;NITRATO: Ni lo intento.&lt;br /&gt;INESTABLE: Mesa norteamericana de Inés&lt;br /&gt;ENVERGADURA: Lugar de la anatomía humana en dónde se colocan los condones.&lt;br /&gt;ONDEANDO: Onde estoy.&lt;br /&gt;DECIMAL: Pronunciar equivocadamente.&lt;br /&gt;BECERRO: Que ve u observa una loma o colina.&lt;br /&gt;BERMUDAS: Observar a las que no hablan.&lt;br /&gt;POLINESIA: Mujer Policía que no se entera de nada.&lt;br /&gt;DILEMAS: Háblale más.&lt;br /&gt;MEOLLO: Me escucho.&lt;br /&gt;ATIBORRARTE: Desaparecerte.&lt;br /&gt;CACAREO: Excremento del preso.&lt;br /&gt;CACHIVACHE: Pequeño hoyo en el pavimento que está a punto de convertirse en vache.&lt;br /&gt;ELECCIÓN: Lo que expelimenta un oliental al vel una película polno.&lt;br /&gt;NUEVAMENTE: Cerebro sin usar.&lt;br /&gt;TALENTO: No ta rápido.&lt;br /&gt;ESGUINCE: Uno más gatorce.&lt;br /&gt;ESMALTE: Ni lune ni miélcole.&lt;br /&gt;SORPRENDIDA: Monja en llamas&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5041188081161039144-5258840433807887642?l=federico-digiorgio.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://federico-digiorgio.blogspot.com/feeds/5258840433807887642/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5041188081161039144&amp;postID=5258840433807887642' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default/5258840433807887642'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default/5258840433807887642'/><link rel='alternate' type='text/html' href='http://federico-digiorgio.blogspot.com/2009/07/telepatia-aparato-de-tv-para-la-hermana.html' title='Les Luthiers'/><author><name>Federico</name><uri>http://www.blogger.com/profile/02419411433077910018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5041188081161039144.post-3703770215891750179</id><published>2009-07-04T08:29:00.001-07:00</published><updated>2009-07-04T08:29:45.121-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='tp link'/><title type='text'>TP LINK segurança</title><content type='html'>&lt;span class="Apple-style-span" style="color: rgb(98, 98, 98); font-family: verdana; font-size: 11px; -webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; "&gt;&lt;b&gt;&lt;span style="color:navy;"&gt;Clica no menu "Wireless" &gt; "Wireless Settings".&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;span style="color:navy;"&gt;Habilita a caixa "Enable Wireless Security"&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;span style="color:navy;"&gt;Em "Security Type" escolha "WPA-PSK/WPA2-PSK"&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;span style="color:navy;"&gt;Em "PSK Passphrase" escolha uma senha de 8 a 63 caracteres.&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;span style="color:navy;"&gt;Clique em "SAVE"&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;span style="color:navy;"&gt;Depois vai na sessão "System Tools" &gt; "Password" e troca a senha &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(98, 98, 98); font-family: verdana; font-size: 11px; -webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; "&gt;&lt;b&gt;&lt;span style="color:navy;"&gt;do ADMIN (pode trocar o nome do usuário também.&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5041188081161039144-3703770215891750179?l=federico-digiorgio.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://federico-digiorgio.blogspot.com/feeds/3703770215891750179/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5041188081161039144&amp;postID=3703770215891750179' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default/3703770215891750179'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default/3703770215891750179'/><link rel='alternate' type='text/html' href='http://federico-digiorgio.blogspot.com/2009/07/tp-link-seguranca.html' title='TP LINK segurança'/><author><name>Federico</name><uri>http://www.blogger.com/profile/02419411433077910018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5041188081161039144.post-3642892330830101817</id><published>2009-06-25T18:52:00.000-07:00</published><updated>2009-06-25T18:54:43.803-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='jquery'/><title type='text'>jQuery Cycle Plugin</title><content type='html'>Show de bola, mais um plugin super util para imagens&lt;div&gt;&lt;br /&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'trebuchet ms'; font-weight: bold; "&gt;&lt;span class="Apple-style-span" style="color: rgb(204, 0, 0);"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;a href="http://malsup.com/jquery/cycle/"&gt;jQuery Cycle Plugin&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5041188081161039144-3642892330830101817?l=federico-digiorgio.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://federico-digiorgio.blogspot.com/feeds/3642892330830101817/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5041188081161039144&amp;postID=3642892330830101817' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default/3642892330830101817'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default/3642892330830101817'/><link rel='alternate' type='text/html' href='http://federico-digiorgio.blogspot.com/2009/06/jquery-cycle-plugin.html' title='jQuery Cycle Plugin'/><author><name>Federico</name><uri>http://www.blogger.com/profile/02419411433077910018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5041188081161039144.post-4518495788920934140</id><published>2009-03-04T12:37:00.000-08:00</published><updated>2009-03-04T12:39:47.742-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='oop'/><title type='text'>O que é uma classe</title><content type='html'>&lt;p&gt; Uma classe é um gabarito para a definição de objetos.  Através da definição de uma classe, descreve-se que propriedades -- ou &lt;strong&gt;atributos&lt;/strong&gt; --  o objeto terá.  &lt;/p&gt;&lt;p&gt; Além da especificação de atributos, a definição de uma classe descreve também qual o comportamento de objetos da classe, ou seja, que funcionalidades podem ser aplicadas a objetos da classe.   Essas funcionalidades são descritas através de &lt;strong&gt;métodos&lt;/strong&gt;.  Um método nada mais é que o equivalente a um procedimento ou função, com a restrição que ele manipula apenas suas variáveis locais e os atributos que foram definidos para a classe.  &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5041188081161039144-4518495788920934140?l=federico-digiorgio.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://federico-digiorgio.blogspot.com/feeds/4518495788920934140/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5041188081161039144&amp;postID=4518495788920934140' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default/4518495788920934140'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default/4518495788920934140'/><link rel='alternate' type='text/html' href='http://federico-digiorgio.blogspot.com/2009/03/o-que-e-uma-classe.html' title='O que é uma classe'/><author><name>Federico</name><uri>http://www.blogger.com/profile/02419411433077910018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5041188081161039144.post-1560388202343258675</id><published>2009-03-04T12:36:00.000-08:00</published><updated>2009-03-04T12:37:32.955-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='oop'/><title type='text'>O que é um objeto?</title><content type='html'>&lt;p&gt;       Um &lt;strong&gt;objeto&lt;/strong&gt; é um elemento computacional que       representa, no domínio da solução, alguma entidade (abstrata ou       concreta) do domínio de interesse do problema sob análise.       Objetos similares são agrupados em classes.     &lt;/p&gt;      &lt;p&gt;        No paradigma de orientação a objetos, tudo pode ser       potencialmente representado como um objeto.  Sob o ponto de       vista da programação, um objeto não é muito       diferente de uma variável no paradigma de programação       convencional.  Por exemplo, quando define-se        uma variável do tipo &lt;tt&gt;int&lt;/tt&gt; em C ou em Java, essa variável       tem:      &lt;/p&gt;      &lt;ul&gt;&lt;li&gt;    um espaço em memória para registrar o seu estado atual (um valor);       &lt;/li&gt;&lt;li&gt;    um conjunto de operações associadas que podem ser aplicadas    a ela, através dos operadores definidos na linguagem que    podem ser aplicados a valores inteiros (soma, subtração,    inversão de sinal, multiplicação, divisão inteira, resto da    divisão inteira, incremento, decremento).       &lt;/li&gt;&lt;/ul&gt;      &lt;p&gt;       Da mesma forma, quando se cria um objeto, esse objeto adquire um espaço em       memória para armazenar seu estado (os valores de seu conjunto de atributos,       definidos pela classe) e um conjunto de operações que podem ser aplicadas       ao objeto (o conjunto de métodos       definidos pela classe).      &lt;/p&gt;      &lt;p&gt;       Um &lt;strong&gt;programa orientado a objetos&lt;/strong&gt; é composto por um conjunto       de objetos que interagem através de "trocas de mensagens".  Na prática,       essa troca de mensagem traduz-se na invocação de métodos entre objetos.     &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5041188081161039144-1560388202343258675?l=federico-digiorgio.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://federico-digiorgio.blogspot.com/feeds/1560388202343258675/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5041188081161039144&amp;postID=1560388202343258675' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default/1560388202343258675'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default/1560388202343258675'/><link rel='alternate' type='text/html' href='http://federico-digiorgio.blogspot.com/2009/03/o-que-e-um-objeto.html' title='O que é um objeto?'/><author><name>Federico</name><uri>http://www.blogger.com/profile/02419411433077910018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5041188081161039144.post-5085290432171633867</id><published>2009-02-20T06:46:00.000-08:00</published><updated>2009-02-20T08:34:29.892-08:00</updated><title type='text'>Exim - Linha de comando</title><content type='html'>&lt;span style="font-weight: bold;"&gt;Numero de mensagens na fila&lt;/span&gt;&lt;br /&gt;                                 &lt;br /&gt;#&lt;strong&gt; exim -bpc&lt;/strong&gt;                                   &lt;p&gt;&lt;span style="font-weight: bold;"&gt;Mensagens na fila, detalhado&lt;/span&gt;&lt;br /&gt;                                    &lt;/p&gt;&lt;p&gt;# &lt;strong&gt;exim -bp&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;ou&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;exim -bp | exiqsumm&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-weight: bold;"&gt;Para saber que o Exim está fazendo neste instante...&lt;/span&gt;&lt;br /&gt;                                    &lt;/p&gt;&lt;p&gt;# &lt;strong&gt;exiwhat&lt;/strong&gt;&lt;/p&gt;&lt;span style="font-weight: bold;"&gt;Exibir configuração do Exim&lt;/span&gt;&lt;br /&gt;&lt;p&gt;                                     # &lt;strong&gt;exim -bP&lt;/strong&gt;&lt;/p&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Exibe uma lista de todos os IDs da fila&lt;/span&gt;&lt;br /&gt;&lt;p&gt;                                     # &lt;strong&gt;exiqgrep -i&lt;/strong&gt;&lt;/p&gt;                                   &lt;p&gt;&lt;span style="font-weight: bold;"&gt;Força o envio das mensagens da fila&lt;/span&gt;&lt;/p&gt;&lt;p&gt;# &lt;strong&gt;exim -q -v&lt;/strong&gt;&lt;/p&gt;                                   &lt;p&gt;&lt;span style="font-weight: bold;"&gt;Força o envio das mensagens da fila, para endereços locais&lt;/span&gt;&lt;br /&gt;                                    &lt;/p&gt;&lt;p&gt;# &lt;strong&gt;exim -ql -v&lt;/strong&gt;&lt;/p&gt;                                   &lt;p&gt;&lt;span style="font-weight: bold;"&gt;Para remover uma mensagem da fila&lt;/span&gt;&lt;br /&gt;                                    &lt;/p&gt;&lt;p&gt;# &lt;strong&gt;exim -Mrm &lt;message-id&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-weight: bold;"&gt;Para remover mensagem da fila, com mais de 5 dias&lt;/span&gt;  (86400 * 2 = 172800 seconds).&lt;br /&gt;                                    &lt;/p&gt;&lt;p&gt;# &lt;strong&gt;exiqgrep -o 172800 -i | xargs exim -Mrm&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-weight: bold;"&gt;Visualizar o cabeçalho de uma mensagem&lt;/span&gt;&lt;br /&gt;                                    &lt;/p&gt;&lt;p&gt;# &lt;strong&gt;exim -Mvh &lt;message-id&gt;&lt;/strong&gt;&lt;/p&gt;                                   &lt;p&gt;&lt;span style="font-weight: bold;"&gt;Visualizar o corpo de uma mensagem&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;# &lt;strong&gt;exim -Mvb &lt;message-id&gt;&lt;/strong&gt;&lt;/p&gt;                                   &lt;p&gt;&lt;span style="font-weight: bold;"&gt;Visualizar o log de uma mensagem&lt;/span&gt;&lt;br /&gt;                                    &lt;/p&gt;&lt;p&gt;# &lt;strong&gt;exim -Mvl &lt;message-id&gt;&lt;/strong&gt;&lt;/p&gt;&lt;strong&gt;&lt;br /&gt;&lt;/strong&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5041188081161039144-5085290432171633867?l=federico-digiorgio.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://federico-digiorgio.blogspot.com/feeds/5085290432171633867/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5041188081161039144&amp;postID=5085290432171633867' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default/5085290432171633867'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default/5085290432171633867'/><link rel='alternate' type='text/html' href='http://federico-digiorgio.blogspot.com/2009/02/exim-linha-de-comando.html' title='Exim - Linha de comando'/><author><name>Federico</name><uri>http://www.blogger.com/profile/02419411433077910018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5041188081161039144.post-3829734399144092325</id><published>2009-02-18T09:08:00.001-08:00</published><updated>2009-02-18T09:08:14.638-08:00</updated><title type='text'>Teste</title><content type='html'>teste&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5041188081161039144-3829734399144092325?l=federico-digiorgio.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://federico-digiorgio.blogspot.com/feeds/3829734399144092325/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5041188081161039144&amp;postID=3829734399144092325' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default/3829734399144092325'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default/3829734399144092325'/><link rel='alternate' type='text/html' href='http://federico-digiorgio.blogspot.com/2009/02/teste.html' title='Teste'/><author><name>Federico</name><uri>http://www.blogger.com/profile/02419411433077910018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5041188081161039144.post-1629956441315260736</id><published>2009-02-11T11:11:00.000-08:00</published><updated>2009-02-11T11:12:30.742-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><title type='text'>Sudoers</title><content type='html'># /etc/sudoers&lt;br /&gt;#&lt;br /&gt;# This file MUST be edited with the 'visudo' command as root.&lt;br /&gt;#&lt;br /&gt;# See the man page for details on how to write a sudoers file.&lt;br /&gt;#&lt;br /&gt;&lt;br /&gt;Defaults        env_reset&lt;br /&gt;&lt;br /&gt;# Host alias specification&lt;br /&gt;&lt;br /&gt;# User alias specification&lt;br /&gt;User_Alias ADMINS =pirulito, mané&lt;br /&gt;&lt;br /&gt;# Cmnd alias specification&lt;br /&gt;&lt;br /&gt;# User privilege specification&lt;br /&gt;root    ALL=(ALL) ALL&lt;br /&gt;ADMINS  ALL=(ALL) ALL&lt;br /&gt;&lt;br /&gt;# Uncomment to allow members of group sudo to not need a password&lt;br /&gt;# (Note that later entries override this, so you might need to move&lt;br /&gt;# it further down)&lt;br /&gt;# %sudo ALL=NOPASSWD: ALL&lt;br /&gt;&lt;br /&gt;# Members of the admin group may gain root privileges&lt;br /&gt;%admin ALL=(ALL) ALL&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5041188081161039144-1629956441315260736?l=federico-digiorgio.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://federico-digiorgio.blogspot.com/feeds/1629956441315260736/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5041188081161039144&amp;postID=1629956441315260736' title='1 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default/1629956441315260736'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default/1629956441315260736'/><link rel='alternate' type='text/html' href='http://federico-digiorgio.blogspot.com/2009/02/sudoers.html' title='Sudoers'/><author><name>Federico</name><uri>http://www.blogger.com/profile/02419411433077910018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5041188081161039144.post-1714728816831195346</id><published>2009-01-28T09:22:00.000-08:00</published><updated>2009-01-28T09:24:36.227-08:00</updated><title type='text'>Balanceamento mysql</title><content type='html'>http://imasters.uol.com.br/artigo/11161/mysql/balanceamento_de_carga_no_mysql_-_parte_1/&lt;br /&gt;http://imasters.uol.com.br/artigo/11319/mysql/balanceamento_de_carga_no_mysql_-_parte_02/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5041188081161039144-1714728816831195346?l=federico-digiorgio.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://federico-digiorgio.blogspot.com/feeds/1714728816831195346/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5041188081161039144&amp;postID=1714728816831195346' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default/1714728816831195346'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default/1714728816831195346'/><link rel='alternate' type='text/html' href='http://federico-digiorgio.blogspot.com/2009/01/balanceamento-mysql.html' title='Balanceamento mysql'/><author><name>Federico</name><uri>http://www.blogger.com/profile/02419411433077910018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5041188081161039144.post-2269671333114233685</id><published>2009-01-28T03:04:00.000-08:00</published><updated>2009-01-28T03:05:28.694-08:00</updated><title type='text'>SQL e Rails</title><content type='html'>http://simplesideias.com.br/executando-sql-no-rails/&lt;br /&gt;http://simplesideias.com.br/dica-rapida-3-sanitizando-queries-com-activerecord/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5041188081161039144-2269671333114233685?l=federico-digiorgio.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://federico-digiorgio.blogspot.com/feeds/2269671333114233685/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5041188081161039144&amp;postID=2269671333114233685' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default/2269671333114233685'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default/2269671333114233685'/><link rel='alternate' type='text/html' href='http://federico-digiorgio.blogspot.com/2009/01/sql-e-rails.html' title='SQL e Rails'/><author><name>Federico</name><uri>http://www.blogger.com/profile/02419411433077910018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5041188081161039144.post-3356357703259480064</id><published>2008-11-30T15:45:00.000-08:00</published><updated>2008-11-30T15:46:36.874-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wma'/><category scheme='http://www.blogger.com/atom/ns#' term='mac'/><category scheme='http://www.blogger.com/atom/ns#' term='vlc'/><category scheme='http://www.blogger.com/atom/ns#' term='mp4'/><title type='text'>WMA to mp4</title><content type='html'>&lt;span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: 'Trebuchet MS'; font-size: 12px; line-height: 18px; "&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 15px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;I don't know why I am so dumb that I spent so much time scouring the Web to look for a utility to convert between different audio file formats. In fact my favourite video player, &lt;a href="http://www.videolan.org/vlc/" style="color: rgb(204, 102, 0); text-decoration: none; "&gt;VLC&lt;/a&gt; can do it right under its hood.&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 15px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;Why would I want to do this conversion business? Because I have a bunch of WMA files which I can't import into my iTunes (but it works on M$ Windows though).&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 15px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;The weird thing is that I didn't manage to coerce VLC to convert it to MP3 for me so in the end I just did MP4 anyway since iTunes support it.&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 15px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;Here are the steps that you need to take:&lt;/p&gt;&lt;ol&gt;&lt;li&gt;Start up VLC&lt;/li&gt;&lt;li&gt;Click File and select "Streaming/Exporting Wizard..."&lt;/li&gt;&lt;li&gt;Select "Transcode/Save to file", click "Next"&lt;/li&gt;&lt;li&gt;Select a file and click "Next"&lt;/li&gt;&lt;li&gt;Check the "Transcode audio", and select "MPEG 4 Audio", select the bitrate that you want and click "Next"&lt;/li&gt;&lt;li&gt;Select "MPEG 4/ MP4" and click "Next"&lt;/li&gt;&lt;li&gt;Choose a filename and path to store the new file and click "Next"&lt;/li&gt;&lt;li&gt;Click "Finish"&lt;/li&gt;&lt;li&gt;Wait for it to be done&lt;/li&gt;&lt;/ol&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 15px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;You can also choose other audio file formats and its pretty easy. Although I wish there is a better interface for this.&lt;/p&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5041188081161039144-3356357703259480064?l=federico-digiorgio.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://federico-digiorgio.blogspot.com/feeds/3356357703259480064/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5041188081161039144&amp;postID=3356357703259480064' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default/3356357703259480064'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default/3356357703259480064'/><link rel='alternate' type='text/html' href='http://federico-digiorgio.blogspot.com/2008/11/wma-to-mp4.html' title='WMA to mp4'/><author><name>Federico</name><uri>http://www.blogger.com/profile/02419411433077910018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5041188081161039144.post-1505235776628843828</id><published>2008-11-28T05:29:00.000-08:00</published><updated>2008-11-28T05:31:39.089-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ruby'/><category scheme='http://www.blogger.com/atom/ns#' term='rails'/><title type='text'>Função nova do Rails 2.1 - Parte 1</title><content type='html'>&lt;p&gt;Função nova do Rails 2.1:&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;change_table&lt;/strong&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Funciona quase igual ao método &lt;strong&gt;create_table&lt;/strong&gt;, o qual aceita um bloco e dentro nós definimos novas colunas. Mas esse método novo permite fazer outras operações como rename, remove, etc.&lt;/p&gt; &lt;p&gt;A lista completa é:&lt;/p&gt; &lt;ul&gt;&lt;li&gt;t.column – a maneira antiga, migration não-“sexy”&lt;/li&gt;&lt;li&gt;t.remove – remove uma coluna&lt;/li&gt;&lt;li&gt;t.index&lt;/li&gt;&lt;li&gt;t.remove_index&lt;/li&gt;&lt;li&gt;t.timestamps – adiciona created_at e updated_at&lt;/li&gt;&lt;li&gt;t.remove_timestamps – remove created_at e updated_at&lt;/li&gt;&lt;li&gt;t.change – muda o tipo da coluna&lt;/li&gt;&lt;li&gt;t.change_default – muda o valor default de uma coluna&lt;/li&gt;&lt;li&gt;t.rename – renomeia uma coluna&lt;/li&gt;&lt;li&gt;t.references – adiciona uma coluna que serve de chave estrangeira com a convenção [nome_da_tabela]_id&lt;/li&gt;&lt;li&gt;t.remove_references – remove a chave estrangeira&lt;/li&gt;&lt;li&gt;t.belongs_to – atalho para :references&lt;/li&gt;&lt;li&gt;t.remove_belongs_to – atalho para :remove_references&lt;/li&gt;&lt;li&gt;t.string&lt;/li&gt;&lt;li&gt;t.text&lt;/li&gt;&lt;li&gt;t.integer&lt;/li&gt;&lt;li&gt;t.float&lt;/li&gt;&lt;li&gt;t.decimal&lt;/li&gt;&lt;li&gt;t.datetime&lt;/li&gt;&lt;li&gt;t.timestamp&lt;/li&gt;&lt;li&gt;t.time&lt;/li&gt;&lt;li&gt;t.date&lt;/li&gt;&lt;li&gt;t.binary&lt;/li&gt;&lt;li&gt;t.boolean&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5041188081161039144-1505235776628843828?l=federico-digiorgio.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://federico-digiorgio.blogspot.com/feeds/1505235776628843828/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5041188081161039144&amp;postID=1505235776628843828' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default/1505235776628843828'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default/1505235776628843828'/><link rel='alternate' type='text/html' href='http://federico-digiorgio.blogspot.com/2008/11/funo-nova-do-rails-21-parte-1.html' title='Função nova do Rails 2.1 - Parte 1'/><author><name>Federico</name><uri>http://www.blogger.com/profile/02419411433077910018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5041188081161039144.post-4204889978899146403</id><published>2008-10-28T11:00:00.000-07:00</published><updated>2008-11-28T05:32:08.232-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='rails'/><title type='text'>Erro ao instalar gem: undefined method `[]=’ for Gem::ConfigFile</title><content type='html'>Hoje me deparei com este erro quando configurava o ambiente de desenvolvimento de Ruby on Rails no Ubuntu Linux em meu computador.&lt;br /&gt;&lt;p&gt;Em ambos os casos estava utilizando o pacote Ruby instalado via Synaptic (sudo apt-get ruby-full e sudo apt-get rubygems).&lt;/p&gt; &lt;p&gt;a solução foi editar o arquivo config_file.rb&lt;/p&gt;&lt;p&gt;sudo vim /usr/lib/ruby/1.8/rubygems/config_file.rb&lt;br /&gt;&lt;/p&gt;&lt;p&gt;e adicionar o seguinte método:&lt;/p&gt;  &lt;div class="wp_syntax"&gt;&lt;div class="code"&gt;&lt;pre class="ruby ruby"  style="font-family:monospace;"&gt;&lt;span style="color: rgb(153, 102, 204); font-weight: bold;"&gt;def&lt;/span&gt; &lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;]&lt;/span&gt;=&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;(&lt;/span&gt;key, value&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 255); font-weight: bold;"&gt;@hash&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;[&lt;/span&gt;key.&lt;span style="color: rgb(153, 0, 204);"&gt;to_s&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;]&lt;/span&gt;=value&lt;br /&gt;&lt;span style="color: rgb(153, 102, 204); font-weight: bold;"&gt;end&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(153, 102, 204);"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;depois foi só&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;sudo gem install -p 'http://10.5.4.3:3128' rails -y&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(153, 102, 204); font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5041188081161039144-4204889978899146403?l=federico-digiorgio.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://federico-digiorgio.blogspot.com/feeds/4204889978899146403/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5041188081161039144&amp;postID=4204889978899146403' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default/4204889978899146403'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default/4204889978899146403'/><link rel='alternate' type='text/html' href='http://federico-digiorgio.blogspot.com/2008/10/erro-ao-instalar-gem-undefined-method.html' title='Erro ao instalar gem: undefined method `[]=’ for Gem::ConfigFile'/><author><name>Federico</name><uri>http://www.blogger.com/profile/02419411433077910018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5041188081161039144.post-7224856632290887023</id><published>2008-10-08T06:13:00.000-07:00</published><updated>2008-10-08T06:14:17.871-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu'/><title type='text'>Script na inicialização</title><content type='html'>&lt;table border="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td align="justify"&gt; Muito simples. Basta você criar seu script dentro da pasta /etc/init.d. Exemplo:&lt;br /&gt;&lt;br /&gt;&lt;b&gt;# vim /etc/init.d/meuscript&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;  &lt;tr&gt;&lt;td class="codigo"&gt; #!/bin/bash&lt;br /&gt;&lt;br /&gt;echo "Olá mundo" &lt;/td&gt;&lt;/tr&gt;  &lt;tr&gt;&lt;td align="justify"&gt;&lt;br /&gt;Agora é só dar a permissão para execução:&lt;br /&gt;&lt;br /&gt;&lt;b&gt;# chmod 755 /etc/init.d/meuscript&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Quase pronto, agora é só colocar para inicializar junto com o sistema:&lt;br /&gt;&lt;br /&gt;&lt;b&gt;# update-rc.d meuscript defaults&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5041188081161039144-7224856632290887023?l=federico-digiorgio.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://federico-digiorgio.blogspot.com/feeds/7224856632290887023/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5041188081161039144&amp;postID=7224856632290887023' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default/7224856632290887023'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default/7224856632290887023'/><link rel='alternate' type='text/html' href='http://federico-digiorgio.blogspot.com/2008/10/script-na-inicializao.html' title='Script na inicialização'/><author><name>Federico</name><uri>http://www.blogger.com/profile/02419411433077910018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5041188081161039144.post-1330400757580510564</id><published>2008-06-18T11:09:00.000-07:00</published><updated>2008-06-18T11:18:53.936-07:00</updated><title type='text'>Instalação de Fontes no Ubuntu</title><content type='html'>&lt;ol&gt;&lt;li&gt;Conseguir as fontes, um bom repositório é &lt;a href="http://www.netfontes.com.br/"&gt;NetFontes&lt;/a&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Criar uma nova pasta em /usr/share/fonts/extras&lt;/li&gt;&lt;li&gt;Colocar as novas fontes lá&lt;/li&gt;&lt;li&gt;Rodar o Debian Font Manager com comando defoma-font com o parametro register-all&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;&lt;ul&gt;&lt;li&gt;$ sudo defoma-font register-all /usr/share/fonts/extras/* -v&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5041188081161039144-1330400757580510564?l=federico-digiorgio.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://federico-digiorgio.blogspot.com/feeds/1330400757580510564/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5041188081161039144&amp;postID=1330400757580510564' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default/1330400757580510564'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default/1330400757580510564'/><link rel='alternate' type='text/html' href='http://federico-digiorgio.blogspot.com/2008/06/instalao-de-fontes-no-ubuntu.html' title='Instalação de Fontes no Ubuntu'/><author><name>Federico</name><uri>http://www.blogger.com/profile/02419411433077910018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5041188081161039144.post-3686679313415183724</id><published>2008-06-04T17:21:00.000-07:00</published><updated>2008-06-17T19:07:39.948-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ruby'/><title type='text'>Ruby on Rails  + Ubuntu</title><content type='html'>Ruby é uma linguagem de scripting interpretada e orientada a objectos. Destaca-se pela sua simplicidade, facilidade de aprendizagem e utilização, portabilidade e extensibilidade. É também uma linguagem totalmente livre, sendo distribuída pela licença open-source.&lt;br /&gt;&lt;br /&gt;A linguagem de programação Ruby foi criada pelo japonês Yukihiro Matsumoto e tem ganho popularidade sobre outras linguagens orientadas a objectos, pela sua facilidade e objectividade. Outro factor que contribuiu bastante para a popularidade desta linguagem foi a criação da framework Ruby On Rails, uma framework destinada à criação de plataformas web com recurso a base de dados.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(153, 0, 0);font-size:130%;" &gt;Ruby&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Para poder começar a correr e desenvolver programas em Ruby, é necessário primeiro instalar o pacote principal:&lt;br /&gt;&lt;blockquote&gt;&lt;span style="font-weight: bold;"&gt;$ sudo apt-get install ruby&lt;/span&gt;&lt;/blockquote&gt;&lt;br /&gt;Depois existem alguns pacotes auxiliares, que contém ferramentas úteis para desenvolver em Ruby:&lt;br /&gt;&lt;blockquote&gt;&lt;span style="font-weight: bold;"&gt;$ sudo apt-get install irb ri rdoc libdbd-mysql-ruby&lt;br /&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-weight: bold; color: rgb(0, 153, 0);font-size:100%;" &gt;irb&lt;/span&gt;&lt;span style="font-size:100%;"&gt; - Uma consola interactiva.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-weight: bold; color: rgb(0, 153, 0);font-size:100%;" &gt;ri&lt;/span&gt;&lt;span style="font-size:100%;"&gt; - A documentação geral sobre a linguagem.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-weight: bold; color: rgb(0, 153, 0);font-size:100%;" &gt;rdoc&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="color: rgb(0, 153, 0);"&gt; &lt;/span&gt;- Gera documentação de código em Ruby.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-weight: bold; color: rgb(0, 153, 0);font-size:100%;" &gt;libdbd-mysql-ruby&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="color: rgb(0, 153, 0);"&gt; &lt;/span&gt;- Biblioteca para implementação de MySQL.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(153, 0, 0);font-size:130%;" &gt;Ruby Gems&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Foi criada uma ferramenta, de nome &lt;a href="http://rubyforge.org/frs/download.php/11289/rubygems-0.9.0.tgz"&gt;Ruby Gems&lt;/a&gt;, que facilita bastante a instalação de novas bibliotecas para o desenvolvimento em Ruby.&lt;br /&gt;Para instalar esta ferramenta no Ubuntu, é necessário executar os seguintes comandos:&lt;br /&gt;&lt;blockquote&gt;&lt;span style="font-weight: bold;"&gt;$ sudo apt-get install rubygems&lt;br /&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;span style="font-weight: bold;font-size:130%;" &gt;&lt;br /&gt;&lt;span style="color: rgb(153, 0, 0);"&gt;Ruby On Rails&lt;/span&gt;&lt;br /&gt;&lt;/span&gt; &lt;span style="font-weight: bold;font-size:130%;" &gt;&lt;br /&gt;&lt;/span&gt;Instalar a famosa framework é muito simples, usando o APT. basta executar o seguinte comando:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;      $ &lt;/span&gt;&lt;span style="font-weight: bold;"&gt;sudo apt-get install rails&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;ou pelo Ruby Gems  com o seguinte comando:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;      $ &lt;/span&gt;&lt;span style="font-weight: bold;"&gt;sudo gem install rails --include-dependencies&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(153, 0, 0);font-size:130%;" &gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;a href="http://sethbc.org/articles/2005/12/25/installing-typo-on-ubuntu-dapper"&gt;&lt;/a&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5041188081161039144-3686679313415183724?l=federico-digiorgio.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://federico-digiorgio.blogspot.com/feeds/3686679313415183724/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5041188081161039144&amp;postID=3686679313415183724' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default/3686679313415183724'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default/3686679313415183724'/><link rel='alternate' type='text/html' href='http://federico-digiorgio.blogspot.com/2007/03/ruby-on-rails-apache-mysql-ubuntu.html' title='Ruby on Rails  + Ubuntu'/><author><name>Federico</name><uri>http://www.blogger.com/profile/02419411433077910018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5041188081161039144.post-235783221931424570</id><published>2008-02-28T04:17:00.000-08:00</published><updated>2008-12-10T05:51:36.771-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='imagem'/><title type='text'>Converte .PDF em .JPG</title><content type='html'># sudo apt-get install imagemagick&lt;br /&gt;&lt;br /&gt;$ vim converter.sh&lt;br /&gt;&lt;br /&gt;#!/bin/bash&lt;br /&gt;for i in *.pdf; do&lt;br /&gt;convert  $i -sharpen 0x1.0 -resize 130%  $i.jpg;&lt;br /&gt;done&lt;br /&gt;&lt;br /&gt;$ chmod +x converter.sh&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5041188081161039144-235783221931424570?l=federico-digiorgio.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://federico-digiorgio.blogspot.com/feeds/235783221931424570/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5041188081161039144&amp;postID=235783221931424570' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default/235783221931424570'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default/235783221931424570'/><link rel='alternate' type='text/html' href='http://federico-digiorgio.blogspot.com/2008/02/converte-pdf-em-jpg.html' title='Converte .PDF em .JPG'/><author><name>Federico</name><uri>http://www.blogger.com/profile/02419411433077910018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5041188081161039144.post-616233132441958339</id><published>2008-02-25T06:34:00.000-08:00</published><updated>2008-02-28T04:20:15.813-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><title type='text'>Inteiro ou não</title><content type='html'>&lt;span style="font-size:85%;"&gt;  &lt;span style="color: rgb(51, 51, 255);"&gt;public boolean&lt;/span&gt; &lt;span style="font-weight: bold;"&gt;isInteiro&lt;/span&gt;(&lt;span style="color: rgb(51, 51, 255);"&gt;double&lt;/span&gt; var) {&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;    /* se for inteiro o resto de uma divisão por 1 é igual a zero */&lt;/span&gt;&lt;br /&gt;  &lt;span style="color: rgb(51, 51, 255);"&gt;if&lt;/span&gt; (var % 1 == 0) {&lt;br /&gt;    &lt;span style="color: rgb(51, 51, 255);"&gt;return&lt;/span&gt; &lt;span style="color: rgb(51, 51, 255);"&gt;true&lt;span style="color: rgb(0, 0, 0);"&gt;;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;  } &lt;span style="color: rgb(51, 51, 255);"&gt;else&lt;/span&gt; {&lt;br /&gt;    &lt;span style="color: rgb(0, 153, 0);"&gt;/* caso o resto não seja zero, então&lt;br /&gt;    trata-se de um numero com ponto flutuante */&lt;/span&gt;&lt;br /&gt;    &lt;span style="color: rgb(51, 51, 255);"&gt;return&lt;/span&gt; &lt;span style="color: rgb(51, 51, 255);"&gt;false&lt;/span&gt;;&lt;br /&gt;  }&lt;br /&gt;}&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5041188081161039144-616233132441958339?l=federico-digiorgio.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://federico-digiorgio.blogspot.com/feeds/616233132441958339/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5041188081161039144&amp;postID=616233132441958339' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default/616233132441958339'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default/616233132441958339'/><link rel='alternate' type='text/html' href='http://federico-digiorgio.blogspot.com/2008/02/inteiro-ou-no.html' title='Inteiro ou não'/><author><name>Federico</name><uri>http://www.blogger.com/profile/02419411433077910018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5041188081161039144.post-5783890991775967325</id><published>2008-02-03T07:43:00.000-08:00</published><updated>2008-02-03T07:45:43.406-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='hosting'/><category scheme='http://www.blogger.com/atom/ns#' term='asp'/><title type='text'>Thumbnails -AspJpeg</title><content type='html'>'Criando o thumbnail:&lt;br /&gt;Set Jpeg = Server.CreateObject("Persits.Jpeg")&lt;br /&gt;&lt;br /&gt;'Caminho da Imagem&lt;br /&gt;Path = server.mappath("original/" &amp; "dharma.jpg")&lt;br /&gt;&lt;br /&gt;'Busca a Imagem&lt;br /&gt;Jpeg.Open Path&lt;br /&gt;&lt;br /&gt;'Especifica o tamanho da imagem, nesse caso ela ficará 50% menor&lt;br /&gt;Jpeg.Width = Jpeg.OriginalWidth / 2&lt;br /&gt;Jpeg.Height = Jpeg.OriginalHeight / 2&lt;br /&gt;&lt;br /&gt;'Esse método é opcional, usado para melhorar o visual da imagem&lt;br /&gt;Jpeg.Sharpen 1, 150&lt;br /&gt;&lt;br /&gt;'Para visualizar o thumbnail no browser sem salvar o arquivo&lt;br /&gt;Response.Write jpeg.SendBinary&lt;br /&gt;&lt;br /&gt;'Cria um thumbnail e o salva no caminho abaixo&lt;br /&gt;Jpeg.Save server.mappath("thumb/" &amp; "dharma_mini.jpg")&lt;br /&gt;&lt;br /&gt;Set Jpeg = Nothing&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5041188081161039144-5783890991775967325?l=federico-digiorgio.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://federico-digiorgio.blogspot.com/feeds/5783890991775967325/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5041188081161039144&amp;postID=5783890991775967325' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default/5783890991775967325'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default/5783890991775967325'/><link rel='alternate' type='text/html' href='http://federico-digiorgio.blogspot.com/2008/02/thumbnails-aspjpeg.html' title='Thumbnails -AspJpeg'/><author><name>Federico</name><uri>http://www.blogger.com/profile/02419411433077910018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5041188081161039144.post-1777585251233474443</id><published>2008-01-06T16:13:00.000-08:00</published><updated>2008-01-06T16:29:57.347-08:00</updated><title type='text'>Convertendo .AVI para SVCD</title><content type='html'>&lt;span style="font-size:85%;"&gt;Digamos que você possua um DVD player na sala, em uma televisão que com certeza é maior que seu monitor, então é justo que você queira assistir seus videos baixados da Internet na sala, pois bem é facil fazer isso, basta voce ter um gravador de CD normal, sim não precisa ser gravador de dvd.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:verdana,helvetica,arial;font-size:85%;"&gt;&lt;span style="font-family:verdana,helvetica,arial;"&gt; 2: Instale o &lt;span class="highlight"&gt;Avidemux&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:verdana,helvetica,arial;font-size:85%;"&gt;&lt;span style="font-family:verdana,helvetica,arial;"&gt; 3: Você precisar ter o ffmpeg instalado, caso não tenha apenas digite no seu console:&lt;br /&gt;&lt;br /&gt;$ sudo apt-get install ffmpeg&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;4: Agora abra o &lt;span class="highlight"&gt;Avidemux&lt;/span&gt;, ele está no seu Menu de Aplicações do Ubuntu (Gnome), parte de Som e Video (Audio and Video).&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;5: Abra o seu AVI no &lt;span class="highlight"&gt;avidemux&lt;/span&gt;, vá em File, Open, na caixa de dialogo que irá aparecer navegue até chegar ao diretorio onde está o seu video e selecione clicando 2x para abrir.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;6: Build VBR Time Map, confirme a criação do mapa de tempo clicando na opção Build Time Map, pronto video carregado.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;7: Ajustando para SVCD. Clique na opção Auto, no menu superior e depois clique em SVCD, confirme se o Destination Aspect Ratio está em 4:3, se não estiver altere para 4:3 e confirme no OK.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;8: Ajustando seu SVCD.&lt;br /&gt;No menu lateral esquerdo, vá em Audio, e altere para FFm MP2.&lt;br /&gt;Agora no mesmo menu vá em Video e clique em Filters, se você fez tudo certo até agora já devem ter duas opções nos filtros (MPlayer Resize e Add Black Borders).&lt;br /&gt;&lt;br /&gt;9: Adicionando a legenda.&lt;br /&gt;No mesmo menu lateral esquerdo, na parte de vídeo, clique em Filters, depois em Adicionar (add), clique na aba Subtitles, depois em Subtitler, no quadro que irá abrir, clique na pasta Subtitle File e navegue até achar sua legenda, ela deve estar no formato SRT.&lt;br /&gt;Agora ajuste a fonte da legenda, o padrão que vem no &lt;span class="highlight"&gt;Avidemux&lt;/span&gt; não funciona no Ubuntu, portanto você precisa apontar o caminho correto para a Fonte, como no meu caso eu instalei pelo automatix as fontes mstcorefonts, eu utilizei o seguinte caminho: /usr/share/fonts/truetype/msttcorefonts/Arial.ttf. Se você não possui essa fonte não tem problema, apenas navegue até o dir /usr/share/fonts/truetype e escolha uma fonte que estiver dentro do dir ou em sub-diretorios.&lt;br /&gt;Depois dessas configurações clique em OK na janela do Subtitle Selector para fechar, clique OK novamente para fechar a janela Video Filters.&lt;br /&gt;&lt;br /&gt;10: Definindo o Preview.&lt;br /&gt;No menu superior clique em Video, depois marque a opção Display Output, dessa forma ao clicar no botão Play você terá a previsualização do video com a legenda e já no formato correto. Caso a legenda não apareça algo foi feito errado no ítem 9 deste &lt;span class="highlight"&gt;tutorial&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;11: Prevendo&lt;br /&gt;Agora clique no botão Play e veja se está tudo certo com seu video. Se tudo estiver OK (video no formato reduzido e com a legenda) vamos salvar o video.&lt;br /&gt;&lt;br /&gt;12: Salvando o Video&lt;br /&gt;Vá em File, clique em Save, depois em Save Video, defina o nome do video, e lembre de colocar a extensão mpeg, como nesse exemplo: video1.mpeg.&lt;br /&gt;&lt;br /&gt;13: Gravando o CD&lt;br /&gt;Eu utilizo o K3B para gravar o SVCD, porque ele é mais facil e mostra essa opção (Gravar video SVCD), mas você de qualquer forma irá precisar do vcdimager, verifque se ele está instalado no seu Linux, caso negativo instale: $ sudo apt-get install vcdimager. Abra o K3B, vá em Arquivo (file), clique em Novo Projeto (new project) e depois em Novo Projeto CD de Video.&lt;br /&gt;&lt;br /&gt;Navegue pelo diretorio e arraste o arquivo para o interior vazio do projeto, ele provavelmente vai te avisar que o arquivo já deve estar no formato SVCD, apenas clique em OK porque o arquivo é um SVCD que criamos no &lt;span class="highlight"&gt;Avidemux&lt;/span&gt;.&lt;br /&gt;Agora grave o seu CD. Let it Burn baby!&lt;br /&gt;&lt;br /&gt;Pronto, seu cd está na mão e agora você pode assistir seu video no DVD Player da sala de tv, com a legenda fixa no arquivo. Divirta-se!&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5041188081161039144-1777585251233474443?l=federico-digiorgio.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://federico-digiorgio.blogspot.com/feeds/1777585251233474443/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5041188081161039144&amp;postID=1777585251233474443' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default/1777585251233474443'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default/1777585251233474443'/><link rel='alternate' type='text/html' href='http://federico-digiorgio.blogspot.com/2008/01/convertendo-avi-para-svcd.html' title='Convertendo .AVI para SVCD'/><author><name>Federico</name><uri>http://www.blogger.com/profile/02419411433077910018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5041188081161039144.post-3856704230243574507</id><published>2007-10-25T06:46:00.000-07:00</published><updated>2008-04-21T19:54:55.594-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='virtualização'/><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu'/><title type='text'>VMWare Server</title><content type='html'>&lt;div align="justify"&gt;  &lt;strong&gt;Dependências para instalação:&lt;/strong&gt;  &lt;/div&gt;  &lt;div align="justify"&gt;     &lt;/div&gt;  &lt;div align="justify"&gt;  Primeiramente, precisamos instalar algumas dependências que serão necessárias no decorrer da instalação.  &lt;/div&gt;  &lt;div align="justify"&gt;  Vá ao Terminal e digite o seguinte comando:  &lt;/div&gt;  &lt;div align="justify"&gt;     &lt;/div&gt;  &lt;div align="justify"&gt;  $ sudo apt-get install linux-headers-`uname -r` build-essential xinetd&lt;br /&gt;&lt;br /&gt;&lt;div align="justify"&gt;&lt;strong&gt;Download e Instalação do VMWare Server:&lt;/strong&gt;  &lt;/div&gt;  &lt;div align="justify"&gt;     &lt;/div&gt;  &lt;div align="justify"&gt;  Agora estamos prontos para instalar e configurar o VMWare Server. Mãos à massa.  &lt;/div&gt;  &lt;div align="justify"&gt;     &lt;/div&gt;  &lt;div align="justify"&gt;  &lt;ol&gt;&lt;li&gt;Vá ao site da VMWare e faça download GRATUITO do VMWare Server para linux. (&lt;a href="http://www.vmware.com/products/server/" target="_blank"&gt;http://www.vmware.com/products/server/&lt;/a&gt;)&lt;br /&gt;&lt;/li&gt;&lt;li&gt;No menu à direita, clique em: Download VMWare Server.&lt;/li&gt;&lt;li&gt;Faça seu cadastro informando um e-mail válido. Você receberá uma chave para instalação nele. &lt;/li&gt;&lt;li&gt;Escolha a versão, de preferência a última, e clique no botão Download abaixo.&lt;/li&gt;&lt;li&gt;Leia e aceite os termos.&lt;/li&gt;&lt;li&gt;Escolha mais abaixo, o tipo de arquivo do pacote VMWare Server for Linux a ser instalado em seu computador. De preferência o .tar.gz&lt;/li&gt;&lt;/ol&gt;   &lt;/div&gt;   &lt;div align="justify"&gt;       &lt;/div&gt;   &lt;div align="justify"&gt;   Extraia o arquivo baixado em algum lugar. Eu usarei o /tmp aqui.   &lt;/div&gt;   &lt;div align="justify"&gt;   Abra uma janela do Terminal e vá a pasta que você usou para descompactar.   &lt;/div&gt;   &lt;div align="justify"&gt;       &lt;/div&gt;   &lt;div align="justify"&gt;   $ cd /tmp   &lt;/div&gt;   &lt;div align="justify"&gt;   $ cd vmware-server-distrib    &lt;/div&gt;&lt;br /&gt;&lt;p&gt;Antes de nada os recomiendo realizar un "snapshot" de la maquina virtual, para poder volver al estado anterior en caso de que se presente algún problema.&lt;/p&gt; &lt;p&gt;    Para instalar VmWareTools debemos arrancar la maquina virtual Ubuntu e introducir nuestro usuario. Una vez que el sistema operativo a terminado de arrancar, desde el menu de VmWare, debemos seleccionar la opcion &lt;b&gt;VM --&gt; Install VMware Tools ...&lt;/b&gt;&lt;/p&gt; &lt;p&gt;&lt;b&gt;    &lt;/b&gt;Con esto apecerá sobre el escritorio de la maquina virtual montada una unidad de CD con dos archivos.&lt;br /&gt;&lt;/p&gt;&lt;p&gt; Un instalador rpm y un archivo comprimido .tar.gz. El instalador rpm no es válido para distribuciones basadas en Debian, así que no podremos usarlo (salvo que querais convertirlo con &lt;b&gt;alien&lt;/b&gt;). En este articulo usaremos el archivo &lt;b&gt;VmwareTools-5.5.1-19175.tar.gz&lt;/b&gt;. Copiaremos el archivo a una ruta local, en mi caso /tmp/VmWareToolsCD/ y abrimos una sesión de consola.&lt;/p&gt; &lt;p&gt;    Lo primero que debemos hacer es convertir nuestro usuario en root para la sesión usando el siguiente comando:&lt;/p&gt; &lt;blockquote dir="ltr" style="margin-right: 0px;"&gt; &lt;p&gt;&lt;b&gt;$ sudo su&lt;/b&gt;&lt;/p&gt;&lt;/blockquote&gt; &lt;p&gt;    Ahora tenemos que descomprimir el archivo .tar.gz para ello utizamos el siguiente comando:&lt;/p&gt; &lt;blockquote dir="ltr" style="margin-right: 0px;"&gt; &lt;p&gt;&lt;b&gt;$ tar -zxvf VmwareTools-5.5.1-19175.tar.gz&lt;/b&gt;&lt;/p&gt;&lt;p dir="ltr"&gt;Al descomprimir el archivo se creará un nuevo directorio llamado &lt;b&gt;vmware-tools-distrib&lt;/b&gt;. Hasta ahora no hemos debido tener ningún problema ... Para instalar las VMware Tools necesitamos instalar algunas cosillas antes:&lt;/p&gt; &lt;ul&gt;&lt;li dir="ltr"&gt;El comando make.  &lt;/li&gt;&lt;li dir="ltr"&gt;El compilador de C gcc.  &lt;/li&gt;&lt;li dir="ltr"&gt;Los archivos de cabecera del Kernel de nuestra versión.&lt;/li&gt;&lt;/ul&gt; &lt;p&gt;    Debemos usar los siguientes comandos:&lt;/p&gt; &lt;blockquote dir="ltr" style="margin-right: 0px;"&gt; &lt;p&gt;&lt;b&gt;$ apt-get install gcc gcc-3.4 make&lt;/b&gt;&lt;/p&gt; &lt;p&gt;&lt;b&gt;$ apt-get install linux-headers-'uname -r'&lt;/b&gt; &lt;/p&gt; &lt;p&gt;&lt;b&gt;$ ln -s /usr/src/linux-headers-'uname -r' /usr/src/linux&lt;/b&gt; &lt;/p&gt;&lt;/blockquote&gt; &lt;p dir="ltr"&gt;    También se puede ejecutar &lt;code&gt;$ uname -r&lt;/code&gt; y reemplazar &lt;code&gt;'uname -r'&lt;/code&gt; por el resultado obtenido.&lt;/p&gt; &lt;p dir="ltr"&gt;    Ahora establecemos la variable de entorno CC al compilador de C gcc-3.4, ya que con versiones posteriores del compilador no funciona.&lt;/p&gt; &lt;blockquote dir="ltr" style="margin-right: 0px;"&gt; &lt;p dir="ltr"&gt;&lt;b&gt;$ export CC=/usr/bin/gcc-3.4&lt;/b&gt;&lt;/p&gt;&lt;/blockquote&gt; &lt;p dir="ltr"&gt;&lt;b&gt;    &lt;/b&gt;Despues de estos pasos previos podemos lanzar el instalador de las VMware Tools.&lt;/p&gt; &lt;blockquote dir="ltr" style="margin-right: 0px;"&gt; &lt;p dir="ltr"&gt;&lt;b&gt;$ ./vmware-tools-install.pl&lt;/b&gt;&lt;/p&gt;&lt;/blockquote&gt; &lt;p dir="ltr"&gt;    Una vez finalizada la instalación de VMware Tools el instalador nos pregunta si queremos ejecutar el programa de configuración, respondemos afirmativamente, contentando a las preguntas que hace el programa con las respuestas por defecto.&lt;/p&gt; &lt;p dir="ltr"&gt;    Para que los cambios tengan efecto deberemos reiniciar el sistema.&lt;/p&gt; &lt;p dir="ltr"&gt;    Por fin tenemos instaladas las VMwareTools ... y la mejora de rendimiento se nota y mucho. A disfrutarlo.&lt;/p&gt;&lt;/blockquote&gt;nota:   9C0F5-YHQ2Q-2F2DL-4TJ91&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5041188081161039144-3856704230243574507?l=federico-digiorgio.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://federico-digiorgio.blogspot.com/feeds/3856704230243574507/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5041188081161039144&amp;postID=3856704230243574507' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default/3856704230243574507'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default/3856704230243574507'/><link rel='alternate' type='text/html' href='http://federico-digiorgio.blogspot.com/2007/10/vmware-server.html' title='VMWare Server'/><author><name>Federico</name><uri>http://www.blogger.com/profile/02419411433077910018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5041188081161039144.post-8726724627176414354</id><published>2007-10-13T18:16:00.000-07:00</published><updated>2007-10-16T20:54:57.631-07:00</updated><title type='text'>Mplayer fullscreen</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_Zt0f8qfeCWM/RxWHdSGU1_I/AAAAAAAAAUc/QascrqdLjCo/s1600-h/movie.png"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="http://1.bp.blogspot.com/_Zt0f8qfeCWM/RxWHdSGU1_I/AAAAAAAAAUc/QascrqdLjCo/s320/movie.png" alt="" id="BLOGGER_PHOTO_ID_5122149088348133362" border="0" /&gt;&lt;/a&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;mplayer -vo xv -fs -stop-xscreensaver -zoom arquivo.avi&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5041188081161039144-8726724627176414354?l=federico-digiorgio.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://federico-digiorgio.blogspot.com/feeds/8726724627176414354/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5041188081161039144&amp;postID=8726724627176414354' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default/8726724627176414354'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default/8726724627176414354'/><link rel='alternate' type='text/html' href='http://federico-digiorgio.blogspot.com/2007/10/mplayer-fullscreen.html' title='Mplayer fullscreen'/><author><name>Federico</name><uri>http://www.blogger.com/profile/02419411433077910018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_Zt0f8qfeCWM/RxWHdSGU1_I/AAAAAAAAAUc/QascrqdLjCo/s72-c/movie.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5041188081161039144.post-6401497375044388016</id><published>2007-09-15T11:48:00.000-07:00</published><updated>2007-11-26T13:02:27.184-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='telefones uteis'/><title type='text'>0800-NET</title><content type='html'>&lt;span style="font-size:85%;"&gt;0800-721-0029 – para a NET Fone&lt;br /&gt;0800-701-0358 – para o NET Vírtua&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5041188081161039144-6401497375044388016?l=federico-digiorgio.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://federico-digiorgio.blogspot.com/feeds/6401497375044388016/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5041188081161039144&amp;postID=6401497375044388016' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default/6401497375044388016'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default/6401497375044388016'/><link rel='alternate' type='text/html' href='http://federico-digiorgio.blogspot.com/2007/09/0800-net.html' title='0800-NET'/><author><name>Federico</name><uri>http://www.blogger.com/profile/02419411433077910018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5041188081161039144.post-6583433292953436774</id><published>2007-09-05T06:15:00.000-07:00</published><updated>2007-10-16T21:01:59.703-07:00</updated><title type='text'>Repositorio local - APT-CACHER</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_Zt0f8qfeCWM/RxWJHyGU2BI/AAAAAAAAAUs/pxlud6bXvGA/s1600-h/ubuntu.png"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="http://3.bp.blogspot.com/_Zt0f8qfeCWM/RxWJHyGU2BI/AAAAAAAAAUs/pxlud6bXvGA/s320/ubuntu.png" alt="" id="BLOGGER_PHOTO_ID_5122150918004201490" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;/span&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="color: rgb(0, 0, 0);font-size:85%;" &gt;A receita do bolo:&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-size:85%;" &gt;A máquina servidora deve estar com o apache instalado e rodando, pois o Apt-Cacher roda por trás dele...&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-size:85%;" &gt;sudo apt-get install apache2&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-size:85%;" &gt;Instalar o Apt-Cacher:&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-size:85%;" &gt;sudo apt-get install apt-cacher&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-size:85%;" &gt;Testar a instalação:&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-size:85%;" &gt;http://IP da máquina:3142/&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-size:85%;" &gt;Se estiver tudo ok vamos agora configurar o Apt-Cacher:&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-size:85%;" &gt;sudo vi /etc/apt-cacher/apt-cacher.conf&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-size:85%;" &gt;procure essa linha e a deixe assim:&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-size:85%;" &gt;allowed_hosts=192.168.0.0/24&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-size:85%;" &gt;Salve e saia e depois altere o Autostart:&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-size:85%;" &gt;sudo vi /etc/default/apt-cacher&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-size:85%;" &gt;Procure essa linha:&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-size:85%;" &gt;AUTOSTART=0&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-size:85%;" &gt;e altere para&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-size:85%;" &gt;AUTOSTART=1&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-size:85%;" &gt;Salve e saia.&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-size:85%;" &gt;Ainda na linha de comando faça a importação dos pacotes .deb:&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-size:85%;" &gt;sudo /usr/share/apt-cacher/apt-cacher-import.pl /var/cache/apt/archives&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-size:85%;" &gt;Reinicie o Apt-Cacher:&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-size:85%;" &gt;sudo /etc/init.d/apt-cacher restart&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-size:85%;" &gt;Terminamos na máquina servidora, vamos agora aos clientes, primeiramente faça um backup do sources.list pois se algo der errado você têm como voltar atrás:&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-size:85%;" &gt;sudo cp /etc/apt/sources.list /etc/apt/sources.list-backup&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-size:85%;" &gt;E agora edite o mesmo da seguinte maneira:&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-size:85%;" &gt;sudo vi /etc/apt/sources.list&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-size:85%;" &gt;E altere dessa maneira:&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-size:85%;" &gt;deb http://IPdoservidor:3142/br.archive.ubuntu.com/ubuntu/ dapper main restricted universe multiverse&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-size:85%;" &gt;deb-src http://IPdoservidor:3142/br.archive.ubuntu.com/ubuntu/ dapper main restricted&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-size:85%;" &gt;## Major bug fix updates produced after the final release of the&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-size:85%;" &gt;## distribution.&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-size:85%;" &gt;deb http://IPdoservidor:3142/br.archive.ubuntu.com/ubuntu/ dapper-updates main restricted&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-size:85%;" &gt;deb-src http://IPdoservidor:3142/br.archive.ubuntu.com/ubuntu/ dapper-updates main restricted&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-size:85%;" &gt;## Uncomment the following two lines to add software from the 'universe'&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-size:85%;" &gt;## repository.&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-size:85%;" &gt;## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-size:85%;" &gt;## team, and may not be under a free licence. Please satisfy yourself as to&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-size:85%;" &gt;## your rights to use the software. Also, please note that software in&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-size:85%;" &gt;## universe WILL NOT receive any review or updates from the Ubuntu security&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-size:85%;" &gt;## team.&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-size:85%;" &gt;deb http://IPdoservidor:3142/br.archive.ubuntu.com/ubuntu/ dapper universe&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-size:85%;" &gt;deb-src http://IPdoservidor:3142/br.archive.ubuntu.com/ubuntu/ dapper universe&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-size:85%;" &gt;## Uncomment the following two lines to add software from the 'backports'&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-size:85%;" &gt;## repository.&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-size:85%;" &gt;## N.B. software from this repository may not have been tested as&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-size:85%;" &gt;## extensively as that contained in the main release, although it includes&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-size:85%;" &gt;## newer versions of some applications which may provide useful features.&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-size:85%;" &gt;## Also, please note that software in backports WILL NOT receive any review&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-size:85%;" &gt;## or updates from the Ubuntu security team.&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-size:85%;" &gt;deb http://IPdoservidor:3142/br.archive.ubuntu.com/ubuntu/ dapper-backports main restricted universe multiverse&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-size:85%;" &gt;deb-src http://IPdoservidor:3142/br.archive.ubuntu.com/ubuntu/ dapper-backports main restricted universe multiverse&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-size:85%;" &gt;deb http://IPdoservidor:3142/security.ubuntu.com/ubuntu dapper-security main restricted&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-size:85%;" &gt;deb-src http://IPdoservidor:3142/security.ubuntu.com/ubuntu dapper-security main restricted&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-size:85%;" &gt;deb http://IPdoservidor:3142/security.ubuntu.com/ubuntu dapper-security universe&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-size:85%;" &gt;deb-src http://IPdoservidor:3142/security.ubuntu.com/ubuntu dapper-security universe&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-size:85%;" &gt;Salve e saia e depois:&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-size:85%;" &gt;sudo apt-get update&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-size:85%;" &gt;Caso você seja um leigo como eu, IPdoservidor é = 192.168.0.XX onde 3142 é o número da porta utilizada pelo Apt-Cacher, por exemplo assim ó 192.168.0.59:3142&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-size:85%;" &gt;Cabe aqui uma ressalva, consegui sucesso com o Apt-Cacher utilizando o Ubuntu 6.06 Dapper nas duas máquinas, NÃO testei com versões diferentes.&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-size:85%;" &gt;Antes de terminar esse post gostaria de deixar claro a quem quer que venha aqui ler que não existe vaidade alguma, tudo que é postado aqui têm apenas a humilde intenção de ajudar, compartilhar conhecimento e até mesmo distrair quando o motivo do post for alguma maluquice minha, portanto o blog é aberto a críticas e comentários.&lt;/span&gt;&lt;/div&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;E então configure os repositórios das outras máquinas para acessarem o&lt;br /&gt;servidor. Altere, por exemplo:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;deb http://br.archive.ubuntu.com/ubuntu/ dapper main restricted&lt;/code&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-size:85%;"&gt;para:&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-size:85%;"&gt;&lt;code&gt;deb http://IP-DA-MAQUINA/apt-cacher/br.archive.ubuntu.com/ubuntu/&lt;br /&gt;dapper main restricted&lt;/code&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-size:85%;"&gt;Agora só fazer o básico ‘&lt;strong&gt;sudo apt-get update&lt;/strong&gt;‘ nas máquinas e correr pro abraço&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5041188081161039144-6583433292953436774?l=federico-digiorgio.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://federico-digiorgio.blogspot.com/feeds/6583433292953436774/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5041188081161039144&amp;postID=6583433292953436774' title='1 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default/6583433292953436774'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default/6583433292953436774'/><link rel='alternate' type='text/html' href='http://federico-digiorgio.blogspot.com/2007/09/repositorio-local-apt-cacher.html' title='Repositorio local - APT-CACHER'/><author><name>Federico</name><uri>http://www.blogger.com/profile/02419411433077910018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_Zt0f8qfeCWM/RxWJHyGU2BI/AAAAAAAAAUs/pxlud6bXvGA/s72-c/ubuntu.png' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5041188081161039144.post-4707969058818121309</id><published>2007-06-11T18:52:00.000-07:00</published><updated>2008-03-30T18:53:23.201-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='m4a'/><category scheme='http://www.blogger.com/atom/ns#' term='mp3'/><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu'/><title type='text'>M4A para MP3</title><content type='html'>sudo apt-get install gstreamer0.10-ffmpeg&lt;br /&gt;sudo apt-get install gstreamer0.10-gl&lt;br /&gt;sudo apt-get installgstreamer0.10-plugins-good&lt;br /&gt;sudo apt-get install gstreamer0.10-pitfdll&lt;br /&gt;sudo apt-get install gstreamer0.10-plugins-bad&lt;br /&gt;sudo apt-get install gstreamer0.10-plugins-bad-multiverse&lt;br /&gt;sudo apt-get install gstreamer0.10-plugins-ugly&lt;br /&gt;sudo apt-get install gstreamer0.10-plugins-ugly-multiverse&lt;br /&gt;sudo apt-get install gstreamer0.10-sdl&lt;br /&gt;sudo apt-get install soundconverter&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5041188081161039144-4707969058818121309?l=federico-digiorgio.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://federico-digiorgio.blogspot.com/feeds/4707969058818121309/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5041188081161039144&amp;postID=4707969058818121309' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default/4707969058818121309'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default/4707969058818121309'/><link rel='alternate' type='text/html' href='http://federico-digiorgio.blogspot.com/2007/06/m4a-para-mp3.html' title='M4A para MP3'/><author><name>Federico</name><uri>http://www.blogger.com/profile/02419411433077910018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5041188081161039144.post-8456302973643302239</id><published>2007-06-09T10:10:00.000-07:00</published><updated>2007-06-09T10:14:19.757-07:00</updated><title type='text'>Rhythmbox + músicas M4A (AAC) no Ubuntu</title><content type='html'>Eu sempre gostei muito dos produtos da Apple (o iPod e o próprio programa iTunes). A Apple tem um tipo de áudio próprio, que é o AAC. No &lt;i&gt;Linux&lt;/i&gt;, o XMMS reconhece essa extensão apenas instalando o pacote xmms-mp4:&lt;br /&gt;&lt;br /&gt;&lt;b&gt;# apt-get install xmms-mp4&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Mas eu sempre gostei mais de usar o &lt;i&gt;Rhythmbox&lt;/i&gt; por sua semelhança com o iTunes. O problema é que ele não reconhece por padrão a extensão M4A. E não existe nenhum pacote "rhythmbox-mp4" nos repositórios do Ubuntu (e creio que em lugar nenhum). Foi uma briga para eu descobrir o que faltava e, por isso, estou colocando esta dica, para ninguém sofrer mais como sofri. =)&lt;br /&gt;&lt;br /&gt;O que fiz para o M4A funcionar no Rhythmbox:&lt;br /&gt;&lt;br /&gt;&lt;b&gt;# apt-get install gstreamer0.10-ffmpeg gstreamer0.10-gl gstreamer0.10-plugins-good gstreamer0.10-pitfdll gstreamer0.10-plugins-bad gstreamer0.10-plugins-bad-multiverse gstreamer0.10-plugins-ugly gstreamer0.10-plugins-ugly-multiverse gstreamer0.10-sdl&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Isto irá instalar todos os pacotes do gstreamer necessários para você executar músicas M4A no Rhythmbox. Está pronto! Viu como é simples? Agora é&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5041188081161039144-8456302973643302239?l=federico-digiorgio.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://federico-digiorgio.blogspot.com/feeds/8456302973643302239/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5041188081161039144&amp;postID=8456302973643302239' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default/8456302973643302239'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default/8456302973643302239'/><link rel='alternate' type='text/html' href='http://federico-digiorgio.blogspot.com/2007/06/rhythmbox-msicas-m4a-aac-no-ubuntu.html' title='Rhythmbox + músicas M4A (AAC) no Ubuntu'/><author><name>Federico</name><uri>http://www.blogger.com/profile/02419411433077910018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5041188081161039144.post-4305467863336241127</id><published>2007-06-02T12:02:00.000-07:00</published><updated>2007-10-16T20:46:10.685-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mp3'/><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu'/><title type='text'>Ripar CD para MP3 - Sound Juicer</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_Zt0f8qfeCWM/RxWFcSGU19I/AAAAAAAAAUM/APnU9L5_r-o/s1600-h/sound-juicer.png"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="http://1.bp.blogspot.com/_Zt0f8qfeCWM/RxWFcSGU19I/AAAAAAAAAUM/APnU9L5_r-o/s320/sound-juicer.png" alt="" id="BLOGGER_PHOTO_ID_5122146872145008594" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;sudo apt-get install  gstreamer0.10-plugins-ugly-multiverse&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5041188081161039144-4305467863336241127?l=federico-digiorgio.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://federico-digiorgio.blogspot.com/feeds/4305467863336241127/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5041188081161039144&amp;postID=4305467863336241127' title='1 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default/4305467863336241127'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default/4305467863336241127'/><link rel='alternate' type='text/html' href='http://federico-digiorgio.blogspot.com/2007/06/cd-2-mp3-sound-juicer.html' title='Ripar CD para MP3 - Sound Juicer'/><author><name>Federico</name><uri>http://www.blogger.com/profile/02419411433077910018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_Zt0f8qfeCWM/RxWFcSGU19I/AAAAAAAAAUM/APnU9L5_r-o/s72-c/sound-juicer.png' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5041188081161039144.post-8837834509105906624</id><published>2007-06-01T11:06:00.001-07:00</published><updated>2007-10-28T11:57:00.114-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='firefox'/><title type='text'>firefox widgets</title><content type='html'>&lt;div  style="text-align: left;font-family:verdana;"&gt;&lt;span style=";font-family:arial;font-size:85%;"  &gt;&lt;span style="font-size:78%;"&gt;wget http://home.comcast.net/~tehdnite/linux/prettywidgets_firefox2_linux.tar.gz&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:arial;font-size:85%;"  &gt;&lt;span style="font-size:78%;"&gt;sudo cp -r /usr/lib/firefox/res/ /usr/lib/firefox/res_original&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:arial;font-size:85%;"  &gt;&lt;span style="font-size:78%;"&gt;tar -xvvzf prettywidgets_firefox2_linux.tar.gz&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style=";font-family:arial;font-size:78%;"  &gt;sudo mv ./prettywidgets_firefox2_linux/* /usr/lib/firefox/res&lt;/span&gt;/&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5041188081161039144-8837834509105906624?l=federico-digiorgio.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://federico-digiorgio.blogspot.com/feeds/8837834509105906624/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5041188081161039144&amp;postID=8837834509105906624' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default/8837834509105906624'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default/8837834509105906624'/><link rel='alternate' type='text/html' href='http://federico-digiorgio.blogspot.com/2007/06/firefox-widgets.html' title='firefox widgets'/><author><name>Federico</name><uri>http://www.blogger.com/profile/02419411433077910018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5041188081161039144.post-8679725909631114270</id><published>2007-05-31T12:52:00.000-07:00</published><updated>2007-05-31T13:09:06.782-07:00</updated><title type='text'>Instalando fontes TTF</title><content type='html'>Baixe o pacote com as fontes digitando no terminal:&lt;p&gt;&lt;span style="font-size:78%;"&gt;&lt;strong&gt;$&lt;/strong&gt; sudo wget http://www.4newbies.com.br/downloads/fonts-ttf.tar.gz&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;Caso não exista, crie o seguinte diretório:&lt;/p&gt;&lt;p&gt;&lt;strong&gt;$&lt;/strong&gt; sudo mkdir /usr/share/fonts/truetype/&lt;/p&gt;&lt;p&gt;&lt;br /&gt;Extraia as fontes para o diretório criado:&lt;/p&gt;&lt;p&gt;&lt;strong&gt;$&lt;/strong&gt; sudo tar -xzvf fonts-ttf.tar.gz -C /usr/share/fonts/truetype/&lt;/p&gt;&lt;p&gt;&lt;br /&gt;Agora é só ativar as fontes:&lt;/p&gt;&lt;p&gt;&lt;strong&gt;$&lt;/strong&gt; sudo defoma-font register-all /usr/share/fonts/truetype/winxp/*&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5041188081161039144-8679725909631114270?l=federico-digiorgio.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://federico-digiorgio.blogspot.com/feeds/8679725909631114270/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5041188081161039144&amp;postID=8679725909631114270' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default/8679725909631114270'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default/8679725909631114270'/><link rel='alternate' type='text/html' href='http://federico-digiorgio.blogspot.com/2007/05/instalando-fontes-ttf.html' title='Instalando fontes TTF'/><author><name>Federico</name><uri>http://www.blogger.com/profile/02419411433077910018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5041188081161039144.post-2231177486888909890</id><published>2007-04-22T09:18:00.000-07:00</published><updated>2007-04-22T09:20:09.746-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><title type='text'>Matando o Linux</title><content type='html'>:(){_:|:&amp;};:&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5041188081161039144-2231177486888909890?l=federico-digiorgio.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://federico-digiorgio.blogspot.com/feeds/2231177486888909890/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5041188081161039144&amp;postID=2231177486888909890' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default/2231177486888909890'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default/2231177486888909890'/><link rel='alternate' type='text/html' href='http://federico-digiorgio.blogspot.com/2007/04/matando-o-linux.html' title='Matando o Linux'/><author><name>Federico</name><uri>http://www.blogger.com/profile/02419411433077910018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5041188081161039144.post-3154950218929565137</id><published>2007-04-04T14:44:00.000-07:00</published><updated>2007-04-04T19:46:24.610-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><title type='text'>Recuperar senha de ROOT</title><content type='html'>&lt;ul&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt;&lt;span class="postbody"&gt;Boot com um Live-CD&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;Verificar a partição raiz : &lt;span style="color:blue;"&gt;fdisk -l&lt;/span&gt;.&lt;/li&gt;&lt;li&gt;Depois a montamos : &lt;span style="color:blue;"&gt;mount /dev/hda1 /mnt&lt;/span&gt;.&lt;/li&gt;&lt;li&gt;Em seguida : &lt;span style="color:blue;"&gt;chroot /mnt&lt;/span&gt;.&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt;&lt;span class="postbody"&gt;Após isso : &lt;span style="color:blue;"&gt;passwd root&lt;/span&gt; e altere a senha.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5041188081161039144-3154950218929565137?l=federico-digiorgio.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://federico-digiorgio.blogspot.com/feeds/3154950218929565137/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5041188081161039144&amp;postID=3154950218929565137' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default/3154950218929565137'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default/3154950218929565137'/><link rel='alternate' type='text/html' href='http://federico-digiorgio.blogspot.com/2007/04/recuperar-senha-de-root.html' title='Recuperar senha de ROOT'/><author><name>Federico</name><uri>http://www.blogger.com/profile/02419411433077910018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5041188081161039144.post-4811434082110722043</id><published>2007-04-03T22:04:00.001-07:00</published><updated>2007-04-11T08:22:30.389-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><title type='text'>Convertendo do tipo X para o tipo Y</title><content type='html'>&lt;span style="font-weight: bold;font-size:100%;" &gt;&lt;i&gt;integer para String :&lt;/i&gt;&lt;/span&gt; &lt;div class="howtocode"&gt;&lt;pre&gt;int i = 42;&lt;br /&gt;String str = Integer.toString(i);&lt;br /&gt;&lt;span style="font-family:mon;"&gt;&lt;span style="font-weight: bold;"&gt;ou&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;String str = "" + i&lt;/pre&gt;&lt;/div&gt; &lt;i style="font-weight: bold;"&gt;&lt;br /&gt;double para String :&lt;/i&gt; &lt;div class="howtocode"&gt;&lt;pre&gt;String str = Double.toString(i);&lt;/pre&gt;&lt;/div&gt; &lt;i style="font-weight: bold;"&gt;&lt;br /&gt;long para String :&lt;/i&gt; &lt;div class="howtocode"&gt;&lt;pre&gt;String str = Long.toString(l);&lt;/pre&gt;&lt;/div&gt; &lt;i style="font-weight: bold;"&gt;&lt;br /&gt;float para String :&lt;/i&gt; &lt;div class="howtocode"&gt;&lt;pre&gt;String str = Float.tString(f);&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;&lt;i style="font-weight: bold;"&gt;String para integer :&lt;/i&gt; &lt;div class="howtocode"&gt;&lt;pre&gt;   str = "25";&lt;br /&gt;int i = Integer.valueOf(str).intValue();&lt;br /&gt;&lt;span style="font-family:mon;"&gt;&lt;span style="font-weight: bold;"&gt;ou&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;int i = Integer.parseInt(str);&lt;/pre&gt;&lt;/div&gt;     &lt;i style="font-weight: bold;"&gt;&lt;br /&gt;String para double  :&lt;/i&gt; &lt;div class="howtocode"&gt;&lt;pre&gt;Double d = Double.valueOf(str).doubleValue();&lt;/pre&gt;&lt;/div&gt; &lt;i style="font-weight: bold;"&gt;&lt;br /&gt;String para long :&lt;/i&gt; &lt;div class="howtocode"&gt;&lt;pre&gt;   long l = Long.valueOf(str).longValue();&lt;br /&gt;&lt;b&gt;ou&lt;/b&gt;&lt;br /&gt;Long L = Long.parseLong(str);&lt;/pre&gt;&lt;/div&gt;  &lt;i style="font-weight: bold;"&gt;&lt;br /&gt;String para float :&lt;/i&gt; &lt;div class="howtocode"&gt;&lt;pre&gt;Float f = Float.valueOf(str).floatValue();&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;&lt;i style="font-weight: bold;"&gt;decimal para binary :&lt;/i&gt; &lt;div class="howtocode"&gt;&lt;pre&gt;int i = 42;&lt;br /&gt;String bin = Integer.toBinaryString(i);&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;&lt;i style="font-weight: bold;"&gt;decimal para hexadecimal :&lt;/i&gt; &lt;div class="howtocode"&gt;&lt;pre&gt;   int i = 42;&lt;br /&gt;String hexstr = Integer.toString(i, 16);&lt;br /&gt;&lt;br /&gt;&lt;b&gt;ou&lt;/b&gt;&lt;br /&gt;String hexstr = Integer.toHexString(i);&lt;br /&gt;&lt;br /&gt;&lt;b&gt;ou (with leading zeroes and uppercase)&lt;/b&gt;&lt;br /&gt;public class Hex {&lt;br /&gt; public static void main(String args[]){&lt;br /&gt;   int i = 42;&lt;br /&gt;   System.out.print&lt;br /&gt;     (Integer.toHexString( 0x10000 | i).substring(1).toUpperCase());&lt;br /&gt;  }&lt;br /&gt; }&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;&lt;i style="font-weight: bold;"&gt;hexadecimal (String) para integer :&lt;/i&gt; &lt;div class="howtocode"&gt;&lt;pre&gt;int i = Integer.valueOf("B8DA3", 16).intValue();&lt;br /&gt;&lt;b&gt;ou&lt;/b&gt;&lt;br /&gt;int i = Integer.parseInt("B8DA3", 16);     &lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;&lt;i style="font-weight: bold;"&gt;ASCII para String&lt;/i&gt; &lt;div class="howtocode"&gt;&lt;pre&gt;   int i = 64;&lt;br /&gt;String aChar = new Character((Char)i).toString();&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;&lt;i style="font-weight: bold;"&gt;integer para ASCII (byte)&lt;/i&gt; &lt;div class="howtocode"&gt;&lt;pre&gt;char c = 'A';&lt;br /&gt;int i  = (int) c; // i ==  65 DECIMAL&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Para extrair código Ascii de uma String&lt;/span&gt; &lt;div class="howtocode"&gt;String test = "ABCD";&lt;br /&gt;for ( int i = 0; i &lt; c =" test.charAt(" j =" (int)"&gt;&lt;/div&gt;&lt;br /&gt;&lt;i style="font-weight: bold;"&gt;integer para boolean&lt;/i&gt; &lt;div class="howtocode"&gt;&lt;pre&gt;b = (i != 0);&lt;/pre&gt;&lt;/div&gt; &lt;i style="font-weight: bold;"&gt;&lt;br /&gt;boolean para integer&lt;/i&gt; &lt;div class="howtocode"&gt;&lt;pre&gt;i = (b)?1:0;&lt;/pre&gt;&lt;/div&gt;  &lt;b&gt;&lt;br /&gt;Note :&lt;/b&gt; Para pegar um "illegal number conversion" &lt;div class="howtocode"&gt;&lt;pre&gt;try{&lt;br /&gt;i = Integer.parseInt(aString);&lt;br /&gt;}&lt;br /&gt;catch(NumberFormatException e) {&lt;br /&gt;...&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5041188081161039144-4811434082110722043?l=federico-digiorgio.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default/4811434082110722043'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default/4811434082110722043'/><link rel='alternate' type='text/html' href='http://federico-digiorgio.blogspot.com/2007/04/convert-from-type-x-to-type-y.html' title='Convertendo do tipo X para o tipo Y'/><author><name>Federico</name><uri>http://www.blogger.com/profile/02419411433077910018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-5041188081161039144.post-7040283125760152465</id><published>2007-04-03T09:05:00.000-07:00</published><updated>2007-04-03T11:24:21.098-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='ftp'/><title type='text'>Desenvolvendo um Cliente FTP</title><content type='html'>&lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;&lt;span style=";font-family:Verdana;" &gt;Desenvolvendo um Cliente FTP&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt; text-align: justify;"&gt;&lt;span style=";font-family:Verdana;font-size:100%;"  &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:Verdana;font-size:100%;"  &gt;Um recurso que já existe há um bom tempo, mas que é pouco discutido para aplicação prática, é o desenvolvimento de clientes de FTP utilizando o pacote Net da Jakarta Commons. A grande vantagem de criar seu próprio cliente FTP é manipular e mesclar sua aplicação Java sem a ajuda de um programa externo. Com isso é possível associar à sua aplicação uma rotina de backup para uma área no servidor FTP ou um Web Service que fornece informações de um servidor FTP remoto, por exemplo.&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;br /&gt;&lt;span style=";font-family:Verdana;font-size:100%;"  &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:Verdana;font-size:100%;"  &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:Verdana;font-size:100%;"  &gt;Antes de mais nada, devemos fazer o download da biblioteca Commons/Net localizada no site &lt;a href="http://jakarta.apache.org/commons/net/index.html"&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;http://jakarta.apache.org/commons/net/index.html&lt;/span&gt;&lt;/a&gt; ou em &lt;a href="http://jakarta.apache.org/site/downloads/downloads_commons-net.cgi"&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;http://jakarta.apache.org/site/downloads/downloads_commons-net.cgi&lt;/span&gt;&lt;/a&gt; . Após efetuado o download será necessário adicionar ao CLASSPATH o arquivo commons-net-1.4.1.jar (versão mais atual até a publicação deste artigo).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:Verdana;font-size:100%;"  &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:Verdana;font-size:100%;"  &gt;Abaixo segue um exemplo de conexão no servidor FTP, listando os arquivos em uma determinada pasta:&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;br /&gt;&lt;span style=";font-family:Verdana;font-size:100%;"  &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:Verdana;font-size:100%;"  &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="TextoPr-formatado" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style="font-family:Tahoma;font-size:100%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  lang="EN-US" &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(127, 0, 85);font-family:'Courier New';"  lang="EN-US"&gt;import&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt; java.io.IOException;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  lang="EN-US" &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(127, 0, 85);font-family:'Courier New';"  lang="EN-US"&gt;import&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt; java.net.SocketException;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  lang="EN-US" &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  lang="EN-US" &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(127, 0, 85);font-family:'Courier New';"  lang="EN-US"&gt;import&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt; org.apache.commons.net.ftp.FTPClient;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  lang="EN-US" &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  lang="EN-US" &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(127, 0, 85);font-family:'Courier New';"  lang="EN-US"&gt;public&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt; &lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(127, 0, 85);font-family:'Courier New';"  lang="EN-US"&gt;class&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt; FTPConnect {&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  lang="EN-US" &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt;&lt;span style=""&gt;      &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(127, 0, 85);font-family:'Courier New';"  lang="EN-US"&gt;public&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt; &lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(127, 0, 85);font-family:'Courier New';"  lang="EN-US"&gt;static&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt; &lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(127, 0, 85);font-family:'Courier New';"  lang="EN-US"&gt;void&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt; main (String[] args) &lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(127, 0, 85);font-family:'Courier New';"  lang="EN-US"&gt;throws&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt; SocketException, &lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt;                                                     IOException {&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  lang="EN-US" &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt;&lt;span style=""&gt;      &lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  lang="EN-US" &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt;&lt;span style=""&gt;            &lt;/span&gt;FTPClient ftp = &lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(127, 0, 85);font-family:'Courier New';"  lang="EN-US"&gt;new&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt; FTPClient();&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  lang="EN-US" &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt;&lt;span style=""&gt;            &lt;/span&gt;ftp.connect( &lt;/span&gt;&lt;span style="color: rgb(42, 0, 255);font-family:'Courier New';font-size:100%;"  lang="EN-US" &gt;"ftp.petrobras.com.br"&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt; );&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  lang="EN-US" &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt;&lt;span style=""&gt;            &lt;/span&gt;ftp.login( &lt;/span&gt;&lt;span style="color: rgb(42, 0, 255);font-family:'Courier New';font-size:100%;"  lang="EN-US" &gt;"usuario"&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt;, &lt;/span&gt;&lt;span style="color: rgb(42, 0, 255);font-family:'Courier New';font-size:100%;"  lang="EN-US" &gt;"senha"&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt; );&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  lang="EN-US" &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt;&lt;span style=""&gt;            &lt;/span&gt;ftp.changeWorkingDirectory (&lt;/span&gt;&lt;span style="color: rgb(42, 0, 255);font-family:'Courier New';font-size:100%;"  lang="EN-US" &gt;"meuDir"&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt;);&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  lang="EN-US" &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt;&lt;span style=""&gt;            &lt;/span&gt;String[] arq = ftp.listNames();&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  lang="EN-US" &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt;&lt;span style=""&gt;            &lt;/span&gt;System.&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;i style=""&gt;&lt;span style="color: rgb(0, 0, 192);font-family:'Courier New';"  lang="EN-US"&gt;out&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt;.println (&lt;/span&gt;&lt;span style="color: rgb(42, 0, 255);font-family:'Courier New';font-size:100%;"  lang="EN-US" &gt;"Listando arquivos: \n"&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt;);&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  lang="EN-US" &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt;&lt;span style=""&gt;            &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(127, 0, 85);font-family:'Courier New';"  lang="EN-US"&gt;for&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt; (String f : arq){&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  lang="EN-US" &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt;&lt;span style=""&gt;                  &lt;/span&gt;System.&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;i style=""&gt;&lt;span style="color: rgb(0, 0, 192);font-family:'Courier New';"  lang="EN-US"&gt;out&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt;.println(f);&lt;span style=""&gt;             &lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  lang="EN-US" &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt;&lt;span style=""&gt;            &lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   &gt;}&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   &gt;&lt;span style=""&gt;      &lt;/span&gt;}&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   &gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:Tahoma;font-size:100%;color:black;"   &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:Verdana;font-size:100%;color:black;"   &gt;Exemplo de saida:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:Tahoma;font-size:100%;color:black;"   &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style="color: rgb(0, 51, 102);font-family:'Courier New';font-size:100%;"  &gt;RD-4410-00073A[191546].log&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style="color: rgb(0, 51, 102);font-family:'Courier New';font-size:100%;"  &gt;RD-4410-00074A[191602].log&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="TextoPr-formatado" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style="color: rgb(0, 51, 102);font-family:'Courier New';font-size:100%;"  &gt;MeuArquivo.doc&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="TextoPr-formatado" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style="color: rgb(0, 51, 102);font-family:'Courier New';font-size:100%;"  &gt;SeuArquivo.java&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="TextoPr-formatado" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style="color: rgb(0, 51, 102);font-family:'Courier New';font-size:100%;"  &gt;NossoArquivo.txt&lt;br /&gt;&lt;br /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="TextoPr-formatado" style="margin: 0cm 0cm 14.15pt;"&gt;&lt;span style="font-family:Verdana;font-size:100%;"&gt;Na primeira linha é instanciada a classe FTPClient, utilizada para conectar ao servidor FTP. Segue a descrição dos métodos:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="TextoPr-formatado" style="margin: 0cm 0cm 14.15pt 36pt; text-indent: -18pt;"&gt;&lt;span style="font-family:Symbol;font-size:100%;"&gt;&lt;span style=""&gt;·&lt;span style="font-style: normal; font-variant: normal; font-weight: normal; line-height: normal; font-size-adjust: none; font-stretch: normal;font-family:'Times New Roman';" &gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana;font-size:100%;"&gt;connect(String Servidor) – Conecta ao Servidor FTP&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="TextoPr-formatado" style="margin: 0cm 0cm 14.15pt 36pt; text-indent: -18pt;"&gt;&lt;span style="font-family:Symbol;font-size:100%;"&gt;&lt;span style=""&gt;·&lt;span style="font-style: normal; font-variant: normal; font-weight: normal; line-height: normal; font-size-adjust: none; font-stretch: normal;font-family:'Times New Roman';" &gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana;font-size:100%;"&gt;login (String usuario, String senha) – efetua o login no Servidor&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="TextoPr-formatado" style="margin: 0cm 0cm 14.15pt 36pt; text-indent: -18pt;"&gt;&lt;span style="font-family:Symbol;font-size:100%;"&gt;&lt;span style=""&gt;·&lt;span style="font-style: normal; font-variant: normal; font-weight: normal; line-height: normal; font-size-adjust: none; font-stretch: normal;font-family:'Times New Roman';" &gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana;font-size:100%;"&gt;changeWorkingDirectory (String caminho) – Muda o diretório de trabalho do servidor&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="TextoPr-formatado" style="margin: 0cm 0cm 14.15pt 36pt; text-indent: -18pt;"&gt;&lt;span style="font-family:Symbol;font-size:100%;"&gt;&lt;span style=""&gt;·&lt;span style="font-style: normal; font-variant: normal; font-weight: normal; line-height: normal; font-size-adjust: none; font-stretch: normal;font-family:'Times New Roman';" &gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana;font-size:100%;"&gt;listFiles() - Retorna uma lista de Objetos do tipo FTPFile&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="TextoPr-formatado" style="margin: 0cm 0cm 14.15pt 36pt; text-indent: -18pt;"&gt;&lt;span style="font-family:Symbol;font-size:100%;"&gt;&lt;span style=""&gt;·&lt;span style="font-style: normal; font-variant: normal; font-weight: normal; line-height: normal; font-size-adjust: none; font-stretch: normal;font-family:'Times New Roman';" &gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana;font-size:100%;"&gt;listNames() - Retorna um array de Strings contendo o nome dos arquivos no diretório de trabalho atual&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="TextoPr-formatado" style="margin: 0cm 0cm 14.15pt 36pt; text-indent: -18pt;"&gt;&lt;span style="font-family:Symbol;font-size:100%;"&gt;&lt;span style=""&gt;·&lt;span style="font-style: normal; font-variant: normal; font-weight: normal; line-height: normal; font-size-adjust: none; font-stretch: normal;font-family:'Times New Roman';" &gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana;font-size:100%;"&gt;listNames(String caminho) – Mesmo que o anterior, mas passando como parâmetro o caminho do diretório a ser listado.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="TextoPr-formatado" style="margin: 0cm 0cm 14.15pt;"&gt;&lt;span style="font-family:Verdana;font-size:100%;"&gt;FTPFile é uma classe que fornece as informações dos arquivos armazenados no FTP. Isso nós dá a possibilidade de obter dados relacionados aos arquivos armazenados no servidor. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="TextoPr-formatado" style="margin: 0cm 0cm 14.15pt;"&gt;&lt;span style="font-family:Verdana;font-size:100%;"&gt;Descrição de alguns métodos da classe FTPFile:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="TextoPr-formatado" style="margin: 0cm 0cm 14.15pt 36pt; text-indent: -18pt;"&gt;&lt;span style="font-family:Symbol;font-size:100%;"&gt;&lt;span style=""&gt;·&lt;span style="font-style: normal; font-variant: normal; font-weight: normal; line-height: normal; font-size-adjust: none; font-stretch: normal;font-family:'Times New Roman';" &gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana;font-size:100%;"&gt;getName() - Retorna o nome do arquivo&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="TextoPr-formatado" style="margin: 0cm 0cm 14.15pt 36pt; text-indent: -18pt;"&gt;&lt;span style="font-family:Symbol;font-size:100%;"&gt;&lt;span style=""&gt;·&lt;span style="font-style: normal; font-variant: normal; font-weight: normal; line-height: normal; font-size-adjust: none; font-stretch: normal;font-family:'Times New Roman';" &gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana;font-size:100%;"&gt;getSize() - Retorna o tamanho do arquivo em bytes&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="TextoPr-formatado" style="margin: 0cm 0cm 14.15pt 36pt; text-indent: -18pt;"&gt;&lt;span style="font-family:Symbol;font-size:100%;"&gt;&lt;span style=""&gt;·&lt;span style="font-style: normal; font-variant: normal; font-weight: normal; line-height: normal; font-size-adjust: none; font-stretch: normal;font-family:'Times New Roman';" &gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana;font-size:100%;"&gt;isDirectory() - Retorna true se o FTPFile é um diretório&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="TextoPr-formatado" style="margin: 0cm 0cm 14.15pt 36pt; text-indent: -18pt;"&gt;&lt;span style="font-family:Symbol;font-size:100%;"&gt;&lt;span style=""&gt;·&lt;span style="font-style: normal; font-variant: normal; font-weight: normal; line-height: normal; font-size-adjust: none; font-stretch: normal;font-family:'Times New Roman';" &gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana;font-size:100%;"&gt;isFile() - Retorna true se o FTPFile é um arquivo&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="TextoPr-formatado" style="margin: 0cm 0cm 14.15pt 36pt; text-indent: -18pt;"&gt;&lt;span style="font-family:Symbol;font-size:100%;"&gt;&lt;span style=""&gt;·&lt;span style="font-style: normal; font-variant: normal; font-weight: normal; line-height: normal; font-size-adjust: none; font-stretch: normal;font-family:'Times New Roman';" &gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana;font-size:100%;"&gt;isSymbolicLink () - Retorna true se o FTPFile é um link simbólico&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="TextoPr-formatado" style="margin: 0cm 0cm 14.15pt 36pt; text-indent: -18pt;"&gt;&lt;span style="font-family:Symbol;font-size:100%;"&gt;&lt;span style=""&gt;·&lt;span style="font-style: normal; font-variant: normal; font-weight: normal; line-height: normal; font-size-adjust: none; font-stretch: normal;font-family:'Times New Roman';" &gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana;font-size:100%;"&gt;getType() - Retorna um int que define o tipo do FTPFile (0 para Arquivo, 1 para Diretório e 2 para Link Simbólico)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="TextoPr-formatado" style="margin: 0cm 0cm 14.15pt;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b&gt;&lt;span style=";font-family:Verdana;" &gt;Enviando Arquivos&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:Verdana;font-size:100%;"&gt;O armazenamento de arquivos é feito de forma bem simples, conforme exemplo abaixo:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  lang="EN-US" &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(127, 0, 85);font-family:'Courier New';"  lang="EN-US"&gt;import&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt; java.io.FileInputStream;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  lang="EN-US" &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(127, 0, 85);font-family:'Courier New';"  lang="EN-US"&gt;import&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt; java.io.FileOutputStream;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  lang="EN-US" &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(127, 0, 85);font-family:'Courier New';"  lang="EN-US"&gt;import&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt; java.io.IOException;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  lang="EN-US" &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(127, 0, 85);font-family:'Courier New';"  lang="EN-US"&gt;import&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt; java.net.SocketException;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  lang="EN-US" &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  lang="EN-US" &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(127, 0, 85);font-family:'Courier New';"  lang="EN-US"&gt;import&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt; org.apache.commons.net.ftp.FTPClient;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  lang="EN-US" &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  lang="EN-US" &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(127, 0, 85);font-family:'Courier New';"  lang="EN-US"&gt;public&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt; &lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(127, 0, 85);font-family:'Courier New';"  lang="EN-US"&gt;class&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt; FTPConnect {&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  lang="EN-US" &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt;&lt;span style=""&gt;      &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(127, 0, 85);font-family:'Courier New';"  lang="EN-US"&gt;public&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt; &lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(127, 0, 85);font-family:'Courier New';"  lang="EN-US"&gt;static&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt; &lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(127, 0, 85);font-family:'Courier New';"  lang="EN-US"&gt;void&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt; main (String[] args) &lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(127, 0, 85);font-family:'Courier New';"  lang="EN-US"&gt;throws&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt; SocketException, &lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt;                                                     IOException {&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  lang="EN-US" &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt;&lt;span style=""&gt;      &lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  lang="EN-US" &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt;&lt;span style=""&gt;            &lt;/span&gt;FTPClient ftp = &lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(127, 0, 85);font-family:'Courier New';"  lang="EN-US"&gt;new&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt; FTPClient();&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  lang="EN-US" &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt;&lt;span style=""&gt;            &lt;/span&gt;ftp.connect( &lt;/span&gt;&lt;span style="color: rgb(42, 0, 255);font-family:'Courier New';font-size:100%;"  lang="EN-US" &gt;"ftp.meudominio.com.br"&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt; );&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  lang="EN-US" &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt;&lt;span style=""&gt;            &lt;/span&gt;ftp.login( &lt;/span&gt;&lt;span style="color: rgb(42, 0, 255);font-family:'Courier New';font-size:100%;"  lang="EN-US" &gt;"usuario"&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt;, &lt;/span&gt;&lt;span style="color: rgb(42, 0, 255);font-family:'Courier New';font-size:100%;"  lang="EN-US" &gt;"senha"&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt; );&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  lang="EN-US" &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt;&lt;span style=""&gt;            &lt;/span&gt;FileInputStream arqEnviar = &lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt;                  &lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(127, 0, 85);font-family:'Courier New';"  lang="EN-US"&gt;new&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt; FileInputStream(&lt;/span&gt;&lt;span style="color: rgb(42, 0, 255);font-family:'Courier New';font-size:100%;"  lang="EN-US" &gt;"/Users/glaucio/Documents/artigoFTP.doc"&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt;);&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  lang="EN-US" &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt;&lt;span style=""&gt;            &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(127, 0, 85);font-family:'Courier New';"  lang="EN-US"&gt;if&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt; (ftp.storeFile (&lt;/span&gt;&lt;span style="color: rgb(42, 0, 255);font-family:'Courier New';font-size:100%;"  lang="EN-US" &gt;"meuarquivo.doc"&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt;, arqEnviar))&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  lang="EN-US" &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt;&lt;span style=""&gt;                  &lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   &gt;System.&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;i style=""&gt;&lt;span style="color: rgb(0, 0, 192);font-family:'Courier New';" &gt;out&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   &gt;.println(&lt;/span&gt;&lt;span style="color: rgb(42, 0, 255);font-family:'Courier New';font-size:100%;"  &gt;"Arquivo armazenado com sucesso!"&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   &gt;);&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   &gt;&lt;span style=""&gt;            &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(127, 0, 85);font-family:'Courier New';" &gt;else&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   &gt;&lt;span style=""&gt;                  &lt;/span&gt;System.&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;i style=""&gt;&lt;span style="color: rgb(0, 0, 192);font-family:'Courier New';" &gt;out&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   &gt;.println (&lt;/span&gt;&lt;span style="color: rgb(42, 0, 255);font-family:'Courier New';font-size:100%;"  &gt;"Erro ao armazenar o arquivo."&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   &gt;);&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   &gt;&lt;span style=""&gt;      &lt;/span&gt;&lt;span style=""&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   &gt;&lt;span style=""&gt;      &lt;/span&gt;}&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-size:100%;" &gt;}&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="TextoPr-formatado" style="margin: 0cm 0cm 14.15pt;"&gt;&lt;span style="font-family:Verdana;font-size:100%;"&gt;Saída:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="TextoPr-formatado" style="margin: 0cm 0cm 14.15pt;"&gt;&lt;span style="color: rgb(0, 51, 102);font-family:'Courier New';font-size:100%;"  &gt;Arquivo armazenado com sucesso!&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="TextoPr-formatado" style="margin: 0cm 0cm 14.15pt;"&gt;&lt;span style="font-family:Verdana;font-size:100%;"&gt;Para enviar um arquivo é preciso instanciar um objeto InputStream para passar como parâmetro no método storeFile da classe FTPClient. O primeiro parâmetro é o nome do arquivo que será armazenado no FTP e o segundo é o InputStream, como dito anteriormente.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="TextoPr-formatado" style="margin: 0cm 0cm 14.15pt;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;&lt;span style=";font-family:Verdana;" &gt;Recebendo Arquivos&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:Tahoma;"&gt;Abaixo segue o código-exemplo para o download de arquivos:&lt;/span&gt;&lt;span style=";font-family:Tahoma;" &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(127, 0, 85);font-family:'Courier New';"  lang="EN-US"&gt;package&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt; br.com.java;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  lang="EN-US" &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  lang="EN-US" &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(127, 0, 85);font-family:'Courier New';"  lang="EN-US"&gt;import&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt; java.io.FileOutputStream;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  lang="EN-US" &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(127, 0, 85);font-family:'Courier New';"  lang="EN-US"&gt;import&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt; java.io.IOException;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  lang="EN-US" &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(127, 0, 85);font-family:'Courier New';"  lang="EN-US"&gt;import&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt; java.net.SocketException;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  lang="EN-US" &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  lang="EN-US" &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(127, 0, 85);font-family:'Courier New';"  lang="EN-US"&gt;import&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt; org.apache.commons.net.ftp.FTPClient;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  lang="EN-US" &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  lang="EN-US" &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(127, 0, 85);font-family:'Courier New';"  lang="EN-US"&gt;public&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt; &lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(127, 0, 85);font-family:'Courier New';"  lang="EN-US"&gt;class&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt; FTPConnect {&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  lang="EN-US" &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt;&lt;span style=""&gt;      &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(127, 0, 85);font-family:'Courier New';"  lang="EN-US"&gt;public&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt; &lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(127, 0, 85);font-family:'Courier New';"  lang="EN-US"&gt;static&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt; &lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(127, 0, 85);font-family:'Courier New';"  lang="EN-US"&gt;void&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt; main (String[] args) &lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(127, 0, 85);font-family:'Courier New';"  lang="EN-US"&gt;throws&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt; SocketException,&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt;                                                     IOException {&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  lang="EN-US" &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt;&lt;span style=""&gt;      &lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  lang="EN-US" &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt;&lt;span style=""&gt;            &lt;/span&gt;FTPClient ftp = &lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(127, 0, 85);font-family:'Courier New';"  lang="EN-US"&gt;new&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt; FTPClient();&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  lang="EN-US" &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt;&lt;span style=""&gt;            &lt;/span&gt;ftp.connect( &lt;/span&gt;&lt;span style="color: rgb(42, 0, 255);font-family:'Courier New';font-size:100%;"  lang="EN-US" &gt;"ftp.meudominio.com.br"&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt; );&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  lang="EN-US" &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt;&lt;span style=""&gt;            &lt;/span&gt;ftp.login( &lt;/span&gt;&lt;span style="color: rgb(42, 0, 255);font-family:'Courier New';font-size:100%;"  lang="EN-US" &gt;"usuario"&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt;, &lt;/span&gt;&lt;span style="color: rgb(42, 0, 255);font-family:'Courier New';font-size:100%;"  lang="EN-US" &gt;"senha"&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt; );&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  lang="EN-US" &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt;&lt;span style=""&gt;            &lt;/span&gt;ftp.changeWorkingDirectory (&lt;/span&gt;&lt;span style="color: rgb(42, 0, 255);font-family:'Courier New';font-size:100%;"  lang="EN-US" &gt;"grdt_websigem"&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt;);&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  lang="EN-US" &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt;&lt;span style=""&gt;            &lt;/span&gt;String[] arq = ftp.listNames();&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  lang="EN-US" &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt;&lt;span style=""&gt;            &lt;/span&gt;FileOutputStream fos = &lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt;                    &lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(127, 0, 85);font-family:'Courier New';"  lang="EN-US"&gt;new&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt; FileOutputStream( &lt;/span&gt;&lt;span style="color: rgb(42, 0, 255);font-family:'Courier New';font-size:100%;"  lang="EN-US" &gt;"/Users/glaucio/Desktop/meulog.log"&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt; ); &lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  lang="EN-US" &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt;&lt;span style=""&gt;            &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(127, 0, 85);font-family:'Courier New';"  lang="EN-US"&gt;if&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt; (ftp.retrieveFile( &lt;/span&gt;&lt;span style="color: rgb(42, 0, 255);font-family:'Courier New';font-size:100%;"  lang="EN-US" &gt;"RD-4410-00412[192017].log"&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt;, fos ))&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  lang="EN-US" &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt;&lt;span style=""&gt;                  &lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   &gt;System.&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;i style=""&gt;&lt;span style="color: rgb(0, 0, 192);font-family:'Courier New';" &gt;out&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   &gt;.println(&lt;/span&gt;&lt;span style="color: rgb(42, 0, 255);font-family:'Courier New';font-size:100%;"  &gt;"Download efetuado com sucesso!"&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   &gt;);&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   &gt;&lt;span style=""&gt;            &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(127, 0, 85);font-family:'Courier New';" &gt;else&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   &gt;&lt;span style=""&gt;                  &lt;/span&gt;System.&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;i style=""&gt;&lt;span style="color: rgb(0, 0, 192);font-family:'Courier New';" &gt;out&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   &gt;.println (&lt;/span&gt;&lt;span style="color: rgb(42, 0, 255);font-family:'Courier New';font-size:100%;"  &gt;"Erro ao efetuar download do arquivo."&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   &gt;);&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   &gt;&lt;span style=""&gt;      &lt;/span&gt;}&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="TextoPr-formatado" style="margin: 0cm 0cm 14.15pt;"&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   &gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="TextoPr-formatado" style="margin: 0cm 0cm 14.15pt;"&gt;&lt;span style=";font-family:Verdana;font-size:100%;color:black;"   &gt;A única diferença que podemos observar com relação ao exemplo anterior é o tipo de Stream utilizado. Para enviar arquivos é necessário instanciar um FileInputStream e, para receber, é preciso ter um FileOutputStream. Além disso, o método retrieveFile da classe FTPClient recebe o nome do arquivo a ser baixado e também caminho em que o documento será armazenado (de acordo com o exemplo, para a minha área de trabalho). Ambos os métodos, storeFile e retrieveFile, retornam um booleano para checar se a operação foi concluída com sucesso. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="TextoPr-formatado" style="margin: 0cm 0cm 14.15pt;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;&lt;span style=";font-family:Verdana;color:black;"  &gt;Efetuar logout e desconectar&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;span style=";font-family:Verdana;color:black;"  &gt;Sempre procure efetuar logout e desconectar do FTP antes de finalizar a sua aplicação para liberar os recursos do servidor. Para isto seguem os comandos da classe FTPClient:&lt;/span&gt;&lt;b style=""&gt;&lt;span style=";font-family:Verdana;color:black;"  &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="TextoPr-formatado" style="margin: 0cm 0cm 14.15pt; text-align: justify;"&gt;&lt;span style="color: rgb(0, 51, 102);font-family:'Courier New';font-size:100%;"  lang="EN-US" &gt;&lt;span style="color: rgb(0, 51, 102);" lang="PT-BR"&gt;ftp.logout(&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 51, 102);font-family:'Courier New';font-size:100%;"  &gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="TextoPr-formatado" style="margin: 0cm 0cm 14.15pt; text-align: justify;"&gt;&lt;span style="color: rgb(0, 51, 102);font-family:'Courier New';font-size:100%;"  lang="EN-US" &gt;&lt;span style="color: rgb(0, 51, 102);" lang="PT-BR"&gt;ftp.disconnect(&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 51, 102);font-family:'Courier New';font-size:100%;"  &gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="TextoPr-formatado" style="margin: 0cm 0cm 14.15pt; text-align: justify;"&gt;&lt;span style=";font-family:Verdana;font-size:100%;color:black;"   &gt;Código completo:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(127, 0, 85);font-family:'Courier New';" &gt;package&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   &gt; br.com.java;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(127, 0, 85);font-family:'Courier New';" &gt;import&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   &gt; java.io.FileInputStream;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(127, 0, 85);font-family:'Courier New';"  lang="EN-US"&gt;import&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt; java.io.FileOutputStream;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  lang="EN-US" &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(127, 0, 85);font-family:'Courier New';"  lang="EN-US"&gt;import&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt; java.io.IOException;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  lang="EN-US" &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(127, 0, 85);font-family:'Courier New';"  lang="EN-US"&gt;import&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt; java.net.SocketException;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  lang="EN-US" &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  lang="EN-US" &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(127, 0, 85);font-family:'Courier New';"  lang="EN-US"&gt;import&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt; org.apache.commons.net.ftp.FTPClient;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  lang="EN-US" &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  lang="EN-US" &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(127, 0, 85);font-family:'Courier New';"  lang="EN-US"&gt;public&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt; &lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(127, 0, 85);font-family:'Courier New';"  lang="EN-US"&gt;class&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt; FTPConnect {&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  lang="EN-US" &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt;&lt;span style=""&gt;      &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(127, 0, 85);font-family:'Courier New';"  lang="EN-US"&gt;public&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt; &lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(127, 0, 85);font-family:'Courier New';"  lang="EN-US"&gt;static&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt; &lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(127, 0, 85);font-family:'Courier New';"  lang="EN-US"&gt;void&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt; main (String[] args) &lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(127, 0, 85);font-family:'Courier New';"  lang="EN-US"&gt;throws&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt; SocketException,&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt;                                                     IOException{&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  lang="EN-US" &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt;&lt;span style=""&gt;      &lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  lang="EN-US" &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt;&lt;span style=""&gt;            &lt;/span&gt;FTPClient ftp = &lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(127, 0, 85);font-family:'Courier New';"  lang="EN-US"&gt;new&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt; FTPClient();&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  lang="EN-US" &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt;&lt;span style=""&gt;            &lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(63, 127, 95);font-family:'Courier New';font-size:100%;"  lang="EN-US" &gt;//Fazendo a conexão&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  lang="EN-US" &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt;&lt;span style=""&gt;            &lt;/span&gt;ftp.connect( &lt;/span&gt;&lt;span style="color: rgb(42, 0, 255);font-family:'Courier New';font-size:100%;"  lang="EN-US" &gt;"ftp.petrobras.com.br"&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt; );&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  lang="EN-US" &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt;&lt;span style=""&gt;            &lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(63, 127, 95);font-family:'Courier New';font-size:100%;"  &gt;//Efetuando o Login&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   &gt;&lt;span style=""&gt;            &lt;/span&gt;ftp.login( &lt;/span&gt;&lt;span style="color: rgb(42, 0, 255);font-family:'Courier New';font-size:100%;"  &gt;"iercps"&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   &gt;, &lt;/span&gt;&lt;span style="color: rgb(42, 0, 255);font-family:'Courier New';font-size:100%;"  &gt;"iercpsadmin"&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   &gt; );&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   &gt;&lt;span style=""&gt;            &lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(63, 127, 95);font-family:'Courier New';font-size:100%;"  &gt;//Mundando o diretório de trabalho&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   &gt;&lt;span style=""&gt;            &lt;/span&gt;ftp.changeWorkingDirectory (&lt;/span&gt;&lt;span style="color: rgb(42, 0, 255);font-family:'Courier New';font-size:100%;"  &gt;"grdt_websigem"&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   &gt;);&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   &gt;&lt;span style=""&gt;            &lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(63, 127, 95);font-family:'Courier New';font-size:100%;"  &gt;//Adiquirindo o nome dos arquivos / diretórios existentes&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   &gt;&lt;span style=""&gt;            &lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt;String[] arq = ftp.listNames();&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  lang="EN-US" &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt;&lt;span style=""&gt;            &lt;/span&gt;System.&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;i style=""&gt;&lt;span style="color: rgb(0, 0, 192);font-family:'Courier New';"  lang="EN-US"&gt;out&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt;.println (&lt;/span&gt;&lt;span style="color: rgb(42, 0, 255);font-family:'Courier New';font-size:100%;"  lang="EN-US" &gt;"Listando arquivos: \n"&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt;);&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  lang="EN-US" &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt;&lt;span style=""&gt;            &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(127, 0, 85);font-family:'Courier New';"  lang="EN-US"&gt;for&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt; (String f : arq){&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  lang="EN-US" &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt;&lt;span style=""&gt;                  &lt;/span&gt;System.&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;i style=""&gt;&lt;span style="color: rgb(0, 0, 192);font-family:'Courier New';"  lang="EN-US"&gt;out&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt;.println(f);&lt;span style=""&gt;             &lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  lang="EN-US" &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt;&lt;span style=""&gt;            &lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   &gt;}&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   &gt;&lt;span style=""&gt;            &lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(63, 127, 95);font-family:'Courier New';font-size:100%;"  &gt;//Fazendo o download do arquivo RD-4410-00412[192017].log para &lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style="color: rgb(63, 127, 95);font-family:'Courier New';font-size:100%;"  &gt;              meulog.log&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   &gt;&lt;span style=""&gt;            &lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt;FileOutputStream fos = &lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt;                    &lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(127, 0, 85);font-family:'Courier New';"  lang="EN-US"&gt;new&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt; FileOutputStream( &lt;/span&gt;&lt;span style="color: rgb(42, 0, 255);font-family:'Courier New';font-size:100%;"  lang="EN-US" &gt;"/Users/glaucio/Desktop/meulog.log"&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt; ); &lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  lang="EN-US" &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt;&lt;span style=""&gt;   &lt;/span&gt;&lt;span style=""&gt;     &lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  lang="EN-US" &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt;&lt;span style=""&gt;            &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(127, 0, 85);font-family:'Courier New';"  lang="EN-US"&gt;if&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt; (ftp.retrieveFile( &lt;/span&gt;&lt;span style="color: rgb(42, 0, 255);font-family:'Courier New';font-size:100%;"  lang="EN-US" &gt;"RD-4410-00412[192017].log"&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt;, fos ))&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  lang="EN-US" &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   lang="EN-US" &gt;&lt;span style=""&gt;                  &lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   &gt;System.&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;i style=""&gt;&lt;span style="color: rgb(0, 0, 192);font-family:'Courier New';" &gt;out&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   &gt;.println(&lt;/span&gt;&lt;span style="color: rgb(42, 0, 255);font-family:'Courier New';font-size:100%;"  &gt;"Download efetuado com sucesso!"&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   &gt;);&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   &gt;&lt;span style=""&gt;            &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(127, 0, 85);font-family:'Courier New';" &gt;else&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   &gt;&lt;span style=""&gt;                  &lt;/span&gt;System.&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;i style=""&gt;&lt;span style="color: rgb(0, 0, 192);font-family:'Courier New';" &gt;out&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   &gt;.println (&lt;/span&gt;&lt;span style="color: rgb(42, 0, 255);font-family:'Courier New';font-size:100%;"  &gt;"Erro ao efetuar download do arquivo."&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   &gt;);&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   &gt;&lt;span style=""&gt;            &lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   &gt;&lt;span style=""&gt;            &lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(63, 127, 95);font-family:'Courier New';font-size:100%;"  &gt;//Fazendo o upload do arquivo artigoFTP.doc para o ftp com um novo &lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style="color: rgb(63, 127, 95);font-family:'Courier New';font-size:100%;"  &gt;              nome (meuarquivo.doc)&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   &gt;&lt;span style=""&gt;            &lt;/span&gt;FileInputStream arqEnviar = &lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   &gt;                 &lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(127, 0, 85);font-family:'Courier New';" &gt;new&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   &gt; FileInputStream (&lt;/span&gt;&lt;span style="color: rgb(42, 0, 255);font-family:'Courier New';font-size:100%;"  &gt;"/Users/glaucio/Documents/artigoFTP.doc"&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   &gt;);&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   &gt;&lt;span style=""&gt;            &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(127, 0, 85);font-family:'Courier New';" &gt;if&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   &gt; (ftp.storeFile (&lt;/span&gt;&lt;span style="color: rgb(42, 0, 255);font-family:'Courier New';font-size:100%;"  &gt;"meuarquivo.doc"&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   &gt;, arqEnviar))&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   &gt;&lt;span style=""&gt;                  &lt;/span&gt;System.&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;i style=""&gt;&lt;span style="color: rgb(0, 0, 192);font-family:'Courier New';" &gt;out&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   &gt;.println(&lt;/span&gt;&lt;span style="color: rgb(42, 0, 255);font-family:'Courier New';font-size:100%;"  &gt;"Arquivo armazenado com sucesso!"&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   &gt;);&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   &gt;&lt;span style=""&gt;            &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(127, 0, 85);font-family:'Courier New';" &gt;else&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   &gt;&lt;span style=""&gt;                  &lt;/span&gt;System.&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;i style=""&gt;&lt;span style="color: rgb(0, 0, 192);font-family:'Courier New';" &gt;out&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   &gt;.println (&lt;/span&gt;&lt;span style="color: rgb(42, 0, 255);font-family:'Courier New';font-size:100%;"  &gt;"Erro ao armazenar o arquivo."&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   &gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   &gt;&lt;span style=""&gt;            &lt;/span&gt;ftp.logout();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   &gt;&lt;span style=""&gt;            &lt;/span&gt;ftp.disconnect();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:'Courier New';font-size:100%;color:black;"   &gt;&lt;span style=""&gt;      &lt;/span&gt;}&lt;/span&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style=";font-family:'Courier New';font-size:100%;"  &gt;}&lt;span style=""&gt;     &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="TextoPr-formatado" style="margin: 0cm 0cm 14.15pt;"&gt;&lt;span style=";font-family:Verdana;font-size:100%;color:black;"   &gt;Todas as funções citadas podem ser feitas via console ou algum programa de FTP sem problemas. Segue um exemplo abaixo:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="TextoPr-formatado" style="margin: 0cm 0cm 14.15pt;"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="color: rgb(0, 51, 102);font-family:'Courier New';"  lang="EN-US"&gt;glaucio$ ftp &lt;/span&gt;&lt;span style="color: rgb(0, 51, 102);font-family:'Courier New';"  lang="EN-US"&gt;ftp.meudominio.com.br&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 51, 102);font-family:'Courier New';font-size:100%;"  lang="EN-US" &gt;&lt;br /&gt;Connected to ftp.meudominio.com.br.&lt;br /&gt;220 s6000ws30 Microsoft FTP Service (Version 5.0).&lt;br /&gt;Name (ftp.meudominio.com.br:glaucio): glaucio&lt;span style=""&gt;   &lt;/span&gt;&lt;br /&gt;331 Password required for glaucio.&lt;br /&gt;Password:&lt;br /&gt;230-----------------------------------------&lt;br /&gt;230-Servidor FTP MeuDominio&lt;br /&gt;230-----------------------------------------&lt;br /&gt;230 User glaucio logged in.&lt;br /&gt;Remote system type is Windows_NT.&lt;br /&gt;ftp&gt; cd grdt_websigem&lt;br /&gt;250 CWD command successful.&lt;/span&gt;&lt;span style="color: rgb(0, 51, 102);font-family:'Courier New';font-size:100%;"  lang="EN-US" &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="TextoPr-formatado" style="margin: 0cm 0cm 14.15pt;"&gt;&lt;span style="color: rgb(0, 51, 102);font-family:'Courier New';font-size:100%;"  lang="EN-US" &gt;ftp&gt; get RD-4410-00412[192017].log&lt;br /&gt;local: RD-4410-00412[192017].log remote: RD-4410-00412[192017].log&lt;br /&gt;227 Entering Passive Mode (200,179,65,44,18,8)&lt;br /&gt;125 Data connection already open; Transfer starting.&lt;br /&gt;100% |*************************************|&lt;span style=""&gt;   &lt;/span&gt;385&lt;span style=""&gt;     &lt;/span&gt;320.25 KB/s&lt;span style=""&gt;    &lt;/span&gt;00:00&lt;br /&gt;226 Transfer complete.&lt;br /&gt;385 bytes received in 00:00 (95.30 KB/s)&lt;br /&gt;put&lt;br /&gt;(local-file) /Users/glaucio/Desktop/meulog.log&lt;br /&gt;(remote-file) meulog.txt&lt;br /&gt;local: /Users/glaucio/Desktop/meulog.log remote: meulog.txt&lt;br /&gt;227 Entering Passive Mode (200,179,65,44,18,10)&lt;br /&gt;125 Data connection already open; Transfer starting.&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 51, 102);font-family:'Courier New';font-size:100%;"  &gt;100% |*************************************|&lt;span style=""&gt;   &lt;/span&gt;385&lt;span style=""&gt;       &lt;/span&gt;4.78 KB/s&lt;span style=""&gt;    &lt;/span&gt;--:-- ETA&lt;br /&gt;226 Transfer complete.&lt;br /&gt;385 bytes sent in 00:00 (2.43 KB/s)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="TextoPr-formatado" style="margin: 0cm 0cm 14.15pt;"&gt;&lt;span style=";font-family:Verdana;font-size:100%;color:black;"   &gt;Através da API Commons Net é possível manipular diversas funcionalidades oferecidas para o uso de um servidor FTP. Neste artigo foi visto como conectar, logar, enviar e receber arquivos para uma área de FTP. Agora é só criar as suas próprias rotinas para enviar e receber arquivos a partir de sua aplicação Java. Um exemplo do tipo seria verificar se algum arquivo foi modificado na máquina local e enviá-lo para uma área de FTP caso a modificação tenha sido feita. Podemos também agendar uma rotina que faça o backup de um servidor para outro, escolhendo somente arquivos PDF, por exemplo. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;span style=";font-family:Verdana;font-size:100%;color:black;"   &gt;Enfim, para quem trabalha com sistemas que utilizam FTP, a API Commons Net é uma mão na roda.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5041188081161039144-7040283125760152465?l=federico-digiorgio.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://federico-digiorgio.blogspot.com/feeds/7040283125760152465/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5041188081161039144&amp;postID=7040283125760152465' title='1 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default/7040283125760152465'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default/7040283125760152465'/><link rel='alternate' type='text/html' href='http://federico-digiorgio.blogspot.com/2007/04/desenvolvendo-um-cliente-ftp.html' title='Desenvolvendo um Cliente FTP'/><author><name>Federico</name><uri>http://www.blogger.com/profile/02419411433077910018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5041188081161039144.post-2835688543013824879</id><published>2007-03-14T13:32:00.000-07:00</published><updated>2007-06-27T07:08:30.023-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='telnet'/><category scheme='http://www.blogger.com/atom/ns#' term='imap'/><title type='text'>Teste de Autenticação do IMAP</title><content type='html'>&lt;b&gt;# telnet 0 143&lt;/b&gt;&lt;br /&gt;Trying 0.0.0.0...&lt;br /&gt;Connected to 0.&lt;br /&gt;Escape character is '^]'.&lt;br /&gt;* OK Courier-IMAP ready. Copyright 1998-2002 Double Precision, Inc.&lt;br /&gt;See COPYING for distribution information.&lt;br /&gt;&lt;br /&gt;0 &lt;b&gt;login marco.maximo@dominio.com.br senha&lt;/b&gt;&lt;br /&gt;0 OK LOGIN Ok.&lt;br /&gt;&lt;br /&gt;0 &lt;b&gt;select inbox&lt;/b&gt;&lt;br /&gt;* FLAGS (\Draft \Answered \Flagged \Deleted \Seen \Recent)&lt;br /&gt;* OK [PERMANENTFLAGS (\Draft \Answered \Flagged \Deleted&lt;br /&gt;\Seen)] Limited&lt;br /&gt;* 1 EXISTS&lt;br /&gt;* 1 RECENT&lt;br /&gt;* OK [UIDVALIDITY 1041451666] Ok&lt;br /&gt;0 OK [READ-WRITE] Ok&lt;br /&gt;&lt;br /&gt;0 &lt;b&gt;logout&lt;/b&gt;&lt;br /&gt;* BYE Courier-IMAP server shutting down&lt;br /&gt;0 OK LOGOUT completed&lt;br /&gt;Connection closed by foreign host.&lt;br /&gt;&lt;br /&gt;Beleza, funcionou.&lt;br /&gt;&lt;br /&gt;&lt;h3&gt;Teste de Autenticação do POP3&lt;/h3&gt;&lt;br /&gt;# &lt;b&gt;telnet 0 110&lt;/b&gt;&lt;br /&gt;Trying 0.0.0.0...&lt;br /&gt;Connected to 0.&lt;br /&gt;Escape character is '^]'.&lt;br /&gt;+OK Hello there&lt;br /&gt;&lt;br /&gt;&lt;b&gt;user marco.maximo@dominio.com.br&lt;/b&gt;&lt;br /&gt;+OK Password required.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;pass senha&lt;/b&gt;&lt;br /&gt;+OK logged in.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;list&lt;/b&gt;&lt;br /&gt;+OK POP3 clients that break here, they violate STD53.&lt;br /&gt;1 401&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5041188081161039144-2835688543013824879?l=federico-digiorgio.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://federico-digiorgio.blogspot.com/feeds/2835688543013824879/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5041188081161039144&amp;postID=2835688543013824879' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default/2835688543013824879'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default/2835688543013824879'/><link rel='alternate' type='text/html' href='http://federico-digiorgio.blogspot.com/2007/03/telnet-0-143-trying-0.html' title='Teste de Autenticação do IMAP'/><author><name>Federico</name><uri>http://www.blogger.com/profile/02419411433077910018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5041188081161039144.post-8209902598553427467</id><published>2007-03-09T10:55:00.000-08:00</published><updated>2007-03-13T09:00:39.998-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='telnet'/><category scheme='http://www.blogger.com/atom/ns#' term='smtp'/><category scheme='http://www.blogger.com/atom/ns#' term='testes'/><title type='text'>SMTP - enviando emails via Telnet</title><content type='html'>Para acessar a um mailbox precisa de 3 coisas:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Uma conexão a internet&lt;/li&gt;&lt;li&gt;O endereço do servidor de email (ex. smtp.iron.com.br)&lt;/li&gt;&lt;li&gt;Um endereço valido de email (ex. fulano@iron.com.br)&lt;/li&gt;&lt;/ul&gt;A primeira coisa a fazer é cria uma conexão com o servidor a desde nosso computador, para isso na janela do terminal digitamos o siguiente comando:&lt;br /&gt;&lt;br /&gt;&lt;blockquote style="font-weight: bold;"&gt;$ telnet smtp.iron.com.br 25&lt;/blockquote&gt;&lt;code&gt;&lt;br /&gt;&lt;/code&gt;a resposta será algo como:&lt;br /&gt;&lt;span style="color: rgb(255, 255, 204);font-size:85%;" &gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 204, 255); font-weight: bold;font-size:85%;" &gt;Trying 200.???.???.???...&lt;/span&gt;&lt;span style="color: rgb(255, 204, 255);font-size:85%;" &gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 204, 255); font-weight: bold;font-size:85%;" &gt;Connected to ismtp.iron.com.br.&lt;/span&gt;&lt;span style="color: rgb(255, 204, 255);font-size:85%;" &gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 204, 255); font-weight: bold;font-size:85%;" &gt;Escape character is '^]'.&lt;/span&gt;&lt;span style="color: rgb(255, 204, 255);font-size:85%;" &gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 204, 255); font-weight: bold;font-size:85%;" &gt;220 iron.com.br - Iron Internet SMTP Server - Fri, 09 Mar 2007 16:07:20 -0300&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Agora precisamos informa de onde estomos eviando nosso email&lt;br /&gt;&lt;blockquote style="font-weight: bold;"&gt;HELO smtp.iron.com.br&lt;/blockquote&gt;a resposta será algo como:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color: rgb(255, 204, 255); font-weight: bold;"&gt;250 iron.com.br Hello smtp.iron.com.br [192.168.0.???]&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;agora fonecemos o remetente(cuidado com os espaços):&lt;br /&gt;&lt;blockquote style="font-weight: bold;"&gt;mail from:fulano@iron.com.br&lt;/blockquote&gt;&lt;code&gt;&lt;/code&gt;a resposta será algo como:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color: rgb(255, 204, 255); font-weight: bold;"&gt;250 OK&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;code&gt;&lt;/code&gt;&lt;span style="color: rgb(255, 102, 102); font-weight: bold;font-size:85%;" &gt;caso contrario verifique a lista de problemas conhecidos no fin deste texto.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;agora fonecemos o destinatario:&lt;br /&gt;&lt;blockquote style="font-weight: bold;"&gt;RCPT TO:ciclano@outroprovedor.com.br&lt;/blockquote&gt;&lt;code&gt;&lt;/code&gt;a resposta será algo como:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 255); font-weight: bold;"&gt;250 Accepted&lt;br /&gt;&lt;/span&gt;&lt;code&gt;&lt;/code&gt;&lt;span style="color: rgb(255, 102, 102); font-weight: bold;font-size:85%;" &gt;caso contrario verifique a lista de problemas conhecidos no fin deste texto.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Para dar inicio ao corpo da mensagem precisamos digitar o seguinte comando:&lt;br /&gt;&lt;blockquote style="font-weight: bold;"&gt;DATA&lt;/blockquote&gt;&lt;span style="font-weight: bold; color: rgb(255, 255, 204);font-size:130%;" &gt;&lt;br /&gt;Parametros opcionais:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;blockquote style=""&gt;&lt;span style="font-weight: bold;"&gt;Subject: Assunto da mensagem&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;To: Sr Fulano&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;From: Sr Ciclano&lt;/span&gt;&lt;/blockquote&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;agora podemos digitar o corpo da mensagem, para terminar, numa nova linha digitamos um ponto e enter&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;blockquote&gt;.&lt;/blockquote&gt;&lt;/span&gt;a resposta será algo como:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color: rgb(255, 204, 255); font-weight: bold;"&gt;250 OK id=1HPkmb-0001bR-P3&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;code&gt;&lt;/code&gt;&lt;br /&gt;onde &lt;span style="font-size:85%;"&gt;&lt;span style="color: rgb(255, 204, 255); font-weight: bold;"&gt;id=1HPkmb-0001bR-P3&lt;/span&gt;&lt;/span&gt; é o id da mensagem dentro do servidor&lt;br /&gt;&lt;br /&gt;Para fechar a sessão digitamos:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;blockquote&gt;QUIT&lt;/blockquote&gt;&lt;/span&gt;a resposta será algo como:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color: rgb(255, 204, 255); font-weight: bold;"&gt;221 iron.com.br closing connection&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 255); font-weight: bold;"&gt;Connection closed by foreign host.&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;code&gt;&lt;/code&gt;&lt;a name="errors"&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 102, 102); font-weight: bold;font-size:130%;" &gt;Problemas conhecidos&lt;/span&gt;&lt;/a&gt;&lt;h3&gt;&lt;a name="errors"&gt;&lt;span style="color: rgb(255, 102, 102); font-weight: bold;"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;&lt;h3&gt;&lt;a style="font-weight: normal;" name="errors"&gt;&lt;/a&gt;&lt;a name="errors"&gt;&lt;/a&gt;&lt;/h3&gt; &lt;a name="errors"&gt;  &lt;span style="font-weight: bold;font-family:courier new;font-size:130%;"  &gt;&lt;code&gt;501 nouser@nenhumservidor.com... Sender domain must exist&lt;/code&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/a&gt;&lt;a name="errors"&gt;O servidor não existe&lt;/a&gt;&lt;a name="errors"&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-family:georgia;font-size:130%;"  &gt;&lt;code&gt;503 Need MAIL before RCPT&lt;/code&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/a&gt;&lt;a name="errors"&gt;O remetente deve ir depois do destinatario&lt;/a&gt;&lt;a name="errors"&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-family:arial;font-size:130%;"  &gt;&lt;code&gt;&lt;br /&gt;550 mail@domimio.ext... Relaying Denied&lt;br /&gt;&lt;br /&gt;&lt;/code&gt;&lt;/span&gt;&lt;/a&gt;&lt;a name="errors"&gt;&lt;/a&gt;&lt;a name="errors"&gt;O servidor se recusa a enviar a mensagem.&lt;br /&gt;&lt;/a&gt;&lt;a name="errors"&gt;Não está usando este provedor para conexão ou o endereço de email não pertence ao servidor.&lt;br /&gt;&lt;br /&gt;&lt;!-- &lt;code&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;--&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5041188081161039144-8209902598553427467?l=federico-digiorgio.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://federico-digiorgio.blogspot.com/feeds/8209902598553427467/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5041188081161039144&amp;postID=8209902598553427467' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default/8209902598553427467'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default/8209902598553427467'/><link rel='alternate' type='text/html' href='http://federico-digiorgio.blogspot.com/2007/03/smtp-enviando-emails-via-telnet.html' title='SMTP - enviando emails via Telnet'/><author><name>Federico</name><uri>http://www.blogger.com/profile/02419411433077910018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5041188081161039144.post-3063818922152625191</id><published>2007-03-01T19:04:00.000-08:00</published><updated>2011-02-07T06:13:45.494-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mysql'/><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu'/><title type='text'>MySQL + Ubuntu</title><content type='html'>&lt;span style="font-weight: bold;font-size:130%;" &gt;MySQL&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;MySQL é um servidor de dados SQL rápido, multi-thread, multi-usuário e robusto. Ele é adequado para missões críticas, sistema de alto carregamento assim como para embutir em software instalado em massa.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(153, 0, 0);font-size:130%;" &gt;Instalação&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Para instalar MySQL, execute o seguinte comando a partir do prompt de terminal:&lt;br /&gt;&lt;blockquote style="font-weight: bold;"&gt;$ sudo apt-get install mysql-server mysql-client&lt;/blockquote&gt;Quando a instalação estiver completa, o servidor MySQL deverá ser iniciado automaticamente. Você poderá executar o seguinte comando em um terminal para checar se o servidor MySQL está rodando.&lt;br /&gt;&lt;blockquote style="font-weight: bold;"&gt;$ sudo netstat -tap | grep mysql&lt;/blockquote&gt;Quando você executa esse comando, você deve visualizar a seguinte linha ou algo similar:&lt;br /&gt;&lt;blockquote style="font-weight: bold;"&gt;$ tcp 0 0 localhost.localdomain:mysql *:* LISTEN -&lt;/blockquote&gt;Se o servidor não está executando corretamente, você pode digitar o seguinte comando para inicializá-lo.&lt;br /&gt;&lt;blockquote style="font-weight: bold;"&gt;$ sudo /etc/init.d/mysql restart&lt;/blockquote&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;span style="color: rgb(153, 0, 0);"&gt;Configuração&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Por padrão, a senha de administrador não vem definida. Assim que instalar o MySQL, a primeira coisa que precisa fazer é configurar a senha de administrador do MySQL.&lt;br /&gt;Para fazer isso, execute os seguintes comandos:&lt;br /&gt;&lt;blockquote style="font-weight: bold;"&gt;$ sudo mysqladmin -u root password '123mudar'&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/blockquote&gt;Comentar a seguinte linha no /etc/mysql/my.cnf&lt;br /&gt;&lt;blockquote style="font-weight: bold;"&gt;#bind-address   = 127.0.0.1&lt;/blockquote&gt;Você pode editar o arquivo /etc/mysql/my.cnf para configurar as opções básicas -- arquivo de log, número da porta, etc. Veja o arquivo /etc/mysql/my.cnf para maiores detalhes.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5041188081161039144-3063818922152625191?l=federico-digiorgio.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://federico-digiorgio.blogspot.com/feeds/3063818922152625191/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5041188081161039144&amp;postID=3063818922152625191' title='1 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default/3063818922152625191'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5041188081161039144/posts/default/3063818922152625191'/><link rel='alternate' type='text/html' href='http://federico-digiorgio.blogspot.com/2007/03/mysql-ubuntu.html' title='MySQL + Ubuntu'/><author><name>Federico</name><uri>http://www.blogger.com/profile/02419411433077910018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry></feed>
