Sitecore Swamp

Dive in the Sitecore Swamp

NAVIGATION - SEARCH

Prisoned economy

According to Ross Gitting's new artcile, How we can do better on Aboriginal imprisonment. He threw a few interesting numbers:
  1. 2.5% of the Australian adult population is Aborigines
  2. 26% of all adult Australian prisoners is Aborigines
  3. $275/day to keep an adult in jail
  4. $800 million a year is paid from taxpayer = Australian adult population * 2.5% * 26% * $275 * 365
Could the government use the money wisely? 


Install Grunt on Windows

If you have checkout grunt ready project, follow the steps below to setup Grunt:

  1. Download and install Node.jst from http://nodejs.org/
  2. Download and install Ruby from http://rubyinstaller.org/
  3. Install npm:
    Command line x:>npm install -g grunt-cli
  4. Check Path contains C:\Ruby200-x64\bin 
    Command line x:>gem install compass
  5. Finally build it:
    Command line x:>grunt build


Free Adobe CS2 product family

ProductPlatformDownloadsSerial number
Creative Suite 2MacCS2_install_Mac.pdf1130-0412-8377-1896-9751-5759
CS_20_IE_NonRet_D1.dmg.bin
CS_20_IE_NonRet_D2.dmg.bin
CS_20_IE_NonRet_D3.dmg.bin
VCS2.dmg
CS_2.0_IE_Extras_1.dmg.bin
 WinCS2_install_Win.pdf1130-1414-7569-4457-6613-5551
CreativeSuiteCS2Disc1.exe
CreativeSuiteCS2Disc2.exe
CreativeSuiteCS2Disc3.exe
VCS2.zip
CS_2.0_WWE_Extras_1.exe
Acrobat 3D 1.0 for WindowsWinAC3D_1.0_Volume_NACK_WWE.zip1159-1414-7569-3493-5006-5653
Acrobat Standard 7.0Win22001904.exe1016-1415-6379-6184-1333-2468
Acrobat Pro 7.0Win22020134.exe1118-1414-8477-7606-6339-4141
After EffectsMacclamchop-x244-install.dmg1063-0418-7724-1551-7671-3039
Winclamchop-x244-install-oem.zip1063-1417-2474-8268-4115-9194
Audition 3.0WinADBEAudition_loopolgy.exe1137-1004-8571-6848-7845-8029
ADBEAudition_ESD1_WWEFGJIS.exe
ADBEAudition_loopolgy.7z
GoLive CS2MacGL_CS2_UE_NonRet.dmg.bin1033-0415-6162-2671-3431-0993
WinGL_CS2_UE_NonRet.exe1033-1418-1610-5696-5209-0095
Illustrator CS2MacAI_CS2_IE_NonRet.dmg.bin1034-0416-0740-0527-2887-2375
WinAI_CS2_IE_NonRet.exe1034-1415-6230-2341-2884-9398
InCopy CS2MacIC_CS2_UE_NonRet.dmg.bin1036-0414-4367-5110-5897-2432
WinIC_CS2_UE_NonRet.exe1036-1419-3531-6378-2148-9313
InDesign CS2MacID_CS2_UE_NonRet.dmg1037-0413-9961-4063-8457-1098
WinID_CS2_UE_NonRet.exe1037-1412-5094-8316-6812-7982
Photoshop CS2MacPhSp_CS2_English.dmg.bin1045-0410-5403-3188-5429-0639
WinPhSp_CS2_English.exe1045-1412-5685-1654-6343-1431
Adobe Premiere Pro 2.0WinPPRO_2.0_Ret-NH_UE.zip1132-1280-4900-7476-5108-8019

user control Literal content () is not allowed within?

To embed something into user control, but have an error like:

Here's the cure to it, and the thing embedded within the user control will neither show nor complaint an error.

    [ParseChildren(false)]
    [PersistChildren(true)]
    public partial class ProductTile : System.Web.UI.UserControl
    {

ParseChildrenAttribute 

The ParseChildrenAttribute class allows you to specify parsing logic for a custom server control by marking the server control with the ParseChildrenAttribute metadata attribute.

Marking your server control with the metadata attribute ParseChildren(true) instructs the parser to interpret the elements that are contained within the server control's tags as properties. In this scenario, the ChildrenAsProperties property is true.

Marking your server control with the metadata attribute ParseChildren(true,"<Default Property>") sets the DefaultProperty property to the name of the property that is passed into the attribute.

Marking your server control with the metadata attribute ParseChildren(false), the default value, instructs the parser to interpret the elements that are contained within the server control's tags as content that will be parsed with an associated ControlBuilder that is, as controls. In this scenario, the ChildrenAsProperties property is false.

PersistChildrenAttribute:
The PersistChildrenAttribute is used in combination with the ParseChildrenAttribute to determine how nested content of a control is interpreted. If PersistChildrenAttribute is true and ParseChildrenAttribute is false, the nested content contained within an ASP.NET server control is persisted as controls. If PersistChildrenAttribute is false and ParseChildrenAttribute is true, the nested content is persisted as properties of the server control. For more information about using attributes, see Extending Metadata Using Attributes.