Here you can find wide variety of things about me. A small description about me, a computer programming obsessed guy thinking one day would come up like gates.
July 6, 2014
Windows 2012 installation issue in VM player
The error will tell "Microsfoft Terms not able find..." and installation can not continue.
Follow below steps:
1. When you create VM by clicking on "New VM" option in player., Uncheck the install OS from drive or USB option and select install OS later option.
2. After VM is created with specified Hardware configuration, configure CD/DVD drive to your OS media and start the installation.
3. You can see, OS gets installed with out any problem. It is a know bug in VM Player
Sharepoint 2013 Installation
- Install .NET 3.5 SP1 and .NET Framework 4.0.
- Configure Application Server Role and Web server role in the Windows.
- Launch Server Manager
- Click on “Add roles and features”.
- On the “Before you begin” page, click “Next”.
- Select “Role based or feature based installation” and click “Next”.
- If it isn’t already selected, select “Select a server from the server pool”, and the server that you are currently working on. Then click “Next”.
- On the “Select server roles” page, check “Application Server”, “Web Server (IIS)”, and (EDIT:) “IIS 6 Management Console” (under Web Server (IIS)->Management Tools->IIS 6 Management Compatibility->IIS 6 Management Console.). NOTE: When you check “Web Server (IIS)” or “IIS 6 Management Console”, another dialog will pop up, asking “Add features that are required for
?” Click on the “Add Features” button here. This will return you to the “Select Server Roles” page. After adding all 3 roles, click “Next”. - On the “Select features” page, expand “.NET Framework 4.5 Features” group by clicking on it. In here, check “ASP.NET 4.5″.
- On the same page, check “Windows Identity Foundation 3.5″. Click “Next”.
- On the “Application Server” page, click “Next”.
- On the “Select role services” page, check “Web Server (IIS) Support” and click “Next”.
- When the “Add features that are required for Web Server (IIS) Support?” dialog pops up, click on “Add Features”.
- Click “Next” again to go to the next page.
- From the “Web Server Role” page, click “Next”.
- From “Select role services”, click “Next”.
- On the “Confirm installation selections” page, I suggest that you check “Restart the destination server automatically if required”. (You’re going to need to reboot eventually anyway.)
- Click “Install”.
- Wait for feature installation to complete. When it does, you can click “close”. If the server doesn’t restart automatically, reboot it.
- Install Windows Updates (at least recommended) and restart the server.
- Download all following Prerequisite and keep it in a folder
- Microsoft .NET Framework 4.5
- Windows Management Framework 3.0 (CTP2)
- Microsoft SQL Server 2008 r2 Native Client
- Windows Identity Foundation (KB974405)
- Microsoft Sync Framework Runtime v1.0 SP1 (x64)
- Windows Server AppFabric
- Windows Identity Extensions
- Microsoft Information Protection and Control Client
- Microsoft WCF Data Services 5.0
- CU Package 1 for Microsoft AppFabric 1.1 for Windows Server (KB2671763)
- You can install all of the above except item # 6 and #10 in the prerequisite list by clicking on same.
- Once you have installed, mount your Sharepoint 2013 image (.ISO)
- Once you have mounted it, you can see "prerequisiteinstaller.exe" in the root folder of Sharepoint 2013 mounted drive.
- Run "Powershell" console.
- Type following command to install and start product configuration in sharepoint 2013.
- your prompt(SharePoint image location)> Prerequisiteinstaller.exe /AppFabric:"
\setup.exe" /KB2671763:" \AppFabric1.1-RTM-KB2671763-x64-ENU.exe" - You may get error some times in that case just prefix the command with "./"
- ./Prerequisiteinstaller.exe /AppFabric:"
\setup.exe" /KB2671763:" \AppFabric1.1-RTM-KB2671763-x64-ENU.exe"
January 17, 2014
Enterprise Library 6 Changes - Exception Handling and Logging Application blocks configuration
For Logging:
common approach to create a log entry using the following code-
LogEntry entry = new LogEntry();
entry.Message = "I am logging";
Logger.Write(entry);
works fine with Enterprise Library 5.0. But in 6.0 it gives the error "The LogWriter has not been set for the Logger static class. Set it invoking the Logger.SetLogWriter method"
Following snippet will fix the issue
IConfigurationSource configurationSource = ConfigurationSourceFactory.Create();
LogWriterFactory logWriterFactory = new LogWriterFactory(configurationSource);
Logger.SetLogWriter(logWriterFactory.Create());
LogEntry entry = new LogEntry();
entry.Message = "I am logging";
Logger.Write(entry)
For Exception Handling
public static bool HandleException(Exception exceptionToHandle)
{
IConfigurationSource config = ConfigurationSourceFactory.Create();
ExceptionPolicyFactory factory = new ExceptionPolicyFactory(config);
ExceptionPolicy.SetExceptionManager(factory.CreateManager());
return ExceptionPolicy.HandleException(exceptionToHandle,
"Policy");
}
Don't forget to add reference to "System.Configuration" assembly to your project, else you will get error and add it in the "using" list.
June 8, 2011
Some useful SQL Queries on Date functions
select DATEADD(mm, DATEDIFF(mm,0,getdate()), 0)
First Day of Year
select DATEADD(yy, DATEDIFF(yy,0,getdate()), 0)
First Day of the Quarter
select DATEADD(qq, DATEDIFF(qq,0,getdate()), 0)
Last day of Prior month
select dateadd(ms,-3,DATEADD(mm, DATEDIFF(mm,0,getdate() ), 0))
Last Day of Prior Year
select dateadd(ms,-3,DATEADD(yy, DATEDIFF(yy,0,getdate() ), 0))
Last day of current month
select dateadd(ms,-3,DATEADD(mm, DATEDIFF(m,0,getdate() )+1, 0))
Last Day of Current Year
select dateadd(ms,-3,DATEADD(yy, DATEDIFF(yy,0,getdate() )+1, 0))
January 10, 2011
Web Application Performance Best Practices
§Appropriate usage of Caching
§Minimize HTTP Requests
§Minification
§Removed unwanted HTML / JS / CSS
§Remove White Spaces
§Place CSS at Top of the page
§Move JS reference to the bottom of the page
§Reduce Image Size
§Cache Static content (Images / CSS / JS)
§Enable HTTP Compression
§Remove Duplicate Scripts
•Use a Content Delivery Network
•Add an Expires or a Cache-Control Header
•Avoid CSS Expressions
•Make JavaScript and CSS External
•Remove Duplicate Scripts
•Don’t scale images in HTML
•Flush the Buffer Early
•Reduce the Number of DOM Elements
•Minimize the Number of iframes
•No 404s
•Minimize DOM Access
•Optimize CSS Sprites
•Keep Components under 25K
Analysis Services 101
1. Facts(Measures) is a summable numeric value
2. Only events tracking in Fact table known as fasctless fact tables, in that case add column with value 1 to track them.
3. Grain is the lowest possible level of information in fact, make it as lowest as possible. Atomic level.
4. Facts are verb in Business process where as Dimesnions are nouns.
5. Dimension shared across more than 1 business process is known as Conformed Dimension
6. Surrogate keys (Meaningless , non-natural, artificial, ) is int value associayrf with each rown in dimesnion
7. Dimensions with Changeable attribute is called Slowly Changing Dimesnions (SCDs)
Type 1 SCDs overwrite old value
Type 2 SCDs have new row for every new change
Type 3 SCDs provide option of columns (not commonly followed and not scalable)
8. Data Dimension classic example for role Playing Dimension... better to have surrogate keys in year-month0date format since 20050221(would help for partitioning)
9.Dimension that doesn't have attributes are known as Degenerated Dimensions (e.g TransactionID)
10.Discourage Snowflake schema, Analysis 2000 has little inclination towards it but not 2005
11. Bridge table required when we have many-many dimensions, called Intermediate Fact Tables in Analysis Services 2005
12. Fact Table types, Periodic Snapshot, transaction and accumulating snapshot
DB Normalization in simple
First Normal Form (1NF)
- Eliminate duplicative columns from the same table.
- Create separate tables for each group of related data and identify each row with a unique column or set of columns (the primary key).
Second Normal Form (2NF)
- Meet all the requirements of the first normal form.
- Remove subsets of data that apply to multiple rows of a table and place them in separate tables. Create relationships between these new tables and their predecessors through the use of foreign keys.
Third Normal Form (3NF)
- Meet all the requirements of the second normal form.
- Remove columns that are not dependent upon the primary key.
Fourth Normal Form (4NF)
- Meet all the requirements of the third normal form.
- A relation is in 4NF if it has no multi-valued dependencies.
