Loading user information from Channel 9

Something went wrong getting user information from Channel 9

Latest Achievement:

Loading user information from MSDN

Something went wrong getting user information from MSDN

Visual Studio Achievements

Latest Achievement:

Loading Visual Studio Achievements

Something went wrong getting the Visual Studio Achievements


PerfectPhase PerfectPhase "This is not war, this is pest control!" - Dalek to Cyberman
  • What's needed to get started in Avalon / XAML?

    keeron wrote:
    This may sound like a stupid question, but here it goes:

    What tools (baselines) do I need to be able to compile and run code written in Avalon and XAML?

    I know that Visual Studio 2005 Beta 1 and Avalon SDK work. The Visual Studio Beta 2 does not work (found this the hard way). The other sad thing is Visual Studio 2005 Beta 1 has expired (again, found this the hard way after reinstalling - earlier had the beta 2).

    You can see how desperate I am to get started on Avalon and XAML Smiley

    I have the .NET framework 2.0 installed (since I use Monad/MSH). Is this enough (along with the WinFX/Avalon SDK)? If so, what's the best editor to use then?

    - Keeron

    Vs2005 Beta 2 and the Avalon Beta 1 RC work fine together.


  • Map a network printer in c#

    Anyone know how to map a network printer using c#?

    I have a webservice that needs to be able to print to a network printer and is running under the ASPNET account.

    I have found that you can map a network printer on a machine wide basis with the command

    rundll32 printui.dll,PrintUIEntry /ga /c\\machine /n\\machine\printer

    So I guess I could just add a PInvoke wrapper onto the printui.dll?



  • P2P and technology lose in our nation’s highest court

    This does not just affect P2P, all the apps like AnyDVD, DVDShrink, NeroRecode and the like will be in the firing line as well! 

    What about Linux, their reluctance to implement core DRM technologies in the platform clear show its intent is to create a platform to enable rampant piracy Smiley

  • Study Shows Windows Beats Linux on Security

    AndyC wrote:
    Define Admin access? Unlike *nix, Windows doesn't have the concept of a superuser. You can obliterate almost all of the rights and privileges assigned by default to Administrators. You can tweak NT permissions in the registry to prevent an Administrator from changing them and use Group Policies to enforce further restrictions.

    One way of which is just to rename the administrator account to something obscure and create a new administrator account with guest level access.  Let the hackers waste time breaking the dummy account.  Or watch with glee as the software testers try to work out what has happened in revenge for all the obscure bugs reports Smiley


  • C# Using Block - Another Question

    littleguru wrote:

    It's not correct, because you get a compiler error if the object does not implement IDisposable.

    Opps, yep, should have been as in Sven's and your post post.

    EDIT:-  Or not....  Smiley


  • C# Using Block - Another Question

    The whole point of the using block is that this..

    using (connection = new SqlConnection(...))
    // do some stuff

    it is short hand for...

    SqlConnection connection = null;
    connection = new SqlConnection(...);
    // do some stuff
    if (connection != null)

    so you can be guaranteed that your object will be cleaned up if it implements IDisposable.


  • Loading Images via SQL2000

    W3bbo wrote:
    dynamic image generation per request entails a massive performance overhead.

    It is far, far, better to perform all processing on an image upon being uploaded, although this does come at a slight disadvantage as far as disk-space is concerned.

    When doing something like this, I cache the generated files to the DB/disk on first request rather than when uploading.  I also tend to limit the image size to several common sizes, just makes the whole lot easier to manage, and you can cull older images from the cache and have them recreated as needed.


  • Finally a way to ...

    Interesting, I was just thinking about something similar after my PC started overheating with all the internal drives.


  • I'm soooo sick of the Crazy Frog

    Sabot wrote:

    Hmm obviously you don't watch an UKTV channels ... you would do if your were married! I have never cried watching 'Extreme Makeover: House - Edition' honest! (But building a house in Seven days is amazing!)

    We were just talking about that show, I love the way they sit down sketch out a design and within 24 hours all the parts turns up to that design with planning permission etc.  Something tells me they don't really do it all from scratch in 7 days Wink


  • Loading Images via SQL2000

    While we are talking, it's beter to use an ashx handler for stuff like this as you then you do not have the overhead of all the page framework.

    Also while I store the details for a page in the db and use that for building lists etc, if the files are on disk, most of the time i'll write out the direct link to the file on disk in things like <img> tags.  Let IIS do what it really good at and serve the file directly.