Archives / 2005 / November
  • Search for Xbox 360

    How fast can you whip something up with ASP.NET? Pretty fast.

    I don't know if anyone will actually go to the site, but it took me all of two hours to do and $8 for the domain name, so it's worth a shot. If I generate that much in AdSense, I broke even. :)

  • How do I really copy a List<T> object?

    OK, color me annoyed. I want to copy a List<T> object because I want to manipulate the junk in it. The junk is in the ASP.NET cache, so if I alter it, it gets changed and the change is reflected on the next request.

    For example... right now I have

    List<Foo> list = Foo.GetFromCache();
    list[0].MyString = "yo";

    As you would expect, that MyString property is going to be "yo" next time I get it. I tried using List<T>.CopyTo() to copy it to an array, but that array is still a reference to the original.

    It's gotta be easier... right?

  • Getting sucked into Ajax

    I actually bought a book at Borders today, something I never do anymore. Computer books in particular are rare purchases for me because there are few that I need or want to learn from.

  • First day with the final Visual Studio 2005

    I finally have Visual Studio 2005 and SQL Server 2005 installed here on my local machine following the MSDN subscription stuff, and it's hard to believe after all of this time with alphas and betas that the new world has finally arrived. It's a good day!

    I've managed to write a couple hundred lines of code today, and even test code using the new stuff (I have the VSTD version). I'm digging it. I mean, I knew what it was going to be anyway, but I'm pleased at how well it all seems to be working. The goofy little bugs I had been dealing with the last 18+ months are obviously gone.

    I've got a project I'm trying to knock out in the next week or so, but I'm not being a good code monkey and executing the way I should. I'm hoping for some bout of inspiration to push me here. Maybe if I won that Xbox 360 launch invite. ;) I mean shit, I'm all about the Microsoft stuff. Hook me up!

  • MSDN is slooooooooooow

    Since I never got a "welcome e-mail" from MSDN, I began relentlessly pinging the form for a subscriber number lookup on Sunday. Finally, this morning, it worked and I got my number. I started downloading Visual Studio. Twelve hours ago. Still only two-thirds the way there. Getting 35k/second.

    That's pathetic. How does a company the size of Microsoft offer a very high-end and premium download service and not have the bandwidth to support it. I keep seeing people in various forums and blogs post excuses, but there is no excuse. People are paying big money for this stuff.

    What a disappointment.

  • MSDN... still not in real time!

    Since I guess I still haven't done enough to impress anyone in the community (or perhaps because my intentions frequently involve profit), I never got an MVP and free access to MSDN, so I paid for it. I scored the old "Enterprise" version from Amazon for about $1,400, so that upgrades me to the Team System for Developers version. Score. Beats $5k.

    That said, I'm shocked that it's still not a real-time affair. Back in 2001, the first time I subscribed, I accepted that as just being with the times, but still? I activated my membership on the phone (since the Web site was down, also disappointing), and I have to wait the three or four days until they send me a membership number.

    It's disappointing that access isn't nearly instant. You'd think Microsoft would be better than that for such a crucial function for its developer community.

  • HttpHandlers and big files

    I use an HttpHandler on my podcast site to catch the requests for MP3's and increment a download counter. This seems to work pretty well, and I haven't had any problems to date. It also helps force the "save as" dialog so people aren't viewing them in their browsers.

    However, when I try to apply the same concept to big video files, it chokes. iTunes says the network connection is reset while Firefox simply says the document contains no data.

    What might be going on here? The code is what you've likely seen in countless examples elsewhere, like this:

    public class MovHandler : IHttpHandler
        public MovHandler()
        public bool IsReusable
            get { return true; }

        public void ProcessRequest(HttpContext context)
            context.Response.ContentType = "video/quicktime";
            string path = context.Server.MapPath(context.Request.FilePath);
            NewsItem item = new NewsItem(Path.GetFileName(context.Request.FilePath));