A corporate defendant is deemed to "reside" in any judicial district in which it is subject to personal jurisdiction at the time the action is commenced. To figure out where a corporate defendant resides, divide the state into districts (if it has more than one district) and see if the defendant would be subject to personal jurisdiction if any of those districts.