Tag: How to

C Program to check if a Number is Positive or Negative

Problem Write a program in C to check whether a input number is a positive or negative number. How to check if a number is positive or negative in C ? Output Abundantcode.com coding samples                                                  Enter a number: 7                                                      The entered number is a positive number.

How to Get the Desired Accuracy Level of Location using Geolocator in Windows Phone 8?

There are 3 different technologies that help the phone get the current location of the phone. These include Wifi, Cellular and A-GPS. Each one of these technologies has their own advantages and disadvantages in terms of the power consumption and the accuracy level. The Geolocator class allows the developers to specify at what level of accuracy or technology to be used to find the location…

Python Program to Check Armstrong Number

In this Python program, you’ll learn how to check if the given number is a Armstrong number or not and display it on the console. How to Check if the Given Number is a Armstrong Number or Not in Python? A number is said to be an Armstrong number of it is a positive number and if abc… = an + bn + cn +…

How to return the SHA1 hash value of a string in SQL Server ?

SQL Server provides a function HashBytes function that returns the SHA1 , MD2 , MD4 and few other hash value of the specified input. How to return the SHA1 hash value of a string in SQL Server ? Just pass the ‘SHA1’ as the first parameter and the input as second parameter value to the HashBytes function to get the SHA1 hash value.

Count the Occurrences of String within another String in C#

Do you want to find the number of occurrences of a string within a string in C#? This article will explain how to do it. How would you count occurrences of a string within a string (C#)? For example, assume that the main string is “Abundantcode is a programming, soucrecode, technology related website”. If we need to find the number of occurrences of the comma…

How to embed Quotes in a String in C# ?

You can embed Quotes within a string in C# by using the escape sequence character . Just prefix the quotes with a back slash (\). How to embed Quotes in a String in C# ? Below is a sample sourcecode demonstrating How to embed Quotes in a String in C# ?

How to Check if the table exists in SQL Server ?

Do you want to know if the table exists in a in SQL Server ? . Below is a sample query that lets you know if the table exists or not. How to Check if the table exists in SQL Server ? Assume that the table name is Employee , run the below query to know if the table exists in the SQL Server or…

Microsoft Band and Android(Java) – Connect to the Band

Below is the sample code snippet demonstrating how to connect to the first microsoft band that is paired using the BandInfo and BandClient object. How to Connect to the Microsoft Band from android application using Java ? How to get the list of paired bands from the android application using java.

How to use array Rank in C# ?

In C# , the Rank property of the array is is used to get the rank of the array. In simple terms , rank refers to the number of dimensions of the array. How to use array Rank in C# ? You can get the number of dimensions of the array using the Rank property of the array. For instance , the Rank property of…

SQL Server – Saving changes is not permitted. The changes you have made require the following tables to be dropped...

There are times when you get an error stating “Saving changes is not permitted. The changes you have made require the following tables to be dropped and re-created. You have either made changes to a table that can’t be re-created or enabled the option Prevent saving changes that require the table to be re-created.” You can easily resolve this issue by following the steps mentioned…

How to Derive a Class (Inheritance) in Javascript (WinJS) ?

If you want to derive a class from another class in Javascript when developing a Windows store app using WinJS library , you can use the WinJS.Class.derive method to do it. How to Derive a Class (Inheritance) in Javascript (WinJS) ? Below is a sample code snippet demonstrating how to derive a class in WinJS.

How to Set the Windows Phone 8 icons in Visual Studio 2012?

You can set the icons for your Windows Phone 8 app in Visual Studio 2012 using the WMAppManifest.xml manifest file. The Visual Studio 2012 includes a GUI editor for editing WMAppManifest.xml manifest file. How to Set the Windows Phone 8 icons in Visual Studio 2012? You can find the WMAppManifest.xml, under the properties node of the project in the Visual Studio solution explorer. Just double…

How to Declare Array of Objects in C# ?

Do you want to declare an array of objects in your C# application ? . Below is a sample code snippet that demonstrates how to declare an integer array in C#. How to Declare Array of Objects in C# ?

How to Enable All Constraints back in the Database in SQL Server ?

In one of the articles , we explained How to Disable All Constraints in the Database temporarily in SQL Server ? , let’s look at the option of how to enable back the constraints in the SQL Server Database. How to Enable All Constraints back in the Database in SQL Server ? Below is a sample query that enables all the constraints back to the…