sexta-feira, 30 de janeiro de 2009
XDebug PHP no Netbeans
sudo pecl install xdebug
Habilitando o XDebug Para habilitar o XDebug, você precisa editar o arquivo php.ini no processador de texto gedit.
1 - Para iniciar o processador de texto gedit, inicie o Terminal e digite o seguinte comando no prompt de comando:
gksudo gedit
2 - Abra o arquivo:
/etc/php5/apache2/php.ini .
3 - Adicione as linhas seguintes ao arquivo:
zend_extension=/usr/lib/php5/20060613+lfs/xdebug.so
xdebug.remote_enable=on
xdebug.remote_host="localhost"
xdebug.remote_port=9000
4 - Reinicie apache:
$sudo /etc/init.d/apache2 restart
Outra Fonte: http://gaigalas.net/Artigos/TutorialPHPZendDebugger.html (para eclipse)
terça-feira, 27 de janeiro de 2009
Desabilitando Touchpad
Instalei o pacote gsynaptics:
$sudo apt-get install gsynaptics
edite o arquivo xorg.conf
$sudo gedit /etc/X11/xorg.conf
ache a sessão
Section "InputDevice"
Identifier "Synaptics Touchpad"
Driver "synaptics"
Option "SendCoreEvents" "true"
Option "Device" "/dev/psaux"
Option "Protocol" "auto-dev"
Option "HorizEdgeScroll" "0"
EndSection
Adicione no fim da sessão a linha Option "SHMConfig" "true"
Ficando assim:
Section "InputDevice"
Identifier "Synaptics Touchpad"
Driver "synaptics"
Option "SendCoreEvents" "true"
Option "Device" "/dev/psaux"
Option "Protocol" "auto-dev"
Option "HorizEdgeScroll" "0"
Option "SHMConfig" "true"
EndSection
Reinicie o X (Ctrl+Alt+Backspace)
MySQL: “Access denied for user ‘debian-sys-maint’@'localhost’”
For all you Ubuntu/MySQL developers out there, have you ever seen the following?
- $ sudo /etc/init.d/mysql restart
* Stopping MySQL database server mysqld [fail]
* Starting MySQL database server mysqld [ OK ]
/usr/bin/mysqladmin: connect to server at ‘localhost’ failed
error: ‘Access denied for user ‘debian-sys-maint’@'localhost’ (using password: YES)’
So, what is this “debian-sys-maint” user? Well, this MySQL user is created for the Ubuntu to be able to start/stop the database and to carry out other maintenance operations.
Sounds well enough, but then why do I keep running into the “access denied” problem for this user? Well, the issue is that with each update to MySQL, the user’s password in the database is overwritten. Ubuntu seems to go to the file /etc/mysql/debian.cnf in order to find this user’s password, but obviously the password is out of sync after the update has been applied.
As a result of this behaviour, I’ll run into the “access denied” problem every so often. Thankfully, the solution to this issue is fairly simple.
First, list the contents of the /etc/mysql/debian.cnf file:
- $ sudo cat /etc/mysql/debian.cnf
The contents of the file should look something like the following:
- # Automatically generated for Debian scripts. DO NOT TOUCH!
[client]
host = localhost
user = debian-sys-maint
password = n4aSHUP04s1J32X5
socket = /var/run/mysqld/mysqld.sock
[mysql_upgrade]
user = debian-sys-maint
password = n4aSHUP04s1J32X5
socket = /var/run/mysqld/mysqld.sock
basedir = /usr
See that password? That’s what we’re looking for!
Next, we want to issue a command to MySQL that tells it to grant the debian-sys-maint user all necessary privileges using the new password.
Login to your mysql server using your root account and the root password you had originally set:
- $ mysql -u root -p
Issue the GRANT command now to grant those permissions:
- mysql> GRANT ALL PRIVILEGES ON *.* TO 'debian-sys-maint'@'localhost' IDENTIFIED BY 'n4aSHUP04s1J32X5';
If you restart MySQL, you’ll find that you should no longer be getting the “access denied” error message.
- $ sudo /etc/init.d/mysql restart
* Stopping MySQL database server mysqld [ OK ]
* Starting MySQL database server mysqld [ OK ]
* Checking for corrupt, not cleanly closed and upgrade needing tables.
Bibliotecas de Galerias de Fotos
1 - e2_photo_gallery
2 - http://nettuts.com/javascript-ajax/create-a-spectacular-photo-gallery-with-mootools/
3 - http://tutorialdog.com/javascript-image-gallery-using-mootools/
4 - MooFlow
5 - http://pupunzi.wordpress.com/
6 - Smoothgallery
7 - http://devkick.com/lab/galleria/
8 - Jquery-lightbox
9 - Moo.fx - javascript
10 - Rico - javascript/Ajax
11 - Swat - PHP
12 - ColorCombos - PHP
13 - script.aculo.us - Javascript
14 - Mochikit - JavaScript
15 - Dynamic Drive CSS Library - CSS Menu
16 - DHTML Goodies - DHTML e Ajax
17 - dojo - JavaScript toolkit
18 - Ext JS
19 - Prototype
20 - Interface Elements
21 - jQuery
FONTE:
- http://neosite.ilogic.com.br/dicas/2006/12/10-melhores-bibliotecas-javascript-ajax.html
- http://meiobit.pop.com.br/meio-bit/software/bibliotecas-ajax-interfaces-avancadas-abertas-e-prontas-para
segunda-feira, 19 de janeiro de 2009
Liberar o MySql para conexões externas no Linux
- Para alterar o IP é preciso é preciso configurar o arquivo my.cnf:
$ sudo gedit /etc/mysql/my.cnf
- Encontre a linha bind-address e substitua o IP 127.0.0.1 pelo IP do seu servidor(ip do PC que esta instalado o Mysql).
- Reinicie o mysql:
$ sudo /etc/init.d/mysql restart
- Pronto, agora podemos acessar o banco de dados Mysql de um outro PC na rede
quinta-feira, 15 de janeiro de 2009
Bibliotecas Ajax
jQuery - http://jquery.com/
jQuery UI - http://ui.jquery.com/
Prototype - http://www.prototypejs.org/
Script.aculo.us - http://script.aculo.us/
MooTools - http://mootools.net/
Dojo - http://dojotoolkit.org/
SWFObject - http://code.google.com/p/swfobject/
Yahoo! User Interface Library (YUI) - http://developer.yahoo.com/yui/
Veja documentação completa no link abaixo
Fonte: http://code.google.com/intl/pt-BR/apis/ajaxlibs/documentation/index.html
Capas de CDs e DVDs
www.mundodascapas.com.br
www.cdcovers.cc (internacional)
Software gratuito para impressão de capas completas para CDs, DVDs, caixas de DVDs, encartes e jogos.
www.undercoverxp.tk