Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Nov 16 16:16

    wtgodbe on 3.1

    Fix a potential race in iterati… (compare)

  • Nov 16 16:16
    wtgodbe closed #28112
  • Nov 16 16:15

    wtgodbe on 3.1

    Fix ilasm managed resource look… (compare)

  • Nov 16 16:15
    wtgodbe closed #28104
  • Nov 13 18:16
    k15tfu commented #25801
  • Nov 13 18:05
    azure-pipelines[bot] commented #28104
  • Nov 13 18:05
    wtgodbe commented #28104
  • Nov 12 16:55

    sdmaclea on 3.1-crossdac

    Fix remote-unwind for TARGET_AR… Merge pull request #28115 from … (compare)

  • Nov 12 16:55
    sdmaclea closed #28115
  • Nov 12 15:35
    janvorli commented #25801
  • Nov 12 12:54
    k15tfu commented #25801
  • Nov 12 07:24
    Robird commented #27216
  • Nov 12 03:45
    sdmaclea review_requested #28115
  • Nov 12 03:44
    sdmaclea review_requested #28115
  • Nov 12 03:44
    sdmaclea assigned #28115
  • Nov 12 03:44
    sdmaclea labeled #28115
  • Nov 12 03:44
    sdmaclea labeled #28115
  • Nov 12 03:44
    sdmaclea labeled #28115
  • Nov 12 03:44
    sdmaclea milestoned #28115
  • Nov 12 03:44
    sdmaclea opened #28115
Hugh Gleaves
@Korporal
Of course, you'd be interested in this I'm sure, designing this with a powerful language like C# make some of this more powerful too
Indeed, you can tab to any arg and press F1 to get help text
They really deserved credit for it, it was superb and made CLI stuff a doddle, I'm just reinventing it but for Windows with .Net, I can do a few more things too because of this
Stephen A. Imhoff
@Clockwork-Muse
You still need to get applications to "opt in", though, since if they just parse the raw args you won't be able to handle that.
Hugh Gleaves
@Korporal
The app is coded to call this (really a single function) and you pass descriptors etc into it, it does all the heavy lifting
Stephen A. Imhoff
@Clockwork-Muse
So what you're creating is a shell
Hugh Gleaves
@Korporal
with C# attributes etc I can do some of this very neat, not a shell a method call called as first line of app, you pass it the args[] array.
if you typed: command -file xyz.c +line_numbers
then pressed <Shift-Enter> it builds the form and prepopulates the relevant input fields with your already supplied args
It does a hell of a lot of work of course, but I loved it and actually wrote a solid version in Borland C for DOS
but the src is lost sadly
Stephen A. Imhoff
@Clockwork-Muse
That's still the applications "opting in", though.
Hugh Gleaves
@Korporal
OK I found this, this is a former project a PLI compiler for Win32, it uses this API and although I lost the src (for command parser) the compiler executable and the command parser DLL are still on this disk drive, here's what it looks like when invoked with the +menu option
image.png
text typed into the file_name is parsed to conform to file name rules, tab lets you hop from option to option
if you dont use +menu it just does what any other command does, matches up the supplied args with what it expects
this is easier to see with better window colors
image.png
Hugh Gleaves
@Korporal

But on the rare occasions she is actually wrong and I am right it matters now, she is convinced she is right and I am wrong - I cant win.

This is why life is better when it's not about winning :D

@jnm2 - I knew a certain POTUS who'd give you an argument on that.

Joseph Musser
@jnm2
I think it does take a certain level of self-awareness and a place of security for someone to be able to redefine what "winning" actually is for them, instead of thinking inside the box that our instincts or fears (or the influence of other people) dictate.
Joseph Musser
@jnm2
To me it comes down to, who do I want to be, and what do I think is healthy for me and others in the long run? And to realize that I'm not a prisoner to what my opinions or goals were in the past.
Joseph Musser
@jnm2
I'm purposely being abstract and this kind of evaluation does apply to all aspects of my life, but if you wanted to tie it into politics we can take it to private chat since it would not really be polite to discuss that in a shared room.
Joseph Musser
@jnm2
To just go back to talking about memories, I would see it as a terrible thing if I felt that it was more important for me to convince people that I was right than for me to understand the best version of their point of view and to look for the idea that's the most helpful for both of us. That having-to-be-right stuff is not one bit enjoyable in the long run for me. Frustration on one hand, hollow victories on the other hand. Both broadcasting how much more important I think I am compared to whoever I was just talking to.
So yeah, for me anyway, life has much more satisfying things in it than winning.
Hugh Gleaves
@Korporal
I agree with Bertrand Russel that all human activity is driven by desire.
Joseph Musser
@jnm2
You can't argue with that, can you? Attachment and aversion :) Depends on how you define desire.
I think that desires can change, that our desires often originate in things outside our control or awareness, and that our understanding of our own motivations is probably inherently confabulatory.
Hugh Gleaves
@Korporal
I am trying to find src for HttpWebRequest.GetResponseAsync
but the ref source shows no such method
Hugh Gleaves
@Korporal
Its in a base class WebRequest...
Anyway GetResponseAsync is throwing a WebException that's a timeout - does the async call timeout if it hasn't completed within the timeout window? is that what goes on?
Hugh Gleaves
@Korporal
Does anyone know? is there anyone that can tell me if GetResponseAsync can or cannot throw a timeout related exception?
Hugh Gleaves
@Korporal
OK I understand what I was seeing now. HttpWebRequest derives from WebRequest.
each class has Timeout property they are distinct, the derived class does not touch the base class's Timeout
Changing Timeout on a HttpWebRequest instance has no impact on problem, operation still times out
Therefore this was needed and it worked:
        ((WebRequest)(request)).Timeout = 1000000;
VS though says the cast is redundant but I dont see that.
Hugh Gleaves
@Korporal
No Im wrong, messed up thinking, doing too many things at once
Joseph Musser
@jnm2
@Korporal HttpClient is the recommendation, WebClient is outdated and not recommended
One thing I ran into that led to timeouts was that WebClient defaults to keep-alive
WebClient sends headers that you didn't specify, HttpClient doesn't
Hugh Gleaves
@Korporal
OK yes, I will evaluate HttpClient, I just need this unexplained 100 sec timeout on an async operation, to go away.
Hugh Gleaves
@Korporal
MS have made stuff very confusing over the past few years. Their documentation states Assembly names that code is in but never tells us if that assembly is part of framework or must be pulled from Nuget.
System.Net.Http is a framework assembly yet System.Net.Http.Json is not it seems.
I can't believe the jumping around I have to do just to submit a simple async HTTP put FFS
Hugh Gleaves
@Korporal
To use HttpClient all of this already tested and stable (except for async timing out after 100 secs) code must be replaced, why has MS had so much trouble with supporting HTTP operations that have been around since the days of Noah.
    private static HttpWebRequest CreateRequest(string Method, string Url, IDictionary Args)
    {
        string json = JsonSerializer.Serialize(Args);

        var request = (HttpWebRequest)WebRequest.Create(Url);

        request.Timeout = 10000;

        //((WebRequest)(request)).Timeout = 1000000;

        request.Method = Method;
        request.ContentType = "application/json";

        var bytes = Encoding.ASCII.GetBytes(json);

        request.ContentLength = bytes.Length;

        using (var stream = request.GetRequestStream())
        {
            stream.Write(bytes, 0, bytes.Length);
        }

        return request;
    }
Whatever happened to the concept we we're all lectured about for years, you know that concept?