Archive for the 'Misc' Category
Linq: Sequence contains no matching element
Friday, March 26th, 2010
So sometimes you will get these strange errors or exceptions when using linq. For example if you use ?View Code CSHARP1 var result = myEnumerableCollection.First(x => x.Name == person.Name); This will throw InvalidOperationException with Sequence contains no matching element. But if you use ?View Code CSHARP1 2 3 var result = myEnumerableCollection.FirstOrDefault(x => x.Name == [...]
Learn to use PowerShell to extract data from RSS
Wednesday, October 21st, 2009
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 [...]
Safe Base64 Url in ASP .NET
Monday, September 28th, 2009
So 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 data that is in base64, but since IIS 7 does [...]
Cannot find SQL Management Studio after install of SQL2005
Monday, September 21st, 2009
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? So anyways, the solution is quite simple don’t use the installer again, simply go into the CD [...]
Be like Sylar my friend (A developer’s perspective)
Monday, August 3rd, 2009
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 [...]
Law of Demeter (Principle of Least Knowledge)
Friday, April 3rd, 2009
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 [...]
DD-WRT setting up WDS with Two Linksys WRT-54GL to WRT-54G
Tuesday, March 17th, 2009
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 [...]