December 2011
33 posts
3 tags
Two Useful Tags for JsRender
Here are two tags that are helpful when using JsRender to handle dates and currency.
Registering Tags
$.views.registerTags({
date: function (val) {
var ret;
var value = new Date(parseInt(val.substr(6)));
ret = value.getMonth() + 1 + "/" + value.getDate() + "/" + value.getFullYear(); ;
return $.views.encode(this._encoding || "html", ret);
},
currency:...
5 tags
Things to verify if your child app under umbraco...
Check <system.web.webPages.razor/>
Working section:
<system.web.webPages.razor>
<pages>
<namespaces>
<remove namespace="Microsoft.Web.Helpers" />
<remove namespace="umbraco" />
<remove namespace="Examine" />
</namespaces>
</pages>
</system.web.webPages.razor>
Check <system.webServer/>
Working...
2 tags
Negative Currency Pattern
This might be old news to some but I learned about this today.
On a decimal type which is your dollar amount you typically call theAmount.ToString(“C”) which outputs $1.00, however if you have a negative value this same .ToString(“C”) will output ($1.00)
This actually is the default behavior of .NET when handling negative dollars. If you want to alter this you can change the...
jQuery data-* gotcha
Interesting gotcha I ran into today in regards to the jQuery data-* attributes.
Example
<li class=”dateRange” data-dateRange=’{“StartDate”:”@pickStartDate.AddMonths(-6)”, “EndDate”: “@pickEndDate”}’>6 Month</li>
What Happens
You would imagine you can simply use $(“li.dateRange”).data(“dateRange”) to grab the...
Random VSLive Day 5 Notes
Architecture Kata
What exactly is architecture.
What do you expect for good architecture.
The ities integrity simplicity reliability extensibility maintainability modularity recoverability compisability parsimov scalability performability longevity and so on
Make it easy for developer to make right decisions where right right for the project or system.
In other words enable...
3 tags
Random VSLive Day 4 Notes
Xna
What is xna?
Set of tools and managed libraries to build games on windows, phone, xbox
Essentially replaces managed direct x and adds some new things
Current version is 4 includes phone developer tools
Why
Entirely manged
Cross platform, write once deploy everywhere
Ability to publish to market place
Game studio is free, part of windows visual studio phone tools
If you deploy you need to play...
5 tags
Random VSLive Day 3 Notes
TFS Build Automation - Marcel de Vries
Team Build 2010
Based on workflow 4
Control flow replaces WF 4
Actual build steps still MSBuild
New infrastructure
TFS
TPC, Team Project Collection
TP, Team Project
Build Controller, scoped to a TPC, one controller to multiple agents
Build Agent, process that actually builds the project. Usually one core to one agent
How team build works
AT,...
Random VSLive Day 2 Notes
App Fabric, Workflow, and WCF - Bayer White
Thoughts on event driven and long running
How workflow foundation can meet those needs
Challenges
Work is distributed
Complex code for coordination
Configuring the environment to deploy is hard
Minimal management and visibility into the services operation
Windows workflow provides model for long running event driven work
Hosted, IIS,...
4 tags
Random VSLive Day 1 Notes
SQL
Change log tracking for capturing changes in data automatically.
SQL server development tools for SQL server 2012
SQL table value parameters for data readers. IEnumerable<SqlDataRecord>
Merge statement can be used to keep data in sync between tables. Matched and not matched
OUTPUT to capture the changes, can’t be filtered
insert over dml allows for filter
stop using...