Knut Kristian Johansen’s blog

Bits and pieces from my professional life…

  • Bridging the Gap: Debouncing in Lua for the JavaScript Developer

    Bridging the Gap: Debouncing in Lua for the JavaScript Developer

    Dive into the world of Lua with a familiar friend: the debounce function. Whether you’re a seasoned JavaScript developer or just starting out, discover how to craft and leverage this essential tool in Lua, ensuring smoother interactions and efficient scripting across platforms.

  • Emulating JavaScript’s setTimeout and clearTimeout in Telldus Lua Scripts

    Emulating JavaScript’s setTimeout and clearTimeout in Telldus Lua Scripts

    Missing JavaScript’s setTimeout in Telldus’s Lua? Using Lua’s coroutines, our guide introduces a method to emulate this, allowing for scheduled and canceled timed operations seamlessly in your scripts.

  • How to do NUnit assertions with PowerShell

    How to do NUnit assertions with PowerShell

    Discover the seamless integration of NUnit assertions in PowerShell. This guide walks you through the setup process, from loading the NUnit framework assembly to crafting effective assertions. Dive into hands-on examples and enhance your testing capabilities in PowerShell scripts.

  • DotNetDetector: a Microsoft .NET Framework detector

    DotNetDetector: a Microsoft .NET Framework detector

    DotNetDetector is a tool that detects Microsoft .NET Framework versions. The tool is written in C# .NET, and requires .NET 2.0. The project is open source and hosted at GitHub. The project site wiki has documentation. At the moment the tool detects these versions of the framework: Microsoft .NET Framework…

  • How to render a Razor template with PowerShell

    How to render a Razor template with PowerShell

    Utilize the Microsoft ASP.NET Razor view engine with PowerShell. Learn to load essential assemblies, craft a Razor template, and produce a “Hello World!” message.

  • Call by Contract (CbC) JavaScript library

    Call by Contract (CbC) JavaScript library

    Introducing the Call by Contract (CbC) JavaScript library: A streamlined approach to Design by Contract (DbC) in JavaScript. Using Visual Studio JavaScript doc comments, CbC simplifies API function assertions, enhancing code clarity and performance. Discover the transformative power of CbC in the post.

  • jQuery Mobile and client generated pages

    jQuery Mobile and client generated pages

    Using jQuery Mobile, one can dynamically create pages with browser-based JavaScript. This post delves into crafting a todo list app, showcasing the potential of client-side scripting with jQuery Mobile.

  • Windows Phone SVG Icon Generator

    Windows Phone SVG Icon Generator

    When you submit a Windows Phone app you need to specify the app’s icon in different resolutions: Application Icon (62 x 62) Application Tile Image (173 x 173) Device application icon for Windows Phone Marketplace catalog (99 x 99) Device application icon for Windows Phone Marketplace catalog (173 x 173)…

  • The HTML class attribute: for styling purposes only?

    Introduction Early specifications The www-style mailing list Later specifications Pulling it all together Conclusion Side note Introduction Cascading Style Sheets (CSS) has the HyperText Markup Language (HTML) language specific class selector. The CSS rule below applies to an HTML element which has a class attribute with the value name: *.name…