<?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:blogger='http://schemas.google.com/blogger/2008' 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-8163534671376006245</id><updated>2026-10-05T07:25:46.483-04:00</updated><category term="linux"/><category term="python"/><category term="SO"/><category term="banco de dados"/><category term="server"/><category term="servidor de banco de dados"/><category term="database"/><category term="debian"/><category term="arch linux"/><category term="curiosidades"/><category term="kernel"/><category term="DB"/><category term="freebsd"/><category term="sqlite"/><category term="FreeNAS"/><category term="backup"/><category term="compilar recompilar"/><category term="compilação"/><category term="desktop"/><category term="mysql"/><category term="nfs"/><category term="recompilar"/><category term="sql"/><category term="FMDB"/><category term="arch"/><category term="servidor web"/><category term="ZFS"/><category term="dicas"/><category term="fedora"/><category term="ide python"/><category term="ios"/><category term="micro2440"/><category term="mini2440"/><category term="network"/><category term="php5"/><category term="programação"/><category term="python no lugar do shell"/><category term="servidor NFS"/><category term="tftp"/><category term="ubuntu"/><category term="usando freeNAS"/><category term="CIFS"/><category term="NAS"/><category term="RAID"/><category term="RSYNC"/><category term="SQL Server"/><category term="boot"/><category term="configurar freeNAS"/><category term="dialog"/><category term="embarcado"/><category term="iSCSI"/><category term="instalação freeNAS"/><category term="lighttpd"/><category term="modulo subprocess"/><category term="mongoDB"/><category term="montando um NAS"/><category term="montar um NAS"/><category term="objective-C"/><category term="pen drive"/><category term="pythond"/><category term="samba"/><category term="script"/><category term="servidor tftp"/><category term="subprocess"/><category term="tar"/><category term="tempo de boot"/><category term="unix"/><category term="usar freebsd"/><category term=".deb"/><category term="SCP"/><category term="Unison"/><category term="android"/><category term="arch linux boot"/><category term="blog"/><category term="boot arch linux"/><category term="boot em 8 segundos"/><category term="boot rápido"/><category term="bootar em 5 segundos"/><category term="bootchart"/><category term="bootchart e finit-arc"/><category term="conexão"/><category term="debian pen drive"/><category term="distribuilções"/><category term="drbl"/><category term="editor"/><category term="finit-arc"/><category term="freedos"/><category term="gedit"/><category term="gerencia de memória"/><category term="instalar debian em pen drive"/><category term="interface de rede"/><category term="ip address"/><category term="iphone"/><category term="komodo edit"/><category term="mac"/><category term="mac address"/><category term="macosx"/><category term="maquina virtual"/><category term="md5"/><category term="memoria"/><category term="ms-dos"/><category term="msdos"/><category term="mysq"/><category term="otimização"/><category term="porta serial"/><category term="pyserial"/><category term="python freedos"/><category term="python msdos"/><category term="samsung"/><category term="script no msdos"/><category term="serial"/><category term="servidor virtual"/><category term="shell"/><category term="shell script"/><category term="snapshot"/><category term="squeeze"/><category term="tftp server"/><category term="wordpress"/><category term="xen"/><category term="xenserver"/><category term="xva"/><title type='text'>Linux &amp;amp; SO</title><subtitle type='html'>Blog para falar sobre Linux, FreeBSD e outros SO&#39;s além de algumas linguagens de programação. Bem vindo!</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://maltzsama.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8163534671376006245/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://maltzsama.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/8163534671376006245/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Demetrius</name><uri>http://www.blogger.com/profile/03929689008060819061</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>53</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8163534671376006245.post-5786318904645580648</id><published>2013-06-27T14:32:00.001-04:00</published><updated>2013-06-27T14:32:09.036-04:00</updated><title type='text'>Instalando CocoaPods para gerenciar dependências no desenvolvimento iOS</title><content type='html'>CocoaPods é uma forma de gerenciar dependências de bibliotecas no seu projeto de app. Quem está acostumado a usar o Java já deve ter trabalhado com Maven, quem está acostumado com Rails já deve ter utilizado o Gem. CocoaPods foi desenvolvido baseado no funcionamento e syntax do Gem.
&lt;script src=&quot;https://gist.github.com/maltzsama/5879000.js&quot;&gt;&lt;/script&gt;

Definindo o Podfile.
Abra em um editor de texto o arquivo Podfile:
&lt;script src=&quot;https://gist.github.com/maltzsama/5879056.js&quot;&gt;&lt;/script&gt;

</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8163534671376006245/posts/default/5786318904645580648'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8163534671376006245/posts/default/5786318904645580648'/><link rel='alternate' type='text/html' href='http://maltzsama.blogspot.com/2013/06/instalando-cocoapods-para-gerenciar.html' title='Instalando CocoaPods para gerenciar dependências no desenvolvimento iOS'/><author><name>Demetrius</name><uri>http://www.blogger.com/profile/03929689008060819061</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-8163534671376006245.post-3369217251196519794</id><published>2013-04-18T14:04:00.001-04:00</published><updated>2013-04-18T14:04:48.033-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="backup"/><category scheme="http://www.blogger.com/atom/ns#" term="maquina virtual"/><category scheme="http://www.blogger.com/atom/ns#" term="python"/><category scheme="http://www.blogger.com/atom/ns#" term="script"/><category scheme="http://www.blogger.com/atom/ns#" term="server"/><category scheme="http://www.blogger.com/atom/ns#" term="servidor virtual"/><category scheme="http://www.blogger.com/atom/ns#" term="snapshot"/><category scheme="http://www.blogger.com/atom/ns#" term="xen"/><category scheme="http://www.blogger.com/atom/ns#" term="xenserver"/><category scheme="http://www.blogger.com/atom/ns#" term="xva"/><title type='text'>Script de snapshots do xen server</title><content type='html'>O script abaixo foi desenvolvido em python para realização dos snapshots e exportação dos mesmos para arquivos nos servidores que rodam o xenserver.
&lt;script src=&quot;https://gist.github.com/maltzsama/5398724.js&quot;&gt;&lt;/script&gt;
Tal script ainda precisa de melhorias, principalmente de performance. Espero que possam ajudar, caso interesse a vocês, fazendo um fork e alterando no github.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8163534671376006245/posts/default/3369217251196519794'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8163534671376006245/posts/default/3369217251196519794'/><link rel='alternate' type='text/html' href='http://maltzsama.blogspot.com/2013/04/script-de-snapshots-do-xen-server.html' title='Script de snapshots do xen server'/><author><name>Demetrius</name><uri>http://www.blogger.com/profile/03929689008060819061</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-8163534671376006245.post-1590720503676969690</id><published>2013-04-17T13:00:00.000-04:00</published><updated>2013-04-17T13:00:02.753-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="backup"/><category scheme="http://www.blogger.com/atom/ns#" term="banco de dados"/><category scheme="http://www.blogger.com/atom/ns#" term="database"/><category scheme="http://www.blogger.com/atom/ns#" term="DB"/><category scheme="http://www.blogger.com/atom/ns#" term="dicas"/><category scheme="http://www.blogger.com/atom/ns#" term="mysql"/><category scheme="http://www.blogger.com/atom/ns#" term="python"/><category scheme="http://www.blogger.com/atom/ns#" term="server"/><category scheme="http://www.blogger.com/atom/ns#" term="servidor de banco de dados"/><category scheme="http://www.blogger.com/atom/ns#" term="tar"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>MySQL script de backup com python</title><content type='html'>Venho pesquisando formas eficientes de realizar backup de todas as bases de dados do meu banco MySQL. Até o momento só estou conseguindo realizar o backup full das minhas bases. E venho usado o script abaixo:&lt;br/&gt;
&lt;script src=&quot;https://gist.github.com/maltzsama/5398616.js&quot;&gt;&lt;/script&gt;&lt;br/&gt;
O desenvolvimento não é completamente meu. Eu busquei muita coisa na internet, mas devido ao tempo que faz, eu não consigo mais me lembrar exatamente onde.&lt;br/&gt;
Na proxima versão pretendo conseguir fazer o backup full apenas 1 vez na semana, e um backup diferencial 2 vezes ao dia. Até o momemnto estou pensando em usar simplesmente 2 scripts e uma configuração no cron da máquina de backup. Vamos ver como ficará.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8163534671376006245/posts/default/1590720503676969690'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8163534671376006245/posts/default/1590720503676969690'/><link rel='alternate' type='text/html' href='http://maltzsama.blogspot.com/2013/04/mysql-script-de-backup-com-python.html' title='MySQL script de backup com python'/><author><name>Demetrius</name><uri>http://www.blogger.com/profile/03929689008060819061</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-8163534671376006245.post-9220352913637102428</id><published>2012-11-08T10:00:00.000-04:00</published><updated>2013-04-16T09:41:46.082-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="banco de dados"/><category scheme="http://www.blogger.com/atom/ns#" term="database"/><category scheme="http://www.blogger.com/atom/ns#" term="mysql"/><category scheme="http://www.blogger.com/atom/ns#" term="servidor de banco de dados"/><category scheme="http://www.blogger.com/atom/ns#" term="sql"/><title type='text'>Recuperar senha do MySQL</title><content type='html'>Você pode recuperar a sua senha do MySQL seguindo apenas 5 passos simples.
&lt;script src=&quot;https://gist.github.com/maltzsama/5395981.js&quot;&gt;&lt;/script&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8163534671376006245/posts/default/9220352913637102428'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8163534671376006245/posts/default/9220352913637102428'/><link rel='alternate' type='text/html' href='http://maltzsama.blogspot.com/2012/11/recuperar-senha-do-mysql.html' title='Recuperar senha do MySQL'/><author><name>Demetrius</name><uri>http://www.blogger.com/profile/03929689008060819061</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-8163534671376006245.post-3270810818368101414</id><published>2012-08-15T10:00:00.000-04:00</published><updated>2013-04-16T09:48:28.504-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="banco de dados"/><category scheme="http://www.blogger.com/atom/ns#" term="FMDB"/><category scheme="http://www.blogger.com/atom/ns#" term="ios"/><category scheme="http://www.blogger.com/atom/ns#" term="servidor de banco de dados"/><category scheme="http://www.blogger.com/atom/ns#" term="sql"/><category scheme="http://www.blogger.com/atom/ns#" term="sqlite"/><title type='text'>SQLite - VACUUM</title><content type='html'>O comando VACUUM recontroi a estrutura da base de dados. Há várias razões para um aplicativo pode fazer isso:&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;A menos que SQLite esteja sendo executado em modo &lt;b&gt;&quot;auto_vacuum = FULL&quot;&lt;/b&gt;. Quando uma grande quantidade de dados é excluído da base de dados, deixa-se um grande espaço vazio, ou páginas &quot;livres&quot; na base de dados. Isso pode causar uma base de dados ocupando mais espaço em disco do que o estritamente necessário.&lt;br /&gt;
Executando &lt;b&gt;VACUUM&lt;/b&gt; para reconstruir a base de dados recupera-se este espaço e reduz o tamanho do ficheiro de base de dados.&lt;/li&gt;
&lt;br /&gt;
&lt;li&gt;Inserções, atualizações e exclusões frequentes podem causar um arquivo de banco de dados fragmentado - onde os dados de uma única tabela ou índice estará espalhado em todo o arquivo de banco de dados.&lt;br /&gt;
Execução do comando &lt;b&gt;VACUUM&lt;/b&gt; garantimos que cada tabela e índice serão armazenados de forma contínua dentro do arquivo de banco de dados. Em alguns casos, &lt;b&gt;VACUUM&lt;/b&gt; pode também reduzir o número de páginas parcialmente cheios no banco de dados, reduzindo o tamanho da base de dados adicionalmente.&lt;/li&gt;
&lt;br /&gt;
&lt;li&gt;Normalmente, o page_sizer e o suporte(ou não) ao auto_vacuum devem ser configurados antes do arquivo de banco de dados ser criado. Entretanto, quando o modo &lt;i&gt;write-ahead log&lt;/i&gt; não esta habilitado, as opções &lt;b&gt;page_size&lt;/b&gt; e/ou &lt;b&gt;auto_vacuum&lt;/b&gt; de um arquivo de banco de dados já existente podem ser modificados usando as PRAGMAS e logo em seguida o arquivo sofrerá o VACUUM.
Caso a propriedade &lt;i&gt;write-ahead log&lt;/i&gt; esta habilitada apenas a funcionalidade de &lt;b&gt;auto_vacuum&lt;/b&gt; pode ser modificada usando o VACUUM.&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;script src=&quot;https://gist.github.com/maltzsama/5396025.js&quot;&gt;&lt;/script&gt;&lt;/br&gt;

O comando VACUUM pode alterar os IDs das células que não possuirem uma &lt;b&gt;INTEGER PRIMARY KEY&lt;/b&gt; explicita.&lt;br/&gt;
O VACUUM falhará caso exista alguma transaction aberta, ou se houver uma ou mais instancias do SQL quando esse comando rodar.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8163534671376006245/posts/default/3270810818368101414'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8163534671376006245/posts/default/3270810818368101414'/><link rel='alternate' type='text/html' href='http://maltzsama.blogspot.com/2012/08/sqlite-vacuum.html' title='SQLite - VACUUM'/><author><name>Demetrius</name><uri>http://www.blogger.com/profile/03929689008060819061</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-8163534671376006245.post-1157390421459042084</id><published>2012-08-14T14:00:00.000-04:00</published><updated>2012-08-14T14:00:00.350-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="banco de dados"/><category scheme="http://www.blogger.com/atom/ns#" term="FMDB"/><category scheme="http://www.blogger.com/atom/ns#" term="ios"/><category scheme="http://www.blogger.com/atom/ns#" term="servidor de banco de dados"/><category scheme="http://www.blogger.com/atom/ns#" term="sql"/><category scheme="http://www.blogger.com/atom/ns#" term="sqlite"/><title type='text'>SQLite - Configurações de PRAGMAs</title><content type='html'>Configuração de PRAGMAS do SQLite&lt;br /&gt;
&lt;b&gt;PRAGMA cache_size&lt;/b&gt;&lt;br /&gt;
Apesar do site de referência falar dessa &lt;b&gt;PRAGMA&lt;/b&gt; você &lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;NÃO DEVE USÁ-LA&lt;/span&gt;&lt;/b&gt;. Trata-se de uma função descontinuada pelo SQLite.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;PRAGMA synchronous&lt;/b&gt;&lt;br /&gt;
O valor boleano &lt;i&gt;synchronous&lt;/i&gt; controla se a biblioteca irá esperar ou não pela escrita no disco estará completa antes de continuar qualquer outra operação. Esta opção pode ser diferente da &lt;b&gt;pragma &lt;i&gt;default_synchronous&lt;/i&gt;&lt;/b&gt; lida do SQLite.&lt;br /&gt;
Algumas vezes o SQLite pode perder muito tempo apenas esperando o sistema de arquivos do sistema. Mudando a opção para &lt;b&gt;&quot;PRAGMA synchrounous=OFF&quot;&lt;/b&gt; pode-se obter maior velocidade.&lt;br /&gt;
Valores possíveis:&lt;br/&gt;
&lt;b&gt;0 - OFF&lt;/b&gt;: O banco rodará sem sincronização com o disco e em casa de falha do sistema tudo será perdido. Apesar da insegurança, a aplicação ficará 50 vezes ou até mais rápido que o normal.&lt;br/&gt;
&lt;b&gt;1 - NORMAL&lt;/b&gt;: O SQLite ainda sincronizará, mas com menos frequencia do que no modo FULL&lt;br/&gt;
&lt;b&gt;2 - FULL&lt;/b&gt;: Opção mais lenta, em compensação o SQLite manterá sempre a base sincronizada no disco e no caso de qualquer falha o risco de perda de dados é bem menor.&lt;br/&gt;

&lt;br /&gt;
&lt;b&gt;PRAGMA count_changes&lt;/b&gt;&lt;br /&gt;
Apesar do site de referêcia falar para usar essa &lt;b&gt;PRAGMA&lt;/b&gt;... Você &lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;NÃO DEVE USÁ-LA&lt;/span&gt;&lt;/b&gt;. Trata-se de uma função descontinuada do SQLite.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;PRAGMA temp_store&lt;/b&gt;&lt;br /&gt;
Essa opção configura onde os arquivos temporarios são salvos. Se ficam apenas residentes na memória ou são usados arquivos temporários no disco.
Os valores da &lt;b&gt;PRAGMA&lt;i&gt;temp_store&lt;/i&gt;&lt;/b&gt; são:&lt;br /&gt;
0 - Sempre usar arquivos temporários.&lt;br /&gt;
1 - Usar arquivos por padrão mas permite que o &lt;b&gt;PRAGMA &lt;i&gt;temp_store&lt;/i&gt;&lt;/b&gt; configure o uso da memória.&lt;br /&gt;
2 - Usar a memória como padrão mas permite que o &lt;b&gt;PRAGMA &lt;i&gt;temp_store&lt;/i&gt;&lt;/b&gt; configure como padrão o uso de arquivos.&lt;br /&gt;
3 - Sempre usar a memória.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8163534671376006245/posts/default/1157390421459042084'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8163534671376006245/posts/default/1157390421459042084'/><link rel='alternate' type='text/html' href='http://maltzsama.blogspot.com/2012/08/sqlite-configuracoes-de-pragmas.html' title='SQLite - Configurações de PRAGMAs'/><author><name>Demetrius</name><uri>http://www.blogger.com/profile/03929689008060819061</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-8163534671376006245.post-8442433018068274564</id><published>2012-08-14T10:00:00.000-04:00</published><updated>2012-08-14T10:00:00.346-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="banco de dados"/><category scheme="http://www.blogger.com/atom/ns#" term="database"/><category scheme="http://www.blogger.com/atom/ns#" term="FMDB"/><category scheme="http://www.blogger.com/atom/ns#" term="objective-C"/><category scheme="http://www.blogger.com/atom/ns#" term="servidor de banco de dados"/><category scheme="http://www.blogger.com/atom/ns#" term="sql"/><category scheme="http://www.blogger.com/atom/ns#" term="sqlite"/><title type='text'>SQLite - Truques para melhor velocidade</title><content type='html'>O SQLite pode ser muito rápido. Já ouvi alguns reclamando que ele é bem lento. Bem... Existem alguns métodos para conseguir uma melhor velocidade dele. Aparentemente a prioridade do mantenedor do projeto SQLite não é a velocidade. Mas a integridade e a verificabilidade dos mesmos.&lt;br /&gt;
Você, provavelmente, sabe que a parte mais lenta do SQLite, assim como muitos outros bancos de dados, é o acesso ao disco se compararmos com as leituras feitas em memória.
Existem algumas coisas que podem ser feitas para melhorar esse desempenho, algumas delas bastam algumas configurações, outras precisa-se recompilar o fonte, entre elas:&lt;br /&gt;
&lt;i&gt;(em ordem aproximada de eficiência)&lt;/i&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;
Use uma base de dados em memória
&lt;/li&gt;
&lt;br /&gt;
&lt;li&gt;
Use  &lt;b&gt;BEGIN TRANSACTION&lt;/b&gt; e &lt;b&gt;END TRANSACTION&lt;/b&gt;
&lt;!--&lt;b&gt;&lt;a href=&quot;http://maltzsama.blogspot.com/2012/08/sqlite-transaction.html&quot;&gt;BEGIN TRANSACTION&lt;/b&gt; e &lt;b&gt;END TRANSACTION&lt;/a&gt;&lt;/b&gt; outra &lt;a href=&quot;http://maltzsama.blogspot.com/2012/08/sqlite-transaction-no-ios-e-android.html&quot;&gt;referência&lt;/a&gt;
--&gt;
&lt;/li&gt;
&lt;br /&gt;
&lt;li&gt;
Use índices(&lt;b&gt;index&lt;/b&gt;)
&lt;/li&gt;
&lt;br/&gt;
&lt;li&gt;
Use a &lt;b&gt;&lt;a href=&quot;http://maltzsama.blogspot.com/2012/08/sqlite-configuracao-das-pragma.html&quot;&gt;PRAGMA cache_size&lt;/a&gt;&lt;/b&gt;
&lt;/li&gt;
&lt;br/&gt;
&lt;li&gt;
Use a &lt;b&gt;&lt;a href=&quot;http://maltzsama.blogspot.com/2012/08/sqlite-configuracao-das-pragma.html&quot;&gt;PRAGMA synchronous=OFF&lt;/a&gt;&lt;/b&gt;
&lt;/li&gt;
&lt;br/&gt;
&lt;li&gt;
Compacte a base de dados (&lt;a href=&quot;http://maltzsama.blogspot.com/2012/08/sqlite-vacuum.html&quot;&gt;VACUUM&lt;/a&gt;)
&lt;/li&gt;
&lt;br/&gt;
&lt;li&gt;
Substitua a biblioteca de alocação de memória
&lt;/li&gt;
&lt;br/&gt;
&lt;li&gt;
Use a &lt;b&gt;&lt;a href=&quot;http://maltzsama.blogspot.com/2012/08/sqlite-configuracao-das-pragma.html&quot;&gt;PRAGMA count_changes=OFF&lt;/a&gt;&lt;/b&gt;
&lt;/li&gt;
&lt;br/&gt;
&lt;/ul&gt;

fonte: &lt;a href=&quot;http://web.utk.edu/~jplyon/sqlite/SQLite_optimization_FAQ.html&quot;&gt;SQLite Optimization FAQ&lt;/a&gt;
</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8163534671376006245/posts/default/8442433018068274564'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8163534671376006245/posts/default/8442433018068274564'/><link rel='alternate' type='text/html' href='http://maltzsama.blogspot.com/2012/08/sqlite-truques-para-melhor-velocidade.html' title='SQLite - Truques para melhor velocidade'/><author><name>Demetrius</name><uri>http://www.blogger.com/profile/03929689008060819061</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-8163534671376006245.post-7035851402976166719</id><published>2012-08-07T10:00:00.000-04:00</published><updated>2013-04-16T09:55:10.447-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="android"/><category scheme="http://www.blogger.com/atom/ns#" term="banco de dados"/><category scheme="http://www.blogger.com/atom/ns#" term="database"/><category scheme="http://www.blogger.com/atom/ns#" term="FMDB"/><category scheme="http://www.blogger.com/atom/ns#" term="ios"/><category scheme="http://www.blogger.com/atom/ns#" term="iphone"/><category scheme="http://www.blogger.com/atom/ns#" term="objective-C"/><category scheme="http://www.blogger.com/atom/ns#" term="servidor de banco de dados"/><category scheme="http://www.blogger.com/atom/ns#" term="sqlite"/><title type='text'>SQLite Transaction no iOS e Android</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMYtoj4sv76MJMYbgvFSDy3hWixaOhG1vus0UfEXljL3vxGhHztz2GbzqrVET9f_IgEq4zcFrI-ybQPJNkvW6JcNp9r2fQujbj4wrynsZ-pDFk_oTLkpe-baY7bpOdAGhbRsOTUNfqiSM/s1600/sqlite370_banner.gif&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMYtoj4sv76MJMYbgvFSDy3hWixaOhG1vus0UfEXljL3vxGhHztz2GbzqrVET9f_IgEq4zcFrI-ybQPJNkvW6JcNp9r2fQujbj4wrynsZ-pDFk_oTLkpe-baY7bpOdAGhbRsOTUNfqiSM/s1600/sqlite370_banner.gif&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
O SQLite tem a implementação de transações. Não&amp;nbsp;é tão sofisticado quanto na maioria dos bancos de dados. Por se tratar de um sgbd simples e para ser embarcado junto a aplicação mas que se você souber usar...&amp;nbsp;É realmente muito bom.&lt;br /&gt;
&lt;br /&gt;
Usando &lt;a href=&quot;https://github.com/ccgus/fmdb&quot;&gt;FMDB&lt;/a&gt; no iOS é simples usar o transaction, assim:
&lt;br /&gt;
&lt;script src=&quot;https://gist.github.com/maltzsama/5396063.js&quot;&gt;&lt;/script&gt;
&lt;br /&gt;
&lt;br /&gt;
No Android as coisas ficarão assim:&lt;br /&gt;
&lt;script src=&quot;https://gist.github.com/maltzsama/5396071.js&quot;&gt;&lt;/script&gt;
&lt;br /&gt;
Espero que isso possa ajudar um pouco quem tem sofrido com a velocidade do insert a base.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8163534671376006245/posts/default/7035851402976166719'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8163534671376006245/posts/default/7035851402976166719'/><link rel='alternate' type='text/html' href='http://maltzsama.blogspot.com/2012/08/sqlite-transaction-no-ios-e-android.html' title='SQLite Transaction no iOS e Android'/><author><name>Demetrius</name><uri>http://www.blogger.com/profile/03929689008060819061</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMYtoj4sv76MJMYbgvFSDy3hWixaOhG1vus0UfEXljL3vxGhHztz2GbzqrVET9f_IgEq4zcFrI-ybQPJNkvW6JcNp9r2fQujbj4wrynsZ-pDFk_oTLkpe-baY7bpOdAGhbRsOTUNfqiSM/s72-c/sqlite370_banner.gif" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-8163534671376006245.post-1279441683322673785</id><published>2012-08-06T14:00:00.000-04:00</published><updated>2012-08-06T14:00:02.160-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="banco de dados"/><category scheme="http://www.blogger.com/atom/ns#" term="database"/><category scheme="http://www.blogger.com/atom/ns#" term="servidor de banco de dados"/><category scheme="http://www.blogger.com/atom/ns#" term="sqlite"/><title type='text'>SQLite - Quando não usar?!</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9FhQHq_9aJQUHe04dyGq0vzgqWe4B6M6ckqHOuQ61VeKVW5PIlnHb2uzWJSr3RSoEyjodBSbUeRzEpguxyMzabAPAteK82QwOpeb0L4unOiCXjIYbEg70OfO2RKzg_SkzxVG-udmeQWA/s1600/sqlite370_banner.gif&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;101&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9FhQHq_9aJQUHe04dyGq0vzgqWe4B6M6ckqHOuQ61VeKVW5PIlnHb2uzWJSr3RSoEyjodBSbUeRzEpguxyMzabAPAteK82QwOpeb0L4unOiCXjIYbEg70OfO2RKzg_SkzxVG-udmeQWA/s320/sqlite370_banner.gif&quot; width=&quot;220&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
Certo, sabemos que o SQLite muitas coisas legais, conforme pode ser visto &lt;a href=&quot;http://maltzsama.blogspot.com/2012/08/sqlite-caracteristicas-basicas.html&quot;&gt;aqui&lt;/a&gt;, que é bom para isso e aquilo e que é fácil de portar e não sei o que. Mas então, quando não usá-lo?&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b&gt;Altas taxas de transação&lt;/b&gt; - O SQLite é capaz de suportar taxas moderadas de transações, mas ele é incapaz de dar acesso simultâneo a um registro. A concorrência do SQLite depende de bloqueios de arquivos para que a base fique protegida contra perda de dados. Assim é possível permitir a leitura desta base de dados para muitos cliente, mas esta base de dados estará bloqueado para qualquer tipo de escrita. Isso acarreta na serialização das operações de escrita. O que acaba por limitar a taxa de transação global da mesma.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Base de dados muito grandes&lt;/b&gt; - É possível escalar arquivos de banco de dados de 2TB no SQLite, mas há custos de memória (RAM) associados a grandes bases. Uma base de dados de 100GB exigiria a alocação 25MB de RAM antes de cada transação, isso aumentaria de forma linear conforme a base de dados cresce. Outro ponto importante de se informar é que a base de dados do SQLite é apenas um arquivo. Consequentemente esse tamanho da base de dados estará ligado ao tamanho máximo que o sistema de arquivos do sistema operacional consegue armazenar. Em um sistema FAT o máximo seria de 4GB.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Controle de Acesso&lt;/b&gt; - SQLite não tem dados de autenticação e autorização. Em vez disso, SQLite depende das permissões do sistema de arquivos para controlar o acesso ao arquivo de banco de dados em bruto. Isto essencialmente limita o acesso a um dos três estados: completar acesso leitura / gravação, acesso somente leitura, ou nenhum acesso. O acesso de escrita é absoluta, e permite que tanto a modificação de dados e a capacidade para alterar a estrutura da base de dados propriamente dito.
Embora a API SQLite fornece um mecanismo de autorização de base da camada de aplicação, é trivial para contornar se o usuário tem acesso direto para o arquivo de banco de dados. Em geral, isso torna SQLite inadequado para lojas de dados sensíveis que requerem por usuário controle de acesso.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Cliente / Servidor&lt;/b&gt; - Como foi projetado para ser embarcado junto com a aplicação, ele não possui internamente um componente de rede. Não há suporte nativo para fornecer acesso a vários computadores através de uma rede, tornando-se uma má escolha como um sistema de banco de dados cliente/servidor.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Replicação&lt;/b&gt; - Não tem suporte interno para replicação de banco de dados ou redundância. Replicação simples pode ser obtido copiando o arquivo de banco de dados, mas isso deve ser feito quando nada está a tentar modificar o banco de dados.
Sistemas de replicação pode ser construído na parte superior do API banco de dados de base, mas tais sistemas tendem a ser um tanto frágeis. Em geral, se você está procurando replicação em tempo real, especialmente em uma transação segura nível-você precisa olhar para uma plataforma de RDBMS mais complexa.&lt;/li&gt;
&lt;/ul&gt;
Então... Recomendo que use para substituir aquela sua porcaria de rotina que salva as informações em arquivos CSV e passe a usar algo realmente funciona e que é extremamente simples.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8163534671376006245/posts/default/1279441683322673785'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8163534671376006245/posts/default/1279441683322673785'/><link rel='alternate' type='text/html' href='http://maltzsama.blogspot.com/2012/08/sqlite-quando-nao-usar.html' title='SQLite - Quando não usar?!'/><author><name>Demetrius</name><uri>http://www.blogger.com/profile/03929689008060819061</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9FhQHq_9aJQUHe04dyGq0vzgqWe4B6M6ckqHOuQ61VeKVW5PIlnHb2uzWJSr3RSoEyjodBSbUeRzEpguxyMzabAPAteK82QwOpeb0L4unOiCXjIYbEg70OfO2RKzg_SkzxVG-udmeQWA/s72-c/sqlite370_banner.gif" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-8163534671376006245.post-5456138622002522549</id><published>2012-08-06T10:00:00.000-04:00</published><updated>2012-08-06T11:02:58.098-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="banco de dados"/><category scheme="http://www.blogger.com/atom/ns#" term="database"/><category scheme="http://www.blogger.com/atom/ns#" term="servidor de banco de dados"/><category scheme="http://www.blogger.com/atom/ns#" term="sql"/><category scheme="http://www.blogger.com/atom/ns#" term="sqlite"/><title type='text'>SQLite - Caracteristicas básicas.</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMYtoj4sv76MJMYbgvFSDy3hWixaOhG1vus0UfEXljL3vxGhHztz2GbzqrVET9f_IgEq4zcFrI-ybQPJNkvW6JcNp9r2fQujbj4wrynsZ-pDFk_oTLkpe-baY7bpOdAGhbRsOTUNfqiSM/s1600/sqlite370_banner.gif&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;101&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMYtoj4sv76MJMYbgvFSDy3hWixaOhG1vus0UfEXljL3vxGhHztz2GbzqrVET9f_IgEq4zcFrI-ybQPJNkvW6JcNp9r2fQujbj4wrynsZ-pDFk_oTLkpe-baY7bpOdAGhbRsOTUNfqiSM/s320/sqlite370_banner.gif&quot; width=&quot;220&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
Quando se fala em banco de dados, ou SQL, vem logo a mente grandes SGBDs como Oracle, PostgreSQL, MySQL e SQL Server. Mas o SQLite por ser facilmente portável para qualquer plataforma(movél ou não), compacto, eficiente e confiável. Tornou-o a engine de banco mais usada no mundo.&lt;br /&gt;
As principais características do SQLite são:&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b&gt;Serverless&lt;/b&gt; - Não precisa-se de um &lt;strike&gt;banco de dados&lt;/strike&gt; servidor de banco de dados para se trabalhar com SQLite já que ele fica e apenas um arquivo e fica incorporado ao seu projeto.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Zero Configuration&lt;/b&gt; - Nenhuma configuração ou administração é necessária.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Cross-Platform&lt;/b&gt; - O SQLite foi projetado para ser facilmente portável. Podemos citar como sistemas com suporte a ele: Windows, Linux, BSD, Mac OS X, Solaris, HPUX, AIX. Plataformas embarcadas como o QNX(que será base para o novo BBOS), VXWorks, Symbian, Palm OS, Windows CE, iOS, Android, Meego, Windows Phone 7 e tantos outros...&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Self-Contained&lt;/b&gt; - Não há dependências externas para que se possa compilá-lo.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Small Runtime Footprint&lt;/b&gt; - A implementação padrão toma menos de 1MB de código, e apenas alguns megabytes de memoria. Com alguns ajustes o tamanho da biblioteca e o uso de memoria podem ser reduzidos significativamente.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Transactional&lt;/b&gt; - As transações do SQLite são ACID(atômicas, consistentes, isoladas e duráveis). Mesmo que as transações sejam interrompidas por um problema no programa, ou falha do sistema operacional ou uma falha de energia do computador.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Full-Featured&lt;/b&gt; - O banco de dados suporta grande parte da query language do padrão SQL92(SQL2).&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8163534671376006245/posts/default/5456138622002522549'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8163534671376006245/posts/default/5456138622002522549'/><link rel='alternate' type='text/html' href='http://maltzsama.blogspot.com/2012/08/sqlite-caracteristicas-basicas.html' title='SQLite - Caracteristicas básicas.'/><author><name>Demetrius</name><uri>http://www.blogger.com/profile/03929689008060819061</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMYtoj4sv76MJMYbgvFSDy3hWixaOhG1vus0UfEXljL3vxGhHztz2GbzqrVET9f_IgEq4zcFrI-ybQPJNkvW6JcNp9r2fQujbj4wrynsZ-pDFk_oTLkpe-baY7bpOdAGhbRsOTUNfqiSM/s72-c/sqlite370_banner.gif" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-8163534671376006245.post-4934595954902493641</id><published>2012-07-15T23:34:00.000-04:00</published><updated>2012-07-15T23:36:26.918-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="freebsd"/><category scheme="http://www.blogger.com/atom/ns#" term="gerencia de memória"/><category scheme="http://www.blogger.com/atom/ns#" term="mac"/><category scheme="http://www.blogger.com/atom/ns#" term="macosx"/><category scheme="http://www.blogger.com/atom/ns#" term="memoria"/><title type='text'>Liberar memória ram no Mac OS-X</title><content type='html'>Seu mac osx&amp;nbsp;é como o meu? Vive travando por causa do gerente de memória que&amp;nbsp;é uma bosta? Você não esta afim de comprar aqueles programas que prometem limpar a memória para se livrar do que está inativo nela?&lt;br/&gt;
Existe uma solução bastante simples que poucos usam no MaxOS-X que poucos usam. Usar o bendito do terminal. Os amigos que usam Linux estão muito mais acostumados a usá-lo que os usuários costumeiros do mac.&lt;br/&gt;
Bem o comando é bastante simples:&lt;br/&gt;
&lt;pre class=brush:bash&quot;&gt;$purge&lt;/pre&gt;&lt;br/&gt;
Pronto. Você acaba de fazer tudo que aqueles programas prometem fazer para você de uma forma extremamente simples só que de graça.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8163534671376006245/posts/default/4934595954902493641'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8163534671376006245/posts/default/4934595954902493641'/><link rel='alternate' type='text/html' href='http://maltzsama.blogspot.com/2012/07/liberar-memoria-ram-no-mac-os-x.html' title='Liberar memória ram no Mac OS-X'/><author><name>Demetrius</name><uri>http://www.blogger.com/profile/03929689008060819061</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-8163534671376006245.post-3502009162311877131</id><published>2012-07-13T10:00:00.000-04:00</published><updated>2013-04-16T10:00:43.113-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="banco de dados"/><category scheme="http://www.blogger.com/atom/ns#" term="database"/><category scheme="http://www.blogger.com/atom/ns#" term="DB"/><category scheme="http://www.blogger.com/atom/ns#" term="debian"/><category scheme="http://www.blogger.com/atom/ns#" term="lighttpd"/><category scheme="http://www.blogger.com/atom/ns#" term="mongoDB"/><category scheme="http://www.blogger.com/atom/ns#" term="php5"/><category scheme="http://www.blogger.com/atom/ns#" term="servidor de banco de dados"/><category scheme="http://www.blogger.com/atom/ns#" term="servidor web"/><category scheme="http://www.blogger.com/atom/ns#" term="squeeze"/><title type='text'>Instalando o MongoDB + PHP5 + Lighttpd no Debian Squeeze (6.0.5)</title><content type='html'>Se você pretende usar um banco de dados noSQL, recomendo que use o MongoDB.&lt;br/&gt;
Para isso recomendo que tenha um Debian operando em x64. Apesar de existir uma versão i386, o MongoDB foi projetado para funcionar e tirar total proveito da arquitetura de 64bits, além do fato de se aproveitar o mapeamento de memória ram feita por tal processador de forma nativa. Você até poderá instalá-lo no i386, mas vai dar muito problema. Então faça o certo.&lt;br/&gt;
A instalação é bastante simples como poderá ver nos passos abaixo
&lt;br/&gt;
&lt;script src=&quot;https://gist.github.com/maltzsama/5396087.js&quot;&gt;&lt;/script&gt;
&lt;br/&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8163534671376006245/posts/default/3502009162311877131'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8163534671376006245/posts/default/3502009162311877131'/><link rel='alternate' type='text/html' href='http://maltzsama.blogspot.com/2012/07/instalando-o-mongodb-php5-lighttpd-no.html' title='Instalando o MongoDB + PHP5 + Lighttpd no Debian Squeeze (6.0.5)'/><author><name>Demetrius</name><uri>http://www.blogger.com/profile/03929689008060819061</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-8163534671376006245.post-2408032456230711821</id><published>2012-07-12T10:00:00.000-04:00</published><updated>2013-04-16T10:07:48.379-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="blog"/><category scheme="http://www.blogger.com/atom/ns#" term="debian"/><category scheme="http://www.blogger.com/atom/ns#" term="mysq"/><category scheme="http://www.blogger.com/atom/ns#" term="php5"/><category scheme="http://www.blogger.com/atom/ns#" term="servidor web"/><category scheme="http://www.blogger.com/atom/ns#" term="wordpress"/><title type='text'>Wordpress no Debian Squeeze (6.0.5)</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi1QyB-_tieLosQDTM5hwd4v3M6VsAL-kHqWyHZB2oY68yBM5gdRhXp8NmSADqm72Eh07FjHPiS7TSM9ADoopZu9LcwK-S1Bx3smn-yF0nW2wgwXBnI3nU_k5Kah2Ukn9HDaYWzkaH9730/s1600/layouts-wordpress.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;200&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi1QyB-_tieLosQDTM5hwd4v3M6VsAL-kHqWyHZB2oY68yBM5gdRhXp8NmSADqm72Eh07FjHPiS7TSM9ADoopZu9LcwK-S1Bx3smn-yF0nW2wgwXBnI3nU_k5Kah2Ukn9HDaYWzkaH9730/s200/layouts-wordpress.png&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
Mais breve do que isso para instalar o Wordpress impossível. Hehehe. Espero que seja útil para quem estiver pretendendo colocar o próprio sistema de blog ou expandir.&lt;br /&gt;
Recomendo que comece a configuração pelo post anterior.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;script src=&quot;https://gist.github.com/maltzsama/5396152.js&quot;&gt;&lt;/script&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8163534671376006245/posts/default/2408032456230711821'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8163534671376006245/posts/default/2408032456230711821'/><link rel='alternate' type='text/html' href='http://maltzsama.blogspot.com/2012/07/mais-breve-do-que-isso-para-instalar-o.html' title='Wordpress no Debian Squeeze (6.0.5)'/><author><name>Demetrius</name><uri>http://www.blogger.com/profile/03929689008060819061</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi1QyB-_tieLosQDTM5hwd4v3M6VsAL-kHqWyHZB2oY68yBM5gdRhXp8NmSADqm72Eh07FjHPiS7TSM9ADoopZu9LcwK-S1Bx3smn-yF0nW2wgwXBnI3nU_k5Kah2Ukn9HDaYWzkaH9730/s72-c/layouts-wordpress.png" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-8163534671376006245.post-3530013765528366792</id><published>2012-07-11T18:52:00.000-04:00</published><updated>2013-04-17T10:28:37.408-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="debian"/><category scheme="http://www.blogger.com/atom/ns#" term="lighttpd"/><category scheme="http://www.blogger.com/atom/ns#" term="mongoDB"/><category scheme="http://www.blogger.com/atom/ns#" term="mysql"/><category scheme="http://www.blogger.com/atom/ns#" term="php5"/><category scheme="http://www.blogger.com/atom/ns#" term="server"/><category scheme="http://www.blogger.com/atom/ns#" term="servidor de banco de dados"/><category scheme="http://www.blogger.com/atom/ns#" term="servidor web"/><title type='text'>Instalar MySQL + Lighttpd + PHP5 no Debian Squeeze (6.0.5)</title><content type='html'>&lt;script src=&quot;https://gist.github.com/maltzsama/5404748.js&quot;&gt;&lt;/script&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8163534671376006245/posts/default/3530013765528366792'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8163534671376006245/posts/default/3530013765528366792'/><link rel='alternate' type='text/html' href='http://maltzsama.blogspot.com/2012/07/instalar-mysql-lighttpd-php5-no-debian.html' title='Instalar MySQL + Lighttpd + PHP5 no Debian Squeeze (6.0.5)'/><author><name>Demetrius</name><uri>http://www.blogger.com/profile/03929689008060819061</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><georss:featurename>Manaus - AM, Brasil</georss:featurename><georss:point>-3.1064093 -60.0264297</georss:point><georss:box>-4.1211028 -61.2898572 -2.0917158000000002 -58.7630022</georss:box></entry><entry><id>tag:blogger.com,1999:blog-8163534671376006245.post-8012743067639831260</id><published>2011-08-12T14:58:00.000-04:00</published><updated>2013-04-16T10:10:59.008-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="backup"/><category scheme="http://www.blogger.com/atom/ns#" term="banco de dados"/><category scheme="http://www.blogger.com/atom/ns#" term="DB"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server"/><title type='text'>Script para backup de DataBases SQLServer - parte 01</title><content type='html'>Um problema comum no mundo de banco de dados são os backups. Realizar diversos backups de diversas bases manualmente é tarefa de estagiário &lt;strike&gt;corno&lt;/strike&gt;. As vezes as coisas podem parecer mais complicadas do que realmente são. Por isso esse tutorial mostrará como fazer o backup de suas bases de seu banco de forma simples e rápida. Usar o SQLManager e os planos de manutenção são uma boa. Mas as normalmente o bom e velho script tem um comportamento mais simples e mais fácil de se manobrar.&lt;br /&gt;
Como podemos gerar backups usando o T-SQL? Simples:&lt;br /&gt;
&lt;pre class=&quot;brush:sql&quot;&gt;BACKUP DATABASE DBNAME TO DISK = &quot;c:\backup.bak&quot;&lt;/pre&gt;
&lt;br /&gt;
Esse seria o mais simples de todos, fazendo de um só banco, vc colocando o nome do seu banco. Mas e se você tiver diversos bancos e não está com a menor paciência pra escrever várias linhas iguais a essa para fazer o backup de cada banco? Ou ainda e se você possuir diversos servidores, com cada servidor com diversos bancos que precisam ter um backup e não terá tempo para escrever nome por nome de banco?&lt;br /&gt;
Bem, agora sim as coisas poderiam ficar complicada, mas a verdade é que essa complicação não existe. Veja:&lt;br /&gt;
&lt;script src=&quot;https://gist.github.com/maltzsama/5396211.js&quot;&gt;&lt;/script&gt;
&lt;br /&gt;
&lt;br /&gt;
Simples e objetivo, resolve seu problema de fazer diversos backups de uma única vez e sem ter que ficar colocando nome por nome. Esse backup é um backup full. Você pode procurar formas de fazer backups incrementais e coisas assim...&lt;br /&gt;
&lt;br /&gt;
Nos próximos talvez eu me aprofunde nisso.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8163534671376006245/posts/default/8012743067639831260'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8163534671376006245/posts/default/8012743067639831260'/><link rel='alternate' type='text/html' href='http://maltzsama.blogspot.com/2011/08/script-para-backup-de-databases.html' title='Script para backup de DataBases SQLServer - parte 01'/><author><name>Demetrius</name><uri>http://www.blogger.com/profile/03929689008060819061</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-8163534671376006245.post-4009350720080458400</id><published>2011-08-10T13:02:00.001-04:00</published><updated>2011-08-19T13:34:41.485-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="freebsd"/><category scheme="http://www.blogger.com/atom/ns#" term="FreeNAS"/><category scheme="http://www.blogger.com/atom/ns#" term="usando freeNAS"/><category scheme="http://www.blogger.com/atom/ns#" term="ZFS"/><title type='text'>FreeNAS 8.0</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgF2lyJOflgxCuvTAamcGM3ZfoQqWUUadu5knl3VdeN_DLUV4YZBSDIRlPHl1weDAUDzJTZyRtanqK4v5EsAAh1k9FOGcWNJAseg7jkTR0dx8oKNSbRRg3Mb-_6grOZAimXl5eKoSCyPgg/s1600/freenas.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgF2lyJOflgxCuvTAamcGM3ZfoQqWUUadu5knl3VdeN_DLUV4YZBSDIRlPHl1weDAUDzJTZyRtanqK4v5EsAAh1k9FOGcWNJAseg7jkTR0dx8oKNSbRRg3Mb-_6grOZAimXl5eKoSCyPgg/s1600/freenas.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;O que há de novo no 8.x &lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;FreeNAS™ 8.x representa uma reimplementação completa desde a série .7 do FreeNAS™. Em outras palavras, FreeNAS™ foi reescrito &quot;from scratch&quot; e novas funcionalidades foram adicionadas de forma estável. Isso significa que nem todas as funcionalidades da versão .7 foram reimplementadas e nem todas as funcionalidades disponpíveis no FreeNAS™ .7 estarão disponíveis no FreeNAS™ 8.x.&amp;nbsp; As diferenças mais notáveis entre as duas versões seguem abaixo:&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;O versionamento mudou para seguir o mesmo número usado pela versão do FreeBSD. FreeNAS™ 8.0.1 é baseado no FreeBSD 8.2; esse branch do FreeNAS™ vem com funcionalidades completas.Esse número de versão irá ser incrementado depois para 8.1 e depois para 8.2. &lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;ul style=&quot;text-align: justify;&quot;&gt;&lt;li&gt;Baseado no NanoBSD no lugar do m0n0wall&lt;/li&gt;
&lt;li&gt;Design foi modificado de monolitico para modularizado, dessa forma permite a criação de plugins e o usuário pode instalar e configurar apenas os módulos que ele precisa.&lt;/li&gt;
&lt;li&gt;GUI reescrita em Django para permitir uma futura expanção.&lt;/li&gt;
&lt;li&gt;Nova GUI é a padrão, mas a antiga ainda esta disponível se você configurar no appname e depois FreeNAS™ system&#39;s URL (e.g. http://192.168.1.1/services)&lt;/li&gt;
&lt;li&gt;Melhorado o sistema de permissões, usuários e grupos dos volumes e datasets.&lt;/li&gt;
&lt;li&gt;ZFS parametrização por dataset, assim como quotas, onde são adicionados&lt;/li&gt;
&lt;li&gt;LSI 6 gbps HBAs agora é suportado&lt;/li&gt;
&lt;li&gt;Migrado do rc.d init system&lt;/li&gt;
&lt;li&gt;Update dos ports do FreeBSD 8.2&lt;/li&gt;
&lt;li&gt;Adicionado suporte ao iSCSI&lt;/li&gt;
&lt;li&gt;Suporte do 3ware 6bps RAID controllers foram adicionados com um utilitario CLI utility, tw_cli, para gerenciamento 3ware RAID controller&lt;/li&gt;
&lt;li&gt;Adicionada habilidade para agendar snapshots, criar one-time snapshots, clone snapshots, que podem ser exportados e compartilhados como qualquer outro dataset, e é possível fazer rollback para um snapshot anterior&lt;/li&gt;
&lt;/ul&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Notáveis funcionalidades oferecidas no FreeNAS™ 8.0.1 incluem: &lt;/div&gt;&lt;ul style=&quot;text-align: justify;&quot;&gt;&lt;li&gt;suporte a AFP, CIFS, FTP, NFS, SSH (incluindo SFTP), e TFTP como mecanismos de compartilhamento&lt;/li&gt;
&lt;/ul&gt;&lt;ul style=&quot;text-align: justify;&quot;&gt;&lt;li&gt;supports exporting file or device extents via iSCSI &lt;/li&gt;
&lt;/ul&gt;&lt;ul style=&quot;text-align: justify;&quot;&gt;&lt;li&gt;suporta Active Directory ou LDAP para autenticação de usuário&lt;/li&gt;
&lt;/ul&gt;&lt;ul style=&quot;text-align: justify;&quot;&gt;&lt;li&gt;suporta sistema de arquivos UFS2, incluindo gmirror, gstripe, e graid3&lt;/li&gt;
&lt;/ul&gt;&lt;ul style=&quot;text-align: justify;&quot;&gt;&lt;li&gt; suporta &lt;a class=&quot;external text&quot; href=&quot;http://en.wikipedia.org/wiki/ZFS&quot; rel=&quot;nofollow&quot;&gt;ZFS&lt;/a&gt;  como principal sistema de arquivos, habilitando muitas funcionalidades não disponiveis UFS2  como sistema de cotas, snapshots, compressão, replicação, e datasets para compartilhamentos de subconfigurações de volumes via CIFS. Suporta zpool versão 15. &lt;/li&gt;
&lt;/ul&gt;&lt;ul style=&quot;text-align: justify;&quot;&gt;&lt;li&gt;&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;pt&quot;&gt;&lt;span class=&quot;hps&quot;&gt;procedimento de atualização&lt;/span&gt; tira vantagem da capacidade do &lt;span class=&quot;hps&quot;&gt;&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;NanoBSD&lt;/span&gt; de&lt;span class=&quot;hps&quot;&gt; escrever&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;o sistema operacional&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;em uma partição&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;inativa&lt;/span&gt;&lt;span class=&quot;&quot;&gt;, permitindo uma&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;fácil&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;reversão&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de uma atualização&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;indesejável.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;ul style=&quot;text-align: justify;&quot;&gt;&lt;li&gt;&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;pt&quot;&gt;&lt;span class=&quot;hps&quot;&gt;automática&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;sistema de notificações&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt;sobre eventos&lt;/span&gt; do controlador &lt;span class=&quot;hps&quot;&gt;LSI&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;RAID&lt;/span&gt;&amp;nbsp; &lt;span class=&quot;hps&quot;&gt;(requer serviço de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;e-mail &lt;/span&gt;&lt;span class=&quot;hps&quot;&gt;configurado)&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;ul style=&quot;text-align: justify;&quot;&gt;&lt;li style=&quot;text-align: justify;&quot;&gt; &lt;a class=&quot;external text&quot; href=&quot;http://en.wikipedia.org/wiki/Django_%28Web_framework%29&quot; rel=&quot;nofollow&quot;&gt;Django&lt;/a&gt; interface grafica de gerenciamento&lt;/li&gt;
&lt;/ul&gt;Hora de começar os testes com essa nova versão cheia de novidades? Sim e não. Eu indico que deem uma boa lida nos &lt;a href=&quot;http://doc.freenas.org/index.php/Known_Issues&quot;&gt;problemas conhecidos&lt;/a&gt; antes de partirem para fazer o upgrade dos NAS de vocês e também na &lt;a href=&quot;http://www.freenas.org/category/version-comparison&quot;&gt;comparação entre as duas versões&lt;/a&gt;.&lt;br /&gt;
&lt;ul style=&quot;text-align: justify;&quot;&gt;&lt;/ul&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8163534671376006245/posts/default/4009350720080458400'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8163534671376006245/posts/default/4009350720080458400'/><link rel='alternate' type='text/html' href='http://maltzsama.blogspot.com/2011/08/freenas-80.html' title='FreeNAS 8.0'/><author><name>Demetrius</name><uri>http://www.blogger.com/profile/03929689008060819061</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgF2lyJOflgxCuvTAamcGM3ZfoQqWUUadu5knl3VdeN_DLUV4YZBSDIRlPHl1weDAUDzJTZyRtanqK4v5EsAAh1k9FOGcWNJAseg7jkTR0dx8oKNSbRRg3Mb-_6grOZAimXl5eKoSCyPgg/s72-c/freenas.png" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-8163534671376006245.post-8503997055442697362</id><published>2011-08-09T14:05:00.000-04:00</published><updated>2013-04-17T10:41:00.577-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="banco de dados"/><category scheme="http://www.blogger.com/atom/ns#" term="DB"/><category scheme="http://www.blogger.com/atom/ns#" term="mysql"/><category scheme="http://www.blogger.com/atom/ns#" term="server"/><title type='text'>Usuários conectados ao seus servidor MySQL</title><content type='html'>As vezes se faz extremamente necessário saber quem esta acessando nossa base de dados naquele momento. O MySQL apesar de ter ferramentas gráficas até bem maduras, diferente do postgreSQL(na minha opnião). Você terá sempre a possibilidade de usar tudo via terminal.&lt;br /&gt;
Apesar de conseguir fazer isso facilmente através do comando &quot;SHOW PROCESSLIST&quot;, quando possuo muitos processos fica um tanto difícil de conseguir verificar todos os usuários. A saída do &quot;SHOW PROCESSLIST&quot; seria a abaixo descreita no meu PC que não esta sendo acessado por ninguém além de mim:&lt;br /&gt;
&lt;script src=&quot;https://gist.github.com/maltzsama/5404843.js&quot;&gt;&lt;/script&gt;
fonte: &lt;a href=&quot;http://blog.shlomoid.com/2011/08/how-to-easily-see-whos-connected-to.html&quot;&gt;sholimoid&lt;/a&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8163534671376006245/posts/default/8503997055442697362'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8163534671376006245/posts/default/8503997055442697362'/><link rel='alternate' type='text/html' href='http://maltzsama.blogspot.com/2011/08/usuarios-conectados-ao-seus-servidor.html' title='Usuários conectados ao seus servidor MySQL'/><author><name>Demetrius</name><uri>http://www.blogger.com/profile/03929689008060819061</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-8163534671376006245.post-6563523168702185210</id><published>2011-08-08T11:10:00.003-04:00</published><updated>2013-04-16T10:18:02.197-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="banco de dados"/><category scheme="http://www.blogger.com/atom/ns#" term="database"/><category scheme="http://www.blogger.com/atom/ns#" term="DB"/><category scheme="http://www.blogger.com/atom/ns#" term="mysql"/><category scheme="http://www.blogger.com/atom/ns#" term="python"/><category scheme="http://www.blogger.com/atom/ns#" term="server"/><title type='text'>Conectando MySQL e Pyhton</title><content type='html'>&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
Fazer um script em Python que conecte-se ao MySQL é bastante simples. Mesmo que você não tenha tido qualquer experiência anterior com Python.&lt;br /&gt;
Claro que para prosseguirmos precisaremos ter o Python e o MySQL já instalados. Depois disso precisaremos fazer o import dos módulos MySQLdb e da sys. Para o MySQL você só precisará de um usuário que tenha permissão para conectart ao banco e realizar operações.&lt;br /&gt;
O post original o autor usa Python v2.5, MySQL version 5.5.8,com Mac OS X 10.6.8.Eu estou usando Python 2.6.5, MySQL 5.1.41 e Ubuntu 10.04.&lt;br /&gt;
Aqui estão os links caso vá realizar esse trabalho no Windows.&lt;br /&gt;
&lt;br /&gt;
MySQL – &lt;a href=&quot;http://scriptingmysql.wordpress.com/2011/07/20/connecting-to-mysql-with-python-2/dev.mysql.com/downloads/&quot;&gt; http://dev.mysql.com/downloads &lt;/a&gt;&lt;br /&gt;
Python – &lt;a href=&quot;http://scriptingmysql.wordpress.com/2011/07/20/connecting-to-mysql-with-python-2/www.python.org/getit/&quot;&gt; www.python.org/getit/ &lt;/a&gt;&lt;br /&gt;
MySQLdb module – &lt;a href=&quot;http://sourceforge.net/projects/mysql-python/&quot;&gt;http://sourceforge.net/projects/mysql-python/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;script src=&quot;https://gist.github.com/maltzsama/5396254.js&quot;&gt;&lt;/script&gt;
&lt;br /&gt;
Here is what the script looks like when I run it from the command line:&lt;br /&gt;
&lt;pre class=&quot;brush:python&quot;&gt;Server version: 5.1.41-3ubuntu12.10&lt;/pre&gt;
&lt;br /&gt;
A partir daí é só explorar as possibilidades já que assim é feita a conexão.&lt;br /&gt;
fonte: &lt;a href=&quot;http://scriptingmysql.wordpress.com/2011/07/20/connecting-to-mysql-with-python-2/&quot;&gt;Scripting Mysql&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;zemanta-pixie&quot;&gt;
&lt;img alt=&quot;&quot; class=&quot;zemanta-pixie-img&quot; src=&quot;http://img.zemanta.com/pixy.gif?x-id=e47cca44-8dda-8153-937d-a389983224e0&quot; /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8163534671376006245/posts/default/6563523168702185210'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8163534671376006245/posts/default/6563523168702185210'/><link rel='alternate' type='text/html' href='http://maltzsama.blogspot.com/2011/08/conectando-mysql-e-pyhton.html' title='Conectando MySQL e Pyhton'/><author><name>Demetrius</name><uri>http://www.blogger.com/profile/03929689008060819061</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-8163534671376006245.post-1845722451736741340</id><published>2011-07-30T10:00:00.019-04:00</published><updated>2012-07-11T14:00:43.334-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="python"/><category scheme="http://www.blogger.com/atom/ns#" term="server"/><category scheme="http://www.blogger.com/atom/ns#" term="servidor web"/><title type='text'>Servidor Web Simples com Python</title><content type='html'>&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;, sans-serif;&quot;&gt;As vezes um servidor web se faz necessário para testes simples ou para pequenos compartilhamentos internos de sua intranet. E o tempo de setup de um servidor Apache ou ISS para uma tarefa tão trivial quanto essa pode não ser tão interessante. Depender a TI para configuração as vezes é um parto. E algumas outras vezes baixar e instalar tudo demandará tempo demais. Recomendo usar o servidor web que vem embutido no Python(confeço que não sabia até algum tempo).&lt;br /&gt;
Você só precisará de uma linha para configurá-lo:&lt;br /&gt;
&lt;pre class=brush:bash&quot;&gt;$cd [diretorio]&lt;br /&gt;
$ python -m SimpleHTTPServer&lt;/diretorio&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
Depois disso você terá um servidor web rodando na porta 8000 e será exibida a seguinte mensagem:&lt;br /&gt;
&lt;pre class=brush:bash&quot;&gt; Serving HTTP on 0.0.0.0 port 8000 ...&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
Caso queira mudar a porta padrão do servidor web para um teste faça:&lt;br /&gt;
&lt;pre class=brush:bash&quot;&gt;python -m SimpleHTTPServer 8080&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
Você poderá acessa-lo no seu navegador através do loopback(http://127.0.0.1:8080) ou pelo seu endereço IP (http://192.168.0.2:8080)&lt;br /&gt;
&lt;br /&gt;
Simples não? Ainda farei alguns testes para ver o que isso aguenta. Não deve ser tanto, mas é interessante.&lt;br /&gt;
&lt;br /&gt;
Fonte Original: &lt;a href=&quot;http://www.dicas-l.com.br/arquivo/servidor_web_simples_com_python.php&quot;&gt;[dicas-l]&lt;/a&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8163534671376006245/posts/default/1845722451736741340'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8163534671376006245/posts/default/1845722451736741340'/><link rel='alternate' type='text/html' href='http://maltzsama.blogspot.com/2011/07/servidor-web-simples-com-python.html' title='Servidor Web Simples com Python'/><author><name>Demetrius</name><uri>http://www.blogger.com/profile/03929689008060819061</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-8163534671376006245.post-8693060708090966150</id><published>2011-05-30T14:09:00.001-04:00</published><updated>2013-04-17T10:48:25.468-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="modulo subprocess"/><category scheme="http://www.blogger.com/atom/ns#" term="python"/><category scheme="http://www.blogger.com/atom/ns#" term="python no lugar do shell"/><category scheme="http://www.blogger.com/atom/ns#" term="subprocess"/><title type='text'>Subprocess com Python - Tratamento de erros - parte 2</title><content type='html'>&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;, sans-serif;&quot;&gt;O valor de retorno do comando &lt;b&gt;call()&lt;/b&gt; é o mesmo código de saída do programa que foi chamado. O comando de chamada é responsável por interpretar e detectar possiveis erros. Para tal a biblioteca &lt;b&gt;subprocess&lt;/b&gt; possui o &lt;b&gt;check_call()&lt;/b&gt;, que funciona de maneira parecida com o &lt;b&gt;call()&lt;/b&gt;, porém no &lt;b&gt;check_call()&lt;/b&gt; o código de saída é checado, e caso esse código indique um erro. Será feita uma chamada a uma exescessão chamada &lt;b&gt;CalledProcessError&lt;/b&gt;.&lt;br /&gt;
Por exemplo:&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;script src=&quot;https://gist.github.com/maltzsama/5404900.js&quot;&gt;&lt;/script&gt;&lt;br/&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;, sans-serif;&quot;&gt;fonte: &lt;a href=&quot;http://www.doughellmann.com/PyMOTW/subprocess/&quot;&gt;doughellmann&lt;/a&gt;&lt;br /&gt;
&lt;/span&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8163534671376006245/posts/default/8693060708090966150'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8163534671376006245/posts/default/8693060708090966150'/><link rel='alternate' type='text/html' href='http://maltzsama.blogspot.com/2011/05/subprocess-com-python-tratamento-de.html' title='Subprocess com Python - Tratamento de erros - parte 2'/><author><name>Demetrius</name><uri>http://www.blogger.com/profile/03929689008060819061</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-8163534671376006245.post-7369619313140896103</id><published>2011-05-27T17:00:00.004-04:00</published><updated>2012-07-11T14:10:44.261-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="modulo subprocess"/><category scheme="http://www.blogger.com/atom/ns#" term="python"/><category scheme="http://www.blogger.com/atom/ns#" term="python no lugar do shell"/><category scheme="http://www.blogger.com/atom/ns#" term="script"/><category scheme="http://www.blogger.com/atom/ns#" term="subprocess"/><category scheme="http://www.blogger.com/atom/ns#" term="unix"/><title type='text'>Subprocess com Python - Executando comando externo- parte 1</title><content type='html'>Comunicão entre processos com Python.&lt;br /&gt;
O módulo subprocess permite você criar novos processos através de Python e assim se conectar aos seus inputs/outputs/erros pipes e obter seu código de retorno.&lt;br /&gt;
&lt;br /&gt;
Rodar comando do shell:&lt;br /&gt;
Para executar um comando sem interagir com ele faça a chamada call() assim como faria com os.system()&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=brush:python&quot;&gt;import subprocess&lt;br /&gt;
# Simple command&lt;br /&gt;
subprocess.call([&#39;ls&#39;, &#39;-1&#39;], shell=True)&lt;br /&gt;
&lt;/pre&gt;&lt;br /&gt;
Com o comando acima teremos a seguinte saída:&lt;br /&gt;
&lt;pre class=brush:python&quot;&gt;$ python subprocess_os_system.py&lt;br /&gt;
&lt;br /&gt;
__init__.py&lt;br /&gt;
index.rst&lt;br /&gt;
interaction.py&lt;br /&gt;
repeater.py&lt;br /&gt;
signal_child.py&lt;br /&gt;
signal_parent.py&lt;br /&gt;
subprocess_check_call.py&lt;br /&gt;
subprocess_check_output.py&lt;br /&gt;
subprocess_check_output_error.py&lt;br /&gt;
subprocess_check_output_error_trap_output.py&lt;br /&gt;
subprocess_os_system.py&lt;br /&gt;
subprocess_pipes.py&lt;br /&gt;
subprocess_popen2.py&lt;br /&gt;
subprocess_popen3.py&lt;br /&gt;
subprocess_popen4.py&lt;br /&gt;
subprocess_popen_read.py&lt;br /&gt;
subprocess_popen_write.py&lt;br /&gt;
subprocess_shell_variables.py&lt;br /&gt;
subprocess_signal_parent_shell.py&lt;br /&gt;
subprocess_signal_setsid.py&lt;br /&gt;
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
E desde que tenhamos shell=True teremos acesso as variáveis de shell também.&lt;br /&gt;
&lt;pre class=brush:python&quot;&gt;import subprocess&lt;br /&gt;
# Command with shell expansion&lt;br /&gt;
subprocess.call(&#39;ls -1 $HOME&#39;, shell=True)&lt;br /&gt;
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
Dessa forma teremos a saída:&lt;br /&gt;
&lt;pre class=brush:python&quot;&gt;$ python subprocess_shell_variables.py&lt;br /&gt;
&lt;br /&gt;
/home/maltzsama&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
Agora já sabemos executar um comando externo do sistema operacional ou mesmo um executavel qualquer usando subprocess, no próximo post veremos como fazer &lt;b&gt;tratamento de erros&lt;/b&gt; em &lt;b&gt;subprocess&lt;/b&gt;.&lt;br /&gt;
&lt;br /&gt;
fonte: &lt;a href=&quot;http://www.doughellmann.com/PyMOTW/subprocess/&quot;&gt;doughellmann.com&lt;/a&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8163534671376006245/posts/default/7369619313140896103'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8163534671376006245/posts/default/7369619313140896103'/><link rel='alternate' type='text/html' href='http://maltzsama.blogspot.com/2011/05/subprocess-com-python-executando.html' title='Subprocess com Python - Executando comando externo- parte 1'/><author><name>Demetrius</name><uri>http://www.blogger.com/profile/03929689008060819061</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-8163534671376006245.post-9108918879215996936</id><published>2011-05-27T16:25:00.001-04:00</published><updated>2012-07-11T14:23:45.964-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="editor"/><category scheme="http://www.blogger.com/atom/ns#" term="gedit"/><category scheme="http://www.blogger.com/atom/ns#" term="ide python"/><category scheme="http://www.blogger.com/atom/ns#" term="python"/><title type='text'>Gedit como IDE Python</title><content type='html'>&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Venho programando em Python há algum tempo, já até escrevi um post mostrando como usar o Komodo Edit como um editor Python.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Mas acredito que a maioria como eu usa Linux + Python para programar. Existem diversos editores no mundo Linux, muitos usam o EMAC(não me agrada muito), Vi, nano. Também existem algumas IDE&#39;s como o proprio Eclipse e o Netbeans(acho que com suporte descontinuado). Mas sempre usei muito mais o Gedit, pela simplicidade e capacidade de extenção com plugins.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Então podemos começar colocando os plugins básicos do Gedit para facilitar nossas vidas. Algumas distribuições já vem instalados. Caso contrario faça:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt; &lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Arch Linux&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;pre class=brush:bash&quot;&gt;pacman -Sy gedit-plugins&lt;/pre&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;ubuntu&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;pre class=brush:bash&quot;&gt;sudo apt-get update&lt;br /&gt;
sudo apt-get install gedit-plugins&lt;/pre&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt; &lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Após a instalação desses plugins padrões você poderá habilitalos da seguinte forma:&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Editar&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: small;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: small;&quot;&gt;P&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-size: small;&quot;&gt;referências&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: small;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Plugins&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEidvCN-6XHmmWDWIR3RUjSAXCSmq3PVCVcx7teZOJ6BWuHAT0XajUJBUWJ_fe9KLeu1p2gkBmHeH3cNB4OL3frk-_5XAqKTEAG-LfYSV09vYsevgU-9k3ahNlT7L8b2e2kzxZkZIybTPyw/s1600/plugintab.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEidvCN-6XHmmWDWIR3RUjSAXCSmq3PVCVcx7teZOJ6BWuHAT0XajUJBUWJ_fe9KLeu1p2gkBmHeH3cNB4OL3frk-_5XAqKTEAG-LfYSV09vYsevgU-9k3ahNlT7L8b2e2kzxZkZIybTPyw/s320/plugintab.png&quot; width=&quot;261&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;Depois de selecionar os principais plugins que serão utilizados, recomendo:&lt;/span&gt;&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;http://www.stambouliote.de/projects/gedit_plugins.html&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Class Browser&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
&lt;span style=&quot;font-size: small;&quot;&gt; &lt;/span&gt;
&lt;li&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Embedded Terminal&lt;/span&gt;&lt;/li&gt;
&lt;span style=&quot;font-size: small;&quot;&gt; &lt;/span&gt;
&lt;li&gt;&lt;span style=&quot;font-size: small;&quot;&gt;iPython Console&lt;/span&gt;&lt;/li&gt;
&lt;span style=&quot;font-size: small;&quot;&gt; &lt;/span&gt;
&lt;li&gt;&lt;a href=&quot;https://github.com/fenrrir/geditpycompletion&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Python Code Completion&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
&lt;span style=&quot;font-size: small;&quot;&gt; &lt;/span&gt;
&lt;li&gt;&lt;a href=&quot;http://live.gnome.org/Gedit/Plugins?action=AttachFile&amp;amp;do=view&amp;amp;target=python_indentation.tar.gz&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Python Indentation&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
&lt;span style=&quot;font-size: small;&quot;&gt; &lt;/span&gt;
&lt;li&gt;&lt;span style=&quot;font-size: small;&quot;&gt;External Tools&lt;/span&gt;&lt;/li&gt;
&lt;span style=&quot;font-size: small;&quot;&gt; &lt;/span&gt;
&lt;li&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Bracket Completion&lt;/span&gt;&lt;/li&gt;
&lt;span style=&quot;font-size: small;&quot;&gt; &lt;/span&gt;&lt;/ul&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Os plugins que não são links é porque já foram automaticamente instalados com o pacote gnome-plugins. Os outros plugins que possuem links você precirá baixá-los e descompactalos na seguinte pasta.&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-size: small;&quot;&gt;.local/share/gedit/plugins/&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: small;&quot;&gt; ou &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: small;&quot;&gt;/usr/lib/gedit/plugins/&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: small;&quot;&gt;, se você quiser os plugins já instalados para qualquer usuário.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;Você ainda tem a possibilidade de configurar o CVS, ou GIT para funcionar como controle de versão do seu projeto. Mas isso é assunto pra outro post.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8163534671376006245/posts/default/9108918879215996936'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8163534671376006245/posts/default/9108918879215996936'/><link rel='alternate' type='text/html' href='http://maltzsama.blogspot.com/2011/05/gedit-como-ide-python.html' title='Gedit como IDE Python'/><author><name>Demetrius</name><uri>http://www.blogger.com/profile/03929689008060819061</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEidvCN-6XHmmWDWIR3RUjSAXCSmq3PVCVcx7teZOJ6BWuHAT0XajUJBUWJ_fe9KLeu1p2gkBmHeH3cNB4OL3frk-_5XAqKTEAG-LfYSV09vYsevgU-9k3ahNlT7L8b2e2kzxZkZIybTPyw/s72-c/plugintab.png" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-8163534671376006245.post-570350296664892956</id><published>2011-05-05T13:55:00.001-04:00</published><updated>2012-07-11T14:26:55.872-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="freedos"/><category scheme="http://www.blogger.com/atom/ns#" term="ms-dos"/><category scheme="http://www.blogger.com/atom/ns#" term="msdos"/><category scheme="http://www.blogger.com/atom/ns#" term="python"/><category scheme="http://www.blogger.com/atom/ns#" term="python freedos"/><category scheme="http://www.blogger.com/atom/ns#" term="python msdos"/><category scheme="http://www.blogger.com/atom/ns#" term="pythond"/><category scheme="http://www.blogger.com/atom/ns#" term="script no msdos"/><title type='text'>Instalação do Python no MS-DOS/FreeDOS</title><content type='html'>&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Existem interpretadores Python para diversas arquiteturas além de Linux, Windows e Mac. Você pode consultar as arquiteturas disponiveis &lt;/span&gt;&lt;/span&gt;&lt;a href=&quot;http://www.python.org/getit/other/&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;aqui&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;. Dentre elas esta a implementação para DOS. Mas porque instalar Python em MSDOS? Bem apesar de existir os famoses arquivos em lote ou bat-files sabemos que eles possuem muitas restrições e incapacidades e para conseguirmos transpor essa barreira podemos, mais uma vez, contar com Python.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Existe o site da &lt;/span&gt;&lt;/span&gt;&lt;a href=&quot;http://www.caddit.net/pythond/&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;caddit&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt; que disponibiliza a versão &lt;/span&gt;&lt;/span&gt;&lt;a href=&quot;http://www.progecam.com/download/opensource/python/pyd24210.zip&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;PythonD 2.4.2 Release 1.0&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt; que é nada mais que um arquivo zip contendo os executaveis do Python.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Agora como colocar isso para funcionar? Inicialmente, claro, é preciso descompactar essa pasta dentro da sua partição DOS. Após isso feito é importante setar algumas coisas no autoexec.bat.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;pre class=brush:bash&quot;&gt;SET PATH=%PATH%;c:\pyd\bin\python&lt;br /&gt;
SET PYTHONHOME=c:\pyd\&lt;br/&gt;
SET PYTHONCASEOK=1&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Depois de adicionar essas linhas ao final do autoexec.bat vc só precisará reiniar o computador e terá tudo pronto para usar.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;O comando para iniciar o python no DOS é &lt;b&gt;#pythond&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8163534671376006245/posts/default/570350296664892956'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8163534671376006245/posts/default/570350296664892956'/><link rel='alternate' type='text/html' href='http://maltzsama.blogspot.com/2011/05/instalacao-do-python-no-ms-dosfreedos.html' title='Instalação do Python no MS-DOS/FreeDOS'/><author><name>Demetrius</name><uri>http://www.blogger.com/profile/03929689008060819061</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-8163534671376006245.post-4900987828144848915</id><published>2011-04-04T16:58:00.001-04:00</published><updated>2011-05-27T16:38:27.119-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="desktop"/><category scheme="http://www.blogger.com/atom/ns#" term="dialog"/><category scheme="http://www.blogger.com/atom/ns#" term="ide python"/><category scheme="http://www.blogger.com/atom/ns#" term="python"/><category scheme="http://www.blogger.com/atom/ns#" term="pythond"/><title type='text'>wxFormBuilder</title><content type='html'>&lt;div align=&quot;justify&quot;&gt;Nos últimos 2 ou 3 anos venho programado quase que exclusivamente em python. Uma linguagem muito divertida, fácil e produtiva por sinal. Mas uma coisa que sempre sofri um pouco foi ter que criar interfaces gráficas através de linha de comando que acabava sendo pouco produtivo no final das contas(me desculpem os fã-boys do shell, mas não é produtivo criar componente por componente).&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;Finalmente, depois de algum tempo desenvolvendo para modo-texto e fazendo interfaces o mais simples possível. Vi outro dia na lista de discursão de python um programa muitissimo interessante. O tal do &lt;a href=&quot;http://wxformbuilder.org/&quot;&gt;wxFormBuilder&lt;/a&gt;, simplesmente perfeito.&lt;/div&gt;&lt;div align=&quot;justify&quot; class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkU7c_d8A-0F9Tbm-ccsv_d5mVCQZacP-2OtcMF2ZZr6WEsq_0WJllL_9xXMF45kFto7xzoG8sbs9XfIm6sxiJI2lxCiMxsrqncTubaKcCEAFoC0KCKRcKVimyEaLhEHJSnxd5a6RHatg/s1600/wxBuilder.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;433&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkU7c_d8A-0F9Tbm-ccsv_d5mVCQZacP-2OtcMF2ZZr6WEsq_0WJllL_9xXMF45kFto7xzoG8sbs9XfIm6sxiJI2lxCiMxsrqncTubaKcCEAFoC0KCKRcKVimyEaLhEHJSnxd5a6RHatg/s640/wxBuilder.png&quot; width=&quot;640&quot; /&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot; class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/div&gt;Reclamei durante anos da forma que o Glade trabalhava, criando aquele xml dos infernos, ou mesmo usando aqueles pequenos projetos que transformava o XML em um código python eu achava simplesmnete chato.&lt;br /&gt;
O PyQT eu nunca usei de fato. Mas o WxFormBuilder parece ser fão da filosofia KISS(keep it simple, stupid).&lt;br /&gt;
Ele é capaz de gerar os códigos em C++, Pyhton e XML. Vale a pena conferir e ganhar ainda mais produtividade.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8163534671376006245/posts/default/4900987828144848915'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8163534671376006245/posts/default/4900987828144848915'/><link rel='alternate' type='text/html' href='http://maltzsama.blogspot.com/2011/04/wxformbuilder.html' title='wxFormBuilder'/><author><name>Demetrius</name><uri>http://www.blogger.com/profile/03929689008060819061</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkU7c_d8A-0F9Tbm-ccsv_d5mVCQZacP-2OtcMF2ZZr6WEsq_0WJllL_9xXMF45kFto7xzoG8sbs9XfIm6sxiJI2lxCiMxsrqncTubaKcCEAFoC0KCKRcKVimyEaLhEHJSnxd5a6RHatg/s72-c/wxBuilder.png" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-8163534671376006245.post-4058944637669669428</id><published>2011-03-28T15:02:00.000-04:00</published><updated>2011-03-28T15:02:03.961-04:00</updated><title type='text'>Prototipação de Telas</title><content type='html'>Alguns aqui devem trabalhar com prototipo de telas de sistemas. Alguns provavemente devem usar por muitas vezes o GLADE para fazer os seus modelos. Mas na minha opniao. o GLADE é um lixo. Outro dia procurando esse tipo de ferramenta encontrei o &lt;a href=&quot;http://pencil.evolus.vn/en-US/Home.aspx&quot;&gt;Pencil Project&lt;/a&gt;. Ferramenta realemnte muito interessante. Mantido pela &lt;a href=&quot;http://www.mozilla.org/&quot;&gt;Mozilla&lt;/a&gt; a possibilidade de ver esse projeto crescer é muito grande.&lt;br /&gt;
Abaixo uma screenshot:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEisn7gla4l4Q3sP2HKU18W8VD49PAbnvbBibrvUMvfttL8KzhNQOPxAzfWJmdYmRijh0JjyufcCLxpOmmFbpVOwbf7Ao4vnGgUOrHRbl3K9jU0y-4nO6BvHL-gDjAINfLJeA__iko7kJuQ/s1600/PictureHandler.jpeg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;443&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEisn7gla4l4Q3sP2HKU18W8VD49PAbnvbBibrvUMvfttL8KzhNQOPxAzfWJmdYmRijh0JjyufcCLxpOmmFbpVOwbf7Ao4vnGgUOrHRbl3K9jU0y-4nO6BvHL-gDjAINfLJeA__iko7kJuQ/s640/PictureHandler.jpeg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8163534671376006245/posts/default/4058944637669669428'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8163534671376006245/posts/default/4058944637669669428'/><link rel='alternate' type='text/html' href='http://maltzsama.blogspot.com/2011/03/prototipacao-de-telas.html' title='Prototipação de Telas'/><author><name>Demetrius</name><uri>http://www.blogger.com/profile/03929689008060819061</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEisn7gla4l4Q3sP2HKU18W8VD49PAbnvbBibrvUMvfttL8KzhNQOPxAzfWJmdYmRijh0JjyufcCLxpOmmFbpVOwbf7Ao4vnGgUOrHRbl3K9jU0y-4nO6BvHL-gDjAINfLJeA__iko7kJuQ/s72-c/PictureHandler.jpeg" height="72" width="72"/></entry></feed>