Final launch of Space Shuttle Endeavour as seen from SRB - Solid Rocket Booster from Rahul Chand on Vimeo.
The Joomla Code Blogger!
{string'Throw new'; HammertimeException("Stop!"); }} catch(HammerTime h) { break_it_down();
Saturday, May 28, 2011
Wednesday, May 25, 2011
Ubuntu 9.10 system halted on shutdown
To fix use terminal
1. in Terminal
sudo gedit /etc/modules
add to last line
apm power_off=1
save and exit gedit
2. in Terminal
sudo gedit /etc/default/grub
edit line that reads GRUB_CMDLINE_LINUX="" to
GRUB_CMDLINE_LINUX="noacpi acpi=off acpi=force apm power_off=1"
save and exit gedit
3. in Terminal
sudo update-grub
restart computer and you will be able to shutdown now!
Thursday, May 20, 2010
Microsoft Sidewinder 2 Precision joystick driver

Been trying out the X-Plane simulator and I must say it's much better then MS Flight Simulator X
I am using a 13 year old Microsoft Sidewinder 2 Precision joystick and realized it's so hard to find the windows driver for this thing. Microsoft even does not have it on their support pages which frankly does not surprise me.
Lucky I found mine in the shoe box covered in dust!
So for anyone that still has one of these gems, here is the driver in ISO format ready to burn to CD
http://www.megaupload.com/?d=8DZL8GYT
Thursday, November 26, 2009
Logic to calculate module width based on number of items to be dispalyed. In this example below this logic assumes PARENT DIV width is 980 pixels wide and module width will be adjusted accordingly to fit inside a 980 pixel element floating left so they look like they are in a straight line.
Wednesday, November 25, 2009
Wednesday, September 16, 2009
Find and Replace data in MySQL using phpmyadmin
update table_name set field_name = replace(field_name, ‘Old Data’, ‘New Data’)
table_name is the name of table in database
field_name is the name of the column in your table
Find and Replace in MySQL
update table_name set field_name = replace(field_name, ‘Old Data’, ‘New Data’)
Thursday, August 27, 2009
Thursday, August 13, 2009
Read More itemid Hack on Joomla 1.0
Monday, August 10, 2009
Correcting the 1px OFF Center Aligned Background Bug
Tuesday, August 04, 2009
sh404sef and Virtuemart pagination issue
- Select to YES the option that says “Using Items per page drop-down list”
- Save your settings
- Purge SEF urls
Wednesday, July 01, 2009
Increase Username field for Silent Registration in Virtuemart. Allows for long email addresses to be used as a username
Browser specific CSS hacks
Lightbox Modal Effect
How to add and validate extra field in contact form (com_contact)
Wednesday, January 21, 2009
Custom CSS Class in TinyMCE
Allow Javascript in TinyMCE editor
Reset Virtuemart Invoice Number
Tuesday, January 20, 2009
Auto Expand Sections/Categories in Extended Menu Module for Joomla 1.5
The solution for this is altering some files from the module:
modules/mod_exmenu-j15/exmenu/loader/autoexpandedmenu.menuloader.class.php
Change lines 177 to 192 from:
Code:
switch($menuNode->type) {
case 'content_category':
case 'content_blog_category':
case 'content_archive_category':
if ($contentItemVisible) {
$this->categoryMenuNodeList[] =& $menuNode;
}
break;
case 'content_section':
case 'content_blog_section':
case 'content_archive_section':
if (($categoryVisible) || ($contentItemVisible)) {
$this->sectionMenuNodeList[] =& $menuNode;
}
break;
}
to:
Code:
$tipoMenu = $this->getRawUrlParameter($menuNode->link, 'view');
switch($tipoMenu) {
case 'category':
if ($contentItemVisible) {
$this->categoryMenuNodeList[] =& $menuNode;
}
break;
case 'section':
if (($categoryVisible) || ($contentItemVisible)) {
$this->sectionMenuNodeList[] =& $menuNode;
}
break;
}
This will do the work to generate the links, but Extended Menu won't give then the proper classes when they are active, so it's needed to change one more file:
modules/mod_exmenu-j15/exmenu/loader/menuloader.class.php
Change lines 297 to 303 from:
Code:
switch($task) {
case 'view':
case 'edit':
case 'cancel':
$result = $id;
break;
}
to:
Code:
$result = $id;
Virtuemart hack - Auto Expand all Virtuemart Categories
edit
disable code in line 686 and line 810
$allowed = false;
to
//$allowed = false;
For Dtree:
In components/com_virtuemart/js/vm_dtree.php change line 38 from
$openAll = 'false';
to
$openAll = 'true';



