How to convert list into a string in C#

1. Creating a list: var list1 = new List(); 2. Adding values to the list: foreach (int value in Enumerable.Range(1, 10)) { var item = value + 100; list1.Add(item); } 3. Converting list into a string: string msg = string.Join(“,”, ohlc.ToArray());

Why Linux is Better than Windows for Web Hosting?

1. Linux is more stable and secure than Windows If you’re a Windows user thinking about switching to Linux, you may be worried about security issues. However, the Linux operating system is actually more stable and secure than Windows. In fact, the National Institute of Standards and Technology (NIST) conducted a study on the security … Read more

Windows Server 2019 Datacenter Virtual Machine Activation Guide

Install Windows Server from the DVD or from .iso file downloaded from here Start Power Shell as administrator. Right click on Start (Windows) button in the bottom-left corner, then click “Windows PowerShell (Admin) In PowerShell type with your Activation key: slmgr.vbs /ipk *****-*****-*****-*****-***** Press Enter and restart computer Now you are ready to install HyperV … Read more

TypeError: ‘int’ object is not iterable

For all noobs like me. If you get this error, you most probably doing one stupid thing like I did: where y2.shape[0] is just an integer. Remember, we can iterate only through lists or other sequences. When we would like to repeat a certain action X number of times we should do the following: If … Read more