Review: Seagate Barracuda SATA 1TB 3.5” Hard Drive

[Updated 2011-07-10]

Not a whole lot can be said about an internal hard drive, but before I buy any new hardware, I like to know what other people’s experience with it is, so I’m providing my own experience with this hard drive here for anyone else that likes to do the same.

image

So, going with the thought that no a lot can be said, I’ll provide the basic info that I usually look for before buying a new hard drive:

Reliability I’ve only been running it for 10 days as of this writing.  So far, so good, but that’s not nearly enough time to determine reliability.  I’ll update this from time to time as it gets older.  It is a Seagate drive and my experience with them has been mostly good.
[Update 2011-07-10]: After a year and a half, this drive is still running with no problems after running roughly 13,000 hours.
Warranty 5 year limited warranty.  This is the main reason I chose a Seagate drive.  They’ve got one of the longest warranty periods for hard drives.  Hard drives fail and they fail frequently.  A long warranty is well worth a higher price (not that this drive is more expensive… It’s in the same ball park as other drives with similar specs).
Speed 7200 rpms, Serial ATA, with 32MB cache.  I haven’t run any speed tests, but when XCOPYing files from my failing drive to this one, I was getting about 80MB/s (or 640mb/s), if I recall correctly.  Of course, when copying from one drive to another, the transfer speed is the least common denominator between both drives and the interface between them.
Physical
Interface
It’s a SATA (Serial ATA) drive.  Currently, this is one of the fastest types of drive interfaces and most modern, internal, 3.5” hard drives use this interface.
Noise It’s very quiet.  My CPU fan is fairly quit and it’s the only thing I can hear right now, with my computer case open.
Ease of
Installation
One of the simplest, internal hard drive installations I’ve done (probably about my 4th SATA drive installation).  The simplicity is because of the OS (Windows 7) I’m using that has full support for this type of hard drive interface (SATA) and because of how the SATA standard was designed.  SATA drives don’t require setting jumpers for master and slave drives.
Price As of 12/10/2009 or so, the cheapest price I’ve seen online is about $89.  If you find it in BestBuy or any other local retailer, you’ll probably find it for $120 or so.  These chain electronics stores are more like electronic convenience stores.  You pay a premium for the convenience of being able to have it in your hands minutes after you decide you want it.
Recommend I do recommend this drive.  Seagate is a good brand and you can’t beat their warranty.

Securing a folder in an ASP.NET web application fails to be secured after publishing

 

Problem:

You’re using all the cool .NET MembershipProvider and RoleProvider technology to secure folders and pages on your web app and everything works fine during development (all security works), but as soon as you publish to your web server, your site fails to protect your pages and folders that you spent a good deal of time setting up with roles based rules.

Solution:

The ASP.Net Web Site Administration Tool generates a new web.config file inside of each secured folder.  These web.config files are where the rules are actually stored.  The ASP.NET Web Site Administration Tool does not add those web.config files to your projects in your solution.  So, when you publish directly from Visual Studio, Visual Studio will not publish these new web.config files.  You’ll either need to manually publish each of these files, or, better yet, add these web.config files to your project so you don’t have to worry about it anymore.

In the image below, I’ve secured the “Admin” folder using the ASP.Net Web Site Administration Tool.  The web.config file was created on the hard drive in the right folder, but Visual Studio was not aware of it.  I had to manually add it to the project.  After that, whenever I publish, it successfully publishes with the rest of the project.

image

Below:  The ASP.Net Web Site Administration Tool showing the role based security for the Admin folder.

image

Typed Settings from app.config or web.config not compiling

 

Problem:

In Microsoft Visual Studio, you’ve defined new, typed settings in your app.config or web.config file either manually in the source editor or by using the settings GUI (right-click project, choose properties, then click on the “Settings” tab) and when you start writing code in your .cs or .vb file, the new settings aren’t available in intellisense and if you go ahead and type the names anyway, it won’t compile, even though you may have other settings already there that work just fine.

Cause:

In your project’s “Properties” folder is file named Settings.Designer.cs or Settings.Designer.vb.  It is most likely set to “read only”.

Solution:

Use Windows Explorer to remove the read only flag on the file, then go back into Visual Studio, right click the project, choose “properties”, then click on the “Settings” tab, then click “Synchronize” in the upper left corner of the settings page.  You may need to recompile.

Why did this happen?

There are a variety of reasons why this may happen, but one common cause is the following:

You had the project in Visual Source Safe, then you unbound the project from Source Safe.  Before, when it was bound to SourceSafe, whenever you opened any file for editing, the VSS plug in in Visual Studio checked the file out of SourceSafe and removed the read only flag.  Now that your project is not bound to VSS, the VSS plugin is no initiated when you attempt to edit a file, so if a file is read only, it stays that way.  Usually, for source files you edit directly, Visual Studio will warn you that it’s read only and ask you if you want to remove the read only flag.  But, for files that are generated by a tool like the settings editor, you are never prompted if you want to remove the read only flag.  As a result, Visual Studio acts like everything worked fine, even though it couldn’t write to the file.

Review: Sony DCR-HC30 Handycam Camcorder

I bought this camcorder about 5 years ago (around 2004, maybe 2003) as a replacement for my older JVC Mini DV digital camcorder that eventually died.  I’ll be covering the following topics:

  1. Video Quality
  2. Reliability
  3. Connections
  4. Features
  5. Recording Media
  6. Misc.
image image
image image
1. Video Quality:

First, the video specs:  This is a standard definition camcorder (not Hi Def).  It’s 100% digital.  It records in 720×480 resolution (720 pixels left and right (horizontal), 480 pixels up and down (vertical)).

A special note about measuring video resolution:  In digital video, we don’t talk about “lines” of video.  Video is a collection of bitmap images (think snapshots with a digital camera) which are a 2 dimensional grid of pixels (colored dots), though, you’ll still find lots of specs and talk about even the latest and greatest digital video technology that still refers to “lines of video”.  This is an ancient carry over from analog recording and/or display devices where that measure had meaning.  In digital imaging (snapshot cameras, flatbed scanners, or video cameras), it’s only half of what’s important.  “Lines” is simply nothing more than the measure of pixels in the vertical direction.  With digital, you must also know the measure of pixels in the horizontal direction.  It’s entirely possible to have two cameras with the same vertical resolution, but different horizontal resolution.  Higher resolution is almost always better.

Refer to the following chart for standard resolutions with digital video cameras and display devices (TVs and Monitors) and technologies:

 

Named Resolution Horizontal
Resolution
Vertical
Resolution
Uses
VGA 640 480 Low quality
DV 720 480 Standard dev digital video
HDTV 480p 852 480 lowest resolution HD support
HDTV 720p 1,280 720 Medium resolution HD.
HDTV 1080i 1,920 1,080 Highest resolution HD, but interlaced
HDTV 1080p 1,920 1,080 Highest resolution HD, progressive (best of the best)
HD? 1,366 768 Upper Medium HD resolution
HD? 1,024 768 Lower (but not lowest) HD resolution
HD? 1,440 1,080 Upper mid-range HD resolution

Graininess:  To the trained eye, the recorded video of this camcorder is a little bit grainy.  Most people won’t notice this.  But, this is a side effect of camcorders that also provide infrared recording (recording in complete darkness).  This camcorder DOES have infrared recording, which I’ll cover below.  This IR capability does affect normal light recording by inadvertently introducing a small amount of graininess.  But, the video quality, even with the minimal graininess introduced, is far superior to any consumer level analog camcorder.

Aspect ratio:  Aspect ratio is how wide an image is compared to its height.  For example, HDTV is much wider than it is tall.  For every 16 units of measure in the horizontal direction, HDTV has 9 units of the same measure vertically (called 16:9).  Standard definition is also wider than it is tall, but not nearly as much.  It’s much closer to a square.  For every 4 units of measure in the horizontal for SD, it measures 3 units vertically.  This camcorder can record in either 16:9 or 4:3.  You make the decision with a menu option before you start recording.  It should be noted that whether you’re recording in 16:9 or 4:3 aspect ratio, your video is always 720 pixels wide by 480 pixels tall.  When you play your video back on old style 4:3 display devices (non HDTVs), your widescreen video will look like it’s squished in from the sides, making everything taller and skinnier.  This is called “anamorphic”.  When you play your widescreen recordings on a wide screen TV (any HDTV), you’ll have to tell the TV to stretch the video to make it fill the whole width of the TV.  When you do that, your video will look like it’s supposed to.  In this day and age, I highly recommend recording ALL video in widescreen format since 4:3 TVs aren’t made anymore and they’ll be fewer and fewer of them.  Besides, you’re recording video to watch in the future, not the past.  I’ve been recording in widescreen mode since 6/27/1997 when I got my first digital camcorder.  I’m glad I did because all my home videos of my wife’s pregnancy of our first born and our daughter’s earliest years are compatible with our current HDTVs and they still look as good today as the day we took them (thanks to it being digital).

Low light:  This camcorder has 2 GREAT features for low light settings. One is infrared, which I’ll get to in a moment.  But there’s a visible light option that works fantastically in low light.  It’s called Nightshot Plus.  When you turn this feature on, the camcorder determines bright the area is that it’s recording and adjusts according to that light.  I recommend leaving this feature on all the time because in bright light, it has no effect.  As the scene gets darker, Nightshot plus will start shooting fewer frames per second.  Instead, it will collect the light from multiple frames, over time, and add up the light in them to produce a very good and light single frame.  The darker it is, the fewer frames per second you’ll have, but you can actually SEE what’s going on.  In very dark settings, the video is “choppy”, kind of like those old stop-motion animation Christmas specials.

The other low light feature is, of course, infrared.  This feature is called Super Nightshot Plus.  This camcorder can see infrared light… the light spectrum just below human visibility.  So, in a dark room, you can turn on the IR light on the camera (it can’t be seen by the human eye) and you’ve got military style night-vision.  When you look through the camera, you see a spotlight shining on everything.  Pull away from the camera and your own eyes, looking directly at the scene, see absolutely nothing.  It’s amazing!

Even better, you can have both low light features on simultaneously for unbelievable visibility in low or NO light conditions!

2. Reliability:

A large batch of CCDs (the component inside any digital camera, whether it’s a snapshot camera or a camcorder) made by Sony had a MAJOR flow in that they failed, miserably, after a year or two.  Many of the Sony DCR-HC30 did, in fact, have this flawed CCD batch, including MANY cameras from many other manufactures because they all use Sony CCDs.  My camcorder had this flaw that crept up around 2006 and got progressively worse, until one day, it didn’t work AT ALL in 2007.  My camcorder was out of warranty and I really wanted an HD camcorder, so I got a new one and left my Sony on the shelf until just recently when I found that there was a class action lawsuit and Sony agreed to repair all devices with this defective CCD.  I just happened to stumble upon this info on 11/29/2009, and guess when the deadline was?  That’s right, the VERY SAME DAY!  I called and e-mailed to get my request in.  As it turns out, that deadline was for Asia customers.  The American deadline came and went back in March 2009.  Customer service said they’d fix it for a flat repair fee of $186 plus change.  Considering I could buy a used (and working) DCR-HC30 on ebay for much less than that, I told them it wasn’t worth it.  Later, I got a call from the Asian customer service (from a separate e-mail request I sent), who offered to repair it at 1/2 the cost of $91 + change.  I agreed and figured this would be a decent cost for a backup camcorder or a Christmas gift for my daughter (yep, the same one who I’ve got wide-screen digital video of her since before she was born and is now 12).  I just got it back a couple of days ago and it appears to be working fine.  Other than THAT problem (which, of course, was a HUGE one), I’ve not had any reliability problems at all.  Everything else still functions perfectly.

3. Connections:

Most people don’t think about the connections on a camcorder when they buy it.  They usually discover, after they’ve opened it and used it for a little while, that it’s missing something important.  This Sony DCR-HC30 has every connection available for analog input, analog output, and digital input and output.  The following chart lists its connections:

Connector Direction Purpose
DC In Operate without battery and to charge battery.
USB 2.0 In/Out Transfer digital video to another device (like to your PC for video editing) or to receive digital video for display on the LCD or viewfinder or to record on digital tape.
Firewire In/Out Transfer digital video to another device (like to your PC for video editing) or to receive digital video for display on the LCD or viewfinder or to record on digital tape.
Analog A/V In/Out Proprietary port that splits off two 3 RCA cables for video, left, and right audio.  You can play your tapes (or live video) directly to your analog TV or record to a VCR or DVD recorder.  You can also send analog video INTO this camcorder to digitize it and record onto digital tape, then you can do whatever you want with it digitally (download to your computer for video editing).  Great for converting old home VHS videos to digital.
LANC In Control the operations of the camcorder from another device (remote play, etc…)
MIC In For an external microphone.
IR sensor In To receive IR commands from an IR remote control, so you can hook the camcorder up to a TV via cables, then sit back on the couch with your camcorder remote to play, pause, rewind, and fast forward.
Memory Stick In/Out It has a slot for a Sony Memory stick and comes with an 8MB stick.  This camcorder can be used as a low resolution (1 MegaPixel) still shot camera.  It’s a pretty worthless feature considering you can record video that’s essentially 30 still shots per second (1 megapixel each).  Just get any still shot you need from your recorded video.
4. Features

This Sony DCR-HC30 Handycam camcorder has too many features to list here, but the important ones are:

Feature Purpose
Digital The primary feature of this camcorder is that it’s 100% digital, except of course, for the feature of receive analog input to digitize it.  Being digital means you can make an infinite number of copies of copies of your video without losing any quality.  You can also download the video to your computer and edit the video.  This makes your family archives last for generations with no loss of quality.  Of course, you can easily upload your digital video online to sites like YouTube and Vimeo.
Widescreen or normal Supports both 4:3 (old style) and 16:9 widescreen recording.
Pull out and flip around LCD display Always a nice feature, so you don’t have to put your eye to the viewfinder while recorder and you don’t miss side action.
Infrared, zero light vision Military style night time vision.
Low light super nightshot plus Can see better in very low light than your own eyes.
spot focus Using the LCD touch screen, you can touch a part of the image and the camera will focus on the item at THAT area of the scene.  This works great if you’re videoing your son’s baseball game through a chain link fence and the auto focus keeps trying to focus on the fence.
Analog INPUT Great for converting all your old home VHS recordings to digital.  You bother trying to convert your store bought movies from VHS to digital.  The camera KNOWS and will refuse.
FireWire & USB For transfering your video out of your camera to some other digital device (usually your home computer for editing or to a set top DVD recorder, for archiving and sharing).
Built in, manual lens cover A lot of newer cameras have automatic lens covers that open and close automatically depending on whether you’re recording or not.  My current camcorder has an automatic lens cover and it fails to open a lot of the time, rendering the camcorder useless.  I really whish my latest and greatest camcorder had a manual cover.  This DCR-HC30 has a slider switch on the front that you can use to open and close the lens cover.  This is far perferable.
5. Recording Media

imageThe Sony DCR-HC30 records onto standard Mini DV tapes.  These tapes are for recording digital video.  I’ve got some going back 12 years and look just as good as the day they were recorded.  Other digital media that have come since this camcorder are camcorders with internal, large capacity hard drives, SD memory sticks, mini DVD-R, and standard sized DVD-R.  Mini DV tapes come in 30 or 60 minute tapes and the 60 minute tapes cost roughly $4/tape.  DV video (not to be confused with the generic acronym for “Digital Video”) is a very specific  specification.  It represents 720×480 pixels at 29.97 frames per second (same frame rate as standard broadcast TV).  It does not try to maximize compression by storing only the differences between frames to save space.  Instead, it’s more like a collection of individual JPEG image files.  No one image is dependant on the contents of the prior image in the video.  But, each image is compressed, in its own right.  This amounts to much bigger video files than MPG video, but when there’s an error, it doesn’t continue across multiple frames later in time.  DV video occupies about 13GB per hour of video.  So, when you dump your video to your PC, make sure you’ve got plenty of space to hold it.  If you’re going to edit the video, you’ll need at least twice that space.  With today’s hard drives being in the thousands of gigabytes, that shouldn’t really be a problem anymore.

image It should be noted that Sony created a mostly useless technology with specialized Mini-DV tapes that also have a chip inside of them so that you can record dinky little titles.  The Sony tapes with these chips are MUCH MORE expensive and not worth it at all.  I highly recommend NOT buying these tapes.  You won’t have any use with them, especially, since you’ve already got digital video, if you want titles, transfer the video to your PC and add some really nice titles using any off the shelf video editing software, or even the software that comes with your computer (iMovie for Macs and Windows Movie Maker for XP and Vista, or Windows Live Movie Maker download for Windows 7).  All of these programs are free and come with your computer (unless you’ve got Windows 7, in which case you’ll have to download it) and provide all the features your typical home video editor will need.

6. Miscellaneous

The Sony DCR-HC30 comes with a battery that holds about a 1/2 hour charge while recording… longer when not recording or playing back.  The tape mechanism is fragile (as is the case with most Mini DV camcorders), so don’t push in on it.  Let it automatically eject and close.  There’s only ONE place to push down on it and it’s clearly labeled.  A 3 hour battery is available and I highly recommend it.  It does, indeed hold 3 hours of use.  External chargers are available as well, if you want to charge one battery while using another.  The camcorder feels comfortable in the hand with the hand strap.  All the features work quite well and the on-screen menu is extensive (and sometimes confusing for specific features you may be looking for).  Over all, I give this camcorder 5 out of 5 stars for capability, but 3 of 5 for reliability because of the CCD problem that caused me to lose 3 years of use with it.

“Data keys must be specified on GridView…”: Solution

Symptom:

You run your ASP.NET web application and get the following error:

image

Applies to:

  • ASP.NET WebForms development (any .NET language).

How to reproduce:

  1. Put a GridView on your webform.
  2. Configure its DataSource to be an Object data source.
  3. In the select method options tab, you chose a method that takes a parameter.
  4. Compile and run the page (error above is displayed).

Solution:

  • Let the GridView control know what the key field(s) is/are of your data source.

image

image

image