Skip to main content

Posts

Showing posts from April, 2010

Google Search

Custom Search

Live Search

Yahoo Search


Search the web Search this site

Windows XP Mode in Windows 7 – Knowing, Installing and Using

There is a cool feature provided by Microsoft for Windows 7 named Windows XP Mode. Simply this is an improved virtual machine which you can use to install applications that are not compatible with Windows 7. Some advantages of this over Virtual PC are,Use of virtually installed applications are faster and easy. Virtual applications are performing faster. Your Windows 7 start menu can be used to access all the applications that are installed on Windows XP Mode. No need to start the virtual machine your self. Application is run in normal Windows 7 not in another virtual environment. Copy Paste is supported between applications without needing to install any other software addons. To setup Windows XP Mode you need to download and install Windows XP Mode from Microsoft site. You can use the following link for that.http://www.microsoft.com/windows/virtual-pc/download.aspxThere you need to download and install,Windows XP Mode (WXPM) Windows Virtual PC WXPM Update Note - If you have installe…

Windows Update Error

Today I faced an error when trying to install few updates for Windows. The message Windows was showing was “Windows update encountered an unknown error.”. So it was not helpful in resolving the issue.This is happening due to either update not getting downloaded properly, getting corrupt while downloading, space issues in your hard disk, errors while applying updates, etc.To my satisfaction one thing I did, fixed the issue. If you are also getting similar error I recommend you to first browse to your SoftwareDistribution folder inside Windows installation folder. For example I found it in “C:\Windows\SoftwareDistribution”.Then delete all the folders in the folder (make sure the Windows Update is closed before doing this) and restart your computer.After making sure your Windows installation partition is having enough free space (about 1 GB) try running Windows Update again. This time the updates will get installed successfully.

Error Installing Windows 7

Recently I tried installing Windows 7 64 bit version in to my HP Pavilion laptop, and I continuously got a problem while installing.Installer was generating a blue screen with a message Page_Fault_in_NonPaged_Area referring to the file “wimfsf.sys” after coping files and showing the new Windows logo for about 10 seconds.Since it is mentioning about a page fault and also I am trying with a 64 bit version of Windows I thought this is due to a problem related to hardware of my laptop, so I tried many alterations which included things like, flashing BIOS to various versions including new and old, plugging memory in different ways, installing other OSs to try setup Windows from within them, but nothing helped me to sort the issue except replacing the DVD.Yes indeed, it was an issue with the installation media (DVD), if you also get a similar error when installing Windows 7, I suggest you to first try installing with a different media.If you still get an error then try running Windows 7 Upg…

SQL Server Reporting Services Error - The report server cannot open a connection to the report server database. A connection to the database is required for all requests and processing. (rsReportServerDatabaseUnavailable)

Recently in one of my virtual servers I got the above error when trying to open the SQL Server Reporting Services (SSRS).If this is happening to you I recommend checking the following things in your server.1. Remote Connections in SQL Server.Go to Start –> All Programs –> Microsoft SQL Server 200x –> Configuration Tools and open SQL Server Configuration Manager.Now check whether the TCP/IP and Named Pipes are enabled in the 3 Protocol sections.If they are disabled then enable them then check whether the remote connections are enabled using the SQL Server Management Studio by right clicking on the SQL Server (Parent node in the Object Explorer) and selecting properties.Then go to the Connections and make sure that the Allow remote connections to this server checkbox is checked.Then restart the SQL Server Service using the SQL Server Services section in the SQL Server Configuration Manager or by going to the machine services by Start –> Administrative Tools –> Services.2.…

.Net Nullable Types

A variable of a nullable type can be used to store the normal range of values allowed by the underlying data type plus the Null. Nullable types are instances of System.Nullable.Since reference types already supports Null, nullable types represent value type variables which supports null.For example Nullable<bool> (or spoken like nullable of bool) can be used to store true, false and null.There are two ways to declare a nullable variable.Method 1


int? i; // Declaring
i = null; // Initializing

int? i = 4; // Declariong and initializing



Method 2


Nullable<int> a; // Declaring
a = 4; // Initializing

Nullable<int> a = null; // Declariong and initializing



As you see above assigning values to a nullable is same as for a normal variable. But when retrieving the value you need to be little careful.Method 1 – Using GetValueOrDefaultGetValueOrDefault property is available for nullable variables. If the variable is null it will get the default value for the type otherwise the actual va…

Features of Search Engines

How many of you know that common and popular search engines like Google and Bing are providing many other functionalities than searching?Yes it is true there are many functionalities within them that most of us don’t know.Following are some features, you can try these out by typing the italic text in your favorite search engine.Finding the date and the time of a place. – “Time Sri Lanka”, “time Melbourne” Checking spelling of words. – “Cheking”, ”mathmatics”Finding results of arithmetic. – “(25*34)+78”, “2**5”Finding the weather if a place. – “Weather Colombo”, “weather Changi”Finding the populations of countries or popular cities. – “Population UK”, “population Sri Lanka”Converting units. – “12.5km in Meters”, “3km in inches”Stock details. – “MSFT”, “AAPL”Find similar word (Synonyms). – “~Cooking”, “~hot drinks”Finding currency values. – “1 GBP in AUD”, “89.34 AUD in USD”Finding maps. – “New York Map”, “Sydney map”Finding definitions of words. – “Define Computer”, “define language”Ot…

Business Data Catalog - BDC

How to Read and Write Text

Reading and writing to text files had been made easy by .Net.Following code will create a text file and insert 2 lines to it and will then read it and display.



// System.IO is required for file handling.using System.IO;







// Creating a stream writer object. // @ is used before the string to avoid the string getting broken by the /.StreamWriter stWriter = newStreamWriter(@"C:\Backup\File.txt");// Writing into the file. stWriter.Write("It is now "); stWriter.WriteLine(DateTime.Now); stWriter.WriteLine("The End");// Closing the file. stWriter.Close();// Reading the file.// Checking the availability of the file.if (File.Exists(@"C:\Backup\File.txt")) {// Without using the @, \\ also can be used to represent \ inside of a string.using (StreamReader stReader = File.OpenText("C:\\Backup\\File.txt"))     {// Temporary variable.string str = "";while ((str = stReader.ReadLine()) != null)         {// Assigning to a label.             label1…