Search results for query: *

  1. Skydiver

    Hide Console Windows

    When you launch via the task scheduler, it can be user interactive so your check for Environment.UserInteractive is not appropriate. You should instead pass in a command line parameter when launching via the task scheduler. As for your console window issue, that is the default windows behavior...
  2. Skydiver

    Question: Propper Design and Implementation of a WinForms Custom Control

    I should amend what I wrote in post #3. Microsoft is not prescriptive about how you write the private internals of your WinForms code. Microsoft is prescriptive about your code's public facing API. Microsoft is also prescriptive about how Windows UI should look and act like. If ever you hear...
  3. Skydiver

    Question: Propper Design and Implementation of a WinForms Custom Control

    Microsoft is not prescriptive about how to write WinForms code (unlike WPF where they advocate using MVVM). WinForms was designed to be an easy transition for people who used to write Win32 API or MFC code, and the subset of VB6 programmers. All that mattered was that you handled the Windows...
  4. Skydiver

    Insert Null Values into a Sqlite Table

    It's not a matter of changing my code to be dropped in for your use. It's a matter of looking at what operations are being done and understanding. At runtime for each field for the game, the names of the columns are computed. Given the of the column, a name for a parameter is computed. These...
  5. Skydiver

    Insert Null Values into a Sqlite Table

    @titojd : Consider the following pseudo code: var columnNames = new List<string>(); var parameterNames = new List<string>(); for(int columnNumber = 1; columnNumber <= 25; columnNumber++) { columnName = $"n{columnNumber:D2}" parameterName = $"@{columName}"; valueString =...
  6. Skydiver

    Insert Null Values into a Sqlite Table

    When you are copying and pasting lines of code, that is typically a code smell that tells you you should look at using loops and/or helper functions. You can use a loop to dynamically build your insert statement. Or since you are using string instead of numbers for your columns, you could use...
  7. Skydiver

    Insert Null Values into a Sqlite Table

    Show us your code for successful insertion into SQLite with 15 fields. Then show us your code for unsuccessful insertion into SQLite with 25 fields.
  8. Skydiver

    Version problem between ML.NET and tensorflow models

    This might help if you attack the problem from Python/Colab side rather than the ML.NET side: https://stackoverflow.com/a/77725736/56987 But to answer your question, in general there is no way to have two version of the same assembly loaded into the same .NET appdomain. I'm not sure if you can...
  9. Skydiver

    Trouble on placing a map on the blazor server app

    Perhaps I'm missing something, but why not just run it directly in the HTML page? Why do this dance between a razor page/component, C#, and JavaScript? https://wiki.openstreetmap.org/wiki/OpenLayers_Simple_Example
  10. Skydiver

    Version problem between ML.NET and tensorflow models

    According to NuGet, It should already be at 3.0.1. But regardless, I only see a dependency on TensorFlow.NET, not SciSharp.TensorFlow.Redist. Does the docs tell you that you need to install this extra component because the NuGet package doesn't have the correct set of transitive dependencies?
  11. Skydiver

    Version problem between ML.NET and tensorflow models

    What version of ML.NET do you have installed?
  12. Skydiver

    XSRF-Token

    Looking at post #3, it looks like you tried that and didn't get the expected results. Oh well, still glad that you got it working.
  13. Skydiver

    XSRF-Token

    Nice!
  14. Skydiver

    XSRF-Token

    Congratulations! What was the missing ingredient?
  15. Skydiver

    XSRF-Token

    *sigh* But does that generated code work? As I said, take the generated code and run it. Does it work? Only if it works, then compare with your code. You are trying to skip the step of testing the generated code and going straight to comparing with your code in post #24.
  16. Skydiver

    XSRF-Token

    "The problem persists" meaning that the Postman generated code also fails?
  17. Skydiver

    XSRF-Token

    Okay, let try a different tack. As I recall, current versions of Postman allow you to tell it to generate C# code that mimics what it does for that particular session. Tell it to generate the code, and then run it. If that generated code succeeds, then compare the generated code with your code...
  18. Skydiver

    XSRF-Token

    Show us the headers that are sent. There is an obvious difference in the way the server is responding. A server is not psychic. It can only act on the data sent it. So what data is being sent to it by Postman that is different from the data that you are sending using the HttpClient.
  19. Skydiver

    XSRF-Token

    Those are responses that you are getting back. I was asking about what did Postman send? What did you send?
  20. Skydiver

    XSRF-Token

    If you share the headers sent by Postman, and headers sent by your program, we could provide another pair of eyes to try to spot the difference between them. (We believe you that the responses received by Postman is different from the responses received.)
Back
Top Bottom