
Recent Posts
Categories
My Profiles
Author Archives: Sunil Singhal
Decompiling Powershell CmdLet Code
Many of us are involved in writing scripts, be it for development or testing or deployment. We make use of different scripting languages. One of them is Powershell. As the name suggests, it’s really powerful. You can accomplish so many … Continue reading
Posted in Powershell, Technical
Tagged .NET, Azure, CMDLET, Decompile, Disassemble, Powershell, Script
Leave a comment
Activation error occured while trying to get instance of type Database, key “”  EntLib
The title of this post may sound a bit strange for those who have not faced this problem but it may sound a Sweet Tune Music ðŸ™‚ to those who want to resolve this nasty error in their application. If … Continue reading
Posted in .NET
Tagged activation error, data access block, database, Enterprise library, entlib 5.0, key ""
4 Comments
DeterminantOfMatrix
4. Determinant of a 2D matrix Problem: Given a 2D matrix, Determine it’s Determinant. Solution: This implementation is done using C#.NET. Rectangular Matrix is declared using int[,] syntax. public static long EvaluateDeterminant(int[,] matrix) { long determinant = 0; if (matrix … Continue reading
Posted in Algorithms
Tagged algorithm, determinant, matrix, matrix determinant, matrix problem
Leave a comment
Infix to Prefix Conversion
3. Convert Infix Expression to Prefix Expression Problem: Given an infix expression, output the expression in Prefix (Polish Notation) form. For e.g. Solution: This implementation is done using C#.NET. ALGORITHM: This algorithm maintains two stacks. 1st stack for all operators … Continue reading
Posted in Algorithms
Tagged algorithm, conversion infix prefix, data structure, Infix notation, infix to prefix, Operand, polish notation, prefix, Stack
10 Comments
Is Binary Tree a Binary Search Tree?
2. Is tree BinarySearchTree? Problem: Given a binary tree, determine if it is a Binary Search Tree (BST) or not? Definition: What is BST? BST is a binary tree in which value of root is always greater than the value … Continue reading
SpiralTraversalOfMatrix
1. Spiral Traversal of a 2D matrix Problem: Given a 2D matrix, traverse all it’s elements in a spiral form. Referring the below matrix as an input (Red line shows a spiral traversal), output should be: 1 2 3 4 … Continue reading
Posted in Algorithms
Tagged algorithm, matrix, matrix problem, spiral traversal on a matrix
Leave a comment
Task Scheduler in C#.Net
This article describes a way to create the Scheduled tasks in a system programmatically for Windows Vista, Windows 7 etc Operating Systems using C#.NET language. Windows operating systems, though, already provide a User Interface to see a complete list, to … Continue reading
Playaround with an address of object reference variable
Well, rarely you will have to find an address of a variable in C#.NET. Though C#.NET allows use of pointers but anyone hardly use them. .NET base library and Compiler have done a beautiful job, abstracting the complex use of … Continue reading
How to Reference or use same fully qualified class name from different assemblies
Two or more different assemblies can contain a type with a same name and same namespace. What will happen if you reference those assemblies in your project? Well, referencing won’t result into any error. ðŸ™‚ But. How about making an … Continue reading
Customize or Override core.js file functions in Sharepoint
Core.js JScript file located @ 12 or 14 hive , depending upon the SharePoint version installed on a system, provides several inbuilt javascript functions. This is an outofbox aka OOB sharepoint file. [12/14 hive is @ %PROGRAMFILES%\Common Files\Microsoft Shared\Web Server … Continue reading