SATA Switches - (HDD) Hard Disk Drive Selectors Part 6

December 8th, 2008
Posted in Hardware · Tags:

I thought I would update an old series of posts I had about hard disk drive selectors. The previous solutions I had covered were all for IDE drives. Although you could buy adapters for them to work with SATA drives it isn’t worth the effort in my opinion. Indus Technologies does make SATA selectors that allow up to 4 drives, but they are quite expensive (their cheapest model is $179.95). Rumor is that they had a patent on IDE HDD selectors and that killed the RomTec Trios and the Trios II, as well as the Combox (which seems to have finally sold out on eBay). I’m not sure if they hold any patents that would prevent anyone from legally making any SATA selector products or not.

I was able to find a device called the SATA Switch also known as the SW-SATA2X4.

SATA Switch SW-SATA2X4

SATA Switch SW-SATA2X4

Here are some of it’s features:

  • Uses a 3½” bay
  • Supports SATA II (thus is SATA I compatible)
  • Supports up to 4 drives
  • Controls the drives by only powering the one selected
  • LED to show which drive is selected
  • Can be locked with a key to prevent someone changing drives
  • Costs only $89.99

I haven’t been able to figure out the original manufacturer of this device, but it’s being sold on a number of sites.

I’ve also come across a guide on how to make your own SATA HDD Switch. The author also sells this homemade device for $29.95 and has another version that supports switching between 2 sets of RAID 0 or RAID 1 drives for $32.95. It doesn’t have LEDs or a button to press, it works with a toggle switch (although you might want a shield for it so you don’t accidentally bump into it).


(HDD) Hard Disk Drive Selectors

Men’s Scarves Out of Fashion?

December 5th, 2008
Posted in Uncategorized

Is it me or is it just about impossible to find men’s scarves for sale? Did staying warm become unfashionable? The few I found were $20 or more, so I guess the only scarves for men are designer ones. Toboggan/Stocking/Beanie/Skull caps can’t keep the winter wind off the front of your face and ski masks look a little too sinister. I couldn’t even find a snowlid that had a giant oval cutout for both eyes, you know the kind that look like a ribbed ninja mask. I ended up buying a woman’s black scarf and plan to trim the fringes.

API Christmas Wishlist

November 28th, 2008
Posted in Web · Tags:

I’d like see an API for TV schedules. But I wouldn’t expect this from TV Guide, but I think every TV station should provide a API for their shows and when they air. Of course this would mean you would have to grab the information from the tons of stations out there to have a station guide, but at least the information would be out there.

What about a API for pulling sports scores, stats and schedules? I wouldn’t expect such a thing from ESPN or Sports Illustrated, but each sports league or team (preferably the league) should provide an API.

And why not a API for Movie releases and movie theaters? Surely, the big movie studios could provide an API to find out what new movies are released and to look up ones that are already out. And perhaps big movie theater chains, could provide an API to look up local movie theater times for movies.

And why is there no API for automobiles or for cooking recipes?

G-Fox, A Better Firefox Logo?

November 26th, 2008
Posted in Web · Tags:

I’ve always thought the Firefox logo would be much better if we could see the fox’s face. I understand that the fox should be looking at the globe because it is browsing the internet. However if they horizontally flipped the image then we could see the face and having it look at the world at the same time. That’s one reason the Thunderbird logo has always been my favorite. G-Fox (The Chinese official version of Firefox) has a logo that faces towards us, but perhaps is a little too adorable.

The Chinese official version of Firefox uses this logo.

The Chinese official version of Firefox uses this logo.

The letter “G”
Firefox community for the G-Fox has given the multiple meanings: from the expression “good, strong,” Good, Great, to the terms of the Internet Guide (lead, guide, road signs - no browser is Internet portal and guide you? ), Gateway (Gateway, the access road), and then to “attractive” Gravity (gravity, gravity), Gorgeous, Grace, and so on. Firefox to the community through the G-Fox name for this glamorous, dynamic small fox into the infinite blessings and a piece of advice!

G-Fox Concept Art

G-Fox Concept Art

You can find wallpaper and a download of G-Fox playing several sports (I assume they wanted to launch this before the 2008 Olympics). Unfortunately all the files are all JPGs.

G-Fox late for the 2008 Olympics

G-Fox late for the 2008 Olympics

ReadWriteWeb has a review of G-Fox also, which is where I first saw this.

A More Useful WordPress 404

November 23rd, 2008
Posted in Web Apps · Tags:

Recently A List Apart had an article by Dean Frickey titled A More Useful 404. It was a good article about making a more useful 404 page that attempts to figure out what went wrong and it will email you some information. I modified the code from Perl to PHP for WordPress and figured I’d save people time from building it themselves by posting it here. Feel free to edit what you need to. The code goes inside your 404.php template.


<?php
//based on http://www.alistapart.com/articles/amoreuseful404
//just to break any email addresses or spam that might get spoofed in falsed headers, might just use a regex later
$disallowed_strings = array('@', '\t', '\r', '\n', '\v', '\f', '<', '>');
$clean_server_name = preg_replace('/[^a-zA-Z0-9\-\.]/', '', $_SERVER['SERVER_NAME']);
$clean_http_referer = str_ireplace($disallowed_strings, '', $_SERVER['HTTP_REFERER']);
$clean_request_uri = str_ireplace($disallowed_strings, '', $_SERVER['REQUEST_URI']);
$search_engine_domains = array('google.com', 'images.google.com', 'translate.google.com', 'yahoo.com', 'ask.com', 'live.com', 'aol.com', 'search.msn.com');//add more if you want
$search_message = '<p>You may want to try searching this site or using our <a href="' . get_bloginfo('url') . '/sitemap/">sitemap</a> to find what you were looking for.</p>';//if you have a sitemap
?>
<p>Sorry, but the page you were trying to get to <!–http:// ,–> does not exist.</p>
<?php
if ($_SERVER['HTTP_REFERER'] == '')
{
?>
<p>It looks like this was the result of either</p>
<ul>
<li>a mistyped address</li>
<li>or an out-of-date bookmark in your web browser.</li>
</ul>
<?php
echo $search_message;
}
else
{
//make it easier to search referer
$disallowed_url_strings = array('http://', 'https://', 'www.');//filter out https:// anyway
$referer = str_ireplace($disallowed_url_strings, '', $_SERVER['HTTP_REFERER']);
$referer_array = explode('/', $referer);
$referer = $referer_array[0];
$myblog_url = get_bloginfo('url');
$myblog_url = str_ireplace($disallowed_url_strings, '', $myblog_url);
$myblog_url_array = explode('/', $myblog_url);
$myblog_url = $myblog_url_array[0];
if ($referer == $myblog_url)
{
?>
<p>Apparently, we have a broken link on our page. An e-mail has just been sent to the person who can fix this and it should be corrected shortly. No further action is required on your part.</p>
<?php
$email_subject = 'Broken link on my site, ' . $clean_server_name;
$email_message = 'BROKEN LINK ON MY SITE' . "\r\n\r\n" . 'There appears to be a broken link on my page, ' . $clean_http_referer . " \r\n\r\n" . ' Someone was trying to get to ' . $clean_request_uri . ' from that page.';
$email_message .= "\r\n\r\n" . 'Why don\'t you take a look at it and see what\'s wrong?';
mail(get_bloginfo('admin_email'), $email_subject, $email_message, 'FROM: 404@example.com');
}
else
{
//see if it was a search engine
$domains_matched = 0;
$total_domains = count($search_engine_domains);
for ($x = 0; $x < $total_domains; $x++)
{
if ($referer == $search_engine_domains[$x])
$domains_matched++;
}
if ($domains_matched != 0)
{
?>
<p>It looks like the search engine has returned a link to an old page. These old links should eventually be removed from their indexes but since these are automatically generated there is no one to contact to try to correct the problem.</p>
<?php
echo $search_message;
}
else
{
?>
<p>Apparently, there is a broken link on the page you just came from. We have been notified and will attempt to contact the owner of that page and let them know about it.</p>
<?php
echo $search_message;
$email_subject = 'Broken link on somebody else\'s site.';
$email_message = 'BROKEN LINK ON SOMEBODY ELSE\'S SITE' . "\r\n\r\n" . 'There appears to be a broken link on the page, ' . $clean_http_referer . " \r\n\r\n" . ' Someone was trying to get to ' . $clean_request_uri . ' from that page.';
$email_message .= "\r\n\r\n" . 'Why don\'t you take a look at it and see if you can contact the page owner and let them know about it?';
mail(get_bloginfo('admin_email'), $email_subject, $email_message, 'FROM: 404@example.com');
}
}
}
?>