Entries:
Comments:
Posts:

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

Discussions

PerfectPhase PerfectPhase "This is not war, this is pest control!" - Dalek to Cyberman
  • 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;
    try
    {
    connection = new SqlConnection(...);
    // do some stuff
    }
    finally
    {
    if (connection != null)
    ((IDisposable)connection).Dispose();
    }


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

    Stephen

  • 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.

    Stephen.


  • Finally a way to ...

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

    Stephen

  • 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

    Stephen.

  • 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.

    Stephen.

  • I'm soooo sick of the Crazy Frog

    I found this very therapeutic!

    http://www.abearstail.co.uk/video/frog/abearstail.wmv

    Stephen.

  • 3D Object Scanning

    In theory no, but to actually build a working system, thats a whole other story.  There is are reasons why nearly every scanner system around today uses a mechanical system to position the scanning head.

    For large scale systems, you might as well couple a fixed scanner (for example http://hds.leica-geosystems.com/products/products.html) with a GPS system for location.

    For smaller systems the added complexity and cost of a radio based system does not gain you much over a fixed system.

    This is quite cool as well for a home project. http://www.muellerr.ch/engineering/laserscanner/default.htm 

    Stephen.

  • 3D Object Scanning

    Manip wrote:
    Bad generic numbers. If the timing was close enough then there is nothing you couldn't scan, from bridges down to a pin head.

    I don't at all understand your orientation question... It scans in all the surfases... So ?


    You delay system knows where in space the scanning device is, how do you know in what direction the laser scanner is pointing?

  • 3D Object Scanning

    What do you want to scan?  20ms is 6000Km, 0.5ms rebound is 75Km?

    Also how do you tell the orintation of the black box, you know where it is but not in which direction it points.



    Stephen.

  • RollDice.NET

    Maurits wrote:
    brownsoft wrote: Once I touched it up.  It still real rough for consumption.  What are you looking for in the souce?? If you need any questions answered, just let me know.



    I'm just paranoid.  If I step through the source I can keep an eye on what it's doing.



    You take paranoia to a whole new level Smiley

    Stephen