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...
Using nant and tallow to create usable WIX component.
Creating installer for web application can be a pain, but using tallow and an nant script element can make things a lot easier. Once my nant script was building my solution and web project with all the needed output files I begin to se...
Adding wix support for VS.NET
the .xsd files in the wix\doc directory to C:\Program Files\Microsoft Visual Studio 8\Xml\Schemas directory.
Validate if checkbox is checked using really easy validation
/ Needs Really easy validation.js script & prototype.js / function validateIfChecked(v, e) { var cbId = e.getAttribute(‘usecheckbox’); if (cbId != ‘undefined’) { if ($(cbId).checked) { ...
Nhibernate Generics Lazy Loaded Collections
Child objects not saved when added to a lazy loaded collection that is not initialized. See this post for more info.
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 />…<br /><div id=“mydiv&rd...
Powershell Text Replace
Search a text file line by line, replacing text using regex’s. <br />cat ‘file.txt’ | foreach { $_ -replace ‘find-text’, ‘replace-text’ }<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...
WIX: Skipping a dialog based on selected feature.
To skip dialogs you will need to modify the wxs files for the dialogs around your dialog. You need to add click events to the next and back buttons to handle the different paths based on the selected features. <Publish Event=&ldq...
Two patterns that promote code reuse in ASP.NET
Two patterns that promote code reuse in ASP.NET
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.
fValidate archived website
fValidate on web archive – Looking for fValidate info, try the archived fValidate website.
ActiveRecord dictionary mapping.
[HasMany(typeof(MyObject), “object_id”, “objecttable”, RelationType = RelationType.Map, Cascade = ManyRelationCascadeEnum.All, CustomAccess = Generics.Access, Lazy = true, Index = “name-o...