Archive for April, 2013

Value cannot be null. Parameter name: source

April 25th, 2013

Sometimes you may get this error when you are debugging a linq query and it may seem pretty vague to you, and it is, very.  In my situation I didn’t have a parameter name called “Source” or a property named that either, it turns out the problem was a property I had in my linq query that was in fact null and when you execute a query across stuff that may be null you can run into stuff like this.

If  you see this error when you writing code, the easiest way that I know to figure out your problem is to look into anything the query is grabbing that may have a null in it.  Just simply start commenting out stuff and see what happens.

Good luck and I hope this helps someone!!

Underscore.js attempts to read commented HTML

April 11th, 2013

I just wanted to throw this out there for anybody trying to figure out why their underscore templates may be failing with properties in their commented html.  It looks to me like underscore.js actually parses everything in the html file in certain situations, I am not fully sure yet but I couldn’t really find much on the web that spoke about it.  I thought I would throw this blog post up so anybody noticing this that has seen it before could chime in and offer some insight into this.  What is weird is that it doesn’t always do it, but only seems to when a change is made at some point to the template being rendered, very strange.  I guess for now my only alternative would be to remove the <%= %> in my comments.  If anybody has some alternatives I am all ears.

How to get all items from an HTML table with JQuery

April 9th, 2013

Here is a little snipped that saved me a lot of manual code writing if you are needing to iterate over a set of rows in a table you have on your webpage. Just simply use the “gt(0)” which according to the JQuery API documentation “select all elements at an index greater than index within the matched set.” Then just pair that with tr: in front of it to select all the table rows of your table and voila, you have all your rows. You can then use the .each method to do the iteration. Don’t forget to change #tableId to whatever you called it in your html, enjoy.

$("#tableId tr:gt(0)").each(function () {
    //perform logic here

Microsoft 2013 Build Conference a.k.a (We failed, come see!!)

April 1st, 2013

So the Microsoft Build conference has been announced for June 26th – June 28th (Build Conference) this year instead of the fall like last year and its at the Moscone center, the exact same place as the Google IO conference this year.  I am sure its at the Moscone center due the fiasco Microsoft had last year deciding to have it at their headquarters, which was not set up for a large scale conference of this type.  Several developers were booted out of their sessions and makeshift tents had to be setup for sessions, it was a true mess.  So Microsoft has yet again decided to follow another companies footsteps and have their conference in a real location this year, that should work, now on to the announcement.

Microsoft announced they are going to be unveiling Windows “Blue” which is basically the fix to Windows 8 cause you know, in true Microsoft fashion, they rush products out the door to get those sales, beat the holidays, etc.  If you look through this list of “features” coming to Windows 8 (Windows Blue) you have a hard time arguing that they are really just features that should have been in Windows 8 all along, this is not innovation my friends, this is how you gouge customers.  But its been the mantra of Microsoft for years, its what they do and they do it well.  I don’t think they are going to charge for it as that would only infuriate the users that are already disappointed with it.

Here is the list: List of Features

I don’t want to just hate on Microsoft but IMO they are the worst of the big companies like Google and Apple.  Yes, you could argue that Apple gouges its customers with expensive hardware but my MacBook Retina is a very nice piece of hardware and you can’t get a machine like it with its resolution until now with the Google Pixel.  OSX is a superior operating system to windows 8, even with win 8’s new flashiness, I just want to get work done and OSX still runs circles around it, with minimal updates.

So tell me why I would want to go to a conference where I am just going to be hearing how a company is still trying to play catch up with a product they have failed at getting the public to buy into?  Get free stuff you say?  I could take the $1600 (early, probably $2100) and get myself a surface pro and have money left over.  But you would get a phone too you say?  The iPhone is still superior to the windows phone, developers are still not jumping on the winphone bandwagon.  Facebook and Google refuse to make apps for it which is why 3rd party developers are jumping in and doing a horrible job at it  Microsoft had to roll their own facebook app to get users to use this phone!!!  If that doesn’t tell you something, nothing will.

I am amazed that a company with the resources of Microsoft cannot do a better job than Apple or Google, its truly amazing, they were the big dogs for years but they just simply can’t keep up anymore.  I am sure their past history with the open source community hasn’t helped any with efforts.  From what I can see, they have painted themselves into a corner and the technology field is just passing em by.