How do I get current datetime on the Windows command line, in a suitable format for using in a filen

How do I get current datetime on the Windows command line, in a suitable format for using in a filen

Update: Now that it's 2016 I'd use PowerShell for this unless there's a really compelling backwards-compatible reason for it, particularly because of the regional settings issue with using date. See @npocmaka's https://stackoverflow.com/a/1

Is it correct to use SignalR for desktop applications?

Is it correct to use SignalR for desktop applications?

Is SignalR suitable for windows desktop applications (winforms/wpf)?What are the advantages and disadvantages using SignalR with windows desktop applications?Are there any performance considerations?I want to make real-time connections betw

Error trying to run mstest on jenkins

Error trying to run mstest on jenkins

I´m trying to configure MSTest build plugin on jenkins, but I´m getting the following error:Path To MSTest.exe: mstest.exeResult file was not found so no action has been taken. file:/C:/Program%20Files%20(x86)/Jenkins/jobs/SoftwrenchvNext/w

What is the default buffer size for StreamWriter

What is the default buffer size for StreamWriter

For the public StreamWriter(Stream stream) constructor, MSDN says Initializes a new instance of the StreamWriter class for the specified stream by using UTF-8 encoding and the default buffer size.I want to use one of the other constructo

JPA concat operator

JPA concat operator

Is there a JPA concat operator for string concatenation?I know there is a JPA CONCAT function, however its ugly to use for concatenating multiple strings.CONCAT(CONCAT(CONCAT(cola,colb),colc),cold)Vendors like Oracle offer || some other lik

Where does Console.WriteLine go in Debug?

Where does Console.WriteLine go in Debug?

I found this question, but what I want to know is different - does the output from Console.WriteLine go anywhere when debugging? I know that for it to go to the output window I should should Debug.WriteLine() or other methods, but where doe

How do I get the Window object from the Document object?

How do I get the Window object from the Document object?

I can get window.document but how can I get document.window? I need to know how to do it in all browsers. 1:The Window object is the top level object in the JavaScript hierarchy, so just refer to it as windowEdit: Original answer before

Creating dump file at the moment of access violation

Creating dump file at the moment of access violation

I would like to create process dump file at the moment when access violation that will not be handled occurred.Currently, I have registered mine, unhandled exception callback with:SetUnhandledExceptionFilter(CustomUnhandledExceptionFilter);

How to consume third party https wsdl web service in c#

How to consume third party https wsdl web service in c#

In SoapUI tool I've configured .Jks file with Outgoing WS-Security Configurations Signature is BinarySecurityToken and algorithm is CanonicalizationMethod and SignatureMethod it is working perfectly.Now I try to consume from C# code as belo

Changing SQL Server settings programmatically

Changing SQL Server settings programmatically

I request you to read my question carefully. You might know when you install VS2005/2008 with SQL Server Express edition, the SQL Server operates in Windows authentication mode by default. You can use the SQL Server Management Studio to cha

How can I know a dll is not a debug build

How can I know a dll is not a debug build

How do i know for sure that my production server uses release build dll's. Is there a way to find that info inside dll? Duplicate of: How to tell if .net app was compiled in DEBUG or RELEASE mode?How to check if DLL is debug-compiled 1:I

Decode CDATA section in C#

Decode CDATA section in C#

I have a bit of XML as follows: I'm accessing it using curXmlNode.SelectSingleNode("description").InnerText but the value returns \r\n This is a "description"\r\n that I have formatted instead of This is a "description" tha

App Insights: Disable SQL Dependency telemetry

App Insights: Disable SQL Dependency telemetry

I'm using Azure Application Insights for a website (Azure App Service).On that I'm using a clustered Umbraco setup and hangfire. These two alone keep hitting the database every minute and are flooding my 'App Insights'.So my question is, ho

Retrieve MethodInfo of a F# function

Retrieve MethodInfo of a F# function

I would like to write a function that takes a function f as an argument and returns the System.Reflection.MethodInfo associated to f.I'm not quite sure if it is feasible or not. 1:So, I finally found a solution. Very hacky, but hey! It w

npm install jsdom error on windows?

npm install jsdom error on windows?

I have installed nodejs on my windows pc. And it was working fine. But when I tried to install jsdom using "npm install jsdom" I was prompoted by this error. node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\....\node_module

What is the purpose of 'var'? [duplicate]

What is the purpose of 'var'? [duplicate]

Possible Duplicate: Whats the point of the var keyword? I'm not asking how it works. I am not asking if it affects performance. I already know those answers.I want to know what inspired the MS C# team to add it to the language in the fi

How to get a HWND handle out of a System.Windows.Forms.Form

How to get a HWND handle out of a System.Windows.Forms.Form

Given the formSystem.Windows.Forms::Form Form1;and the window handleHWND hWnd;How can I set hWnd to the Handle property of Form1 that does truly exist as a public property that "Gets the window handle that the control is bound to. (Inherite

How can I prevent a third party library from displaying a MessageBox?

How can I prevent a third party library from displaying a MessageBox?

I am integrating a third party C-based SDK into my .NET application. The application will run as a Windows service on a server, so it should not interact with the user in any way.Unfortunately, in certain error conditions it insists on cal

Get Entity Framework 6 use NOLOCK in its underneath SELECT statements

Get Entity Framework 6 use NOLOCK in its underneath SELECT statements

I am using Entity Framework 6 in an MVC 5 project. As you're aware of, SELECT queries in SQL Server perform faster and more efficient if we use WITH (NOLOCK) in them. I checked out a few SQL SELECT statements generated by Entity Framework 6

Generating PDF files from .NET by using standard .NET GDI printing classes

Generating PDF files from .NET by using standard .NET GDI printing classes

I'm looking for a way to generate PDF files using the standard PrintDocument and Graphics (GDI) classes in .NET. As far as I know, the only way to do that is by printing to a PDF printer.The problem is that a PDF printer driver always asks

Microsoft CCI - resources, references for writing compilers

Microsoft CCI - resources, references for writing compilers

Some time ago, I was working on compiler, I've used System.Reflection to generate code (IL) from my AST. Now, I've an idea for another compiler that I'd like to work on (it will be another pet project, nothing that will be used in productio

SQLite Select data from multiple rows returned as one row

SQLite Select data from multiple rows returned as one row

I would like to know whether it is possible to use a SELECT statement in SQLite to merge the data from two rows into one, similar to how is suggested in the SQL Server forum below. Consider the scenario below which is based on SQL Server (

Requirements for target application for Visual Studio 11's Graphics Debugger

Requirements for target application for Visual Studio 11's Graphics Debugger

I was super happy when the "Graphics Debugger" feature was announced for Visual Studio 11, I immediately attempted to get it working on various projects I had, unfortunately I've only managed to get it working for Windows 8 Metro applicatio

EntityFramework Commands in ASP.Net 5 Class Library Package?

EntityFramework Commands in ASP.Net 5 Class Library Package?

I am trying to develop my first ASP.Net web application and in my solution I have two projects. A Web Application and Class Library (Package). When I build the ASP.Net 4.5 version of this application I put my Entity Framework 6 entities int

save images in webbrowser control without redownloading them from the internet

save images in webbrowser control without redownloading them from the internet

Is it possible to save images in a webbroswer control directly to hard disk, without needing to download them again from the internet?Let's say I navigate to a website that has 15 images. They are all viewed in my webbrowser, but how can I