Geeks With Blogs
Asif Maniar Software Engineer
The main motivation before the decorator pattern is to be able to add data and behavior to objects dynamically without relying on inheritance. A decorator usually conforms to the interface of the component its decorating. Lets see this with an example. Am building a system that calculates the price of a pizza. I can have many toppings and the total ......

A proxy is an object that can be used to control creation and access of a more complex object thereby deferring the cost of creating it until the time its needed. Below is a simple implementation of the proxy pattern in C#. The ComplexProtectedExpensiveRe... is private to the ProxyContainer and cannot be instantiated by a client. The client creates ......

Sitecore has a powerful event pipeline infrastructure that you can leverage to plugin commands into various item creation, change, move, publish etc events. Recently I had to add functionality to Sitecore so that when an items version is created all fields from a target language are copied into the newly created version to ease editing. To do this first ......

Here are a few steps you can follow if you want to restrict access to Sitecore’s Interface on content delivery environments. 1) Open Internet Information Services (IIS) Manager 2) Expand your Content Delivery website 3) Click on the Sitecore folder 4) Double Click on Authentication in the middle content pane 5) In the Authentication Pane right click ......

At the recent Mix 2011 conference the datajs team talked about this new cross-browser JavaScript library that makes writing data centric web apps easier. Its fairly simple to use and can be very powerful. Here is a quick application I threw together using the library. The code uses datajs, jQuery, jQuery UI and jQuery templates. Microsoft has an OData ......

When using multiple languages/cultures in the Sitecore CMS the content of an item isn’t usually copied over from an existing language to a new language version. While working on a multi lingual website after content was added to the primary language (en-US) I had to write a script to copy all fields from the primary language into other languages (Example ......

Normal 0 false false false EN-US X-NONE HI MicrosoftInternetExplorer4 /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.000... ......

If you want a virtual directory or a site in IIS7.x to redirect to another url you first have to make sure you have installed http redirect for IIS. To do that goto Control Panel > Program and Features and select Turn Windows features on or off Choose IIS and click on Add Role Services and make sure you check HTTP Redirection Let the feature be installed ......

Normal 0 false false false EN-US X-NONE HI MicrosoftInternetExplorer4 /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin-top:0in; ......

Normal 0 false false false EN-US X-NONE HI /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin-top:0in; mso-para-margin-right:0in; ......

Copyright © Asif Maniar | Powered by: GeeksWithBlogs.net | Join free