Tag Archives: Code

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

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

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

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

How To Flush PRINT Buffer in T-SQL, Or Output Messages In Real Time

When debugging SQL scripts, oftentimes the developer or DBA would want to see what is happening as the script executes. While it is possible to set up breakpoints in SSMS and step-into/-over code, sometimes all that one wants is to … Read More »»»

Posted in MSSQL | 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

C# Yield Statement Demystified With Examples

The yield statement has been released with .NET 2.0 framework, but many still do not know what it does. In a nutshell, it does transformations – obtaining a result dataset given an input dataset. Since the time yield has seen … Read More »»»

Posted in .NET | Tagged , , , , , , , , | Leave a comment

My ASP.NET Page Worked And Now When I Postback It Is Blank, No Error Is Shown

Your page has been working just fine and nothing changed in the code, but out of nowhere you are faced with a problem: when you do a postback to the server, all you see is a white blank page. You … Read More »»»

Posted in .NET | Tagged , , , , , , , , | Leave a comment

Find a String Value in the Whole Database: Searching for Text in Tables and Columns

Once in a while you may come across a problem when you are not familiar with the database structure you are dealing with. You may have to deal with the front end only and values that are only presented to … Read More »»»

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

How to Calculate the Number of Seconds Since Last Epoch (1/1/1970) in T-SQL

In certain situations, you may need to calculate the number of seconds that have passed since the start of the epoch. In computer world, the start of the epoch most often refers to the Unix epoch, also known as Unix … Read More »»»

Posted in Quick Tips | Tagged , , , , , , , , , , | Leave a comment