Pages

Friday, 4 July 2014

Moved to postach.io

Hey guys,

This blog is now switched to postach.io. Take a look at it.

New posts will only be available in postach.io. Please subscribe on postach.

Sorry for inconvenience.

-Karthik

Saturday, 24 May 2014

Simple chat application using NodeJS and Socket.IO


Before we start creating a chat application with NodeJS, I'll just give you a brief idea of what NodeJS and Socket.IO is and what is does.

What is NodeJS ?
NodeJS is a platform built for fast, scalable network applications. It is also used for creating real-time applications that interact with data related tasks.

Thursday, 8 May 2014

Resolving an Invalid cast exception in C#



Unable to cast object of type 'xxx.ClassA' to type 'xxx.ClassB'.
Often C# developers get this kind of exception at runtime due to invalid cast operation. There are two ways of casting an object to a different type of object.

Sunday, 20 April 2014

Losing precision after multiplication in SQL Server


Yesterday I was doing a little multiplication operation in SQL SERVER. The computation involves multiplication of two decimal numbers. A point to note here is that I've to be very careful while performing the calculations because it's a monetary thing. So, Whatever the calculation made, it must be very accurate such that I shouldn't miss any fractions as it costs in MILLIONS.
The scenario is that I've two numbers, after multiplying each other I'm losing the precision of the values. I've tried to check my database for any faulty data that caused the issue. But the data is absolutely fine.

Sunday, 23 March 2014

Iterators in c# - a deep dive


This article explains the in-depth analysis of how the c sharp yield keyword works under the hood.
If you don't have any idea about yield keyword or never used it before, check out my post on Iterators in c# .
Using Iterators is easy, but it's always good to know how this thing works under the hood, right?.