Logitech G5 vs. Razer Diamondback

February 27, 2008Leave a reply

Logitech G5

Pros:

  • Side buttons very nice
  • Shape
  • Texture is coarse for grip but perfectly comprtable

Cons:

  • Worst mouse wheel I can recall using
    • Very stiff, hard to click the button
    • Hard to press the button without accidentally scrolling
  • Stiff mouse cord tugs and pushes the mouse around a little

Razer Diamondback (more…)

Reset lost admin password in osCommerce RC1+

February 22, 200810 Comments

Forgot your admin password in the newer versions of osCommerce? Either of these two fixes will reset your password to “pass“.

  1. Get into your database with something like phpMyAdmin
  2. Go into the “administrators” table
  3. Edit the record there for the user “admin”
  4. Replace the contents of the password with this:
    6cdd7c57450225fac77427f5962bb726:40

Or you could just run this query, if you’re database is setup the standard way.

  1. UPDATE `administrators` SET `user_password` = ’6cdd7c57450225fac77427f5962bb726:40′ WHERE `id` =1 LIMIT 1 ;

MySQL Update Query

February 21, 2008Leave a reply

Reminder to myself what a MySQL update query looks like.

UPDATE products SET
products_length=0, products_width=0, products_height=0
WHERE products_width=’12′;

Easy PHP/Javascript rollover images for osCommerce links

February 14, 2008Leave a reply

The javascript portion:

<?php
function JavaCatTab($num) {
    echo ‘tab’ . $num . ‘up       = new Image();’;
    echo ‘tab’ . $num . ‘up.src   = "images/design/tab_’ . $num . ‘.gif" ;’;
    echo ‘tab’ . $num . ‘down     = new Image() ;’;
    echo ‘tab’ . $num . ‘down.src = "images/design/tab_’ . $num . ‘down.gif" ;’;
}
?>
<script language="JavaScript" type="text/javascript">
<!–
if (document.images) {
<?php
    JavaCatTab(’01′);
    JavaCatTab(’02′);
    JavaCatTab(’03′);
    JavaCatTab(’04′);
    JavaCatTab(’05′);
    JavaCatTab(’06′);
    JavaCatTab(’07′);
?>
}
function buttondown( buttonname )
{
    if (document.images) {
      document[ buttonname ].src = eval( buttonname + "down.src" );
    }
}
function buttonup ( buttonname )
{
    if (document.images) {
      document[ buttonname ].src = eval( buttonname + "up.src" );
    }
}
// –>
</script>

The links portion (place below the first part somewhere):

<?php
function catTab($num, $link) {
    echo ‘<a onmouseover=buttondown("tab’ . $num . ‘") onmouseout=buttonup("tab’ . $num . ‘") href="’ . tep_href_link(FILENAME_DEFAULT, $link) . ‘">’;
    echo ‘<img src="images/design/tab_’ . $num . ‘.gif" name="tab’ . $num . ‘" border="0" />’;
    echo ‘</a>’;
}

catTab(’01′,‘cPath=48′);
catTab(’02′,‘cPath=62′);
catTab(’03′,‘cPath=56′);
catTab(’04′,‘cPath=59′);
catTab(’05′,‘cPath=55′);
catTab(’06′,‘cPath=63′);
catTab(’07′,‘cPath=57′);
?>

Replacing your main hard drive is actually really easy

February 8, 2008Leave a reply

I recently had to swap out a hard drive on a perfectly good computer here at work. I needed to do this quickly, so I found out about Acronis True Image. This program lets you make a bootable disc that lets you clone one hard drive to another (so you can then remove the old and leave the new in), or you can backup in windows and then restore via boot cd.

The boot cd restore process is quite nice. You can even browse your network to find the backup files on another computer! So if you were thinking of upgrading your Windows (or whatever) drive with a Raptor or something, this would make it extremely painless.

Easy Windows Explorer Tweak

February 1, 2008Leave a reply

You can make Windows Explorer start in whatever folder or drive you want! I always found it really annoying how it would start in “My Documents”, which after a while has so many subfolders in it that you have to scroll and find My Computer, and the drive you want to get to, etc.

This is EASY.

  1. Right click on the shortcut you use for Windows Explorer and go to properties.
  2. In the “Target path:” field on the “Shortcut” tab, add the following to the end of whatever is there: /e,c:\

Your end result should look something like this:

%SystemRoot%\explorer.exe /e,c:\

Note: Change the c:\ to whatever path you want Windows Explorer to start at.

Random black screens

February 1, 2008Leave a reply

Problem: My friend has a computer that was acting up. The screen goes black (disconnects, orange light) when opening up big programs, or in the middle of game play, etc.

Solution: Increase the voltage on the ram. I’m not sure how much or how to do it, just look it up.