Representing null in JSON

Let’s evaluate the parsing of each: http://jsfiddle.net/brandonscript/Y2dGv/ The tl;dr here: The fragment in the json2 variable is the way the JSON spec indicates null should be represented. But as always, it depends on what you’re doing — sometimes the “right” way to do it doesn’t always work for your situation. Use your judgement and make an informed decision. JSON1 {} This returns an empty … Read more

Where do I find a list of all mat-icons — Angular

EDIT: As the icons listed on the website are slightly outdated, here’s some alternative resources: Material Design Icons DX – (forked version) Isn’t it Material Icons (as stated by @RobbyCornelissen)? The Google Material Design team had recently (last month) updated their website. Anyways, the Angular Material team expects developers to include the Google Material Design Icon Font … Read more

System.Net.Http: missing from namespace? (using .net 4.5)

HttpClient lives in the System.Net.Http namespace. You’ll need to add: And make sure you are referencing System.Net.Http.dll in .NET 4.5. The code posted doesn’t appear to do anything with webClient. Is there something wrong with the code that is actually compiling using HttpWebRequest? Update To open the Add Reference dialog right-click on your project in Solution Explorer and select Add Reference…. It should look something like:

Good MapReduce examples

Map reduce is a framework that was developed to process massive amounts of data efficiently. For example, if we have 1 million records in a dataset, and it is stored in a relational representation – it is very expensive to derive values and perform any sort of transformations on these. For Example In SQL, Given … Read more

Why do I have to “git push –set-upstream origin “?

TL;DR: git branch –set-upstream-to origin/solaris The answer to the question you asked—which I’ll rephrase a bit as “do I have to set an upstream”—is: no, you don’t have to set an upstream at all. If you do not have upstream for the current branch, however, Git changes its behavior on git push, and on other commands as well. The … Read more