quinta-feira, 25 de março de 2010

Eaccelerator no more support shared memory variables

Okey, if anyone get in troubles trying to upgrade PHP Eaccelerator module and using shared memory support (eaccelerator_get and set functions for example), this is what is going on:
Since version 0.9.6-rc1 eaccelerator no more support shared memory variables. You can see it in Changelog:
2009-07-14 Bart Vanbrabant

* Fix two PHP 5.3 bugs
* Remove the optimizer
* Remove the user cache functions
Also you will see that only ./configure of versions <= 0.9.5.3 give us the option to compile with it:
--with-eaccelerator-shared-memory Include eaccelerator shared memory functions
--with-eaccelerator-sessions Include eaccelerator sessions
--with-eaccelerator-content-caching Include eaccelerator content caching

If you want to have same shared memory variables with PHP, I think you can try the native shm_* functions of PHP:
http://www.php.net/manual/en/function.shm-get-var.php

Eaccelerator project keepers:
  • Would be Cool if you write something about it at your project website. Have a hundred of people outthere trying to use new version of eaccelerator and just not understanding whats going on. In your website's wiki, the function stay without any warning about it.

domingo, 7 de março de 2010

Como Manter o Macbook Pro Ligado com o flip fechado

Deixar o torrent ligado.
Ver um filme com o mac "fechado".
Deixar um código compilando.
Fazer com que a maldita luzinha "piscante" nao te tire o sono.
Fechar o LCD e não desligar - SOMENTE QUANDO ENERGIA ESTIVER LIGADA.

Eis a solução em 3 passos:

1 - Baixe o InsomniaX de http://www.macupdate.com/info.php/id/22211 , descompacte, instale e inicie (lá do Aplicativos).
2 - clique no botão Insomnia (lá na direita em cima) -> enable Insomnia
3 - clique no botão Insomnia (lá na direita em cima) -> preferences -> Load on AC

Fim! Seu MAC só desligará se você fechar o Flip com a energia Desligada.