Enums were created to declare enumerations and make our life easier. In most cases it does. But in some cases when we following certain patterns, it might be a need in more generic solutions.

Enums were created to declare enumerations and make our life easier. In most cases it does. But in some cases when we following certain patterns, it might be a need in more generic solutions.
In order to color every n’th row in html table we can use tr:nth-child . It does its jobs very well – targets child in specified element. Probably most common use for it possible to see in striped rows within a table: This example was taken from here, so feel free to experiment with it. There… Continue Reading
Given an array where elements are sorted in ascending order, convert it to a height balanced BST. Today we going to learn how we can do it in Go (Golang). Here link in Wikkipedia for those who forgot what is all about. The rest is just a technique 🙂 //Node represent basic entity type Node struct {… Continue Reading
What you see in the image above is is result of New Relic .NET agent monitoring frequently (every minute) running scheduled tasks. Had conversation with nice person from New Relic support and apparently discovered that when they start up, the agent also starts up with it, and there is going to be a negative effect… Continue Reading
In past i being asked a lot in different variation of this same question : public class SaladIngridient { } public class FruitSaladSaladIngridient : SaladIngridient { } public class Salad { public virtual void WhatSaladAreYou(SaladIngridient ingridient) { Console.WriteLine(“Salad with with {0}”, ingridient); } } public class FruitSalad: Salad { public override void WhatSaladAreYou(SaladIngridient ingridient) {… Continue Reading
This tutorial introduce setup process for scheduled tasks in New Relic tool. This tutorial assume that New Relic .NET agent is installed and running. First of all we need to locate file called “CustomInstrumentation.xml”. Usually it can be found under “_installation_path_\New Relic\.NET Agent\Extensions” folder. If this file does not exist, please create one. The content should be… Continue Reading
Enough with the boring stuff ! Today we gonna hide our super secret information in the image file 🙂 Why we might even think about it ? Well, it could be a lot of reasons, but among them is to hide sensitive information or even create invisible watermark. Nowadays a lot of companies deploy such kind… Continue Reading
This post going to be short and straight to the point 🙂 There are small compilation of 3 tips which can have positive impact on quality of your work. When doing UPDATE it is maybe usefull sometimes to see the results of updated value. It can be done by SQL OUTPUT command. Example : UPDATE SOME_TABLE SET… Continue Reading
When it is about performance we should remember it is assumable that in our mind on critical parts (hot paths) which used most frequently. They will produce most noticeable (from performance perspective) results. Related to VB.NET: There are different casts available in VB.NET : DirectCast() – most effective and strict operator among all mentioned below… Continue Reading
It is very important to understand difference between WHERE and JOIN operation in LINQ. WHERE is actually create a Cartesian product, meaning if you working on two tables (Table1 has 100 rows and Table2 has 1000 rows), WHERE condition will evaluates on 100*1000 rows. In contrary JOIN will takes rows from Table1 and will take… Continue Reading