Posts

Showing posts from September, 2013

SOLID Principles for Object-Oriented Designing

Software design principles represent a set of guidelines that helps us to avoid having a bad design. The design principles are associated to Robert Martin who gathered them in "Agile Software Development: Principles, Patterns, and Practices". According to Robert Martin there are 3 important characteristics of a bad design that should be avoided: Rigidity - It is hard to change because every change affects too many other parts of the system. Fragility - When you make a change, unexpected parts of the system break. Immobility - It is hard to reuse in another application because it cannot be disentangled from the current application. Initial Stands for (acronym) Concept S SRP Single responsibility principle a class should have only a single responsibility. O OCP Open/closed principle software entities … should be open for extension, but closed for modification. L LSP Liskov substitution principle objects in a program should be replaceable with insta

Cannot start service W3SVC on computer '.'.

Image
During debugging some code IIS on my PC was hanged and I was on unable to debug the code anymore. W henever I want to start it, the following error occurs. To resolve this issue, I did following steps: Run -> appwiz.cpl -> Turn windows features on or off -> Uncheck "Internet Information Services" and "Windows Process Activation Service" Restart your machine. Run -> appwiz.cpl -> install both "Internet Information Services" and "Windows Process Activation Service" During reinstalling of IIS, make sure all the required components and features would be selected to install.  After complete installation, register ASP.Net 4.0. To register open command promt and do the following. Open your command prompt ( Windows  +  R ) and type  cmd  and press  ENTER You may need to start this as an administrator if you have UAC enabled. To do so, locate the Command Prompt exe, right click and select "Run as A

Iframe loading techniques and performance

Iframes are used to display a web page within a web page, load third party content, ads and widgets. The main reason to use the iframe technique is that the iframe content can load in parallel with the main page: it doesn't block the main page. There are two drawbacks in using iframe, Iframes block onload of the main page The main page and iframe share the same connection pool  The onload blocking is the biggest problem of the two and hurts performance the most. You really want the load event to fire as soon as possible. Here we will see different ways to load the iframe. Normal Iframe You all know this one. It's the default way to load an iframe and works in all browsers: <iframe src="/path/to/file" frameborder="0" width="728" height="90" scrolling="auto"> </iframe> Using the Normal Iframe technique will result in the following behaviour in all browsers: Iframe starts l