13:05 ET Dow -154.48 at 10309.92, Nasdaq -37.61 at 2138.44, S&P -19.130 1 100001 0 1 0 1 1 0 1 0 00 0 1 1 1 0 1 100001 0 1 1 100001 0 1 100001 0 1 0 1 1 0 1 0 00 0 1 1 1 0 1 100001 0 1 1 100001 0 1 100001 0 1 0 1 1 0 1 0 00 0 1 1 1 0 1 100001 0 1 1 100001 0 1 100001 0 1 0 1 1 0 1 0 00 0 1 1 1 0 1 100001 0 1 1 100001 0 1 100001 0 1 0 1 1 0 1 0 00 0 1 1 1 0 1 100001 0 1 1 100001 0 1 100001 0 1 0 1 1 0 1 0 00 0 1 1 1 0 1 100001 0 1 1 100001 0 1 100001 0 1 0 1 1 0 1 0 00 0 1 1 1 0 1 100001 0 1 1 100001 0 1 100001 0 1 0 1 1 0 1 0 00 0 1 1 1 0 1 100001 0 1 1 100001 0 1 100001 0 1 0 1 1 0 1 0 00 0 1 1 1 0 1 100001 0 1 1 100001 0 1 100001 0 1 0 1 1 0 1 0 00 0 1 1 1 0 1 100001 0 1 1 100001 0 1 100001 0 1 0 1 1 0 1 0 00 0 1 1 1 0 1 100001 0 1 1 100001 0 1 100001 0 1 0 1 1 0 1 0 00 0 1 1 1 0 1 100001 0 1 1 100001 0 1 100001 0 1 0 1 1 0 1 0 00 0 1 1 1 0 1 100001 0 1 1 100001 0 1 100001 0 1 0 1 1 0 1 0 00 0 1 1 1 0 1 100001 0 1 1 100001 13:05 ET Dow -154.48 at 10309.92, Nasdaq -37.61 at 2138.44, S&P -19.1313:05 ET Dow -154.48 at 10309.92, Nasdaq -37.61 at 2138.44, S&P -19.13

.

.

Monday, March 21, 2011

Java Programming for Google's Android OS

package org.example.calc;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;

public class ActionOne extends Activity  {

TextView textOutTilesNeeded, newWidth, newHeight, newArea;
EditText getInputW, getInputH, getInputArea;
float width, height, area, tilesNeeded;
String tilesNeededString, intWidth, intHeight, intArea;


@Override
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
setContentView(R.layout.tile);

textOutTilesNeeded = (TextView) findViewById(R.id.lblTilesNeeded);
newWidth = (EditText) findViewById(R.id.txtTileWidth);
newHeight = (EditText) findViewById(R.id.txtTileHeight);
newArea = (EditText) findViewById(R.id.txtArea2cover);
getInputW = (EditText) findViewById(R.id.txtTileWidth);
getInputH = (EditText) findViewById(R.id.txtTileHeight);
getInputArea = (EditText) findViewById(R.id.txtArea2cover);
Button enter = (Button) findViewById(R.id.btnEnterTile);
enter.setOnClickListener(new View.OnClickListener() {

@Override
public void onClick(View v) {
      // String string_to_float="1234.89";
      // float flt=Float.parseFloat(string_to_float);
  //    EditText et = (EditText) findViewById(R.id.entry1);
  //String hello = et.getText().toString();

intWidth = getInputW.getText().toString();
intHeight = getInputH.getText().toString();
intArea = getInputArea.getText().toString();

// TODO Auto-generated method stub
width = Float.parseFloat(intWidth);
height = Float.parseFloat(intHeight);
area = Float.parseFloat(intArea);

tilesNeeded = ((area)/(width*height));
tilesNeededString = String.valueOf(tilesNeeded);


textOutTilesNeeded.setText(tilesNeededString);


}

private float StringToFloat(String intWidth) {
// TODO Auto-generated method stub
return 0;
}
});
}
// so we can use: onPause, onCreate, etc

}

Saturday, March 19, 2011

Eclipse - R error

you can get an R error if one of your files somewhere violates the rule for files. they must be named using [a-z1-9]: you cannot use special characters, etc. for example, some acceptable names are the following: button_click1, sound54, hearingmd.

Tuesday, March 15, 2011

Some Screenshots - Android Development - Java JDK SE 6, Eclipse & Android SDK - Cell Phone Emulator Visible











How to Get Paid for Videos Posted to YouTube

1. Video regularly and post to YouTube.  Try to video things of public interest, current events (make sure you're prompt with this type of submission), instructional videos in fields in which you've industry experience, etc.
2. When posting to YouTube, make sure you fill in the tags, description, title and category listings with detail and accuracy.
3. If you get enough hits within some time frame established by YouTube, you will receive an email with an invitation to follow some steps to set up a Google AdSense account and link it to your video.
* Once your YouTube video and your Google AdSense account are linked, advertisements will be displayed next to your video. You'll get paid on a per-click basis. (And, you'll get penalized for self-clicking, so don't try that. This is checked for using unspecified (probably automated) methods).




YouTube

Dear bige143143,

Your video Shockwave Tsunami from Japan - Newport Beach, CA - View From Above might be eligible for the YouTube Partnership Program, which allows you to make money from playbacks of your video.
Making money from your video is easy. Here's how it works: First sign into your YouTube account. Then, review and complete the steps outlined here:http://www.youtube.com/ivp?v=yxk_BJC6QCE.
If your video is approved, we'll start placing ads next to the video and pay you a share of the revenue as long as you meet the program requirements.
We look forward to adding your video to the YouTube Partnership Program.
Thanks and good luck!
The YouTube Team
© 2011 YouTube, LLC
901 Cherry Ave, San Bruno, CA 94066








YouTube Partnership Program: Welcome

Congratulations on the success of your video! It's popular, and that means you may be able to make money from it by submitting it to the YouTube Partnership Program.
Before we can add your video to the program, you'll need to complete these steps:
  1. Read the tutorial
  2. Link your YouTube account to a Google AdSense account
  3. Accept the agreement
  4. Tell us more about the contents of your video
Let's get started ...


======================================================================

YouTube Partnership Program: Link Your Google AdSense Account

Your request to use an existing Google AdSense account has been submitted. You will receive an email from Google AdSense asking you to confirm this link.



==========================================================






Monday, March 14, 2011

Completed Bubble Sort Algorithm in C++





#include <iostream>
using namespace std;
#include "Vector.txt"

template <class T>
void Swap(T &a, T &b)
{
T temp = a;
a = b;
b = temp;

}

int main()
{

// which type of object for vector: int, double, float
int typeV;
std::cout << "What type of Vector do you want to act on?" << endl;
cin >> typeV;
switch (typeV)
{
case 1 :
{
Vector<int> Vint(0);
bool added = false;
do
{

int another;
std::cout << "Do you want to enter a number? Type '0' for 'N' and '1' for 'Y'" << endl;
cin >> another;
int toAdd;
if (another ==1)
{std::cout << "Enter an integer and press enter." << endl;
cin >> toAdd;
Vint.push_back(toAdd);
added = true;
}
else
added = false;
}
while(added==true);
printList(Vint);
// Now Sort it, then prit it
int length = Vint.size();
bool swapped = false;
do
{
for(int i=0; i < (length-1) ; i++)
{
if(Vint[i]>Vint[i+1])
{
Swap<int>(Vint[i],Vint[i+1]);
cout << "There has been a swap the new Vi & V(i+1) are" << Vint[i] << "&" << Vint[i+1] << endl;
printList(Vint);
swapped = true;
}
// end if
}
// end for
}
// close 'do' block
while(swapped);

printList(Vint);
goto pass;
}
case 2 :
{
Vector<double> Vdouble(0);
bool added = false;
do
{

int another;
std::cout << "Do you want to enter a number? Type '0' for 'N' and '1' for 'Y'" << endl;
cin >> another;
double toAdd;
if (another ==1)
{std::cout << "Enter an integer and press enter." << endl;
std::cin >> toAdd;
Vdouble.push_back(toAdd);
added = true;
}
else
added = false;
}
while(added==true);
printList(Vdouble);
// Now Sort it, then prit it
int length = Vdouble.size();
bool swapped = false;
do
{
for(int i=0; i < (length-1) ; i++)
{
if(Vdouble[i]>Vdouble[i+1])
{
Swap<double>(Vdouble[i],Vdouble[i+1]);
cout << "There has been a swap the new Vi & V(i+1) are" << Vdouble[i] << "&" << Vdouble[i+1] << endl;
printList(Vdouble);
swapped = true;
}
// end if
}
// end for
}
// close 'do' block
while(swapped);

printList(Vdouble);
goto pass;

}
case 3 :
{
Vector<float> Vfloat(0);
bool added = false;
do
{
int another;
std::cout << "Do you want to enter a number? Type '0' for 'N' and '1' for 'Y'" << endl;
std::cin >> another;
float toAdd;
if (another ==1)
{std::cout << "Enter an integer and press enter." << endl;
cin >> toAdd;
Vfloat.push_back(toAdd);
added = true;
}
else
added = false;
}
while(added==true);
printList(Vfloat);
// Now Sort it, then prit it
int length = Vfloat.size();
bool swapped = false;
do
{
for(int i=0; i < (length-1) ; i++)
{
if(Vfloat[i]>Vfloat[i+1])
{
Swap<float>(Vfloat[i],Vfloat[i+1]);
cout << "There has been a swap the new Vi & V(i+1) are" << Vfloat[i] << "&" << Vfloat[i+1] << endl;
printList(Vfloat);
swapped = true;
}
// end if
}
// end for
}
// close 'do' block
while(swapped);
printList(Vfloat);
goto pass;
}

pass:




Vector<int> V1(0);
for (int i = 0; i < 10; i++)
V1.push_back(i);
printList(V1);

V1.reserve(20);
for (int i = 10; i <20; i++)
V1.push_back(i);
printList(V1);
cout << endl;

Vector<float> V2(0);
for (int i = 0; i < 10; i++)
V2.push_back((float)i + .1f);
printList(V2);
system("PAUSE");
return 0;
}
}

Sunday, March 13, 2011

#2 - Use of a Vector class in C++ : Also, demonstration of Switch, Goto, Cin, Cout, Print, etc - In Progress




#include <iostream>
using namespace std;
#include "Vector.txt"

template <class T>
void Swap(T &a, T &b)
{
T temp = a;
a = b;
b = temp;

}

int main()
{

// which type of object for vector: int, double, float
int typeV;
std::cout << "What type of Vector do you want to act on?" << endl;
cin >> typeV;
switch (typeV)
{
case 1 :
{
Vector<int> Vint(0);
bool added = false;
do
{

int another;
std::cout << "Do you want to enter a number? Type '0' for 'N' and '1' for 'Y'" << endl;
cin >> another;
int toAdd;
if (another ==1)
{std::cout << "Enter an integer and press enter." << endl;
cin >> toAdd;
Vint.push_back(toAdd);
added = true;
}
else
added = false;
}
while(added==true);
printList(Vint);
// Now Sort it, then prit it
int length = Vint.size();
for(int i=0; i < length; i++)
{
if(Vint[i-1]>Vint[i])
Swap<int>(Vint[i-1],Vint[i]);
}
printList(Vint);
goto pass;
}
case 2 :
{
Vector<double> Vdouble(0);
bool added = false;
do
{

int another;
std::cout << "Do you want to enter a number? Type '0' for 'N' and '1' for 'Y'" << endl;
cin >> another;
double toAdd;
if (another ==1)
{std::cout << "Enter an integer and press enter." << endl;
std::cin >> toAdd;
Vdouble.push_back(toAdd);
added = true;
}
else
added = false;
}
while(added==true);
printList(Vdouble);
goto pass;
}
case 3 :
{
Vector<float> Vfloat(0);
bool added = false;
do
{

int another;
std::cout << "Do you want to enter a number? Type '0' for 'N' and '1' for 'Y'" << endl;
std::cin >> another;
float toAdd;
if (another ==1)
{std::cout << "Enter an integer and press enter." << endl;
cin >> toAdd;
Vfloat.push_back(toAdd);
added = true;
}
else
added = false;
}
while(added==true);
printList(Vfloat);
goto pass;
}

pass:




Vector<int> V1(0);
for (int i = 0; i < 10; i++)
V1.push_back(i);
printList(V1);

V1.reserve(20);
for (int i = 10; i <20; i++)
V1.push_back(i);
printList(V1);
cout << endl;

Vector<float> V2(0);
for (int i = 0; i < 10; i++)
V2.push_back((float)i + .1f);
printList(V2);
system("PAUSE");
return 0;
}
}

Saturday, March 12, 2011

Use of a Vector class in C++ : Also, demonstration of Switch, Goto, Cin, Cout, Print, etc - In Progress

The code below is what's been constructed for the first part of an assignment: implementation of a bubble sort.

Vectors of objects (integers, double and floats) will ultimately be entered by a user in an unordered sequence.  The bubble sort will then sort the vector by ordering the vector's objects by size.

For example, if a user enters: 12, 55, 1, 5, 90; you would have (1, 5, 12, 55, 90) after the sort.

Another objective or aspect here is to calculate the amount of time (using Big-O) it takes to sort an unordered vector using different algorithms.

Incidentally, there is an infinite loop if you select 2 in the case structure.


// Ethan Castanon

#include <iostream>
using namespace std;
#include "Vector.txt"

int main()
{

// which type of object for vector: int, double, float
int typeV;
std::cout << "What type of Vector do you want to act on?" << endl;
cin >> typeV;
switch (typeV)
{
case 1 :
{
Vector<int> Vint(0);
bool added = false;
do
{

int another;
std::cout << "Do you want to enter a number? Type '0' for 'N' and '1' for 'Y'" << endl;
cin >> another;
int toAdd;
if (another ==1)
{std::cout << "Enter an integer and press enter." << endl;
cin >> toAdd;
Vint.push_back(toAdd);
added = true;
}
else
added = false;
}
while(added==true);
printList(Vint);
goto pass;
}
case 2 :
{
Vector<double> Vdouble(0);
bool added = false;
do
{

int another;
std::cout << "Do you want to enter a number? Type '0' for 'N' and '1' for 'Y'" << endl;
cin >> another;
double toAdd;
if (another ==1)
{std::cout << "Enter an integer and press enter." << endl;
std::cin >> toAdd;
Vdouble.push_back(toAdd);
added = true;
}
else
added = false;
}
while(added==true);
printList(Vdouble);
goto pass;
}
case 3 :
{
Vector<float> Vfloat(0);
bool added = false;
do
{

int another;
std::cout << "Do you want to enter a number? Type '0' for 'N' and '1' for 'Y'" << endl;
std::cin >> another;
float toAdd;
if (another ==1)
{std::cout << "Enter an integer and press enter." << endl;
cin >> toAdd;
Vfloat.push_back(toAdd);
added = true;
}
else
added = false;
}
while(added==true);
printList(Vfloat);
goto pass;
}

pass:

// Below here is code that is not written by me (Ethan Castanon)

Vector<int> V1(0);
for (int i = 0; i < 10; i++)
V1.push_back(i);
printList(V1);

V1.reserve(20);
for (int i = 10; i <20; i++)
V1.push_back(i);
printList(V1);
cout << endl;

Vector<float> V2(0);
for (int i = 0; i < 10; i++)
V2.push_back((float)i + .1f);
printList(V2);
system("PAUSE");
return 0;
}
}

=================================================
template <typename Object>
class Vector
{
public:
// constructors
explicit Vector (int intSize = 0): theSize(intSize), 
theCapacity(intSize + SPARE_CAPACITY)
{
objects = new Object[theCapacity];
}
Vector (const Vector &rhs):objects(NULL)
{
operator=(rhs);
}
~Vector()
{
delete [] objects; 
}
const Vector & operator= (const Vector & rhs)
{
if (this != &rhs)
{
delete [] objects;
theSize = rhs.size();
theCapacity = rhs.theCapacity;
objects = new Object[capacity()];
for (int k=0; k < size(); k++)
objects[k] =rhs.objects[k];
}
return *this;
}
void resize (int newSize)
{
if (newSize > theCapacity)
reserve(newSize * 2 + 1);
theSize = newSize;
}
void reserve (int newCapacity)
{
if (newCapacity < theSize)
return;
Object *oldArray = objects;
objects = new Object[newCapacity];
for (int k=0; k < theSize; k++)
objects[k] = oldArray[k];
theCapacity = newCapacity;
delete[] oldArray;
}
Object & operator[] (int index)
{
return objects [index];
}
const Object & operator[] (int idnex) const
{
return objects [index];
}
bool empty() const
{
return size() == 0; 
}
int size() const
{
return theSize;
}
int capacity() const
{
return theCapacity;
}
void push_back(const Object &x)
{
if (theSize == theCapacity)
reserve( 2* theCapacity + 1);
objects[theSize++] = x;
}
void pop_back()
{
theSize--;
}
const Object & back() const
{
return objects [theSize - 1];
}
typedef Object* iterator;
typedef const Object* const_iterator;

iterator begin()
{
return &objects[0]; 
}
const_iterator begin() const
{
return &objects[0];
}
iterator end()
{
return &objects[size()];
}
const_iterator end() const
{
return &objects[size()];
}
enum {SPARE_CAPACITY = 16};
private:
int theSize;
int theCapacity;
Object* objects;
};
template <typename Container>
void printList (Container &vec)
{
for (Container::iterator iter = vec.begin(); 
iter != vec.end(); iter++)
cout << *iter << " ";
cout << endl;
}

T-Mobile's Bogus Unlimited Data Plan

T-Mobile offers an "Unlimited Data Plan" for $40.

This is the message I'm sent basically every month: "Free T-Mobile Message: Due to the amount of data you have used this billing cycle, your data speed will be slowed for the remainder of the cycle."

T-Mobile's Unlimited Data Plan is completely bogus.

Saturday, February 26, 2011

Working - Razor Syntax in C Sharp - Web-Based Database - Microsoft Server 2008























@if (!WebSecurity.IsAuthenticated) {
      Response.Redirect("~/Account/Login");
 }

@{
    Layout = "~/_SiteLayout.cshtml";
    PageData["Title"] = "Permitted Users Only";
}

@if ( Roles.IsUserInRole("power")) {
    <span> Welcome <b>@WebSecurity.CurrentUserName</b>! </span>
}
else {
     Response.Redirect("~/UnAuthorized");
}


@{
    var db = Database.Open("snakeConnection");
    var FName = Request["FName"];
    var MName = Request["MName"];
    var LName = Request["LName"];
    var RefBy = Request["RefBy"];
    var Age = Request["Age"];
    var Gender = Request["Gender"];
    var Street = Request["Street"];
    var City = Request["City"];
    var State = Request["State"];
    var Zip = Request["Zip"];
    var Phone1 = Request["Phone1"];
    var Phone2 = Request["Phone2"];
    var Email = Request["Email"];
    var DateVisit = Request["DateVisit"];
    var HABenefit = Request["HABenefit"];
    var BenefitYN = Request["BenefitYN"];
    var HABenWhom = Request["HABenWhom"];
    var IPA = Request["IPA"];
    var HMO = Request["HMO"];
    var CPTCode = Request["CPTCode"];
    var ICD9Code = Request["ICD9Code"];
    var GrossSale = Request["GrossSale"];
    var COGS = Request["COGS"];
    var TDate = Request["TDate"];
    var Brand = Request["Brand"];
    var Model = Request["Model"];
    var PayMethod = Request["PayMethod"];
    var PayPocketAmt = Request["PayPocketAmt"];
    var PayInsAmt = Request["PayInsAmt"];
    var WDamageB = Request["WDamageB"];
    var WDamageE = Request["WDamageE"];
    var WRepairB = Request["WRepairB"];
    var WRepairE = Request["WRepairE"];


    if (IsPost) {

        // Read product name.
        FName = Request["FName"];
        if (FName.IsEmpty()) {
           ModelState.AddError("FName", "First name is required.");
        }

        MName = Request["MName"];
        if (MName.IsEmpty())
        {
            ModelState.AddError("MName", "Middle name is required.");
        }

        // Read product description.
        LName = Request["LName"];
        if (LName.IsEmpty()) {
          ModelState.AddError("LName",
                "Last Name is required.");
         }

        // Read product price
        RefBy = Request["RefBy"];
        if (RefBy.IsEmpty()) {
          ModelState.AddError("RefBy", "Referred by is required.");
        }

        // Define the insert query. The values to assign to the
        // columns in the Product table are defined as parameters
        // with the VALUES keyword.
        if(ModelState.IsValid) {
            var insertQuery1 = "INSERT INTO dbo.Patients (FName, MName, LName, RefBy, Age, Gender, Street, City, State, Zip, Phone1, Phone2, Email) " +
                "VALUES (@0, @1, @2, @3, @4, @5, @6, @7, @8, @9, @10, @11, @12)";
            db.Execute(insertQuery1, FName, MName, LName, RefBy, Age, Gender, Street, City, State, Zip, Phone1, Phone2, Email);
            var insertQuery2 = "INSERT INTO dbo.Referrals (LName, RefBy, DateVisit, HABenefit, HABenWhom, IPA, HMO, CPTCode, ICD9Code) " +
                "VALUES (@0, @1, @2, @3, @4, @5, @6, @7, @8)";
            db.Execute(insertQuery2, LName, RefBy, DateVisit, HABenefit, HABenWhom, IPA, HMO, CPTCode, ICD9Code);
            var insertQuery3 = "INSERT INTO dbo.financials (LName, GrossSale, COGS, TDate, Brand, Model, PayMethod, PayPocketAmt, PayInsAmt, WDamageB, WDamageE,   WRepairB, WRepairE) " + "VALUES (@0, @1, @2, @3, @4, @5, @6, @7, @8, @9, @10, @11, @12)";
            db.Execute(insertQuery3, LName, GrossSale, COGS, TDate, Brand, Model, PayMethod, PayPocketAmt, PayInsAmt, WDamageB, WDamageE, WRepairB, WRepairE);
        }
    }
}


    <form method="post" action="">
    <table width="900" border="1">
    <tr>
    <td width="225"><h3 align="center">Patient</h3></td>
    <td width="225">
            <h3 align="center"><input type="submit" value="Submit" class="submit" style="color: Blue; width: 75; height: 35;"/></h3></td>
    <td width="225"><h3 align="center">Insurance</h3></td>
    <td width="225"><h3 align="center">Financials</h3></td>
    </tr>
    </table>
    <table width="900" border="1">
  <tr>
    <td width="150px">First Name</td>
    <td width="150px">
       <input type="text" name="FName" value="" />
      </td>
    <td width="150px">Date of Visit</td>
    <td width="150px"> <input type="text" name="DateVisit" value="" /></td>
    <td width="150px">Transaction Date</td>
    <td width="150px"><input type="text" name="TDate" value="" /></td>
  </tr>
  <tr>
    <td width="150px">Middle Name</td>
    <td width="150px"><input type="text" name="MName" value="" /></td>
    <td width="150px">Hearing Aid Benefit</td>
    <td width="150px"><input type="text" name="HABenefit" value="" /></td>
    <td width="150px">Gross Sale</td>
    <td width="150px"><input type="text" name="GrossSale" value="" /></td>
  </tr>
  <tr>
    <td width="150px">Last Name</td>
    <td width="150px"><input type="text" name="LName" value="" /></td>
    <td width="150px">Benefit By Whom</td>
    <td width="150px"> <input type="text" name="HABenWhom" value="" /></td>
    <td width="150px">COGS</td>
    <td width="150px"><input type="text" name="COGS" value="" /></td>
  </tr>
  <tr>
    <td width="150px">Referred By</td>
    <td width="150px"><input type="text" name="RefBy" value="" /></td>
    <td width="150px">Insurer</td>
    <td width="150px"><input type="text" name="HMO" value="" /></td>
    <td width="150px">Brand</td>
    <td width="150px"><input type="text" name="Brand" value="" /></td>
  </tr>
  <tr>
    <td width="150px">Birth Date</td>
    <td width="150px"><input type="text" name="Age" value="" /></td>
    <td width="150px">IPA</td>
    <td width="150px"><input type="text" name="IPA" value="" /></td>
    <td width="150px">Model</td>
    <td width="150px"><input type="text" name="Model" value="" /></td>
  </tr>
  <tr>
    <td width="150px">Gender</td>
    <td width="150px"><input type="text" name="Gender" value="" /></td>
    <td width="150px">CPT Code</td>
    <td width="150px"><input type="text" name="CPTCode" value="" /></td>
    <td width="150px">Payment Method</td>
    <td width="150px"><input type="text" name="PayMethod" value="" /></td>
  </tr>
  <tr>
    <td width="150px">Street</td>
    <td width="150px"><input type="text" name="Street" value="" /></td>
    <td width="150px">ICD9/10 Code</td>
    <td width="150px"><input type="text" name="ICD9Code" value="" /></td>
    <td width="150px">Out of Pocket</td>
    <td width="150px"><input type="text" name="PayPocketAmt" value="" /></td>
  </tr>
  <tr>
    <td width="150px">City</td>
    <td width="150px"><input type="text" name="City" value="" /></td>
    <td width="150px">&nbsp;</td>
    <td width="150px">&nbsp;</td>
    <td width="150px">Insurance Portion</td>
    <td width="150px"><input type="text" name="PayInsAmt" value="" /></td>
  </tr>
  <tr>
    <td width="150px">State</td>
    <td width="150px"><input type="text" name="State" value="" /></td>
    <td width="150px">&nbsp;</td>
    <td width="150px">&nbsp;</td>
    <td width="150px">WarrantyD Begin</td>
    <td width="150px"><input type="text" name="WDamageB" value="" /></td>
  </tr>
  <tr>
    <td width="150px">Zip</td>
    <td width="150px"><input type="text" name="Zip" value="" /></td>
    <td width="150px">&nbsp;</td>
    <td width="150px">&nbsp;</td>
    <td width="150px">WarrantyD End</td>
    <td width="150px"><input type="text" name="WDamageE" value="" /></td>
  </tr>
  <tr>
    <td width="150px">Phone1</td>
    <td width="150px"><input type="text" name="Phone1" value="" /></td>
    <td width="150px">&nbsp;</td>
    <td width="150px">&nbsp;</td>
    <td width="150px">WarrantyR Begin</td>
    <td width="150px"><input type="text" name="WRepairB" value="" /></td>
  </tr>
  <tr>
    <td width="150px">Phone2</td>
    <td width="150px"><input type="text" name="Phone2" value="" /></td>
    <td width="150px">&nbsp;</td>
    <td width="150px">&nbsp;</td>
    <td width="150px">WarrantyR End</td>
    <td width="150px"><input type="text" name="WRepairE" value="" /></td>
  </tr>
  <tr>
    <td width="150px">Email</td>
    <td width="150px"><input type="text" name="Email" value="" /></td>
    <td width="150px">&nbsp;</td>
    <td width="150px">&nbsp;</td>
    <td width="150px">&nbsp;</td>
    <td width="150px">&nbsp;</td>
  </tr>
  <tr>
    <td width="150px">&nbsp;</td>
    <td width="150px">&nbsp;</td>
    <td width="150px">&nbsp;</td>
    <td width="150px">&nbsp;</td>
    <td width="150px">&nbsp;</td>
    <td width="150px">&nbsp;</td>
  </tr>
  <tr>
    <td width="150px">&nbsp;</td>
    <td width="150px">&nbsp;</td>
    <td width="150px">&nbsp;</td>
    <td width="150px">&nbsp;</td>
    <td width="150px">&nbsp;</td>
    <td width="150px">&nbsp;</td>
  </tr>
  <tr>
    <td width="150px">&nbsp;</td>
    <td width="150px">&nbsp;</td>
    <td width="150px">&nbsp;</td>
    <td width="150px">&nbsp;</td>
    <td width="150px">&nbsp;</td>
    <td width="150px">&nbsp;</td>
  </tr>
  <tr>
    <td width="150px">&nbsp;</td>
    <td width="150px">&nbsp;</td>
    <td width="150px">&nbsp;</td>
    <td width="150px">&nbsp;</td>
    <td width="150px">&nbsp;</td>
    <td width="150px">&nbsp;</td>
  </tr>
  <tr>
    <td width="150px">&nbsp;</td>
    <td width="150px">&nbsp;</td>
    <td width="150px">&nbsp;</td>
    <td width="150px">&nbsp;</td>
    <td width="150px">&nbsp;</td>
    <td width="150px">&nbsp;</td>
  </tr>
  <tr>
    <td width="150px">&nbsp;</td>
    <td width="150px">&nbsp;</td>
    <td width="150px">&nbsp;</td>
    <td width="150px">&nbsp;</td>
    <td width="150px">&nbsp;</td>
    <td width="150px">&nbsp;</td>
  </tr>

</table>
 </form>

more debugging

Server Error in '/Starter Site6' Application.

Must declare the scalar variable "@9".

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.SqlClient.SqlException: Must declare the scalar variable "@9".

Source Error:

Line 72:             var insertQuery2 = "INSERT INTO dbo.Referrals (LName, RefBy, DateVisit, HABenefit, HABenWhom, IPA, HMO, CPTCode, ICD9Code) " +
Line 73:                 "VALUES (@0, @1, @2, @3, @4, @5, @6, @7, @8, @9)";
Line 74:             db.Execute(insertQuery2, LName, RefBy, DateVisit, HABenefit, HABenWhom, IPA, HMO, CPTCode, ICD9Code);Line 75:         }
Line 76:     }

Source File: c:\Users\edog\Documents\My Web Sites\Starter Site6\Data\EnterPatient.cshtml    Line: 74

Stack Trace:

[SqlException (0x80131904): Must declare the scalar variable "@9".]
   System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) +2030802
   System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +5009584
   System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning() +234
   System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +2275
   System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) +215
   System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) +987
   System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) +162
   System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe) +178
   System.Data.SqlClient.SqlCommand.ExecuteNonQuery() +137
   WebMatrix.Data.Database.Execute(String commandText, Object[] args) +122
   ASP._Page_Data_EnterPatient_cshtml.Execute() in c:\Users\edog\Documents\My Web Sites\Starter Site6\Data\EnterPatient.cshtml:74
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +207
   System.Web.WebPages.WebPage.ExecutePageHierarchy(IEnumerable`1 executors) +68
   System.Web.WebPages.WebPage.ExecutePageHierarchy() +156
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +76
   System.Web.WebPages.WebPageHttpHandler.ProcessRequestInternal(HttpContext context) +249

more troubleshooting

Server Error in '/Starter Site6' Application.

The parameterized query '(@0 nvarchar(5),@1 nvarchar(6),@2 nvarchar(8),@3 nvarchar(7),@4 ' expects the parameter '@4', which was not supplied.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.SqlClient.SqlException: The parameterized query '(@0 nvarchar(5),@1 nvarchar(6),@2 nvarchar(8),@3 nvarchar(7),@4 ' expects the parameter '@4', which was not supplied.

Source Error:

Line 69:             var insertQuery1 = "INSERT INTO dbo.Patients (FName, MName, LName, RefBy, Age, Gender, Street, City, State, Zip, Phone1, Phone2, Email) " +
Line 70:                 "VALUES (@0, @1, @2, @3, @4, @5, @6, @7, @8, @9, @10, @11, @12)";
Line 71:             db.Execute(insertQuery1, FName, MName, LName, RefBy, Age, Gender, Street, City, State, Zip, Phone1, Phone2, Email);Line 72:             var insertQuery2 = "INSERT INTO dbo.Referrals (LName, FName, RefBy, DateVisit, HABenefit, HABenWhom, IPA, HMO, CPTCode, ICD9Code) " +
Line 73:                 "VALUES (@0, @1, @2, @3, @4, @5, @6, @7, @8, @9)";

Source File: c:\Users\edog\Documents\My Web Sites\Starter Site6\Data\EnterPatient.cshtml    Line: 71

Stack Trace:

[SqlException (0x80131904): The parameterized query '(@0 nvarchar(5),@1 nvarchar(6),@2 nvarchar(8),@3 nvarchar(7),@4 ' expects the parameter '@4', which was not supplied.]
   System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) +2030802
   System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +5009584
   System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning() +234
   System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +2275
   System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) +215
   System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) +987
   System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) +162
   System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe) +178
   System.Data.SqlClient.SqlCommand.ExecuteNonQuery() +137
   WebMatrix.Data.Database.Execute(String commandText, Object[] args) +122
   ASP._Page_Data_EnterPatient_cshtml.Execute() in c:\Users\edog\Documents\My Web Sites\Starter Site6\Data\EnterPatient.cshtml:71
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +207
   System.Web.WebPages.WebPage.ExecutePageHierarchy(IEnumerable`1 executors) +68
   System.Web.WebPages.WebPage.ExecutePageHierarchy() +156
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +76
   System.Web.WebPages.WebPageHttpHandler.ProcessRequestInternal(HttpContext context) +249


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1