Dan Crevier's Blog

In search of a better name...

Posts
  • Dan Crevier's Blog

    A pattern for unit testable Asp.net pages: Part 3

    • 5 Comments
    In this post, I'm going to give an example of the pattern in action, built on the classes described in the last post . For the example, I've chosen something similar to the rename page on Live Folders . Here's how it should work: The Url should be of...
  • Dan Crevier's Blog

    A pattern for unit testable Asp.net pages: Part 2

    • 2 Comments
    In part 1 , I gave an overview of the pattern. In this part, I will describe some of the core classes. Let's start off with the PageModel itself. It's the most simple. It is an abstract class. Subclasses must implement OnLoaded. It has an associated IPageContext...
  • Dan Crevier's Blog

    A pattern for unit testable Asp.net pages: Part 1

    • 2 Comments
    I previously blogged about the pattern we used in our WPF application to separate business logic from the presentation, making the business logic view and data models highly unit testable. Now that I'm working on Asp.net code for Live Folders , we've...
  • Dan Crevier's Blog

    Live Folders is live!

    • 4 Comments
    The product I've been working on, Live Folders is now up at http://folders.live.com for a limited beta.
  • Dan Crevier's Blog

    Gotcha with HttpResponse.Redirect

    • 1 Comments
    HttpResponse.Redirect is used to redirect to another page using a 302 response code. It can be used in two modes. One terminates the thread immediately so that execution does not continue to the next line of code. The other version continues execution...
  • Dan Crevier's Blog

    The difference between <%= and <%# in ASP.NET

    • 3 Comments
    I was a little confused about the difference between <%= expression %> and <%# expression %> in ASP.NET. It seems like both work in a lot of cases, but in other cases, only the # (data binding) version works. So, I decided to dig into it a...
  • Dan Crevier's Blog

    Web security is hard

    • 0 Comments
    I've been reading Jeremiah Grossman's great accounts of some JSON related cross site request forgery (CSRF) holes here and here . The basic pattern is that an AJAX website uses XmlHttpRequest to request some personal data that's returned with JSON from...
  • Dan Crevier's Blog

    Five Things People Don't Know About Me

    • 5 Comments
    Omar tagged me to write up 5 things people don't know about me. Here we go: I have a PhD in Biophysics from Harvard. I've actually only had a few CS courses in my life... I've been programming computers since I was 9, but for some reason went into physics...
  • Dan Crevier's Blog

    Inline Search in IE

    • 1 Comments
    Inline Search from IE Forge is a must have utility for Internet Explorer. It gives new FireFox-like inline search UI to IE and does find as you type. Find has also been a feature I haven't liked in IE. I can never figure out what it highlighted on the...
  • Dan Crevier's Blog

    Good post on Yahoo! User Interface blog on web site performance

    • 0 Comments
    There's a good post on web site performance on the Yahoo! User Interface blog. It says it's part one in a series. I'm looking forward to the rest. The short version is that 10% of the time loading Yahoo!'s homepage is in loading the HTML and the rest...
  • Dan Crevier's Blog

    What does runat=&quot;server&quot; do for HTML controls

    • 6 Comments
    One thing I didn't fully understand when I first started using ASP.NET is exactly what runat="server" does. It sounds like some magical thing where code is running on the server for your control and not on the client. In some cases something like that...
  • Dan Crevier's Blog

    Getting machine to go to sleep under Vista

    • 1 Comments
    I was having a strange problem getting my computer to go to sleep under Vista. When my laptop was not plugged in, it would go to sleep fine when I closed the lid. However, when my laptop was plugged in and I losed the lid, it would lock but not go to...
  • Dan Crevier's Blog

    Playing with ASP.NET

    • 1 Comments
    I'm doing some ASP.NET work on my current project (more about that in the coming months). I've spent most of my life doing client side code, so it's taken me a little time to really wrap my head around what's happening with ASP.NET. It often seems like...
  • Dan Crevier's Blog

    Live Search for Mobile Beta

    • 0 Comments
    I recently upgraded to a Samsung Blackjack phone. It's a tiny QWERTY phone running Windows Mobile 5.0. For the first time ever, I've got the same phone as Omar ! I've always been at least one generation behind, even using his hand-me-down once. In any...
  • Dan Crevier's Blog

    Pulse Controller

    • 0 Comments
    Jimmy Grewal, someone I worked with back in the day on MacIE has finally revealed what he's been working on since he left Microsoft. You can read about the Pulse Controller on his blog post here . It looks pretty cool. I've always wanted to install some...
  • Dan Crevier's Blog

    So long, Microsoft Max

    • 1 Comments
    The Microsoft Max project has ended. The website says it best: Thank you for participating in the beta of Microsoft Codename Max. Over the next week, we will be shutting down the Max services and our team forums . Over the past year, you’ve sent us tons...
  • Dan Crevier's Blog

    DataModel-View-ViewModel pattern series

    • 29 Comments
    I thought I should add a post with the full list of posts in the D-V-VM pattern. They are: DataModel-View-ViewModel pattern: 1 (overview) DataModel-View-ViewModel pattern: 2 (first implementation of DataModel class) DM-V-VM part 3: A sample DataModel...
  • Dan Crevier's Blog

    A comparison of C++ unit testing frameworks

    • 0 Comments
    Here's a great article that a coworked pointed out on C++ unit testing frameworks: Link to Games from Within: Exploring the C++ Unit Testing Framework Jungle C++ isn't as easy to unit test as C#, but a good framework sure helps! Technorati tags: C++ ...
  • Dan Crevier's Blog

    What happened to the menu bars?

    • 2 Comments
    There's an interesting post on the shell blog called What happened to the menu bars? I find the trend a bit disturbing, not so much because I miss the menu bars, but because of the lack of consistency. I realize that applications need to innovate with...
  • Dan Crevier's Blog

    DM-V-VM part 8: View Models

    • 6 Comments
    Ok, time to wrap this up :-) Now, we'll finally build what I'm calling a view model for managing a portfolio of stocks (building on the StockModel example from previous posts). A view model is a class that will be used as the DataContext for a data...
  • Dan Crevier's Blog

    DM-V-VM part 7: Encapsulating commands

    • 8 Comments
    In part 5 , I talked about commands and how they are used for behavior. Now, I want to talk about a better way to encapsulate them. First, I'll create a CommandModel class that encapsulates the RoutedCommand and the enabled/execute code. This is all pretty...
  • Dan Crevier's Blog

    Thoughts on iTunes 7

    • 5 Comments
    They've done some cool stuff in iTunes 7. I hope someone comes out with a subscription video service before long. I much prefer the subscription model for music. The new 3D album art is nice looking (not unlike Max's mantle view!). I find it is pretty...
  • Dan Crevier's Blog

    Max feedback on TechCrunch

    • 0 Comments
    There's a TechCrunch article on Max's RSS reading here . I'm glad to see people like it. While the newspaper-like view isn't perfect for all feeds, I think it works really well. One piece of feedback that was in the comments is that it doens't tie into...
  • Dan Crevier's Blog

    A new version of Max is live!

    • 1 Comments
    You can now download a new version of Microsoft Max ! It's on .Net Framework 3.0 RC1. We're not on some ancient WinFx version this time! Unfortunately, Vista isn't officially supported at this time. There was a lot of work under the hood to improve scalability...
  • Dan Crevier's Blog

    Windows Marketplace: Pretty cool!

    • 1 Comments
    Windows Live Marketplace looks like a cool way to find Windows software. Give it a try! Link to Windows Marketplace: Software & hardware for the Windows operating system
Page 2 of 9 (217 items) 12345»