I was surprised by the fact that GCC does not consider the call to foo() in the following program ambiguous:
#include
struct B1 { bool foo(bool) { return true; } };
struct B2 { bool foo(bool) { return false; } };
struct C : public B1,…
Is there a way to list pipes used by a running linux process (e.g. given its pid or process name) and to determine their used capacity?
Something like:
lspipes -l -p pid
resulting in something like:
[rw] descriptor size name
where rw is the…
I have a worker role that I would like to get diagnoistics feedback on... after adding the appropriate connection string to the ServiceConfiguration.cscfg and the following…
I'm trying to log the number of open sockets in my C# server application.
Like the info you could get from "netstat -s":
TCP Statistics for IPv4
Active Opens = 22765
Passive Opens = 9316
I could…
What flag can we pass to Get-Content to display control characters such as \r\n or \n?
What I am trying to do, is to determine whether the line endings of a file are in the Unix or Dos style. I have tried simply running Get-Content, which doesn't…
In template programming, static_assert helps programmers to check constraint(s) on template arguments and generate human readable error messages on violation of constraint(s).
Consider this code,
template
void f(T)
{
…
I created a blank solution with a single Azure Worker Role. I enabled performance monitoring and diagnostics using the default settings.
When I run the app (which runs successfully) I try to look in the local development Azure Storage tables for the…
As a diagnostic, I want to display the number of cycles per second in my app. (Think frames-per-second in a first-person-shooter.)
But I don't want to display the most recent value, or the average since launch. What I want to calculate is the mean…
We have an ASP.NET 3.5 application that has been in production for over a year. Our last release was a couple of months ago. We use CSS for styling and application of background images to divs and such. The server is Windows 2003 with…
I am a mid end python developer at an animation studio, and have been presented with a unique diagnostics request ;
To assess what code gets used and what doesn't.
Within the sprawling disorganized structure of Python modules importing modules :
I…
Copy elision is a neat optimization technique and in some cases relying on copy elision can actually be faster than passing around references "by hand".
So, let's assume you have identified a critical code path where you rely on the fact that the…
I have a Windows Service written in C# which is running on a customer's server and seems to be working fine without any problems, but the CPU usage for this process is often much higher than I would expect. It is never over 50%, but is still a lot…
We started our project with dotnet template for Angular with server side rendering (JavaScriptServices).
We sometimes get timeouts on the server side rendering of Angular4 and there isn't much on the exception to help us diagnose the problem,…