Taswar Bhatti
The synonyms of software simplicity
Category: Misc

So sometimes you will get these strange errors or exceptions when using Linq Sequence contains no matching element For example if you use

This will throw InvalidOperationException with Sequence contains no matching element. But if you use

Which will return you a null if its not found then you can check if the […]

So I was going through some code of codebettercanvas and found it interesting of Karl Seguin using Html Helper extension for his form tags, which has its elegance. e.g

Basically it calls an extension method called LinkTo with a generic controller and a lamda for calling its action, the extension method looks like

[…]

Currently I am doing some performance testing on our application and part of it is seeing how well do we handle “insert” in our application. (Are there any problems etc, how many can it handle, etc) I am using JMeter to test the performance and it is quite a flexible product that I will talk […]

How to do safe base64 url encoding in ASP .NET, I came into a problem of url encoding in IIS 7 where it does not like “+”, “/” in the Url. Basically a Url that looks like of like this http://fake.abc/TIRlcEq0umjO6uJqtqvnkUGntUzv19rK+8mcvPK5qL1bwEZtEUqTlc3iF/TomuXU746Il5IF2iN9SeYuYDqt6SQzfdrv+Ltug2KZteKlYawc= I know you may say what is this??? Its actually some kind of encrypted […]

So was just in the process of installing SQL2005 on one of our VM to test some stuff. Guess what install went great with Client Tools selected, but unfortunately SQL Management Studio doesn’t get installed??? Why ohhh why? I cannot find SQL Management Studio after install of SQL2005 So anyways, the solution is quite simple […]

So there is this character (antagonist) in this TV series “Heroes”, and his name is Sylar People might also know him from the new Star Trek movie, where he plays the young Spock. Anyways, back to the Sylar character, in the show he plays a serial killer who kills people with ability (e.g flying, shooting […]

The Law of Demeter (LoD), or Principle of Least Knowledge, is a design guideline for developing software, particularly object-oriented programs. (wikipedia) While everyday working on code that was written by lazy coders or junior coders I see a lot of violation of this law. I think every programmer should know the Law of Demeter by […]

This post is more of a geeky type of post about the awesome DD-WRT firmware. And how I set up two wireless router to talk to each other without wires. So, yesterday the digiturk web tv set-top box arrived, that my wife purchased for Onur (our son, who is only 1 year old now) to […]

UA-4524639-2