VB.NET – Trim all rows in a string

Dim my_string As String = vbTab & “row1 ” & vbNewLine & “” & vbTab & ” row2 ” Dim rows As String() = my_string.Split(vbNewLine) Dim text As StringBuilder = New StringBuilder For Each row…

Restrict access to Tomcat 9 manager

To prevent access to the Tomcat 9 Manager to all IPs except those authorized, it is necessary to configure the file context.xml of the manager application. The file should be found in the following path:…

Minify JavaScript with C# and .Maui APIs

using System; public class Program { public static void Main() { var request = (System.Net.HttpWebRequest) System.Net.WebRequest.Create(“https://api.dotmaui.com/client/1.0/jsmin/”); var postData = “apikey=YOUR_API_KEY”; postData += “&url=https://code.jquery.com/jquery-3.4.1.js”; postData += “&asciionly=false”; var data = System.Text.Encoding.ASCII.GetBytes(postData); request.Method = “POST”; request.ContentType =…