by admin | Apr 11, 2019 | C# .Net
[:en]Useful snippet for adding a placeholder text feature to a common Windows Forms TextBox like you might know it from HTML’s <input> tag. Add e.g. to your ExtensionMethods: private const int EM_SETCUEBANNER = 0x1501; [DllImport(“user32.dll”,...
by admin | Feb 22, 2019 | C# .Net
[:en]Goal We want to include an unmanaged DLL file to our VS project which produces a NuGET .nupkg output. We are using .NET Framework v4.6.1 in this case (should be equal with similar versions). The unmanaged file should be included within the generated .nupkg...
by admin | Feb 3, 2019 | Administration, Hardware
[:en]As I described in a previous post, Dell’s 1U server fans are made to be efficient and definitely not to be silent. You can try to decrease the RPM to 1%, but they remain to be quite loud. Because I use the R340 in a quiet office and did not get useful...
by admin | Jan 17, 2019 | Administration
[:en]Dell servers in general are optimized for high performance and not to be quiet. However, in silent office environments, the fan noise can be annoying, especially the ones in 1U cases. Even if you do not need the server’s full power all the time, the fans...
by admin | Dec 24, 2018 | C# .Net
[:en]Released a tool for .NET Core which optimizes the default output of .NET’s “DB First” entity class file generator. It offers a more flexible re-generated DbContext.cs file and you can simply append it to your existing DB scaffolding command....
by admin | Dec 6, 2018 | C# .Net, MySQL, Software
[:en]AutoMapper is not only a useful tool for mapping e.g. DB model classes to flatter ViewModels, it can also simplify and optimize SQL queries / expressions generated by LINQ. You can get it via NuGet for any .NET framework type. Example Let’s suppose we have...
by admin | Dec 6, 2018 | C# .Net, Software
[:en]Keeping .NET projects up to date is simple in general, but when it comes to details of huge (and old) projects, it can be challenging. In this case, I created a .NET project with MySQL DB about 10 years ago, using mainly DataSets. They were quite easy to handle...
by admin | Nov 14, 2018 | C# .Net
[:en]By default, you may install Accord.NET (powerful imagin/video/audio/machine learning framework) via NuGET and everything works fine on your VS development station. But after deploying your project via ClickOnce, you get a FileNotFoundException (e.g....
by admin | Oct 23, 2018 | C# .Net
[:en]Taking the first steps with .NET XDocument objects, you might encounter everything you try to select from the XML will be NULL. In this case you have to take a look at the namespaces. Methods like Descendants() seem to always need the exact namespace written...
by admin | Oct 23, 2018 | C# .Net
[:en]By default, returning a binary file via a Controller’s method is quite simple, like: [Route(“Dynamic/{token}”)] public IActionResult Dynamic(String token) { var item = cache.Where(o => o.Token == token).FirstOrDefault(); //jpg, png if...