<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>TechBot - Latest Comments</title><link>http://techbot.disqus.com/</link><description></description><atom:link href="https://techbot.disqus.com/comments.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Wed, 19 Jun 2013 14:53:52 -0000</lastBuildDate><item><title>Re: Screencast de Introdução a Objective-C &amp;#8211; Parte 2</title><link>http://techbot.me/2011/08/screencast-de-introducao-objective-c-parte-2/#comment-935684647</link><description>&lt;p&gt;estou precisando falar com voce a respeito de uma vaga ou indicacoes a vagas para trabalhar com rails em joao pessoa. por gentileza, me envia seu telefone: 83 9966-6667&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">alcir lima</dc:creator><pubDate>Wed, 19 Jun 2013 14:53:52 -0000</pubDate></item><item><title>Re: Handling database indexes for Rails polymorphic associations</title><link>http://techbot.me/2008/09/handling-database-indexes-for-rails-polymorphic-associations/#comment-931572547</link><description>&lt;p&gt;I know this post is old, but people may still be searching for this topic on google.&lt;/p&gt;&lt;p&gt;Reading Thomas A's comment I believe many people seem to have a false understanding of  database indices. Keep in mind:&lt;/p&gt;&lt;p&gt;A database index is not needed to identify a record - it just speeds up access (in some cases.)&lt;/p&gt;&lt;p&gt;If you search by parent_id (with index on parent_id), the database will use this index to return all matching rows. Say the database returns 2 records, one of type "Human", the other of type "Dog", the database will then have to scan through these 2 records only to identify the correct row. Very fast. If you create an index on the parent_type row and your table has 100,000 records, the database needs to load an index containing 100,000 strings of either "Human" or "Dog" into memory. Not very efficient, is it?&lt;/p&gt;&lt;p&gt;That's one of the reasons why an incorrectly used database index can make your queries slower (not only the updates and inserts, but also selects)&lt;/p&gt;&lt;p&gt;Unless you have a really great number of different model names in the parent_type column, the best solution is probably set an index on the parent_id column only. Indexing the parent_type column will approximately double the memory usage of your index, which is a great payoff for what you get vs. doing a scan on a couple of rows only.&lt;/p&gt;&lt;p&gt;In general, columns with low cardinality (where many values are the same) like parent_type are almost never columns you want to put an index on.&lt;/p&gt;&lt;p&gt;As a side note: limiting a varchar column brings no benefit for indexing, a varchar takes up the space for the characters used plus one extra byte that stores the string length. If all of your model names are the same length, you could in theory use the CHAR type instead of VARCHAR (if you are using MySQL), because it doesn't need the extra byte for length information. But that's database specific and will probably not work in an ActiveRecord migration.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Nikolas</dc:creator><pubDate>Sat, 15 Jun 2013 10:04:10 -0000</pubDate></item><item><title>Re: Full text search in in Rails with Sunspot and Solr</title><link>http://techbot.me/2011/01/full-text-search-in-in-rails-with-sunspot-and-solr/#comment-906927690</link><description>&lt;p&gt;Years later, still very helpful :)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">krisleech</dc:creator><pubDate>Fri, 24 May 2013 10:12:33 -0000</pubDate></item><item><title>Re: Full text search in in Rails with Sunspot and Solr</title><link>http://techbot.me/2011/01/full-text-search-in-in-rails-with-sunspot-and-solr/#comment-877820012</link><description>&lt;p&gt;please answer this question.&lt;br&gt;&lt;a href="http://stackoverflow.com/questions/16251165/partial-search-in-sunspot-solr" rel="nofollow noopener" target="_blank" title="http://stackoverflow.com/questions/16251165/partial-search-in-sunspot-solr"&gt;http://stackoverflow.com/qu...&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Amar</dc:creator><pubDate>Sat, 27 Apr 2013 08:47:01 -0000</pubDate></item><item><title>Re: Contributing a new binding for MonoMac and making your MonoMac application updateable using Sparkle</title><link>http://mauricio.github.com/2012/09/23/contributing-a-new-binding-to-monomac.html#comment-832666927</link><description>&lt;p&gt;any reason this never made it into the monomac-bindings repo? &lt;a href="https://github.com/mono/monomac-bindings" rel="nofollow noopener" target="_blank" title="https://github.com/mono/monomac-bindings"&gt;https://github.com/mono/mon...&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">David Feinberg</dc:creator><pubDate>Sun, 17 Mar 2013 13:42:54 -0000</pubDate></item><item><title>Re: Como ser chutado de uma avaliação pra uma vaga na fase de currículos</title><link>http://techbot.me/2011/01/como-ser-chutado-de-uma-avaliacao-pra-uma-vaga-na-fase-de-curriculos/#comment-804222479</link><description>&lt;p&gt;Olha gostei muito das dicas mas tenho muitas dúvidas em relação ao "seu primeiro emprego".&lt;br&gt;Bom, vou aproveitar essa oportunidade para compartilhar essa idéia com vcs...&lt;br&gt;No mercado, há várias tecnologias a estudar! Com dicas de professores da faculdade, resolvi me aprofundar em alguns frameworks JAVA para WEB que fazem parte da implementação JEE.&lt;br&gt;São eles o Mojarra (implementação JSF), Hibernate (implementação JPA) entre outros...&lt;br&gt;Decidi que quero seguir minha carreita na área de T.I. voltado para o desenvolvimento de sistemas JAVA para WEB, o que pelo menos até onde eu sei, é tendência hoje em dia.&lt;br&gt;Nesse momento, quero adiquirir experiências no mercado de trabalho, ou seja, quero Estagiar na área. Mas acontece que até os estágios pedem como requisito da vaga, experiências com a tecnologia. Oura, como uma vaga de estágio pode exigir experiências? Não consigo entender isso. Na minha humilde e sincera opnião, as vezes as empresas tem que dá chance para aquelas pessoas que não tem experiência nenhuma. O termo "estágio" está ae para você ter o seu primeiro contato com o mercado! É aquele momento de adiquirir muito aprendizado e experiência. Vejo muito anúncios de estágios com esses pre-requisitos. Isso, para mim, é errado.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Gabriel Araújo Lima</dc:creator><pubDate>Tue, 19 Feb 2013 08:01:35 -0000</pubDate></item><item><title>Re: Contributing a new binding for MonoMac and making your MonoMac application updateable using Sparkle</title><link>http://mauricio.github.com/2012/09/23/contributing-a-new-binding-to-monomac.html#comment-786453679</link><description>&lt;p&gt;"Make sure you mark the Run on external console option or it isn't going to work."&lt;/p&gt;&lt;p&gt;Just split your three-in-one command line (rm; mkdir; cp) into three commands (rm then mkdir then cp) and you don't need to bother with the external console.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">ta.speot.is</dc:creator><pubDate>Fri, 01 Feb 2013 22:54:19 -0000</pubDate></item><item><title>Re: Screencast &amp;#8211; Introdução a Objective-C &amp;#8211; Parte 1</title><link>http://techbot.me/2011/08/screencast-introducao-objective-c/#comment-751894645</link><description>&lt;p&gt;Fiquei com uma duvida/curiosidade. Apensar de ser de bom tom retornarmos sempre id na construção de um objeto nada empede que retornemos o proprio tipo do objeto. Certo?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Daniel Passos</dc:creator><pubDate>Mon, 31 Dec 2012 05:27:59 -0000</pubDate></item><item><title>Re: Deployment Recipes – Deploying, monitoring and securing your Rails application to a clean Ubuntu 10.04 install using Nginx and Unicorn</title><link>http://techbot.me/2010/08/deployment-recipes-deploying-monitoring-and-securing-your-rails-application-to-a-clean-ubuntu-10-04-install-using-nginx-and-unicorn/#comment-744394876</link><description>&lt;p&gt;Although it's 2 years old now, this guide still works well. A few minor notes ...&lt;/p&gt;&lt;p&gt;First, I believe this is an error: In the section where editing the nginx config for *monit* ( nano /etc/monit/conf.d/nginx.conf" )&lt;br&gt;"check process unicorn" should be "check process nginx"&lt;/p&gt;&lt;p&gt;Second, if you are running a server with multiple sites, you may want monitor each independently. &lt;br&gt;if so, add multiple "check process unicorn" instances in "nano /etc/monit/conf.d/unicorn.conf"&lt;/p&gt;&lt;p&gt;you'll have to append your appname to each instance too, so monit can follow each separately&lt;/p&gt;&lt;p&gt;check process unicorn-appname1here&lt;br&gt;   etc etc &lt;br&gt;   etc etc&lt;br&gt;   etc etc&lt;br&gt;   group unicorn-appname1here&lt;/p&gt;&lt;p&gt;check process unicorn-appname2here&lt;br&gt;   etc etc  &lt;br&gt;   etc etc&lt;br&gt;   etc etc&lt;br&gt;   group unicorn-appname2here&lt;/p&gt;&lt;p&gt;Lastly, if you are using RVM, as described, monit will run and detect if things aren't up, but it may have trouble restarting unicorn.&lt;br&gt;This has to do with the way monit executes commands. Use this "start program" line may work, in which you are telling monit to open a new shell, cd into your app dir, then start unicorn with bundle exec. This is to catch your PATH and other ENV vars, that by default the monit "start program" strips.&lt;/p&gt;&lt;p&gt;  start program = "/bin/su - [production_deployer_username_here] -c 'cd /path/to/your/app/current; bundle exec unicorn_rails -c /path/to/your/app/current/unicorn.rb -E production -D'"&lt;/p&gt;&lt;p&gt;More about this here :&lt;/p&gt;&lt;p&gt;&lt;a href="http://mmonit.com/wiki/Monit/FAQ" rel="nofollow noopener" target="_blank" title="http://mmonit.com/wiki/Monit/FAQ"&gt;http://mmonit.com/wiki/Moni...&lt;/a&gt; with pidfile /home/deployer/cstreams/shared/pids/&lt;a href="http://unicorn.pid" rel="nofollow noopener" target="_blank" title="unicorn.pid"&gt;unicorn.pid&lt;/a&gt;&lt;br&gt;&lt;a href="http://stackoverflow.com/questions/13433866/monit-ruby-on-rails-sidekiqstart" rel="nofollow noopener" target="_blank" title="http://stackoverflow.com/questions/13433866/monit-ruby-on-rails-sidekiqstart"&gt;http://stackoverflow.com/qu...&lt;/a&gt; program = "/bin/su - deployer -c 'cd&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Guest</dc:creator><pubDate>Thu, 20 Dec 2012 21:45:19 -0000</pubDate></item><item><title>Re: Criando um programador</title><link>http://techbot.me/2011/05/criando-um-programador/#comment-725672220</link><description>&lt;p&gt;Li esse texto um tempo atrás e esqueci de favoritar, meses depois lembrei e procurei e não mais encontrei. Agora a pouco um contato do twitter deu RT no blog, fui dar uma olhada e o encontrei. Favoritado. :P&lt;/p&gt;&lt;p&gt;Parabéns!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Rael Max</dc:creator><pubDate>Sun, 02 Dec 2012 19:54:30 -0000</pubDate></item><item><title>Re: Agilidade, snake oil, power balances e a falácia do “nós somos diferentes”</title><link>http://techbot.me/2011/01/agilidade-snake-oil-power-balances-e-a-falacia-do-nos-somos-diferentes/#comment-699229379</link><description>&lt;p&gt;Os autores consagrados que eu me refiro, são Takeuchi, Nonaka, Schwaber, Sutherland e Cohn (os autores Abrahamsson, Larsen, Deemer, Benefield também apresentaram bons livros ou artigos), que eu considero a referência básica do Scrum. Todos eles baseia suas proposições em projetos que aplicaram uma metodologia derivada dos princípios ágeis pré-Scrum (1985-1995), como Lean, e obtiveram sucesso "comprovado" com isso; projetos da Yahoo e da Xerox (apenas citando as empresas de maior expressão).&lt;/p&gt;&lt;p&gt;De qualquer forma, eu considero que alguns livros, mas principalmente, artigos e post são simples demais, abordando o Scrum de forma inadequada e, às vezes, comercial. Como exemplo, eu nunca vi um artigo que comentava sobre o ciclo de vida da metodologia, como ela foi concebida: com as etapas de Sprint compondo apenas uma parte do ciclo, a parte do "Game", enquanto temos a parte do Pre-game e post-game (Scrum Development Process, Schwaber, 1996).&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">João Paulo Girardi Piccinini</dc:creator><pubDate>Fri, 02 Nov 2012 20:57:39 -0000</pubDate></item><item><title>Re: Porque é importante saber como o protocolo HTTP funciona</title><link>http://techbot.me/2008/11/porque-e-importante-saber-como-o-protocolo-http-funciona/#comment-685123216</link><description>&lt;p&gt;Só gostaria de fazer uma observação: no caso de acesso por login, apesar de fazer apenas consulta (SELECT) no servidor, é preciso usar o método POST, pois, caso contrário, a senha irá aparecer na barra de endereços. É uma excessão em relação ao artigo.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Wagner Dizeró</dc:creator><pubDate>Wed, 17 Oct 2012 08:17:48 -0000</pubDate></item><item><title>Re: Ruby Basics &amp;#8211; Equality operators in Ruby</title><link>http://techbot.me/2011/05/ruby-basics-equality-operators-ruby/#comment-657905133</link><description>&lt;p&gt;Is it more common to "delegate" the eql? method to == using aliases? E.g. &lt;br&gt;alias eql? ==&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Daniel</dc:creator><pubDate>Fri, 21 Sep 2012 11:21:11 -0000</pubDate></item><item><title>Re: Screencast de Introdução a Objective-C &amp;#8211; Parte 2</title><link>http://techbot.me/2011/08/screencast-de-introducao-objective-c-parte-2/#comment-657079822</link><description>&lt;p&gt;E quando sai o 3?&lt;br&gt;Estou ansioso...rsrs&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alexsandro Teza Vilas Boas</dc:creator><pubDate>Thu, 20 Sep 2012 17:42:14 -0000</pubDate></item><item><title>Re: Screencast &amp;#8211; Introdução a Objective-C &amp;#8211; Parte 1</title><link>http://techbot.me/2011/08/screencast-introducao-objective-c/#comment-656998478</link><description>&lt;p&gt;Valeu Mauricio, tava precisando de uma introdução bem clara como essa.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alexsandro Teza Vilas Boas</dc:creator><pubDate>Thu, 20 Sep 2012 16:18:35 -0000</pubDate></item><item><title>Re: Como ser chutado de uma avaliação pra uma vaga na fase de currículos</title><link>http://techbot.me/2011/01/como-ser-chutado-de-uma-avaliacao-pra-uma-vaga-na-fase-de-curriculos/#comment-584162278</link><description>&lt;p&gt;Discordo totalmente nesta parte: "Todo mundo tem uma certificação SCJP" &lt;br&gt;porque nem todo mundo "ainda possui" uma certificação java SCJP... por isso fique esperando certificações java SCEA sentado ok!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sena</dc:creator><pubDate>Wed, 11 Jul 2012 09:37:30 -0000</pubDate></item><item><title>Re: Full text search in in Rails with Sunspot and Solr</title><link>http://techbot.me/2011/01/full-text-search-in-in-rails-with-sunspot-and-solr/#comment-564424424</link><description>&lt;p&gt;try using a different tokenizer e.g. withespaceTokenizerFactory it will not strip the "#" from the text.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">plotti</dc:creator><pubDate>Fri, 22 Jun 2012 08:34:35 -0000</pubDate></item><item><title>Re: Agilidade, snake oil, power balances e a falácia do “nós somos diferentes”</title><link>http://techbot.me/2011/01/agilidade-snake-oil-power-balances-e-a-falacia-do-nos-somos-diferentes/#comment-531229046</link><description>&lt;p&gt;Tem muitos livros, especialmente os livros de Scrum hoje em dia, que tem esse foco triste em "Scrum é a salvação de todos os seus problemas, só use Scrum e nada mais" e vários autores consagrados dizem que inventaram a coisa quando na verdade tudo isso vem do Lean e do TPS da Toyota. Os livros estão ficando cada vez mais messiânicos e cada vez menos interessantes no seu conteúdo. Claro que tem muita coisa boa por aí, mas o charlatanismo e as soluções fáceis estão tomando um espaço cada vez maior dos livros sérios.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Maurício Linhares</dc:creator><pubDate>Thu, 17 May 2012 11:37:57 -0000</pubDate></item><item><title>Re: Agilidade, snake oil, power balances e a falácia do “nós somos diferentes”</title><link>http://techbot.me/2011/01/agilidade-snake-oil-power-balances-e-a-falacia-do-nos-somos-diferentes/#comment-531093028</link><description>&lt;p&gt;Aproveitando o gancho do tema Certificação, que o Andrei comentou, eu concordo com você, Maurício, no problema dos agilistas estarem vendendo seus produtos, soluções ou consultorias como se fosse uma nova "silver bullet". Eu trabalhei mais de 2 anos aplicando Scrum(but) e XP(like) e sei como é difícil para a equipe de desenvolvimento manter as práticas ágeis com pressão do chefe da área comercial, da área financeira... e do próprio cliente. Não é com um curso de 1 ou 2 dias, como apresenta a Scrum Alliance, que é possível "formar" um profissional no Srum.&lt;/p&gt;&lt;p&gt;Só não entendi o por quê do ataque aos livros de ágil: "Hoje os livros e textos sobre desenvolvimento ágil de software são equivalentes aos mais ralos livros de auto-ajuda..."; todos que li me apresentaram argumentos embasados em estudos empíricos, práticas ou em outras obras de conhecimento da comunidade.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">João Paulo Girardi Piccinini</dc:creator><pubDate>Thu, 17 May 2012 08:28:59 -0000</pubDate></item><item><title>Re: Screencast de Introdução a Objective-C &amp;#8211; Parte 2</title><link>http://techbot.me/2011/08/screencast-de-introducao-objective-c-parte-2/#comment-527029698</link><description>&lt;p&gt;Muito obrigado! Parabéns! Já estou ansioso pela parte 3.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jonas Gomes</dc:creator><pubDate>Sat, 12 May 2012 01:02:10 -0000</pubDate></item><item><title>Re: Full text search in in Rails with Sunspot and Solr</title><link>http://techbot.me/2011/01/full-text-search-in-in-rails-with-sunspot-and-solr/#comment-475632247</link><description>&lt;p&gt;opa, você é brasileiro? Se for parabéns cara, excelente tutorial. Ainda não tive tempo de testar o Solr mas com certeza o farei em breve :)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">louman</dc:creator><pubDate>Sat, 24 Mar 2012 23:19:48 -0000</pubDate></item><item><title>Re: Deployment Recipes – Deploying, monitoring and securing your Rails application to a clean Ubuntu 10.04 install using Nginx and Unicorn</title><link>http://techbot.me/2010/08/deployment-recipes-deploying-monitoring-and-securing-your-rails-application-to-a-clean-ubuntu-10-04-install-using-nginx-and-unicorn/#comment-448920347</link><description>&lt;p&gt;superb write up and extremely useful for my  first attempt to set up a rackspace cloud server, like others have suggested I am using rvm and bundler to handle my gems and all is good but I have a bad gateway problem. At first the error log stated&lt;br&gt;connect() to unix:/tmp/mobile.socket failed (2: No such file or directory) while connecting to upstream ...&lt;br&gt;So I created an emtpy mobile.socket file in the tmp folder and gave it chmod ugo 777 permissions and now I am getting connect() to unix:/tmp/mobile.socket failed (111: Connection refused) while connecting to upstream errors.&lt;/p&gt;&lt;p&gt;Any ideas on what this could be would be appreciate. I have a stackoverflow question on it here if it helps to have the detail of my configuration files. &lt;br&gt;&lt;a href="http://stackoverflow.com/questions/9445545/nginx-and-unicorn-bad-gatewayconnect-to-unix-tmp-mobile-socket-failed-and-fa" rel="nofollow noopener" target="_blank" title="http://stackoverflow.com/questions/9445545/nginx-and-unicorn-bad-gatewayconnect-to-unix-tmp-mobile-socket-failed-and-fa"&gt;http://stackoverflow.com/qu...&lt;/a&gt;&lt;/p&gt;&lt;p&gt;No answers fix the problem so any help would be greatly appreciated&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jamesw</dc:creator><pubDate>Sat, 25 Feb 2012 17:49:10 -0000</pubDate></item><item><title>Re: Full text search in in Rails with Sunspot and Solr</title><link>http://techbot.me/2011/01/full-text-search-in-in-rails-with-sunspot-and-solr/#comment-421698264</link><description>&lt;p&gt;Nice work!&lt;/p&gt;&lt;p&gt;But i just want to know how can i search for "asd" if my record is "lalalasdlalala". I mean, like a "LIKE" query ir mysql.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Franco</dc:creator><pubDate>Thu, 26 Jan 2012 15:50:47 -0000</pubDate></item><item><title>Re: Full text search in in Rails with Sunspot and Solr</title><link>http://techbot.me/2011/01/full-text-search-in-in-rails-with-sunspot-and-solr/#comment-418929406</link><description>&lt;p&gt;Does anyone know how to teach solr to return results from '#term'?&lt;/p&gt;&lt;p&gt;I need to have different set results for 'term' and '#term'&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">jfranciscoguzman</dc:creator><pubDate>Mon, 23 Jan 2012 15:15:11 -0000</pubDate></item><item><title>Re: Screencast de Introdução a Objective-C &amp;#8211; Parte 2</title><link>http://techbot.me/2011/08/screencast-de-introducao-objective-c-parte-2/#comment-397731190</link><description>&lt;p&gt;Por favor, não pare de fazer aulas, precisamos de material nacional! =D&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Juancbdm</dc:creator><pubDate>Fri, 30 Dec 2011 23:50:19 -0000</pubDate></item></channel></rss>