Ubuntu Disable Touchpad

Get id Device
xinput list 
For Disable
xinput set-prop {ID Touchpad} "Device Enabled" 0
For Enable
xinput set-prop {ID Touchpad} "Device Enabled" 0

Linux : How To Delete Bash History


Delete bash history

To delete the bash history for your current session as well as old sessions, you should do two things:

Delete the .bash_history file:

rm -rf ~/.bash_history

Clear the current history stored in RAM:

history -c




Turn off bash history for all users:

Append “unset HISTFILE” to /etc/profile:

echo "unset HISTFILE" >> /etc/profile

Turn off bash history for a specific user:

Append “unset HISTFILE” to /home/USER/.bash_profile:

echo "unset HISTFILE" >> /home/USER/.bash_profile
Good Luck ~

linux : disable audit daemon log

auditd -s disable

rm -rf /var/log/audit/

cat /dev/null > /var/log/lastlog

hello from android

hello from android
Published with Blogger-droid v1.7.4

fix : PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/ming.ini on line 1 in Unknown on line 0

This is Solution to Fix :
PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/ming.ini on line 1 in Unknown on line 0
1. Open File  /etc/php5/cli/conf.d/ming.ini
sudo gedit /etc/php5/cli/conf.d/ming.ini

2. Replace The '#' on First Line with ';'
; configuration for php MING module

3. Save & Have Fun !

Install xdebug on PHP ubuntu 11.04

Nomally php var_dump()  function display like this



We will override var_dump() by xdebug for  human read with color highlight like this




1. install php5-xdebug follow command :
sudo apt-get install php5-xdebug 

2. find xdebug.so :
sudo find / -name xdebug.so

result just like this :
/usr/lib/php5/20090626+lfs/xdebug.so

3. Edit php.ini :
sudo gedit /etc/php5/apache2/php.ini

add this in the end of file :
zend_extension="/usr/lib/php5/20090626+lfs/xdebug.so"

find html_errors in php.ini and change it to on :
html_errors = on
save your php.ini

4. Restart Your Apache :
sudo /etc/init.d/apache2 restart
5. have debug fun !!!

fix netbeans 7.0.1 php not suggest class

i got poblem in netbeans 7.0.1 ,It's not suggest my php class (Joomla Framework).Before that I can use netbeans with php (Joomla Framework) very well.
After I updated some plugins Netbeans alert message like can't load some class.

Solution :
Update Your Java JDK to Version 7 Here