Tag: How to
How to find all instances of a pattern in JavaScript ?
To find out out all the instances of a pattern in JavaScript , you can use the regular expression as showb below. How to find all instances of a pattern in JavaScript ?
How to Launch the Email and Accounts Settings App using URI Scheme in Windows Phone 8?
Below is a sample code snippet demonstrating how launch the Email and Accounts Settings App via the URI Scheme and LaunchUriAsync method in Windows Phone using C#. How to Launch the Email and Accounts Settings App using URI Scheme in Windows Phone 8?
How to send email in Windows Phone 8 Application Programatically using C#?
The Windows Phone 8 SDK provides the EmailComposeTask which can be used to send email in Windows Phone 8 Programatically. The EmailComposeTask launches the Email Compose screen which lets the user to verify the email content and tap on the “send” button to send email. How to send email in Windows Phone 8 Application Programatically using C#? Below is a sample code snippet that demonstrates…
How to escape a single quote in SQL Server ?
You can escape a single quote in your T-SQL query in SQL Server by simply doubling them. Here’s a simple example that demonstrates how the single quote ie escaped in SQL Server. How to escape a single quote in SQL Server ?
How to merge two lists using LINQ’s Union in C#?
Below is a sample code snippet demonstrating in simple steps on how to merge two lists using LINQ’s Union extension method in C#? How to merge two lists using LINQ’s Union in C#?
How to Remove Duplicates and Get Distinct records from List using LINQ?
Below is a sample source code demonstrating on how to remove duplicates and get distinct records in List using LINQ and C#?
The Windows Phone Emulator wasn’t able to ensure the virtual machine was running
Today , I encountered the below error when trying to run my windows phone project after upgrading my system from Windows 8 to Windows 8.1 The Error Message was “The Windows Phone Emulator wasn’t able to ensure the virtual machine was running: Something happened while starting a virtual machine:”Emulator WVGA.<Name>” could not initialize(Virtual machine ID <ID>) Not enough memory in the system to start the…
C# Program to display "Hello, World!"
Problem Statement Write a program in Visual C# to print Hello World in the console Window. How to display Hello World in C# ? Output Hello, World!
Java – How to Check if a string is a valid number?
Problem statement You need to check if a input string contain a valid number or not. Solution Use the appropriate wrapper class for converting the string to numeric formats. For example Double to convert string to double as shown below. When the input is a invalid number , the NumberFormatException is caused which needs to be handled by the developers.
How to create a new Windows Phone app to Connect to Mobile Services in Windows Azure?
This article will explain how the developers can create a new windows phone app which connects to the Windows Azure Mobile Services. How to create a new Windows Phone app to Connect to Mobile Services in Windows Azure? 1. Create a Windows Azure Mobile Services as described in the article How to create a new Windows Azure Mobile Service? 2. Select the created mobile service…
Java – How to parse a string to Boolean object in Java ?
Problem Statement You need to parse the string value to the Boolean object in your Java program. Solution Use the valueOf static method defined in the Boolean class to parse the string value and convert it to the Boolean object in Java.
How to know what toolbar does in Microsoft PowerPoint 2013?
If you want to know what a toolbar does in Microsoft PowerPoint 2013, simply mouse over or point your point on the toolbar, a tooltip will pop up and displays the necessary information on what exactly the toolbar does. How to know what toolbar does in Microsoft PowerPoint 2013?