I installed Windows XP SP3 image on Virtual Box VM in my machine. Everything worked well in the installation but I was not able to connect to internet. In order to fix that I selected the following op...
We recently started using database project in our application. To get the updated stored procedures from database project to destination database we were using "Build" option. The issue with...
In this blog I will show you how to swap two integer variables. I will be using Interlocked.Exchange to do the same: using System; using System.Threading; namespace SampleConsoleApplication { class Pr...
I tried creating a database project todat in VS2012 but was encountered with the following error: Unable to open Database Project This version of SQL Server Data Tools is not compatible with the datab...
In this blog I will help you how to delete duplicate rows from a table where there is no primary key in the table. Below is the script to insert data: CREATE TABLE MyTable ( Col1 INT , Col2 VARCHAR(10...
If you are facing 404 error while accessing iso extension file this blog will help you. You need to add following code in your web.config: <remove fileExtension=".iso" /> &...
If you want to resize the hiberfil.sys on your machine running on Windows 7 you need to run following command: powercfg -h -size 50 Above 50 is the percentage by which you want to reduce
If you want to enable hibernation on your machine running on Windows 7 you need to run following command: powercfg -h on You can verify whether the above command was successfull or not by checking sta...
If you want to disable hibernation on your machine running on Windows 7 you need to run following command: powercfg -h off You can verify whether the above command was successfull or not by checking s...
In this blog I will show how to replace single backslash with double backslash in a string with REGEX. Let's say we have a string "This is \ test \ string" and we want to replace single ...
In this blog I will show how to replace uppercase letter with "underscore and the letter "in a string with REGEX. Let's say we have a string "ThisIsTestString" and we want to r...
In this blog I will show how to replace underscores with hyphens in a string with REGEX. Let's say we have a string "This_is_test_string" and we want to replace underscores with hyphens ...
In this blog I will show how to get number only from a string with REGEX. Let's say we have a string "Hello 123456789 user 456 welcome." and we want the output to be "123456789456&q...
In this blog I will show how to validate a string to allow alphanumeric characters only in a string with REGEX. Below is the sample code to do the same: using System; using System.Text.RegularExpressi...
In this blog I will show how to remove all non numeric characters from a string with REGEX. Let's say we have a string "(912)-555-7777" and remove all non numeric characters so that the ...
In this blog I will show how to remove all non alpha numeric characters from a string with REGEX. Let's say we have a string "Hello!@#$123456789~~-_user456welcome" and remove all non alp...
In this blog I will show how to reverse all numbers in string with REGEX. Let's say we have a string "Hello 123456789 user 456 welcome." and we want to reverse it like "Hello 987654...
I encountered a piece of code where regex replacement was done in the following way: Regex.Replace(@"\d+", m => new string(m.Value.Reverse().ToArray())); It was giving the following e...
In this blog I will show how to replace multiple spaces with a single space with REGEX. Let's say we have a string "a b c d e f g" and we want to replace multiple spaces with a single sp...
I was getting the folowing screen while loading IntelliJ IDEA editor: Plugin com.intellij failed to initialize and will be disabled: null The solution for this issue was to set the JAVA_HOME path in E...
In this blog I will show how to validate whether a string is a valid IP address not with REGEX. Below is the sample code to check the same: using System; using System.Text.RegularExpressions; namespac...
Let's say we have a string and we want to match that string not containing a word say alpha . I have used Regex class in order to do so
I encountered with a piece of code today where anchor tag was having label tag inside it like this: <a href="/targeturl" class="no-underline"> <label> D...