Category Archives: Coding

How To Programmatically Flush log4net Message Buffer

If you have set a buffer size on one or more of your log4net appenders, the logger will buffer the messages before dumping them, for instance, into a file or a database. That optimizes the performance but what if you … Read More »»»

Posted in C# | Tagged , , , , , , , , | Leave a comment

How To Launch Your Console Application With A Maximized Window

Forgetting your old school CGA, EGA and then VGA displays of rich 8-bit color, 80×25 displays, we now can have all that screen in a console application, all in a window. A console window you can resize, minimize or maximize … Read More »»»

Posted in .NET, C#, Coding, System | Tagged , , , , , | Leave a comment

Adding an Infinite Nested Hierarchy of Observable Objects Using Knockout from .NET Core / MVC

Sometimes you may come across a situation where your JSON is representing a hierarchy of objects, which you then would like to show on a page. One of the common ways to do that is nested div‘s but, of course, … Read More »»»

Posted in Knockout | Tagged , , , , , , , , | Leave a comment

Infinite Loop in Query String In MVC Project – Yellow Screen Of Death

When you set up your MVC project with Windows Authentication, e.g. … … You are likely to encounter the yellow screen of death with the following error message when running your solution on the internal Visual Studio IIS Express: HTTP … Read More »»»

Posted in MVC | Tagged , , , , , , , , | Leave a comment

How To Change A Bootstrap Popover Title And Content Dynamically

Typically, when creating a bootstrap popover, you would declare, initialize and call it like this: Do Something $(function() { $(‘[data-toggle=”popover”]’)({ trigger: ‘manual’, placement: ‘auto top’, delay: { show: 500, hide: 500 } }); }); function doSomething() { $(‘#do-something-popover’).popover(‘show’); } However, … Read More »»»

Posted in Bootstrap | Tagged , , , , , , , , , | Leave a comment

Domain Objects with Circular or Backwards References In C#, Serialization via JSON and Getting Them Across the Wire

There are always times when your child DOM object references a parent object that contains a list of them children DOM objects that, of have a parent, creating a rather nasty but simply to solve dilemma of circular reference. I’ll … Read More »»»

Posted in C# | Tagged , , , , , , , , , | Leave a comment

New Features of C# 6 You May Find Quite Useful

C# version 6 came out with the release of Visual Studio 2015. It includes quite a few useful features for the developers. Here is a list of the ones that will make a day for any developer who has been writing … Read More »»»

Posted in C# | Tagged , , , , , , , | Leave a comment

Just Young Is C# 6, And Here Comes C#7! What is New in C# 7 and What To Expect?

It has not been long since C# 6 release with a few useful improvements, and here comes C# 7 – excited yet?! Watch your recliner and read on: Tuples I have not used that much so please go ahead and … Read More »»»

Posted in C# | Tagged , , , , , , | Leave a comment

TypeScript Error: Cannot re-export name that is not defined in the module

When building an Angular2/TypeScript project in Visual Studio, you may encounter an error during the built: 1>node_modules\angular2\src\facade\promise.d.ts(2,10): error TS2661: Build: Cannot re-export name that is not defined in the module. The error i thrown on this line: static reject(obj: any, … Read More »»»

Posted in Angular2, TypeScript | Tagged , , , , , , , | Leave a comment

Cool Multi-Colored Blur Effect With Multiple Shadows Using CSS3

With CSS3 and HTML5 getting widespread and most of the browsers supporting their major features, you can code a lot of things right there and then, as opposed to having to have to fire up Photoshop or another image editing … Read More »»»

Posted in CSS | Tagged , , , , , , , , , | Leave a comment