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

androidi androidi
  • Can you do this with Roslyn or C# Native?

    @evildictaitor:

    I suspect that by the time I see the changes in the assembly I've forgotten what the previous assembly was (I don't have eidetic memory). I'd like this sort of rapid >change>optimized asm with code interleaved and aligned diff's>repeat iteration cycle for learning purposes. I long ago wanted to learn some asm but not having such ability makes it too tedious process. Hard to say how much use would it be for performance optimization - perhaps after I knew some asm through the rapid change iteration then I could use it to see if there's something slow going on.

    Of course that sort of facility would ideally work not just in C# but in C++ too.

     

    btw. Quite interesting read from someone claiming to have eidetic memory. Particularly the rough statistics bit. http://www.quora.com/What-is-it-like-to-have-a-photographic-eidetic-memory

  • Can you do this with Roslyn or C# Native?

    http://www.evanmiller.org/why-im-betting-on-julia.html

    "Bam — you can go from writing a one-line function to inspecting its LLVM-optimized X86 assembler code in about 20 seconds"

    20 seconds is bit too much though. I'd like if you could write a line of c# and see the optimized asm in preferably a sec if it's just a small change of a single line of code and the rest of the project was already compiled once. (Of course the time would differ if talking about C# Native vs JIT)

    I haven't really bothered with using the VS debugger to view what the code compiled to since it's not really intuitive if I only care about one line or small section of code. I think you'd have to first disable just-my-code then somehow figure out where in the optimized assembly is the line you're interested in. It would be much more neater if you could change the C# code and have the optimized assembly update near-live, editing the C# while keeping the resulting asm view with interleaved c# visible next to it. Not sure if I'd actually need this *now* but if C# was to be a systems programming language in future then that'd be nice.

     

  • After upgrading IE8 to IE11, the most important things started to suck

    Another issue that goes away if selecting IE8 emulation. Too bad I can't persist it for Youtube only.

    Google has now rolled out dynamically changing video size in YouTube to everyone it seems. Having used IE8 for most of the year I didn't even notice they were testing such a dumb(-when not optional) feature.

    So now unless I change browser from maximized window to smaller window, some low res content looks horrible. Yeah - I wish I had the right kind of small CRT that obscures and rounds the low res content but even if I did, it would be inconvenient to use with random YouTube use.

  • Who is running C9?

    I couldn't find statistics but I made some rough ones.

    yyyy# currentpage# approxpagesinyr#p

    2014 53 53p
    2013 110 57p
    2012 195 85p
    2011 275 80p
    2010 365 90p
    2009 430 65p
    2008 510 80p
    2007 800 290p
    2006 1200 400p
    2005 1530 330p
    2004apr 1636 106p

    p=18 threads

    I remember quite few threads being made by few persons back in the day, still a bit weird how that drop seems to have occurred roughly with the financial crisis? Clearly if they had kept posting more, the crisis would have been averted. :)

  • How do you save a web page with comments in IE?

    Edit to above: I think File/Print is still needed. I was thinking you could handle all printing through selecting the scrollable content - but I remember there are forums in which each post in threads contain scrollable content (usually embedded code listing). This situation ideally need that printing the page or the outer scrollable area is able to also print the inner scrollable areas. But since one may not be interested in printing all the scrollable contents, the Print dialog should have a way to select whether or not to recurse during printing into the embedded scrollable areas.

  • How do you save a web page with comments in IE?

    The simplest fix to this printing issue is to handle that printing through the right click context menu. If the page has multiple embedded scrollable areas (some with incrementally loaded comments), then you explicitly select the one to print through right clicking in it. In the print menu one could then also select whether to print just the immediate scrollable area or also the "frame" around it. (eg. just the comments or also the page containing the comments but without the other scrollable areas)

    And of course this act of explicit selection of the scrollable area would implicitly contain the desire to print anything visible in the scrollable area - so any CSS attributes hiding comments from printing would be ignored if the comments were visible in that area.

    To reiterate, instead of "printing a page" you'd be "printing anything visible in current scrollable area".

  • How do you save a web page with comments in IE?

    The obvious solution to sites not letting people to easily download all comments at once is the old one: Instead of web sites implementing comments and forums and such all in various non-standard ways, the web browser should be implementing all this and the rich editors in standard way. Then the web browser can implement an incrementable torrent-style storage backend for storing the comments. The purpose here is that no web site needs to have comments or forums or moderators, anyone can create comments and threads and forums and chats on top of any web site straight inside the browser, and these will be all completely permanent and anonymous. I guess we know why no major browser has implemented this. Just because you can, doesn't mean you should. :)

  • How do you save a web page with comments in IE?

    I'm not sure how the various Flash/Silverlight etc plugins render but clearly a true WYSIWYG printing would mean somehow grabbing what they render. One design question I don't have good answer to is what if a scrollable page contains scrollable elements.

    Another approach is to not think WYSIWYG in paper printing terms but in terms of what is doable on the page without causing network access. Essentially some sort of compressed and resumable memory dump/state snapshot. This would allow scrolling the embedded scrollable elements later.

    A nice usability touch would be that if a page contains "load more comments" link, then user can right click this and make the browser automatically load all the comments (or atleast until pressing eg. esc or some stop button). If I am interested in reading comments, I'm usually interested in scrolling quickly through all of them to find what I think is interestintg.  

    Ideally sites would serve few latest+ top rated comments, and then have a link to download all of them if I decided I am interested in the rest.

    Whether or not it makes sense to have some sort of standard dictionary-based compression just for comments I'm not sure. eg. A lot of youtube comments may be repeating similar phrases that show unusually often only in context of that video or story. So most efficient compression would have to build a dictionary based on all the comments in a particular video/story. But this might  only be worth it if bandwidth had high cost and power/memory was cheap. But if that was the case- then sites would still prefer to not let people download all the comments with ease. Which seems to be what's going on.

  • How do you save a web page with comments in IE?

    I remember the trick I used in IE8 - works still in IE11

    Select and right click a comment, Inspect Element, then find the root node, click copy, paste to notepad, save, then run a javascript remover on the saved html.

    But why does this have to be so difficult? Can't IE team just include 1 button that does all that?

    I suppose I could modify the javascript remover to use clipboard as source but it's still annoying to even need to use another app to solve this issue.

  • How do you save a web page with comments in IE?

    Many web 2.0 pages these days first require you to click "load more comments" to show all the comments. So once I did that and went to Print Preview in IE11, it shows there's no comments in the preview. (Save page as html/mht doesn't save the comments... I still expected that atleast printing as XPS worked like "WYSIWYG" - alas, it does not)