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

itsnotabug itsnotabug
  • Can the MS model work in the mobile market?

    synergy. microsoft will succeed if they can leverage the popularity of xbox live and put games/social media apps into devices that sync with xbox. i think they're nudging developers in that direction with the new xna framework. i've only briefly looked at it, but xna seems like a solid foundation for any type of rich media app.

     

    as a consumer, i think it would be great if they converged zune and windows mobile all together. just throw a phone on top of a zune and you'd have a killer device.

     

    //dreaming of course

     

     

  • Frustration to Ease of Fix Ratio

    Ion Todirel said:

    Not to the edge of pulling my hair out, but here are a few:

     

     - Debugging managed and native code, and after a 20 minutes of debugging realizing you forget to set the managed (or native) flag and you can debug only native code  !@#!@#!@ Smiley

     - Forgetting to include a project in the build, pressing F5 and seeing your breakpoints not being hit

     - Setting the wrong symbols path, for the optimized binaries instead of chk

     

    i forgot about 1 related to not hitting breakpoints. apparently, ie8 handles processess differently than previous versions. so much so, that the visual studio debugger can't figure out which process to attach to. there's a registry fix for the problem but it had me scratching my head for half a day.

     

    f5 > ie8 launches > breakpoints not hit > much cursing

  • Software suggestions

    i'll play devil's advocate and say email is just about the most non-reliable form of communication ever devised.

     

    i vote crm + paper.

  • Has a general procedure to convert recursive functions to ​non-​recursive functions been discovered?

    god, i miss school.

     

  • Managing Software Product Files

    we use source control (visual sourcesafe) and include everything in the project/solution.

     

    it helps to make a distinction between help docs and *everything else* that goes into a release. when possible we opt for an embedded resource for dependencies, images, whatever.

  • ASP.NET : Getting a C# string variable into JavaScript code

    turrican said:
    itsnotabug said:
    *snip*

    Hm, in this case it's just a string I need to add into a URL to receive the data which the AJAX function uses, but thanks for the headsup on that one. I was not thinking that sometimes the functions run without the rest of it being 100% loaded.

     

    I would like to see some kind of server side object like "<genericobject id="_whateveryouwanthere"/>" where you could do _whateveryouwanthere = "What I want..."; from the aspx.cs C# code. and it would result in only "What I want..." and nothing more.

     

    Hmm hmm, I guess it'll be <%=%> for now.

    Crying

    unfortunately, even with inline server-side markup, you may still get buggy behavior unless you wrap all your javascript up in a function that only fires when the dom is completely loaded. this is especially problematic on post-backs and browsers that aren't internet explorer. i'm in the process of "jQuerifying" a large legacy app because of this. the error happens mostly with chrome and firefox and maybe 1-3% of the time but it's enough to warrant the modification. you don't necessarily need to use jQuery but the prevailing trend is to only run javascript after everything else is loaded or at least catch that the value is not loaded before your evaluate it or otherwise use it in javascript. my problem is that the legacy app used injected javascript through code-behind dealing with timing, but that's another story.

  • Frustration to Ease of Fix Ratio

    You've been there. Pulling your hair out for hours, days, maybe weeks only to find the fix was something so incredibly easy you initially overlooked it and went down the wrong complicated path to fix it.

     

    my latest: strange behavior in a win32 web browser control. javacript in the control not getting the correct ie version, flash, pdf viewer and sl versions when the user was running under 32 bit emulation on windows7 64 bit os.

    my frustration: assuming i'd need to fork out the sniffing for 32 and 64 bit apps.

    the fix: change advanced compile options to target x86, instead of ANY CPU in the Compile tab. Do'h.

     

    i'm interested to hear some other stories of easy fixes for frustrating problems.

  • ASP.NET : Getting a C# string variable into JavaScript code

    as far as i know there is no clean, reliable way to do it with a purely server side control (i'd love to be wrong on this). i usually just use hidden label controls to hold the value. sometimes the dom doesn't load entirely before javascript looks at the label so you have to use something like jQuery's $(document).ready() function to ensure the dom is completely loaded in the browser before your javascript function can run with it client-side.

  • Spectral Graph in WPF

    i don't know much about wpf, but complicated vectors can be slooooow to redraw in every other vector app i know of. i'd probably look into gdi+ then use whatever you want to display the bitmap.

     

    regarding the blockiness, you can either "upsample" the data before you draw by interpolating values (this can be tricky depending on the input) or draw the image using the low res data points, then merge the low res bitmap with clones of itself offsetting the clones by (x, y+1), (x, y-1), (x+1, y), (x-1, y), etc... sort of a poor man's gaussian blur. you'd still have to scan the images line by line taking the average rgb of each pixel to determine the color of the new pixel and consider out of bounds errors at the edges.

  • VS loses parts of my code

    here's a stretch... do you have any desktop publishing apps installed on that machine? i've seen strange font conflicts happen, but never in the ide... only in the layout app after adobe or corel decided to install their own version of fonts. the fonts don't even have to be the same name. i think if, by chance, they share an id number you get garbage renders or courier (default). it's a big problem in the publishing industry because there are a ton of foundries releasing their own versions of fonts.