The Tang Avenger
Long ago while I was in college, I did many silly things. One of these things was The Tang Avenger.
Convert.ToInt32(null) == 0
Consider the following.
string s = null;
int i = Convert.ToInt32(s);
What is the value of i? Zero. WHAT?
GIVE ME A DAMN EXCEPTION.
Owen
My son Owen William Hanson was born August 29th at 7:18pm CST.
I have created a webpage for him; check it out here.
Quick and Dirty
A coworker wrote the following code. Quick and dirty, as they said, but this is beyond quick and dirty. It’s shamefully filthy even for a hack.
private void SetAccountHistoryTabActive(string acctId) {
// Use FindControl() !!!
foreach (Control control in Page.Controls) {
if (control is HtmlForm) {
foreach (Control control2 in control.Controls) {
if (control2 is AjaxControlToolkit.TabContainer) {
foreach (Control control3 in control2.Controls) {
if (control3 is AjaxControlToolkit.TabPanel && control3.ID == “Actions”) {
foreach (Control control4 in control3.Controls[0].Controls) {
if (control4 is AjaxControlToolkit.TabContainer) {
((AjaxControlToolkit.TabContainer)control4).ActiveTabIndex = 2;
foreach (Control control5 in control4.Controls) {
if (control5.ID == “ActionsAccountHistory”) {
foreach (Control control6 in control5.Controls[0].Controls[1].Controls[0].Controls) {
if (control6.ID == “AccountHistoryControl”) {
foreach (Control control7 in control6.Controls) {
if (control7.ID == “acctId”) {
string test = control7.ID;
((TextBox)control7).Text = acctId;
}
}
}
}
}
}
}
}
}
}
}
}
}
} // end of Controls loop
}
FWIW I replaced it with a line of javascript.
UPDATE: this person got fired
MP3 of the Day
9/28/98
(Metallica) One (StarCraft Mix)
Let’s just face it – Metallica kicks ass. Last night I found a .WAV ripper for StarCraft. I also happened to listen to “One”. I decided to make a nifty mix of the two. What do you think?
Wow, has it really been so long? Nearly ten years ago, *I* created the mix above one night using CoolEdit while attending A&M.
I figured I should post this to set the record straight once and for all when I discovered this (a music video made using it!) and this (folks claiming they created it) and even this (NIN War Remix? Nope, sorry). Props to darkangelx66 on the video; very nicely sync’ed — and talk about a genre crosser!
(EDIT: Sadly the video for the first link was removed, but I found some links to the track in lots of other places (this one seems be pretty true to the original quality and includes my original id3 tag) plus 2 youtube posts with bland videos.)
Catching Up
It has been a long time since I posted.
Many things have changed, and many things have happened. Before getting into that, I need to resolve a question circling my head.
Should I be blogging? I am not attempting to start a community-wide discussion like those who pretentiously ask about ”the future of blogging” (or “the future of social interaction” for those that think far more in vagaries).

