- Download FireFox 3
- Download FireBug Add-in
- Open firefox, Start > Run > Firefox
- Open web site by typing URL
- Right click on page and click “inspect element”
- Refer below two screen shots
Dec 23, 2008
FireBug Developer tool Tip
Launching Visual Studio 2005/2008 faster
Category: visual studio
Nov 3, 2008
Chrome at its best
Category: google
Oct 17, 2008
Request format is unrecognized for URL unexpectedly ending in
Category: .NET, asp.net, web services
Sep 13, 2008
Chrome fans
How to rename SharePoint_AdminContent_someGUID database?
Problem:
- Unable to specify config database name when you install MOSS 2007 / WSS 3.0 with help of wizard psconfiggui.exe(that appear just after SharePoint setup, with check box “Run the SharePoint Products and Technologies Configuration Wizard”). Configuration database name by default has weird naming convention that is “SharePoint_AdminContent_
”. Typically in SharePoint it’s called configdb. - Second problem, you are unable to use same database instance for more than one SharePoint farm. Or let’s put in other words, I want to share single SQL server for multiple SharePoint farms (not a best practice but sometimes we have to do :) ).
- Run SharePoint installation (Server type=complete), uncheck “Run the SharePoint Products and Technologies Configuration wizard now”
- Open command prompt Start > run > cmd > cd c:\program files\common files\Microsoft shared\web server extenstions\12\bin
- Type following command (text in red color will be as per your environment, rest all should be as-is)
Aug 25, 2008
BizTalk Developer productivity
Many times BizTalk developer is annoyed by mundane tasks like start/stop/deploy/undeploy/import bindings/host instance restart/terminate instances etc.
Even sometime we miss few task and then struggle why changes are not reflecting in this build.
Here is simple batch file that performs above tasks.
“deploy.bat”
Open deploy.bat and make changes as per your environment.
Supporting files that you should copy in system32 folder
utils.zip (unzip first and copy to system32 folder)
Category: biztalk
Apr 6, 2008
Architecture and Design Review
Lately, my management asked me to review one asp.net application from architecture and design perspective.
As usual, I googled it on how and what should be the overall approach. After half a day research I thought review comments can be grouped in following categories.
1. Code quality
2. Design constraints
3. Performance constraints
4. Duplicate code
5. Dependencies
Certainly, I concluded report with summary that highlighted most risky components within application and recommendations on how to mitigate risk.
Now, here is the list of tools and articles that I have used to accomplish this task.
1. To start with, this is the best article: Chapter 4 — Architecture and Design Review of a .NET Application for Performance and Scalability
2. Metrics, metrics and more metrics: Gather and understand as much as you can. Ndpend is great tool, initially you will feel slightly uncomfortable with UI and ocean of information it gives. But hang on there and after some time you will find this tool worthy.
3. SourceMonitor is another good tool to understand cyclomatic complexity of application.
4. To know memory leak and slowest lines of code in application use ANTS Profiler.
5. Duplicate code, here is magic wand. “Simian - Similarity Analyser”. You have a liberty to specify number of lines of duplicate code you would like to check(threshold property)
To know recommendations and efforts spent on this activity, leave a comment on this post!
Cheers!
Category: architecture, design
Mar 2, 2008
Google's answer to Windows Sharepoint services (WSS)
Here comes Google with its innovative products line and this time it has well targeted Microsoft SharePoint services (more or less same). If your company is not interested in investment and looking for a neat collaboration platform then consider yourself lucky. There are two products namely http://sites.google.com and http://www.google.com/apps
They have some great features like:-
1. Site creation
2. Page creation
3. Customization
4. Upload files
5. Custom list
6. Templates
7. Authorization (contributors, owners, readers)
8. Email Alerts
9. Search
10. Docs, excel, PowerPoint
11. Calendars
12. Instant messaging (IM)
It has a growing number of customer as well, to name few Capgemini, Procter & Gamble, GE, and Salesforce.com
http://sites.google.com | http://www.google.com/apps |
Feb 19, 2008
MOSS 2007 / WSS 3.0 Performance Handbook
This whitepaper is a quick reference for Microsoft office SharePoint Server (MOSS 2007) and Windows SharePoint Services (WSS 3.0) performance and capacity planning. It is a good starting point for those whose who would like to work on these areas.
Download pdf
Category: handbook, MOSS 2007, performance, WSS 3.0
BizTalk 2006 Performance Handbook
This whitepaper is a quick reference for BizTalk 2006 performance tips and tricks. It is a good starting point for those whose who would like to work on BizTalk 2006 performance issues.
Download pdf
Category: biztalk, handbook, performance
Feb 9, 2008
Hide default title column in sharepoint list
In MOSS 2007 or WSS 3.0 sometimes you would like to:
- Hide 'title' column OR
- Change 'title' column to optional
Follow these easy steps:-
-
Enable content type for list:-
-
GoTo: List > Settings > List settings> Advanced settings
-
Under “Content Types” change “Allow management of content types?” to “Yes”
-
Click Ok
-
-
Change “Title” column to optional/Hidden.
-
On “list information” page, click “Item” link under “Content type” section
-
On “List Content Type Information” page, under columns section click “Title”
-
On “Change List Content Type Column: Item” page, click “edit column in new window”
-
Under “Additional Column Settings” Change the “Require that this column contains information:” to “No”
-
Click “Ok”
-
Close window
-
On “Change List Content Type Column: Item” page, under column settings select “hidden”
-
Feb 7, 2008
Show error details on MOSS / WSS site
Follow these easy steps
- Start > Run > inetmgr
- Right click on web application for which you want to enable error details.
- ASP.NET Tab, copy file location for web.config file
- Open file in notepad
- Make following changes
Old Value | New value |
<SafeMode MaxControls="200" CallStack="false"> | <SafeMode MaxControls="200" CallStack="true"> |
<customErrors mode="On" /> | <customErrors mode="Off" /> |
<compilation batch="false" debug="false"> | <compilation batch="true" debug="true"> |
Jan 15, 2008
MOSS 2007 / WSS 3.0 site on Port 80 Internet and Intranet
Introduction
This post describes on how to configure Microsoft Office SharePoint Server (MOSS) 2007 site on port 80 for internet and intranet scenario.
It has following main five task:-
- Create Web application
- Extend Web application
- Configure IIS 6.0
- Alternate access mappings
- FQDN entry in DNS server
Prerequisites
- Stop ‘Default web site’ in IIS 6.0.
Task1: Create Web application
In this task you will create web application.
- Central administration > Application Management > Create or Extend web application > Create web application
- The below table consists of values which will be required during the course of creating the “MOSS80” web application.
IIS Web Site | 1. Create a New Web Site: Description : ‘MOSS80’ Port : 80 Host Header: MYHOME |
Security configuration | 1. Authentication provider : NTLM 2. Allow Anonymous Access : No 3. User Security Socket Layer: No |
Application Pool | 1. Configurable User name: <DomainAccount> Password:<password> |
Database Name and Authentication | Database Server : MYDBSERVER Database Name: MYHOME_Content_80 SQL Authentication: sa/password |
Task2: Extend web application
In this task you will extend existing web application (the one which is created in task1)
- Central administration > Application Management > Create or Extend web application > Extend an existing web application
- The below table consists of values which will be required during the course of creating the “MOSS80Ex” web application.
IIS Web Site | 1. Create a New Web Site: Description : ‘MOSS80Ex’ Port : 80 Host Header: MYSTUDIO |
Security configuration | 1. Authentication provider : NTLM 2. Allow Anonymous Access : No 3. User Security Socket Layer: No |
Load Balanced URL | ZONE : Extranet |
Task3: Configure IIS6.0
In this task you will enter additional host header values for two web applications which were created in task 1 and 2.
- Start > Run > inetmgr.exe
- Right click propertiese on “MOSS80” and then click ‘Advanced’ button as show below.
- Click Add and enter port 80 and host header MYHOME.datamatics.com as shown above.
- Right click propertiese on “MOSS80Ex” and then click ‘Advanced’ button.
- Click Add and enter port 80 and host header MYSTUDIO.datamatics.com as shown below
Task4: Alternate access mappings (AAM)
In this task you will add AAM for ‘MOSS80’ web application in SharePoint administration.
- Central administration > Operations > Allternate Acces mappings > Click on http://MYHOME
- Click Cancel button
- Click “Edit Public Zone URLs” as shown below
Task5: FQDN entry in DNS server
In this task you will enter host(MYHOME/MYSTUDIO) entries in DNS server
Adding Address and Pointer Records. The A record maps a host name to an IP address and the PTR record creates a pointer to the host for reverse lookups. Address and pointer records can be created together using the New Host option or separately using the New Record option.
Create a new host entry with A and PTR records by doing the following:
- In DNS Manager, right-click on the zone you want to update and then choose New Host from the pop-up menu. This opens the dialog box shown below.
- Enter the host name(MYHOME/MYSTUDIO) and IP address and then select the check Associated PTR Record check box as shown below.
- Click Done when you are finished.
That's it, this will enable your MOSS 2007 site on port 80 for internet and intranet scenario.
Jan 14, 2008
How to write quality code? Tip1, StringOperations
- Use StringBuilder instead of string variable in case of concatenations.
C# Code (Wrong) | C# Code (Correct) |
String xXml = “”; | // make sure that the StringBuilder capacity is large enough for the resulting text StringBuilder oSB = new StringBuilder(165); for (Int32 nRep = 1; nRep <= Reps; nRep++) { oSB.Append("<Order orderId=""); oSB.Append(nRep); oSB.Append("" orderDate=""); oSB.Append(DateTime.Now.ToString()); oSB.Append("" customerId=""); oSB.Append(nRep); } |
Note:
- Use + When the Number of Appends Is Known or Fixed (String str = str1+str2+str3)
- The StringBuilder class starts with a default initial capacity of 16. Strings less than the initial capacity are stored in the StringBuilder object.
- Use the Overloaded Compare Method for Case-Insensitive String Comparisons as shown below.
C# Code (Wrong) | C# Code (Correct) |
// Bad way for insensitive operations because ToLower creates temporary strings | str.Compare(str, str2, false); |
Useful links on string:-
- “Improving String Handling Performance in .NET Framework Applications” http://msdn2.microsoft.com/en-us/library/aa302329.aspx
- “Chapter 5: Improving Managed Code Performance” http://msdn2.microsoft.com/en-us/library/ms998547.aspx#scalenetchapt05_topic26
- "Concatenating Strings Efficiently", http://www.yoda.arachsys.com/csharp/stringbuilder.html
Category: quality code, stringbuilders, strings
Jan 13, 2008
Presentation and Demo C# Code
Here is the presenation and demo C# code for session held on 11-Jan-07 on following topics:-
- Singleton pattern
- MVC pattern
- Visual Studio Class diagrams
- .NET code best practices
- Demo C# code download here.
- View PPT below.
Jan 6, 2008
.NET Knowledge sharing session
Topic: .NET Knowledge sharing session Agenda: p.s. Participants should seek approval from concern PM.
Target Audience: Developers
Date: 11-Jan-07 - Friday
Time: 12:00 to 13:30
Venue: MIDC 3 Conference room
Speaker: Marshal Nagpal
EAI project Knowledge sharing
Topic: EAI project Knowledge sharing / lessons learnt Agenda:
Target Audience: PM, TL, TA
Date: 10-Jan-07 - Thursday
Time: 12:00 to 13:30
Venue: MIDC 3 Conference room
Speaker: Marshal Nagpal
Jan 3, 2008
Kick Off
Now its time to start blogging!
You can say New Year resolution, no actual reason is that few good people
has strongly recommended me to start blogging.
I shall be sharing my experiences on following areas:-
1. Architecture and Design
2. .NET 2.0, 3.0, 3.5
3. SharePoint 2007 and WSS 3.0
4. BizTalk 2006
5. Troubleshooting
6. Best practices in software development
Category: kickoff