Convert a date object to a string in JavaScript

If you want to convert a date object to a string in JavaScript and you use jQuery, then you can use the function $.datepicker.formatDate.   The following QUnit test will succeed: /// <reference path="Scripts/qunit.js"/> /// <reference path="Scripts/jquery-1.8.3.js"/> /// <reference path="Scripts/jquery-ui-1.9.2.js"/> "use strict"; test(‘JsTest’, function () { var input = new …

Convert string to date in JavaScript

If you want to convert a string to a date object in JavaScript and you use jQuery, then you can use the function $.datepicker.parseDate.   The following QUnit test will succeed: /// <reference path="Scripts/qunit.js"/> /// <reference path="Scripts/jquery-1.8.3.js"/> /// <reference path="Scripts/jquery-ui-1.9.2.js"/> "use strict"; test(‘JsTest’, function () { var text = ‘2012-11-28’; …

Simple way for converting "Rijksdriehoek" coordinates to lat and long (WGS84) in C#

In the Netherlands "Rijksdriehoek" coordinates are used to show the exact position of an object on a chart. To convert "Rijksdriehoek" coordinates to lat and long coordinates in C# use the following class:   Note This code is base on the information found in  http://www.dekoepel.nl/pdf/Transformatieformules.pdf using System; using System.Collections.Generic; using …

How to start a process / application on an other computer from C#, by using PowerShell remoting

  You van execute a process on an other machine from C#, by using the code below:   Example for calling the function var rc = new RemotingComponent(null); rc.RunRemoteProcess ( @"MyMachine1", "MyMachine1\Administrator", "MyPassword1", @"C:\Windows\System32\notepad.exe", string.Empty ); C# class using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Management.Automation; using System.Management.Automation.Runspaces; …

How to connect Microsoft Visio 2013 to a Microsoft SQL Server LocalDB instance

If you connect Microsoft Visio 2013 to a Microsoft SQL Server LocalDb instance by using the standard (localdb)\V11.0 instance name, you might get the error: [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied.     To fix this error use the following instance name: np:\\.\pipe\LOCALDB#92FE49CE\tsql\query The number in bold …