Logitech G5 vs. Razer Diamondback
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+
Forgot your admin password in the newer versions of osCommerce? Either of these two fixes will reset your password to “pass“.
- Get into your database with something like phpMyAdmin
- Go into the “administrators” table
- Edit the record there for the user “admin”
- 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.
-
UPDATE `administrators` SET `user_password` = ’6cdd7c57450225fac77427f5962bb726:40′ WHERE `id` =1 LIMIT 1 ;
MySQL Update Query
Reminder to myself what a MySQL update query looks like.
products_length=0, products_width=0, products_height=0
WHERE products_width=’12′;
Easy PHP/Javascript rollover images for osCommerce links
The javascript portion:
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):
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
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
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.
- Right click on the shortcut you use for Windows Explorer and go to properties.
- 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:
Note: Change the c:\ to whatever path you want Windows Explorer to start at.
Random black screens
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.
