Friday, April 25, 2008

Never again

From now, if I get tagged in a note about computer repair, I am untagging myself. kthxbai.

Wednesday, April 23, 2008

Fake it if you don't belong here

And you should know that lies won't hide your flaws...but the internet does. This seems to be a popular idea amongst the "internetters". Since it seems to be working _so well_, I have decided to follow suit and act like a general bad-ass all the time. But only on the internet.

FROM NOW ON, EVERYTHING I SAY WILL BE AWESOME, NO MORE, NO LESS. IN FACT, MY CRUISE CONTROL FOR COOL WILL BE SET TO AMAZING FROM HERE ON OUT. NOW THAT TWO OF MY FRIENDS HAVE MOTORCYCLES, I THINK I WILL GET ONE TOO. AND FOR ALL YOU LADIES OUT THERE, I AM OFFICIALLY STATING MY REQUIREMENTS OF YOU. YOU HAVE TO BE AWESOME ALL THE TIME LIKE ME AND ALWAYS MAKE SANDWICHES AT MY REQUEST. FOR MY LAST WORDS. SWEDISH TWINS, MY PLACE, NOW.

Sincerely,
Brandon Perry

Monday, April 21, 2008

M-O-O-N, that spells Ubuntu

It has been brought to my attention that if you google "ubuntu dfw" (quotes or no quotes), my blog comes up first on Google. This is really nice, but that means that I need to start blogging more. And about Ubuntu-relevant stuff, too. So, starting now, I will start blogging more. Good day.

Wednesday, April 2, 2008

FRAG

Me, Geppy, Robert, Chris, and Jesse went to see a movie called Frag last night. It is a documentary on professional gaming, the ups and down, drugs, sex, etc... It was a _really_ good movie. Entertaining the whole way through. A lot of big name gamers were there (Fatal1ty, Lost-Cauze, Carmac, Sephi), as well as Jarrett Cale and Geoff Lepaire (aka Jeremy and Kyle from PurePwnage). We got a chance to chat with them after the movie until they kicked us out of the room for being there too long. After that, we got some pictures in the lobby. Rock.




This is Geppy with Geoff (Kyle) and Jarrett (Jeremy). I would have liken a picture with Geoff also, but he wasn't around when I got mine taken.

Tuesday, April 1, 2008

Another (more complex) way to hover in ASP in IE6

IE6 doesn't have support for pseudo-class hovering (only anchor hovering). I was working on a piece of code today and we wanted to get a bunch of labels to change background when hovered over. We only support IE6 SP2. This was a fun day, I must say. What I ended up doing was creating a div that held all the labels, gave it an ID and runat="server".

[div ID="someDiv" runat="server"]
...
[/div]

I stuck all the labels inside this div. Then, I did a foreach loop to grab all the controls.

foreach (Control ctrl in someDiv.Controls)
{
if (ctrl.GetType() == typeof(Label))
{
ctrl.Attributes.Add("onmouseover", "this.style.backgroundColor = 'Grey'");
ctrl.Attributes.Add("onmouseout", "this.style.backgroundColor="White"');
}
}

The one I did was _much_ more complicated than this because I had to highlight multiple labels at once with one mouseover (as well as deal with some weird variable names). Much deeper looping, but once you get it going, it is just finding the right way to loop through it. In my testing, this did _not_ work in Firefox. Since I don't get paid to work on it for Firefox, I won't delve too deep into it. Though Firefox supports pseudo-class hovering, so that isn't really a problem.