The nun-butt-toast software engineering pattern

22/05/2015 This article: 1 – tries to illustrate how pointless it is to use unusual names and phrases to label simple strategies most Software Engineers have already been using for many years. 2 – tries to be one of very rare articles on the Internet to tell strong-willed Architects and Software Engineers that they areContinue reading “The nun-butt-toast software engineering pattern”

Don’t Let Celebrities Tell You How To Eat

06/02/2014 Who are celebrities, they are a bunch of people who heavily depend on publicity. So they have to do whatever it takes to keep their nose above the water. Being good at anything alone doesn’t make a person a celebrity so it doesn’t matter what kind of a celebrity it is (sporting, acting, singing,Continue reading “Don’t Let Celebrities Tell You How To Eat”

Stop asp.net from encoding the source HTML string (mvc raw html)

/// Stops asp.net from encoding the source HTML string. public static IHtmlString HTMLRaw(string source) { return new HtmlString(source); } call this function whenever you want asp.net NOT to encode the string. Note: You can use <%= and %> tags to avoid encoding as well. Menol ILT

How To Check For Full SubStrings In A Comma Separated String

22/07/2013 How to avoid detecting substrings, how to check for perfect substrings, avoid detecting substrings, avoid detecting substrings when checked for substrings. Today I needed to find if a string is contained within a string. So I used the most straight forward method (I used SQL but this works for any language) Problem – as you can see,Continue reading “How To Check For Full SubStrings In A Comma Separated String”

ILT – Simple technique to toggle between true and false or one and zero

20/06/2013 If you want to toggle a value from 1 to 0 or 0 to 1 depending on the current value then you are at the right place. (i.e. change the value to 0 only if it’s 1 now and change it to 1 only if it is 0 at the moment) You can useContinue reading “ILT – Simple technique to toggle between true and false or one and zero”

XSD validation for integer – How to allow empty values for integer while limiting value range (ILT)

19-06-2013 How to write XSD to validate an integer field so that only a range of values and empty tags are allowed. Example: I wanted to allow any value between -1 and 999 and also had to allow empty tags for my XML tag. Use of  nillable=”true” is not what you want for this.  This howContinue reading “XSD validation for integer – How to allow empty values for integer while limiting value range (ILT)”