Search results for query: *

  1. Herman

    A question on architecture

    My advice is skip the multiple UIs. Make it a web app, using ASP.NET MVC... It will work on anything that has a web browser, cell phones and tablets included. Of course that means you need to learn ASP.NET... :)
  2. Herman

    Progressbar in WPF project

    Respectfully, the code from Sheeping does not adhere to the MVVM pattern. Model => Your database, or WCF data source, dataset, collection, etc... View => The XAML of your view, using databindings to your ViewModel ViewModel => A simple class that contains the data you want to display on your...
  3. Herman

    Equivalent to Pivot Table in LINQ

    If you are in Linq to SQL, the correct method is the following, directly from the context: public System.Collections.Generic.IEnumerable<TResult> ExecuteQuery<TResult> (string query, params object[] parameters);
  4. Herman

    Equivalent to Pivot Table in LINQ

    There's no good way to do a true pivot in Linq to SQL or Entity Framework. Your best bet is to run your SQL query using the .SqlQuery method. You will need to create a type for the result of your query, and you can then call it like this: var result =...
  5. Herman

    How make a query dynamic to filter records in the tables?

    That would be because you have two different models (m)... A sample of data, and the table structures, would help a lot answering your question.
  6. Herman

    CPU bound - Context Switching - Slow thread processing

    Bit the bullet, installed the library, and managed to come up with this in about 5 minutes. Does it all in one go, and you can manage behaviors using the When and CommandFlags enums... If you need a response, then `await` the response and remove the FireAndForget flag... If you need to retrieve...
  7. Herman

    CPU bound - Context Switching - Slow thread processing

    So, after reading a bit, seems Entity Framework 6.0 supports Redis contexts. This would likely solve your performance issues and provide a robust interface to work Redis. Have a look here: Access Redis Data with Entity Framework 6 And here: Use Azure Redis Cache With MVC And Entity Framework
  8. Herman

    CPU bound - Context Switching - Slow thread processing

    Ok, so from that code, we see that you are calling StringGetAsync (which I assume is a remote method) for each row of the in-memory table. Since it's still missing a bunch of code, here's what I think you should be able to do. Get the entire dictionary in one go from Redis, using this . Keep...
  9. Herman

    CPU bound - Context Switching - Slow thread processing

    No, that's not code. Copy and paste the actual code so we don't go in circles for hours for no reason.
  10. Herman

    CPU bound - Context Switching - Slow thread processing

    Like I said, it would help to see the code... I don't know about Redis specifically, but from what I am reading it's a simple in-memory cache. It seems to support batch processing, have a look here for a library that does this, maybe this will help.
  11. Herman

    Help with a program, I have the source etc

    Glanced at it real quick, and in MOSFileRenamer.SPL.GetFrame, the only List in there is ColourTable (FrmMain.cs, line 196): if (Compressed == true) { BM.SetPixel(iX, iY, CustomColor(ColourTable[FileBytes[FilePos]], Custom)); FilePos += 1; UsedPix[iX, iY] = true; } else ... Seems...
  12. Herman

    CPU bound - Context Switching - Slow thread processing

    I don't think hardware or network latency is the issue... Inserting 160K rows into an Azure database for example should not take more than a few minutes... If your goal is to import the CSV into a database, you could connect to your database with entity framework. Import your rows into your...
  13. Herman

    What project are you working on now???

    Full-time developing customizations and business processes for an ERP customer. Have shipped 70ish projects for this customer since november last year, and it's still chugging along...
  14. Herman

    What are you listening to right now???

    Yeah it's awesome, but honestly all their albums are awesome. Flying Microtonal Banana was heavily influenced from Turkish Anatolian rock from the 70's. My favorite album is Polygondwanaland though, and on that one the theme is polyrhythmic prog rock. Close second is Murder Of The Universe...
  15. Herman

    What are you listening to right now???

    Have a go at that! King Gizzard & The Lizard Wizard is hands down the best and most prolific rock band of the last decade. 5 albums out just in 2017, 15 albums total since 2012. This video is a sample of a few of their albums: They span a wide variety of genres, so you can also get this from...
  16. Herman

    Visual Studio doesn't detect .NET framework. Only .NET Core.. Help?

    Actually, C# Desktop Development is no longer selected by default in VS2019 installer. If you fail to select it .NET Framework targets will not be available.
  17. Herman

    Need help writing a block of code with linq

    Something like this should work: var selected = states.Join(memorables, s => new { s.Month, s.Day }, m => new { m.Month, m.Day }, (s, m) => new MemorableD(m.Year, m.Month, m.Day, m.Event, s.Event));
  18. Herman

    Question How would you solve this problem?

    Have a look here: Coin problem - Wikipedia .
  19. Herman

    Question What can be the best tutorials about ASP.NET?

    To be fair I don't remember them being bad... I think there was a transitional period where it was hard to get the docs for the correct version of the framework, but Microsoft Docs has always been great!
  20. Herman

    Question how to ensure about sending multiple serial data from server to client

    I posted an example of proper multithreaded TCP server code not too long ago here: How to do non-blocking TCP comms? .
Back
Top Bottom