Tag: How to
C Program to find if the input is a Armstrong Number or Not
Problem Write a program in C to find if a given number is Armstrong number or not. How to check if a number is a Armstrong number or not in C programming Language ? A given number is a Armstrong number of order n if abc… = an + bn + cn + … For example , 371 is a Armstrong number because the result…
How to find if 2 Objects are Equal in C#?
There are times when you need to determine if 2 objects are equal or not. In these cases, you could either override the Equals method or implement IEquatable interface. How to find if 2 Objects are Equal in C#? Below is a sample code snippet demonstrating the usage of Object.Equals method to find the equality of 2 objects.
Specify a port number when connecting to SQL Server in Management Studio
There are times when you want to connect to a SQL Server instance that is running on a different port number than default port (1433). How to specify a port number when connecting to a SQL Server instance in SQL Management Studio ? Just specify the SQL Server instance that you are connecting to along with the port number with comma as delimiter. For example…
How to Close a Windows Store App in Windows 8.1 ?
If you want to close the Windows Store App in Windows 8.1 by swiping down from the top of the screen to the bottom . How to Close a Windows Store App with a shortcut key ? You can close a Windows store app using the shortcut key Alt + F4
How to remove or replace array element in JavaScript ?
To remove or replace an element in an array in JavaScript , you can use the splice method as shown below. How to remove or replace array element in JavaScript ? To remove the array element , you can use the splice method and specify the index of the array to remove the array element. The second parameter determines the number of elements to remove….
Posting Data to a URL using WebClient in C#
Below is a sample code snippet demonstrating the usage of the WebClient to post data to the server in C#. How to Post data to a URL using WebClient in C# ?
How to mark a file as read-only from command line in Windows 10 ?
You can set a file to a read-only mode from the command line by using the command attrib and passing in the parameters like the read-only mode and the name of the file. The format of this command is as follows attrib +R <Name of the the file> How to mark a file as read-only from command line in Windows 10 ? For example ,…
How to append an array to another in JavaScript ?
In JavaScript , you may want to append one array to another array(s) to combine their elements resulting in to a single array. How to append an array to another in JavaScript ? You can use the concat method of JavaScript to achieve the same. Below is a sample code snippet demonstrating the usage of the concat method of array in JavaScript to combine multiple…
How to Enable or Disable Visual Styles in your VB.NET Winforms Application?
You can enable or Disable the Visual Styles in your VB.NET Winforms Application by following the below steps. How to Enable or Disable Visual Styles in your VB.NET Winforms Application? 1. Launch Visual Studio 2013 and Open your VB.NET Project. 2. Right Click on the project and open the Project Properties. 3. In the Project Properties Dialog, Select the “Application” menu in the left sidebar…
How to Disable All Constraints in the Database temporarily in SQL Server ?
There are times when you may want to disable all the constraints in the your SQL Server Database tables when importing the data from the external data source . How to Disable All Constraints in the Database temporarily in SQL Server ? Below is a sample query that lets you to quickly disable the constraints like foreign keys , unique keys etc for the database…
How to Launch the Device Wifi Settings App from the Windows Phone 8 App?
Below is a sample code snippet that demonstrated how the developers can use the ConnectionSettingsTask launcher to launch the windows phone device’s Wifi settings app from the Windows Phone 8 App. How to Launch the Device Wifi Settings App from the Windows Phone 8 App?
C Program to calculate the power of a number
Problem Write a program in C to calculate and display the power of a number. How to calculate the power of a number in C ? Output Abundantcode.com coding sample Enter the base number: 2 Enter an exponent: 3 Answer = 6