Monday, March 26, 2007

Finding the English alphabetic order of a character

http://forums.asp.net/thread/1637908.aspx

This was an interesting post to me, as I haven't peeked around .Net's simple data types much. I came up with the following:

C#:

int GetOrdinal(char c)
{
return ((c.CompareTo('a') < 0) ? c.CompareTo('a') + 33 :
c.CompareTo('a') + 1);

}



VB.Net


Function GetOrdinal(ByVal c As Char) As Integer
Return IIf((c.CompareTo("a"c) < 0), c.CompareTo("a"c) + 33, c.CompareTo("a"c) + 1)

End Function

Wednesday, March 07, 2007

Baby, he's Back!!!

Alley Broussard seems to think he's back. Well, his new rap song seems to indicate that, anyway.

Why doesn't Les Miles feel the same way?


"At running back, we expect that Keiland Williams, Charles Scott and Richard Murphy will pursue those spots," Miles said to a group of reporters in his office. "Don't know exactly after that. It might be (Jacob) Hester. At fullback, Hester will the be lead dog. Thereafter, we'll have (Shawn) Jordan and Quinn Johnson.

"Trindon Holliday - we're going to find key spots for him. As the spring goes on, we're going to look to and talk about how to get those guys the ball."

Only then did Miles bring up Broussard, whose work habits and inability to come back strong from knee surgery and get in shape last season put him out of favor with Miles.

"Alley Broussard is a guy that right now I don't know exactly where he's at or how he fits," Miles said. "I'm not really ... let's just say comfortable. We will look at opportunities to use Alley when he's most prepared to compete. But he's not that right now."

Miles did confirm that Broussard is enrolled at LSU and still on the team.

"Alley is in school and doing well, I'm told," Miles said.

Broussard did not return calls on Friday. Asked if Broussard's problems with Miles stemmed from his work habits and attitude, Miles said, "All of the above," but declined to go into more detail. He did say he was pulling for Broussard to return to form.