Profile picture Schedule a Meeting
c a n d l a n d . n e t

Writing

Setting build numbers with Nant

|

Setting build numbers with Nant I wanted something that would update the version number of my builds from within Nant. I found that using some of the built in functions of Nant I could get what I wanted without too much work. Nothing...

Monorail: Exception Handlers: Flash and Redirect

|

e setting up exception chaining on monorail, I wanted to use the Flash properties to store the LastException for next request, an error page. This by default doesn't work if the exception happens outside of the Castle.MonoRail.Framewor...

JavaScript Prototype notes

|

Prototype adds to the array class, amoung other things, which can break other javascript files, like fValidate. prototypify – running prototype code with legacy code – provides a work around and more explaination. really easy field val...

Ajax javascript issues.

|

Javascript functions injected into the DOM using innerHTML will not work. So using something like: <br />mydiv.innerHTML = [html result from ajax method call];<br />&hellip;<br /><div id=&ldquo;mydiv&rd...

Powershell Text Replace

|

Search a text file line by line, replacing text using regex’s. <br />cat &lsquo;file.txt&rsquo; | foreach { $_ -replace &lsquo;find-text&rsquo;, &lsquo;replace-text&rsquo; }<br />

Ngen the powershell dll’s for faster startup

|

In the Trenches » Some PowerShell scripts…: “Ngen the dlls and try it again. I think you’ll find it faster. cd $pshome dir *.dll | %{ ngen.exe $_.fullname} If ngen is not in your path, use: C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727...

Get the compiled asp.net

|

Get the compiled asp.net page object for unit testing. Brain.Save() – Hosting ASP.NET Outside of IIS Doesn’t seem to work for 2.0. Looking for more ideas.

ActiveRecord dictionary mapping.

|

[HasMany(typeof(MyObject), &ldquo;object_id&rdquo;, &ldquo;objecttable&rdquo;, RelationType = RelationType.Map, Cascade = ManyRelationCascadeEnum.All, CustomAccess = Generics.Access, Lazy = true, Index = &ldquo;name-o...