Useful PHP Tool: phpsh
phpsh is an interactive shell for php with a full suite of features like auto tab completion and readline history. Ironically, the tool was written in Python (hah..). It has been a really nice tool to quickly test out lines of php to make sure they'll do what I expect them to do.
Su trick
You can preserve your environment by passing -m to the su command.
Anyone know about Ubuntu Error #15?
Do any of you know about Ubuntu Error #15 while booting? If so please contact me via e-mail..
HOWTO: Change the default image viewer in Ubuntu
vi ~/.local/share/applications/defaults.list
[Default Applications] application/x-php=gvim.desktop image/gif=gthumb.desktop; image/jpg=gthumb.desktop; image/jpeg=gthumb.desktop; image/bmp=gthumb.desktop; image/png=gthumb.desktop; image/tif=gthumb.desktop; image/tiff=gthumb.desktop;
Firefox extended preferences
In FireFox just type about:config into the url-bar to access a ton of preferences.
LatencyTop
HOWTO: Improve BASH autocompletion
Add the following to your ~/.bashrc:
# enable programmable completion features (you don't need to enable # this, if it's already enabled in /etc/bash.bashrc and /etc/profile # sources /etc/bash.bashrc). if [ -f /etc/bash_completion ]; then . /etc/bash_completion fi
Compiz config settings manager error fix
Error:
$ ccsm
Traceback (most recent call last): File "/usr/bin/ccsm", line 45, inidle = ccm.IdleSettingsParser(context) File "usr/lib/python2.5/site-packages/ccm/Utils.py", line 229, in __init__ File "usr/lib/python2.5/site-packages/ccm/Utils.py", line 228, in File "usr/lib/python2.5/site-packages/ccm/Utils.py", line 225, in FilterPlugin AttributeError: 'compizconfig.Plugin' object has no attribute 'Initialized'
sudo aptitude remove compizconfig-settings-manager sudo aptitude install compizconfig-settings-manager
HOWTO: Get ZendStudio 5.2.0 working in Ubuntu Gutsy
HOWTO: Mount an ISO image file in Linux
How to mount an ISO image file in Linux:
mount -o loop -t iso9660 image_file.iso /mnt/target_directory
VIM: Helpful chart for creating ColorSchemes
Helpful chart for creating VIM ColorSchemes
Nice VIM ColorScheme
MySQL: CREATE TRIGGER `some_table___select` BEFORE SELECT ON `some_table`
Read the full article to see what I found out about getting TRIGGER xTriggerNamex BEFORE SELECT ON xTablex behavior out of mysql.