house9

random code and what not

2007 Tour of California - Stage 1

2007 Tour of California - Stage 1
Coming over Coleman Valley


The pack coming up towards the KOM, 4 riders going off the front
Tour of California 2007 - Coleman Valley

Basso leading the rest of the pack
Tour of California 2007 - Coleman Valley

free .NET Business Rule Engines

here are some of the free or open source .NET Business Rule Engines I have come across

NxBRE (port of the Java JxBRE)
http://www.agilepartner.net/oss/nxbre/
http://sourceforge.net/project/showfiles.php?group_id=97759

Jaxlab Rules Engine
http://www.jaxlab.com/rulesengine/default.aspx
http://www.codeproject.com/useritems/Rules_In_Your_Apps.asp
http://www.codeproject.com/useritems/Using_a_Rules_Engine.asp

Simple Rule Engine - SDSRE
http://sourceforge.net/projects/sdsre/
http://thusithata.spaces.live.com/Blog/cns!6B1F9DE12D24534D!131.entry

A client side (javascript) confirm box with ASP.NET

The following code sample illustrates a client side (javascript) confirm box in use with an aspx button, this presents the end user with a dialog box asking ”are you sure you want to submit this form?’, it gives the user two options ‘Ok’ and ‘Cancel’, clicking ok will submit the form, clicking cancel will not

This sample code uses 4 variations;
  • TestButton1 - a standard html input type ‘button’, which submits the page using hand coded js
  • TestButton2 - a standard html input type ‘submit’, it has the default behaviour of submitting the form
  • TestButton3 - an asp:button with the OnClientClick (rendered as onclick) declared in the mark up
  • TestButton4 - an asp:button with the onclick defined in the code behind or c#

The aspx page markup - JavaScriptConfirm.aspx



The c# ‘code-behind’



The ‘key’ here is the return in the onclick method; the javascript confirm will return true if ‘Ok’ is clicked and false if ‘Cancel’ is clicked, we must return this value from our buttons onclick event so that the form will not generate an HTTP POST (or PostBack if you like)

if you do not include the return statement in the onclick the form will post back regardless of which button is clicked ‘Ok’ or ‘Cancel’; for instance you do NOT want to do this
onclick="AreYouSure();" 
but instead do this
onclick="return AreYouSure();" 

2007 Grasshopper Adventure Series

2007 Grasshopper Adventure SeriesThe ‘official’ flier for the 2007 Grasshopper Adventure Series has been released.


No road closures, No chp, No H2O, No Fee, No Sag, No Prizes.

- February 24th - Old Caz
- March 10th - Chileno Valley
- April 21st - King Ridge
- May 5th - Lake Sonoma



Get all the details at http://www.norcalvelo.com/

Maverick: The Success Story Behind the World’s Most Unusual Workplace by Ricardo Semler

My dad turned me on to this book, took me a while to pick it up but once I did I finished it in a day; very captivating read, not in the same way as the Da vinci Code code but you get the idea.

Ricardo Semler helped to create a pretty cool work environment when he took over his fathers business. He started by firing almost all of the existing upper management and then over time created a truly ‘democratic’ workplace. Read an overview here.

http://www.amazon.com/Maverick-Success-Behind-Unusual-Workplace/dp/0446670553/ref=pd_sim_b_1/105-3077826-1463608

he has some more recently published stuff as well
http://www.amazon.com/exec/obidos/search-handle-url/105-3077826-1463608?%5Fencoding=UTF8&search-type=ss&index=books&field-author=Ricardo%20Semler