Sql Server | Get host address of the client connecting to server
SELECT client_net_address, COUNT(*) FROM sys.dm_exec_connections GROUP BY client_net_address
SELECT client_net_address, COUNT(*) FROM sys.dm_exec_connections GROUP BY client_net_address
using (var netClient = new System.Net.Http.HttpClient()) { var response = netClient.GetAsync(“https://example.com”).Result; if (response.IsSuccessStatusCode) { var responseContent = response.Content; string responseAsString = responseContent.ReadAsStringAsync().Result; Console.WriteLine(responseAsString); } }
$mbox = imap_open(“{mail.example.com:143/novalidate-cert}”, “foo@example.com”, “password”) or die(“can’t connect: ” . imap_last_error()); $folders = imap_list($mbox, “{mail.example.com:143/novalidate-cert}”, “*”); if ($folders === false) { echo “Failed to list folders in mailbox”; } else { print_r($folders); } imap_close($mbox);
using System; public class Program { public static void Main() { var e0 = (Food)Enum.ToObject(typeof(Food), 0); Console.WriteLine(e0); // or simply var e2 = (Food)2; Console.WriteLine(e2); } public enum Food { Pizza, Pasta, Tofu } }
Dim AnHex As String = “FFFFFF” Dim MyInteger As Integer = CInt(“&H” & AnHex) Console.WriteLine(MyInteger)
We continue to work hard to get to the first stable release! – Download the list of broken links in CSV format – Bug fixes and other minor improvements. sitemap-generator.dotmaui.com
We continue to work hard to get to the first stable release! – Menu “My Sitemaps” revised – Improved the broken links section with full screen mode – Bug fixes and other minor improvements. Try…
We added three new options to the web tool and API: – Remove quotes around attributes when possible – Strip HTML comments – Remove all attributes with whitespace-only values Try it now! dotmaui.com/htmlminify api.dotmaui.com/htmlmin
Our dashboard is developed with Revel, a web framework for the Go language. When we have to restart the application in production, we run these two commands: kill `sudo lsof -t -i:9000` nohup revel run…
Useful function to return the first non-nothing value in a list