Surendra Sharma

Surendra Sharma

Search This Blog

Showing posts with label Tips. Show all posts
Showing posts with label Tips. Show all posts

Thursday, January 12, 2017

How to publish a single file in Visual Studio



I just learn a new secret of Visual Studio.

There are almost 10 projects in my single solution in Visual Studio. Every time if I make the changes in any file I have to build and publish it again to verify the changes on browser. If some code file is there than it’s understood that we have to build the solution and publish it. 

However if some static file is there like HTML, ASPX, XML, JS, CSS etc., still I was build the whole project and publish it where no code changes are involved. Ultimately to test the page I have to reload my web application which take enough time.

But Visual Studio provide a nice feature of publishing only a single file. This feature is very useful if file is static like HTML, aspx, XML, JS, CSS, image etc. You can also publish the code file as well.

You can use any of the mentioned way to use this feature

  • Just right click on file in Solution Explorer and select "Publish <FileName>".

  • Shortcut command is "Alt+; Alt+P".


Publish File from Solution Explorer
Publish File from Solution Explorer



  • Project Menu -> "Publish <FileName>".


Publish File from Project Menu
Publish File from Project Menu

It publish the single file within a fraction of second and now if you reload the page it will load quickly in browser.

I hope you like this hidden secret of Visual Studio. Stay tuned for more articles.

Please leave your comments or share this tip if it’s useful for you.

Sunday, August 28, 2016

Content migration guide for Sitecore


Content migration is itself a project within a project and luckily I was extensively involved on different projects where content migration is one of the most important story of the project.

In one of the Sitecore project, I developed lots of scripts to migrate over 500,000 records from different sources to Sitecore.

During these migration, I come across with different situations and found some most suitable way to deal with.

I tried to cover all such technics in this guide. Below are the key topics that I want to emphasized
  • Introduction
  • Questions for client
  • Data Mapping
  • Data Representation and Mapping
  • Source of Data
  • Data Migration Map
  • Why SQL Server
  • Guidelines for content migration resources and team
  • Images and Media
  • SITECORE ITEMS
  • Sitecore Fields
  • Migration Code
  • Log Files
  • Code Technique
  • Testing

I tried my best to include all the scenarios that are associated with content migration.

You can read and download this white paper from here:




Please leave your comments or share this guide if it’s useful for you.

Monday, August 1, 2016

How to monitor and generate report of different server activities



You need to monitor servers of your hosting environment. 

Especially in production environment you want to monitor website hosted server, database server, SOLR server, manogoDB server or any other server.

You may need to generate and mail daily utilization reports of these servers to client or technical team.

So what are the ways to monitor your server activities?

Solution: 

OpManager is great tool to monitor activities of your servers. There are lots of features provided by OpManager tool.

One such feature is to generate different type of reports like Daily, monthly Server Memory Utilization report etc.

This article covers step to generate different reports from OpManager

·         Login to system where OpManager is installed
·         Double click shortcut icon “ManageEngine OpManager” from Desktop or get it from Start menu
·         This open http://localhost:9000/ webpage in browser. In our case Opmanager is running as local site on port number 9000
·         Login to site
·         Click on Reports located at bottom left side of webpage as marked in red rectangle in below image
·         Opmanager provides different default report as per industry needs
·         Choose one of the report category like "Health and Performance" link as marked in red rectangle in below image
·         Mostly we need to generate and share report with client such as Devices by CPU utilization, Devices by Memory utilization, Devices by Disk utilization etc.
·         Click on any one of the available report type such as "Device by CPU utilization" link as marked in red rectangle in below image





·         Click on “Edit Report” button
·         You can choose different option from Edit Report window such as devices category, period, time window etc. Choose below option for generating monthly report





·         Click on Show Report button.
·         You can Export generated report to PDF, excel etc.
 
Please leave your comments or share this tip if it’s useful for you.