Use the following MySQL command to globally change all tasks not done:
UPDATE `tasks`
SET `deadline` = '2009-08-01'
WHERE `deadline` <= '2009-08-01'
AND `status` <> 'done'
Running XAMPP on Different Ports
You will need to access the application by the following:
http://localhost:8080/
https://localhost:444/
Change port 80 to 8080 twice in the following file:
F:\Programs\xampplite\apache\conf\httpd.conf
Change port 443 to 444 three times in the following file
F:\Programs\xampplite\apache\conf\extra\httpd-ssl.conf
Use Ubuntu with VirtualBox Behind Proxy
There seems to be problems with Ubuntu 9.04. It is possible to install from CD-ROM instead by using:
- Press System → Administration → Software Sources.
- Go to the Third Party Software tab and click on the Add CD-ROM button.
- Insert the CD.
Do the following in your terminal prior to using apt-get:
export http_proxy=http://username:pword@HALPROXY1.flagship.hal.com:80
Installing Ubuntu 9.04 on Dell 1545 Laptop
Basic Install Items
Reference Guide Ubuntu904
- Ubuntu restricted extras from Add/Remove
- DVD Playback
- sudo apt-get install libdvdread4 totem-gstreamer
- sudo /usr/share/doc/libdvdread4/install-css.sh
- check with Synaptic Package Manager you should see the following packages installed after searching for libdvdread4, libdvdnav4, libdvdcss2
- System, Preferences, Main Menu -- trim down menu, remove things you are not going to use
- Nautilus Edit, Preferences, Preview -- turn off thumbnails
- Install Sun Java 6
- sudo apt-get install sun-java6-jre sun-java6-plugin
- sudo apt-get install sun-java6-jdk
- sudo update-alternatives --config java
Lessons Learned
- Turn off visual effects, it causes VLC and MPlayer to crash by locking the computer.
- After you install Eclipse you will need to run the sudo update-alternatives --config java again because Eclipse installs its own version of Java, and this will set the defaults. Sun's version runs faster.
Flavors of the Month
- Comix - Manga viewer
- Gwenview - Simple image manipulation
- Eclipse
- ISO Master - Redo contents of ISO images
Other Items
- Here's the grub menu.lst as of May 3, 2009: menu.lst
Recovering Grub (menu.lst) after Windows Re-install
Reference: link
- Boot the Desktop/Live CD. (Use Ubuntu 8.04 or later)
- Open a terminal (Applications -> Accessories -> Terminal)
- Start grub as root with the following command
- sudo grub
- You will get a grub prompt which we will use to find the root partition and install grub to the MBR (hd0)
grub> - Type the following and press enter:
find /boot/grub/stage1 - If you get "Error 15: File not found", try the following:
find /grub/stage1 - Using this information, set the root device (fill in X,Y with whatever the find command returned):
grub> root (hdX,Y) - Install Grub:
grub> setup (hd0) - (In case you want to install GRUB to another drive (like hdX) use the above command as 'setup (hdX)' and then continue)
- Exit Grub:
grub> quit - Reboot (to hard drive). Grub should be installed and both Ubuntu and Windows should have been automatically detected.
- 6. If, after installing grub, Windows will not boot you may need to edit /boot/grub/menu.lst
Uninstall GRUB fix MBR for Windows
Boot your computer using FreeDOS on CD-ROM, and run the following command from a command prompt.
fdisk /mbr
This restores your master boot record, and effectively eliminates GRUB. You now have orphaned Linux partitions on your hard drive you will either need to use windows to delete and reformat as additional partitions or use a 3rd party utility to reclaim the space.
Getting Backspace to work in Firefox with Ubuntu
Type “about:config” in the address bar of Firefox and press Enter.
`Filter` for ‘browser.backspace_action’ and change its value to 0 (zero).
Komodo Edit
Komodo Edit 5 has been successfully installed to:
/home/mruckman/Komodo-Edit-5
You might want to add 'komodo' to your PATH by adding the
install dir to you PATH. Bash users can add the following
to their ~/.bashrc file:
export PATH="/home/mruckman/Komodo-Edit-5/bin:$PATH"
Or you could create a symbolic link to 'komodo', e.g.:
ln -s "/home/mruckman/Komodo-Edit-5/bin/komodo" /usr/local/bin/komodo
Documentation is available in Komodo or on the web here:
http://aspn.activestate.com/ASPN/docs/Komodo
Please send us any feedback you might have or log bugs here:
komodo-feedback@ActiveState.com
http://bugs.activestate.com/
Thank you for using Komodo.
Pause in bash script
Use the following command to pause the execution of a bash script waiting for input:
read -p 'Press Enter to continue...'
Zip Trick to Move Files to Archive
The following will recursively move items from archive_folder into the archive_file.zip
zip -m -r archive_file.zip ./archive_folder

