efeefe - linha de comando http://efeefe.no-ip.org/taxonomy/term/64/0 pt-br UID http://efeefe.no-ip.org/agregando/uid <div class=fonte_feed> <em>Este post foi agregado por RSS. Link original:<br> <a href=></a></em></div> --- <p>Há alguns meses já estávamos com problemas em alguns posts do <a href="http://rede.metareciclagem.org" rel="nofollow" rel="nofollow">site da <a href="/freelinking/MetaReciclagem" class="freelinking" rel="nofollow">MetaReciclagem</a></a>: apareciam de repente sem estar associados a nenhumx autorx, e isso atrapalhava o acesso e a edição do conteúdo. Não consegui descobrir a causa do problema (que afeta, em verdade, uma proporção ínfima do site - duas páginas em um universo de mais de 2000), mas hoje aprendi a consertar, com ajuda do <a href="/pessoa/wundo" rel="nofollow" rel="nofollow">Wundo</a>. Lá vai:</p> <p>Entrar no mysql</p> <p class="rteindent1">#mysql -u usuario -p</p> <p>Selecionar o banco de dados</p> <p class="rteindent1">mysql> use bancodedados;</p> <p>Verificar se o problema é mesmo o id de usuárix</p> <p class="rteindent1">mysql> SELECT uid from node where nid=XXX;</p> <p>(onde XXX deve ser substituído pelo ID do node em questão)</p> <p>O resultado aqui foi:</p> <p> </p><p class="rteindent1">+-----+</p> <p class="rteindent1">| uid |</p> <p class="rteindent1">+-----+</p> <p class="rteindent1">|   0 | </p> <p class="rteindent1">+-----+</p> Ou seja, o node está associado ao usuário 0, que não existe. Então vou associá-lo ao usuário 1 (que é o superusuário do drupal) e posteriormente posso atribuir a quem eu quiser através da interface web:   mysql> UPDATE node SET uid = 1 WHERE nid = XXX;   E pronto, os nodes voltaram a ser associados a usuários do site: <a href="/freelinking/EventosEtc" class="freelinking" rel="nofollow">EventosEtc</a> e <a href="/wiki/APH-no-Recife" rel="nofollow" rel="nofollow">APH-no-Recife</a>. <a href="/conectaz/Infra-L%C3%B3gica" rel="nofollow">Infra Lógica</a> cli drupal infralógica linha de comando metareciclagem mysql Thu, 17 Mar 2011 20:49:12 +0000 felipefonseca 10341 at http://efeefe.no-ip.org God http://efeefe.no-ip.org/agregando/god <div class=fonte_feed> <em>Este post foi agregado por RSS. Link original:<br> <a href=></a></em></div> --- A criação do mundo em linha de comando: <a href="http://celobox.googlepages.com/god.html" title="http://celobox.googlepages.com/god.html" rel="nofollow">http://celobox.googlepages.com/god.html</a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tecnomagxs.wordpress.com&amp;blog=4364306&amp;post=128&amp;subd=tecnomagxs&amp;ref=&amp;feed=1" /> english god linha de comando shell tecnomagia Uncategorized Thu, 23 Apr 2009 02:24:20 +0000 felipefonseca 4180 at http://efeefe.no-ip.org Instalando o drupal em pouco mais de 6 minutos http://efeefe.no-ip.org/blog/instalando-o-drupal-em-pouco-mais-de-6-minutos <p>Tava brincando hoje com ferramentas de captura do desktop, e pra testar acabei fazendo um v&iacute;deo de como subir um site com drupal em poucos minutos, usando shell e deixando tudo bem organizadinho pra eventuais updates. T&aacute; no youtube, ainda sem &aacute;udio, mas funcionando. Se eu quisesse, acho que conseguia fechar em cinco minutos, mas fiquei meio lerdo em uns momentos.</p> <object height="344" width="425"> <param name="movie" value="http://www.youtube.com/v/oRSjkbQ4QHQ&amp;hl=pt-br&amp;fs=1" /> <param name="allowFullScreen" value="true" /> <param name="allowscriptaccess" value="always" /><embed height="344" width="425" src="http://www.youtube.com/v/oRSjkbQ4QHQ&amp;hl=pt-br&amp;fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true"></embed></object> drupal linha de comando linux metareciclagem shell xemele Wed, 22 Apr 2009 22:33:18 +0000 felipefonseca 4179 at http://efeefe.no-ip.org Drushin http://efeefe.no-ip.org/blog/drushin Usando o mutirao e a rede.metareciclagem.org para começar a testar o <a href="http://drupal.org/project/drush" rel="nofollow">drush</a>, que pode nos ajudar bastante na administração de sites em drupal.<br /><br />A instalação rolou normal: descompactar os arquivos dentro de modules e habilitar na web. Escolhi wget em vez de CVS ou SVN. Aí fui pra linha de comando. Além das <a href="http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/drush/README.txt?view=markup" rel="nofollow">dicas</a> de instalação, resolvi fazer mais de um link simbólico, já que vou usar o drush no mutirao e na rede metareciclagem. Assim, em vez de ln -s (...) /usr/bin/drush, fiz ln -s (...) /usr/bin/drush_mutirao e ln -s (...) /usr/bin/drush_rede. <br /><br />Fui pro diretório de instalação do mutirao e rodei drush_mutirao. Ele reclamou que o php estava tentando alocar 30Mb de RAM. Achei estranho, porque já tinha mudado o php.ini pra alocar 64Mb. Demorei um pouco a me ligar que eu não tava rodando o php dentro do browser, mas na linha de comando. Precisava então mudara o php.ini dentro de /etc/php5/cli e não /etc/php5/apache2. Editei o arquivo e rodei:<br /><br /><em>drush</em><br /><br />me deu uma lista de opções<br /><br /><em>drush pm refresh</em><br /><br />e depois <br /><br /><em>drush pm update -v</em><br /><br />ele avisou que não pode (ainda) atualizar o core do drupal, mas baixou e substituiu três módulos que estavam desatualizados. depois foi só rodar o update.php e pronto, tudo funcionando.<br /><br />ponto pro drush. drupal linha de comando xemele Sat, 16 Aug 2008 15:08:54 +0000 felipefonseca 3226 at http://efeefe.no-ip.org Linha de comando, donna em sampa e trocação de idéia http://efeefe.no-ip.org/blog/linha-de-comando-donna-em-sampa-e-troca%C3%A7%C3%A3o-de-id%C3%A9ia <p> Eu tenho uma coleção de bookmarks aguardando leitura aqui no meu firefox. Hoje resolvi passar alguns (de vez em quando eu começo a ler alguns deles) e achei um artigo bem interessante: </p> <p> <a href="http://www.networkcultures.org/weblog/archives/2007/04/linux_for_theat.html" title="Network Cultures" rel="nofollow"><strong>Linux for Theatre Makers: Embodiment and *nix modus operandi</strong></a> </p> <p> Alguns trechos que chamaram minha atenção: </p> <blockquote> <p> My central thread in this text is the Linux computer operating system(OS) and more specifically the use of the command-line interface within this OS and its relationship to embodiment. </p> <p> (...) </p> <p> When I first discovered the power to delete the file in my OpenBSD terminal that the OSX finder could not trash I felt was no longer a prisoner inside my machine, only possessing knowledge of a GUI, I was formerly stuck in a holding pattern. Using *nix you keep moving all the time, discovering always new executable codes sensitive to commands. </p> <p> In the shell I find a marvelous mess of constellations, nebulae, interstellar gaps, awesome gullies, that provokes in me an indescribable sense of vertigo, as if I am hanging from earth upside down on the brink of infinite space, with terrestrial gravity still holding me by the heels but about to release me any moment. An example is /dev/null - a special *nix file where you pipe your unwanted data flow through this output. When I first experienced viewing data disappearing into this file, I immediately had an epiphany about the black hole and how the theory of the event horizon might function in an every day context. </p> <p> (...) </p> <p> It is easy to assume that source code is equivalent to bones and oper- able binaries to flesh; or the kernel as fundament, and file structure as slough. I would rather argue for a system of cubist plateaus of intersecting information regimes, with vectors / commands operating among them. In this sense it is information that is immanent within the operating system, not any particular plateau-architecture.&quot; </p> <p> (...) according to Nielsen &amp; Gentner if people opt for the GUI it ultimately limits human communication and even our ability to imagine the intangible, </p> <p> &quot;The see and point principal states that users interact with the computer by pointing at the objects they can see on the screen. It's as if we have thrown away a million years of evolution, lost our facility with expressive language, and have been reduced to point at objects in the immediate environment. Mouse buttons and modifier keys give us a vocabulary equivalent to a few different grunts. We have lost all the power of language, and can no longer talk about objects that are not immediately visible...&quot; </p> <p> (...) </p> <p> After about three years of listening to the multiple and vexed opinions about what Linux distribution to actually use, in general most people tried to protect me from installing Gentoo Linux, which arguably, brings one closer to understanding the OS intimately, than most other distributions (that is, apart from Linux-from-Scratch). Eventually the installation, even with experienced support people guiding me, felt similar to that of a rite-of-passage. </p> <p> <em>[olha os mitos aí]</em> </p> <p> (...) </p> <p> In the wake of increased computational usage, it is important moment for people to want to continue to actively reinvent language. Yet even in spite of their severity, computer languages have caused a tremendous creativity because there was, so far, no power to discipline them, as Sondheim has noticed 'for some of us, linux _has_ changed the language'. </p> <p> (...) </p> <p> As Harwood comments 'It seems software exists in some form of invisible shadow world of procedure...Software is establishing models by which things are done yet, like believing the objectivity of maps, we forget that software is derived from certain cultural, historical and economic trajectories.' </p> </blockquote> <p> E aí fui ver quem escreveu, é uma das meninas do <a href="http://eclectictechcarnival.org" title="/etc" rel="nofollow">/etc</a>, o que me lembra de contar que ontem fui à <a href="http://estudiolivre.org/sampalab" title="Sampalab" rel="nofollow">casinha</a> trocar a idéia com a Donna, menina dos <a href="http://www.genderchangers.org/" title="Genderchangers" rel="nofollow">Gender Changers</a> que tá fazendo uma <a href="http://pub.descentro.org/residencia_genderchangers" title="residência no descentro" rel="nofollow">residência descêntrica</a>, também envolvida com o /etc. Cheguei no meio da tarde, com sono e fome, a gente foi almoçar na padaria ali na frente da casinha. <a href="http://estudiolivre.org/el-user.php?view_user=salsaman" title="Salsaman no EL" rel="nofollow">Salsaman</a>, desenvolvedor do <a href="http://lives.sourceforge.net/" title="Linux Video Editing System" rel="nofollow">Lives</a> que tá hospedado na casinha desde que veio pro <a href="http://fisl.softwarelivre.org/8.0/www/" title="Fisl 8.0" rel="nofollow">Fisl</a>, tava junto, além de <a href="/marialu" title="MariaLu" rel="nofollow">Maria_Lu</a> e Marcita. Voltamos pra casinha, e o movimento tava lento. A galera foi chegando aos poucos, e com algum atraso rolou uma apresentação da Donna, contou de <a href="http://scii.nl" title="Ascii" rel="nofollow">ascii</a>, genderchangers, /etc, de participação em eventos, das oficinas de gênero e tecnologia. Não ouvi toda a apresentação porque ao mesmo tempo eu tava lá atrás extraindo o áudio das mini-DVs do <a href="http://pub.descentro.org/dialogos_na_casinha_novaes_11_05_2007" title="Diálogo com Novaes no DesCentro" rel="nofollow">diálogo na casinha com o novaes</a> (e rolou!). Depois rolou sessão do <a href="http://feminismspeakup.blogspot.com/" title="Feminism Speak Up" rel="nofollow">Feminism Speak Up!</a>, que eu ainda não tinha assistido. Belo vídeo, parabéns à Valentina e sua galera. Aí o pessoal debateu mais um pouco e foi saindo. Fiquei ainda uma meia hora conversando com a Donna, mostrei umas fotinhos de <a href="http://metareciclagem.org" title="..." rel="nofollow">MetaReciclagem</a>, trocamos idéia sobre um monte de assuntos interessantes em tempo reduzidíssimo. Um dia eu encontro com ela em Amsterdam pra conversar mais ;) </p> <p> &nbsp; </p> <p> <a href="http://estudiolivre.org/el-gallery_view.php?arquivoId=1097" title="Linha de comando no EL" rel="nofollow">Linha de comando é o maior maior barato</a> </p> bricolabs descentro linha de comando metareciclagem tecnomagia Mon, 04 Jun 2007 22:57:52 +0000 felipefonseca 299 at http://efeefe.no-ip.org O poder das palavras http://efeefe.no-ip.org/blog/o-poder-das-palavras <p> Pra além de toda exploração simbólica-poética, palavras <a href="http://pt.wikipedia.org/wiki/Cabala" title="Cabala, na wikipedia" rel="nofollow">têm poder</a>. </p> <blockquote> <p> Grande parte das formas de Cabala ensinam que cada letra, palavra, número, e acento da Escritura contêm um sentido escondido e ensina os métodos de interpretação para verificar esses significados ocultos. </p> </blockquote> <p> Palavras têm poder </p> <p> <a href="http://www.midiatatica.org/ip/index.php?id=2,58,0,0,1,0" title="Oficina de Tela preta no IP" rel="nofollow"> root@nomade:~# rm -rf /</a> </p> <p> <img src="http://www.midiatatica.org/ip/content/images/8fdf0c4110efc624705c4df058e86b56.png" alt="Tela Preta" width="400" height="226" /> </p> <p> &nbsp; </p> <p> Pra além do mkdir, se pans fazer um mkmundo. mkgente. </p> <p> <a href="http://pt.wikipedia.org/wiki/Golem" title="Golem, na Wikipedia" rel="nofollow">root@nomade:~# mkgolem</a> </p> <blockquote> <p> A primeira publicação da história do golem apareceu em 1847 em uma coleção de contos judaicos intitulada <em>Galerie der Sippurim</em>, publicada por Wolf Pascheles, de Praga. Cerca de 60 anos mais tarde, um conto de ficção foi publicado por Yudl Rosenberg (1909). De acordo com a lenda, o golem teria sido feito com a argila do rio <a href="http://pt.wikipedia.org/wiki/Moldava" title="Moldava" rel="nofollow">Moldava</a> que banha Praga. Seguindo rituais específicos, o rabino construiu o golem e fez com que ele ganhasse vida recitando um encanto especial em hebreu e escrevendo na sua testa a palavra <em>emet</em>. O golem deveria obedecer ao rabino, ajudando e protegendo o gueto judaico. Durante o dia, o rabino escondia o golem no sótão da Antiga-Nova Sinagoga. Porém, o golem cresceu e se tornou violento e começou a matar pessoas espalhando o medo. Foi então prometido ao rabino Loew que a violência contra os judeus pararia se o golem fosse destruído. O rabino concordou e destruiu o golem apagando a primeira letra da palavra <em>Emet</em> </p> </blockquote> <p>  E eu tô indo em 12 dias viver em <a href="http://pt.wikipedia.org/wiki/Dresden" title="Dresden, na Wikipedia" rel="nofollow">Dresden</a>, que além de produzir <a href="http://www.silicon-saxony.net/" title="Silicon Saxony" rel="nofollow">aparelhos mágicos</a> controlados por palavras também fica a duas horas de trem de <a href="http://pt.wikipedia.org/wiki/Praga" title="Praga, na wikipedia" rel="nofollow">Praga</a>. Terra do <a href="http://pt.wikipedia.org/wiki/Praga" title="Golem, na wikipedia" rel="nofollow">Golem</a>. </p> <blockquote> <p> <span><a href="http://www.bungletofantomas.com/" title="Fantomas" rel="nofollow"> Life born anew <br /> Let silence scorn you <br /> Reach out my body <br /> </a> <br /> I walk <a href="http://muuzik.net/letras/fantomas/der-golem/" title="Der Golem, Fantomas" rel="nofollow">again</a></span><a href="http://muuzik.net/letras/fantomas/der-golem/" title="Der Golem, Fantomas" rel="nofollow"> <br /> </a> </p> </blockquote> alemanha dresden linha de comando praga tecnomagia Fri, 01 Jun 2007 03:24:39 +0000 felipefonseca 280 at http://efeefe.no-ip.org