Start umbraco with mvc four

Published: Feb 12, 2014 I found an article by Ben Morris and it was very useful, however it seems to be gone now, so to remember it, I keep it here: The below text is from this stackoverflow This setup worked really well for me (Umbraco version 6.1.6) Firstly, start an empty MVC 4 project in Visual Studio – make sure it is an empty project as you will not need any of the baggage that comes with other project templates. Add the NuGet Umbraco Cms Core Binaries package which will manage the various dependencies and references that Umbraco 6 requires for you. Copy all the files from the Umbraco installation ZIP archive directly into your project in Visual Studio except the App_Code and Bin folders – you won’t need the binaries as they are managed by NuGet and the App_Code folder is not used in a web application project. If you want Umbraco to play nice to MVC and be able to use Razor views, you should change the default rendering engine to MVC in Config\UmbracoSettings.config like so: ...

February 12, 2014 · Klaus Hebsgaard

Start umbraco with mvc four

Published: Feb 12, 2014 I found [an article by Ben Morris](http://www.ben-morris.com/using-umbraco-6-to-create-an-asp-net-mvc-4-web-applicatio) and it was very useful, however it seems to be gone now, so to remember it, I keep it here: The below text is from this stackoverflow This setup worked really well for me (Umbraco version 6.1.6) Firstly, start an empty MVC 4 project in Visual Studio – make sure it is an empty project as you will not need any of the baggage that comes with other project templates. Add the NuGet Umbraco Cms Core Binaries package which will manage the various dependencies and references that Umbraco 6 requires for you. Copy all the files from the Umbraco installation ZIP archive directly into your project in Visual Studio except the App_Code and Bin folders – you won’t need the binaries as they are managed by NuGet and the App_Code folder is not used in a web application project. If you want Umbraco to play nice to MVC and be able to use Razor views, you should change the default rendering engine to MVC in Config\UmbracoSettings.config like so: ...

February 12, 2014 · Klaus Hebsgaard

Hvorfor jeg koder

Published: Jan 27, 2014 Hvorfor er det fedt at kode? Bemærk: En redigeret version ligger op klean.dk: Det er godt engang i mellem og tænke over det man gør og hvorfor man gør det. Derfor vil jeg hér reflekterer lidt over hvad jeg laver og hvorfor mit arbejde er det bedste i verden. Jeg har flere gange overvejet om jeg skulle skifte branche, men er hver gang nået frem til at svaret er “Nej!” ...

January 27, 2014 · Klaus Hebsgaard

Hvorfor jeg koder

Published: Jan 27, 2014 Hvorfor er det fedt at kode? Bemærk: En redigeret version ligger op klean.dk: Det er godt engang i mellem og tænke over det man gør og hvorfor man gør det. Derfor vil jeg hér reflekterer lidt over hvad jeg laver og hvorfor mit arbejde er det bedste i verden. Jeg har flere gange overvejet om jeg skulle skifte branche, men er hver gang nået frem til at svaret er “Nej!” ...

January 27, 2014 · Klaus Hebsgaard

Euler in f#

Published: May 12, 2013 Here is my solution to Euler problem 2 in F# I took the memoization code from Wiki Books Yeah I know I should use infinite lists - but have not come around to it yet let memoize f = let dict = new System.Collections.Generic.Dictionary<_,_>() fun n -> match dict.TryGetValue(n) with | (true, v) -> v | _ -> let temp = f(n) dict.Add(n, temp) temp let rec fib = memoize(fun n -> match n with | 1 | 2 -> 1 | _ -> fib (n-2) + fib(n-1)) let evenNumbers x = x % 2 = 0 let belowBelow4millions x = x < 4000000 [1..50] |> List.map fib |> List.filter belowBelow4millions |> List.filter evenNumbers |> List.sum |> Dump

May 12, 2013 · Klaus Hebsgaard

Euler in f#

Euler in f# Published: May 12, 2013 Source: https://khebbie.dk/euler-in-f/ Here is my solution to Euler problem 2 in F# I took the memoization code from Wiki Books Yeah I know I should use infinite lists - but have not come around to it yet let memoize f = let dict = new System.Collections.Generic.Dictionary<_,_>() fun n -> match dict.TryGetValue(n) with | (true, v) -> v | _ -> let temp = f(n) dict.Add(n, temp) temp let rec fib = memoize(fun n -> match n with | 1 | 2 -> 1 | _ -> fib (n-2) + fib(n-1)) let evenNumbers x = x % 2 = 0 let belowBelow4millions x = x < 4000000 [1..50] |> List.map fib |> List.filter belowBelow4millions |> List.filter evenNumbers |> List.sum |> Dump

May 12, 2013 · Klaus Hebsgaard

Just Did the String Calculator Kata

Published: Oct 8, 2009 I just did the [string calculator kata](the string calculator kata ), here is the output, first the test code: [TestFixture] public class CalculatorTests { readonly Calculator _calc = new Calculator(); [Test] public void Add_WhenGiven1_ShouldReturn1() { int result = _calc.Add("1"); Assert.That(result, Is.EqualTo(1)); } [Test] public void Add_WhenGiven15_ShouldReturn15() { int result = _calc.Add("15"); Assert.That(result, Is.EqualTo(15)); } [Test] public void Add_WhenGiven1comma5_ShouldReturn6() { int result = _calc.Add("1,5"); Assert.That(result, Is.EqualTo(6)); } [Test] public void Add_WhenGiven115comma23_ShouldReturn138() { int result = _calc.Add("115,23"); Assert.That(result, Is.EqualTo(138)); } [Test] public void Add_WhenGivenAlphaCharacter_ShouldThrowArgumentException() { Assert.Throws&lt;ArgumentException&gt;(() =&gt; _calc.Add("jens")); } [Test] public void Add_WhenGivenAlphaNumericCharacterWithNumericAtTheEnd_ShouldThrowArgumentException() { Assert.Throws&lt;ArgumentException&gt;(() =&gt; _calc.Add("jens1")); } [Test] public void Add_WhenGivenAlphaNumericCharacterWithNumericAtTheBeginning_ShouldThrowArgumentException() { Assert.Throws&lt;ArgumentException&gt;(() =&gt; _calc.Add("1jens")); } } And here is the implementation: ...

October 8, 2009 · Klaus Hebsgaard

Just Did the String Calculator Kata

Just Did the String Calculator Kata Published: Oct 8, 2009 Source: https://khebbie.dk/just-did-the-string-calculator-kata/ I just did the [string calculator kata](the string calculator kata ), here is the output, first the test code: [TestFixture] public class CalculatorTests { readonly Calculator _calc = new Calculator(); [Test] public void Add_WhenGiven1_ShouldReturn1() { int result = _calc.Add("1"); Assert.That(result, Is.EqualTo(1)); } [Test] public void Add_WhenGiven15_ShouldReturn15() { int result = _calc.Add("15"); Assert.That(result, Is.EqualTo(15)); } [Test] public void Add_WhenGiven1comma5_ShouldReturn6() { int result = _calc.Add("1,5"); Assert.That(result, Is.EqualTo(6)); } [Test] public void Add_WhenGiven115comma23_ShouldReturn138() { int result = _calc.Add("115,23"); Assert.That(result, Is.EqualTo(138)); } [Test] public void Add_WhenGivenAlphaCharacter_ShouldThrowArgumentException() { Assert.Throws&lt;ArgumentException&gt;(() =&gt; _calc.Add("jens")); } [Test] public void Add_WhenGivenAlphaNumericCharacterWithNumericAtTheEnd_ShouldThrowArgumentException() { Assert.Throws&lt;ArgumentException&gt;(() =&gt; _calc.Add("jens1")); } [Test] public void Add_WhenGivenAlphaNumericCharacterWithNumericAtTheBeginning_ShouldThrowArgumentException() { Assert.Throws&lt;ArgumentException&gt;(() =&gt; _calc.Add("1jens")); } } And here is the implementation: ...

October 8, 2009 · Klaus Hebsgaard

[DK]Uncle Bob om software projekter (min formulering)

Published: Mar 11, 2009 Uncle Bob om software projekter: “Tit haster vi igennem for at blive færdige til tiden, og sjusker for at gøre det hurtigere. Men når vi sjusker os igennem opdager vi tit, at det sjusk vi lavede for at blive hurtigt færdig, er det der forsinker os og gør at vi bliver forsinkede.”

March 11, 2009 · Klaus Hebsgaard

[DK]Uncle Bob om software projekter (min formulering)

[DK]Uncle Bob om software projekter (min formulering) Published: Mar 11, 2009 Source: https://khebbie.dk/dkuncle-bob-om-software-projekter-min-formulering/ Uncle Bob om software projekter: “Tit haster vi igennem for at blive færdige til tiden, og sjusker for at gøre det hurtigere. Men når vi sjusker os igennem opdager vi tit, at det sjusk vi lavede for at blive hurtigt færdig, er det der forsinker os og gør at vi bliver forsinkede.”

March 11, 2009 · Klaus Hebsgaard