Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Activity for Alexeiâ€
Type | On... | Excerpt | Status | Date |
---|---|---|---|---|
Edit | Post #286713 | Initial revision | — | over 2 years ago |
Answer | — |
A: How to migrate NLog configuration from XML file(s) to application settings (JSON)? FreeFormatter resource mentioned in the question is useful and I could use the output as a base for getting to a working configuration. All the changes were manually performed. []()- enable throw configuration exceptions and allow for internal log messages to be output in a file for understanding ... (more) |
— | over 2 years ago |
Edit | Post #286712 | Initial revision | — | over 2 years ago |
Question | — |
How to migrate NLog configuration from XML file(s) to application settings (JSON)? I have just created an ASP.NET Core 6 application and added NLog support for logging: ```c# NLogBuilder.ConfigureNLog("nlog.config").GetCurrentClassLogger() ``` However, this API is almost deprecated as the remarks says: > It is now recommended to use NLog.LogManager.Setup().LoadConfigura... (more) |
— | over 2 years ago |
Edit | Post #286696 | Nominated for promotion | — | over 2 years ago |
Edit | Post #286694 | Initial revision | — | over 2 years ago |
Answer | — |
A: How to generate lots of hyperlinks rather fast using ClosedXML library? One faster alternative is to use a formula to create the hyperlink. An example is provided below: ```c# public static IXLCell SetHyperLink(this IXLCell cell, string url, string text = "link") { if (string.IsNullOrWhiteSpace(url)) return cell; // ensure a valid hyperlink text string a... (more) |
— | over 2 years ago |
Edit | Post #286693 | Initial revision | — | over 2 years ago |
Question | — |
How to generate lots of hyperlinks rather fast using ClosedXML library? I am using ClosedXML library to generate an Excel containing thousands of hyperlinks using cell's `Hyperlink` property: ```c# cell.SetValue(text).Hyperlink = new XLHyperlink(url); ``` Such a call takes about 3ms which seems very fast, but this leads to exports taking up to one minute for larg... (more) |
— | over 2 years ago |
Edit | Post #286634 |
Post edited: fixed the title |
— | over 2 years ago |
Comment | Post #285148 |
I have rolled back to the last version that includes the code (not sure why the OP decided to remove the code though). (more) |
— | over 2 years ago |
Edit | Post #285148 |
Post edited: rolled back to a version that contains the code |
— | over 2 years ago |
Edit | Post #285298 |
Post edited: rollback to previous version |
— | over 2 years ago |
Comment | Post #286641 |
I have rolled back the question to its initial version and this answer is now obsolete. (more) |
— | over 2 years ago |
Edit | Post #285218 |
Post edited: rollback to the original content |
— | over 2 years ago |
Comment | Post #285222 |
I have rolled back the last edit because it removed all the meaningful information in the post. (more) |
— | over 2 years ago |
Edit | Post #285222 |
Post edited: rollback to a revision that actually contains meaningful information |
— | over 2 years ago |
Edit | Post #286573 | Nominated for promotion | — | over 2 years ago |
Edit | Post #286570 | Nominated for promotion | — | over 2 years ago |
Edit | Post #286578 | Nominated for promotion | — | over 2 years ago |
Edit | Post #286573 |
Post edited: added relevant tags |
— | over 2 years ago |
Edit | Post #286568 |
Post edited: not tested |
— | over 2 years ago |
Edit | Post #286568 |
Post edited: added more info |
— | over 2 years ago |
Edit | Post #286568 | Initial revision | — | over 2 years ago |
Answer | — |
A: Order a subcollection from linq If you are using .NET Core 5.0 or more you should be able to write something like the following (not tested): ```c# var data = context.TblOrder .OrderBy(o => o.OrderDate) .Select(o => new { Order = o, OrderLines = o.TblOrderLine.OrderBy(ol => ol.ProductName) ... (more) |
— | over 2 years ago |
Edit | Post #286550 |
Post edited: added relevant tag |
— | over 2 years ago |
Comment | Post #286520 |
@#8135n OK. This makes sense. I haven't worked with WPF / MVVM pattern for quite some time, so the following might not apply.
Normally, the UI (the grid in this case) should not directly work with database models as what you store is typically different from what you display and also due to a sep... (more) |
— | over 2 years ago |
Comment | Post #286520 |
What does `_context.TagType` contain when you are trying to save in `SaveAllTagTypes`? I assume it contains the initially loaded items, because [the documentation](https://docs.microsoft.com/en-us/dotnet/api/system.collections.objectmodel.observablecollection-1.-ctor?view=net-6.0#system-collections-o... (more) |
— | over 2 years ago |
Edit | Post #286511 |
Post edited: added relevant tag |
— | over 2 years ago |
Edit | Post #286480 | Nominated for promotion | — | over 2 years ago |
Comment | Post #286440 |
Offtopic/inflammatory comments removed (more) |
— | over 2 years ago |
Edit | Post #286444 | Initial revision | — | over 2 years ago |
Question | — |
Measuring the impact of using exceptions instead of return values in an ASP.NET Core application Context This Q&A from SO suggests that throwing exceptions is incredibly expensive when compared to returning values (return codes): > that with return codes instead of exceptions the same program runs less than one millisecond, which means exceptions are at least 30,000 times slower than retu... (more) |
— | over 2 years ago |
Edit | Post #286440 |
Post edited: added relevant tags + minor fixes |
— | over 2 years ago |
Edit | Post #286405 | Nominated for promotion | — | over 2 years ago |
Edit | Post #277428 |
Post edited: added another attempt |
— | over 2 years ago |
Edit | Post #277428 |
Post edited: removed app name |
— | over 2 years ago |
Comment | Post #286390 |
Strangely, we had two tags with the exact same name, so I have merged them. (more) |
— | over 2 years ago |
Edit | Post #286390 |
Post edited: merged the tags, so this issue is solved |
— | over 2 years ago |
Edit | Post #286372 |
Post edited: Replaced the title to match what is actually being asked |
— | over 2 years ago |
Comment | Post #286306 |
I closed the question because it is not clear what it is being asked. The title suggests a way to remove the pseudo elements, but a previous comment actually mentions removing regular text inside a DOM element. (more) |
— | over 2 years ago |
Edit | Post #286306 | Question closed | — | over 2 years ago |
Comment | Post #285801 |
Since the solution was to use the correct type of parenthesis, it is not particularly helpful for future readers. (more) |
— | over 2 years ago |
Edit | Post #285801 | Question closed | — | over 2 years ago |
Edit | Post #286353 |
Post edited: added relevant tag |
— | over 2 years ago |
Edit | Post #286345 |
Post edited: added relevant tag |
— | over 2 years ago |
Edit | Post #286349 |
Post edited: added relevant tags |
— | over 2 years ago |
Edit | Post #282685 | Question closed | — | over 2 years ago |
Edit | Post #286306 |
Post edited: |
— | over 2 years ago |
Comment | Post #286306 |
I think it makes sense to understand how the pseudo-elements are actually creating the trouble in your case and why you want them removed. I am not very knowledgeable in CSS, but I guess that such brute-force approaches might seriously mess the layout (i.e. the pseudo-elements are there for a reason)... (more) |
— | over 2 years ago |