Latest Posts

Managed Extensibility Framework – Part 2 : Metadata

I am back with more MEF! This time I am discussing about metadata that could provide additional information about components the implement contracts. These entries about MEF are more of the “journal” kind rather than a “tutorial”. To provide metadata you just need to use the ExportMetadata attribute. There are two possible ways by which [...]

A Refresher/Crash Course on MEF!

Here I am with another post! This is supposed to be a crash course or a refresher (call it whatever you want!) on MEF (Managed Extensibility Framework). Consider the following gist. In order to create a fairly simple yet meaningful application that demonstrates MEF, you need 3 projects within a solution. Obviously, this is not [...]

Fun With Generics 3: IConvertible and More!

It has been a long time since I wrote anything at all in my blog and I kind of missed it! So here we go! This post is going to be about generics (again)! I wanted to create a method that converts a set of strings (attributes of an element, xml) and did indeed create [...]

Search Your Fiddles!

Hello all! This post is going to be simple since I am just going to introduce something I did recently. I use jsfiddle to test out a lot of things that is based on plain javascript, jQuery, bootstrap and so on. It helps me save a lot of time! You don’t necessarily have to sign [...]

Pitfalls of Outsourcing (to India)

Let me first warn you, before you get started with this post, there is going to be quite a bit of rant in here. But I believe it’s going to have some merit and is not just going to be meaningless. There are numerous blog posts/articles and what not about issues faced by numerous companies [...]

Just Released! – NuGet Package to List Attribute Based Routes

Hello People! Just wanted to share some information on what I have been doing. Yesterday I released a NuGet package that could prove helpful if you have started using ASP.Net MVC 5′s attribute based routing. You can read about attribute based routing here. But on a high level, attribute based routing is a feature that [...]

Paging w/ Angular

Hello again! I was looking for an implementation of paging using angular and encountered this. This post just shows how I extended this implementation to have some sort of filtering. Obviously, I am very much a beginner in angular, so do recommend if you think there is a better way of doing this! I am [...]

Express – Route requests from multiple files

If you have started using NodeJS/Express like myself, probably you have this question too! I have a whole lot of app.get, app.post in my app.js file and I don’t like this! Here is a section of my app.js file to give you some perspective! var app = express(); app.get(‘/’, routes.index); app.get(‘/about’, routes.about); app.get(‘/contact’, routes.contact); If [...]

Getting started w/ Web Workers

Hello, I am not even going to discuss as to how long it’s been since I blogged about anything, because, it’s been forever. But here I am with a new post! This is about html 5 web workers and I should agree that it’s quite exciting to use web workers! In this post I am [...]

Overriding the Private Method of a Ruby Class

It feels like forever since I ever posted anything, but, here I am with an interesting post on ruby! Consider the following class which has a private method called “say”. class Client def print say end private def say “hello” end end c = Client.new puts c.print Let’s assume you are unit testing the Client [...]