CSTruter.comhttp://www.cstruter.comHomepage for Christoff TruterSun, 18 Feb 2018 07:40:11 +0200/blog/435ASP.NET MVC - DataAnnotation Localizationhttp://feedproxy.google.com/~r/Cstrutercom/~3/1B02_1bW3UQ/435Strangely enough - especially seeing that localization has been a requirement in all of my work related codebases for the last 4 years or so, this is the first time that I am writing on the subject of localization.<img src="http://feeds.feedburner.com/~r/Cstrutercom/~4/1B02_1bW3UQ" height="1" width="1" alt=""/>Mon, 29 May 2017 15:18:34 +0200http://www.cstruter.com/blog/435/blog/434PHP drop-down list - Part 6 (Adding Optgroups)http://feedproxy.google.com/~r/Cstrutercom/~3/0NNzGg26UlU/434In this post we're going to extend our select element to support optgroups and thereby complete our support for all select child elements.<img src="http://feeds.feedburner.com/~r/Cstrutercom/~4/0NNzGg26UlU" height="1" width="1" alt=""/>Fri, 17 Feb 2017 14:18:23 +0200http://www.cstruter.com/blog/434/blog/433PHP drop-down list - Part 5 (Custom Serialization)http://feedproxy.google.com/~r/Cstrutercom/~3/h4HoPqJvCDI/433In part 2 we quickly "talked" about having different serialization strategies for our html elements, but as an interim solution, I chose to use the XHTML spec as my standard markup, in this post we're going to decouple our serialization strategy.<img src="http://feeds.feedburner.com/~r/Cstrutercom/~4/h4HoPqJvCDI" height="1" width="1" alt=""/>Wed, 15 Feb 2017 15:51:05 +0200http://www.cstruter.com/blog/433/blog/432PHP drop-down list - Part 4 (Cleaning things up a bit)http://feedproxy.google.com/~r/Cstrutercom/~3/iYslkU58rF0/432Up until this point we've got a very basic, but working drop-down list implementation, it is however quite fragile at the moment, since we're not doing enough validation checks not to mention all properties being public.<img src="http://feeds.feedburner.com/~r/Cstrutercom/~4/iYslkU58rF0" height="1" width="1" alt=""/>Tue, 14 Feb 2017 15:27:27 +0200http://www.cstruter.com/blog/432/blog/431PHP drop-down list - Part 3 (Maintaining State)http://feedproxy.google.com/~r/Cstrutercom/~3/pvZmb0vby10/431Now that we've got everything serializing to HTML (or rather XHTML) properly, how do we retrieve selected values and maintain that state?<img src="http://feeds.feedburner.com/~r/Cstrutercom/~4/pvZmb0vby10" height="1" width="1" alt=""/>Tue, 14 Feb 2017 08:57:53 +0200http://www.cstruter.com/blog/431/blog/430PHP drop-down list - Part 2 (Serialization of elements to HTML)http://feedproxy.google.com/~r/Cstrutercom/~3/96q3ZMDR3Rw/430In order to serialize our newly created classes to the required markup, what needs to happen? We need to supply some metadata.<img src="http://feeds.feedburner.com/~r/Cstrutercom/~4/96q3ZMDR3Rw" height="1" width="1" alt=""/>Tue, 14 Feb 2017 08:21:08 +0200http://www.cstruter.com/blog/430/blog/429PHP drop-down list - Part 1 (Knowing thy elements)http://feedproxy.google.com/~r/Cstrutercom/~3/vlVEzc-gqaw/429In this series of posts I am going to create a PHP drop-down list, I am going to follow an evolutionary approach (simple code to more complex, while explaining my thought processes along the way) and hopefully end up with something useful.<img src="http://feeds.feedburner.com/~r/Cstrutercom/~4/vlVEzc-gqaw" height="1" width="1" alt=""/>Tue, 14 Feb 2017 08:06:52 +0200http://www.cstruter.com/blog/429/blog/428Angular 1.x Minificationhttp://feedproxy.google.com/~r/Cstrutercom/~3/wgacHnPRGeY/428Undoubtedly if you've ever worked with an Angular 1.x project and attempted to minify your project, you would have ran into some difficulties.<img src="http://feeds.feedburner.com/~r/Cstrutercom/~4/wgacHnPRGeY" height="1" width="1" alt=""/>Tue, 17 Jan 2017 15:15:00 +0200http://www.cstruter.com/blog/428/blog/427Helix (30 August 2008 - 11 January 2017)http://feedproxy.google.com/~r/Cstrutercom/~3/jG0N32kAnDc/427On Thursday morning I got the terrible news that one of my Pomeranians (Helix) somehow escaped from our property and was killed by a reckless driver just up the road from our home.<img src="http://feeds.feedburner.com/~r/Cstrutercom/~4/jG0N32kAnDc" height="1" width="1" alt=""/>Fri, 13 Jan 2017 14:48:14 +0200http://www.cstruter.com/blog/427/blog/426Programming libraries / languages to learn in 2017http://feedproxy.google.com/~r/Cstrutercom/~3/34r1OLEpRDA/426Don't you think it is very presumptuous when you see these new years posts, claiming some kind of clairvoyance? Like I can possibly tell you what to focus on in the new year career wise, when meantime back at the ranch I can barely master a belt buckle?<img src="http://feeds.feedburner.com/~r/Cstrutercom/~4/34r1OLEpRDA" height="1" width="1" alt=""/>Mon, 09 Jan 2017 12:21:38 +0200http://www.cstruter.com/blog/426