Master the Managed Azure Mobile Services Backend

This is the first part of the multi-part series of the Azure Mobile Services backend. This series is meant for developers who have already created a WAMS service using JavaScript backend or for developers who want to develop a WAMS service using the managed backend right from the start.

The new managed backend gives you way more power, but also means way more responsibility. You also need to update your knowledge about Web API, dependency, self hosting, entity framework, etc.

Requirements:

You must be familiar with the following technologies:

Web API, self hosting, OWIN

Azure Service Bus Notification Hubs

Related concepts around these technologies.

 

Read the rest of the post here: http://www.codeproject.com/Articles/780348/Master-the-Managed-Azure-Mobile-Services-Backend-P

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS

6 Rules For MongoDB Schema Design

If you are a beginner in MongoDB like I am, Here are some of the things I’ve learned while using MongoDB.

When designing a MongoDB schema, start with a question that you’d never consider when using SQL. What is the cardinality of the relationship? You need to characterize your “One-to-N” relationship with one-to-few, one-to-many, and  one to squillions. This depends on what type of format you’ll use to model the relationship.

In this post, we’ll show you the difference of each relationships. Even at the basic level, there is more to think about when designing a MongoDB schema.

Read the rest of the post here: http://blog.mongodb.org/post/87200945828/6-rules-of-thumb-for-mongodb-schema-design-part-1

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS

Build Flappy Bird with JQuery and 100 Lines of JavaScript

So you want to earn $50,000 a day? Make a Flappy Bird game. It may look to simple and silly but Flappy Bird has gained enough popularity for a developer to earn $50,000 a day in that silly game.

So, let use help you earn that big bucks. Creating this game is simple, all you need are 5 images: the bird, background, sky, obstacles and instructions.

Save yourself from the frustration of animating the bird by using an animated GIF file. In this way, the browser can make use of it much efficiently than having to animate it programatically. However, animated GIFs won’t work on other platforms so be weary of that.

 

Read the rest of the tutorial here: http://www.codeproject.com/Articles/778727/Build-Flappy-Bird-with-jQuery-and-lines-of-Javascr

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS

XP Hack to Allow Windows Embedded Updates

Microsoft dropped XP last April but that doesn’t mean that you can’t install updates, however gaining access to these updates won’t be easy. According to this guide, a registry tweak is needed to tweak the machine into accepting the latest updates.

 

Installing updates on XP won’t be too easy from now on. You’ll receive a version mismatch error if you try, but this fix is sure to fix that.

 

The problem is, thesa upates are for Windows Embedded and Windows Server 2003, According to Microsoft, this hack won’t affect Windows XP computers and can run a significant risk of functionalities with their machines if they install these updates.

Read the rest of the post here: http://mcpmag.com/articles/2014/05/27/windows-xp-hack.aspx

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS

Enum DropDownList in MVC 5.1

With the release of MVC 5.1, there finally came enum support it View. There is an older and even stable approach that is still usable. There are plenty of resources that can be found on the web but this one is much simpler.

 

You’ll be needing the following:

Visual Studio 2012: ASP.NET and Web Tools 2013 for VS 2012.

Visual Studio 2013: Visual Studio 2013 Update 1. This is needed for editing ASP.NET MVC 5.1 Razor Views.

Now that you have the tools, lets get started.

 

First create an ASP.NET Web Application.

To demonstrate enum support, let’s build a simple student registration form where we expect that dropdown box will show the gender, country, etc.

Read the rest of the post here: http://www.codeproject.com/Articles/776908/Dealing-with-Enum-in-MVC

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS

Understanding ASP.NET Templates

If you are in the business to display web pages using ASP.NET, you may have probably used templates. All these data bound controls like DataList, TreeView, Repeater, and ListView use template to make life work easier.

This is because you define the template only once and the data binding mechanism will repeat for each and every row of the data for you.

 

This idea works with great efficiency but there is a little misunderstanding when it comes to accessing the controls inside the data rows using the ID of the template.

Read the rest of the article here: http://www.codeproject.com/Articles/775111/Understanding-ASP-NET-Templates

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS

Include Html.AntiForgeryToken() For All ASP.NET MVC Forms for Security

After implmenting new form pages in ASP.NET MVC, there are two things that are added to every form:

After Html.BeginForm() put @HTML.AntiForgeryToken()

Add the Attribute[ValidateAntiForgeryToekn] to every post action method.

 

What this does is to make sure that the trusted browser that go to the original GET page is the same as the one delivering the POST message. However, this assumes that the end user is running a trusted browser.

The idea is that a user who is using the browser will know that they are on a trusted site and will not be posting bad code back to the server.

 

Read the rest of the post here: http://blog.stevensanderson.com/2008/09/01/prevent-cross-site-request-forgery-csrf-using-aspnet-mvcs-antiforgerytoken-helper/

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS

Introduction to JSON

JSON is a JavaScript Object Notation invented by Douglas Crockford. JSON is actually a lightweight alternative to XML, langugage and platform independent script. JSON is similar to XML. XML uses tags while JSON is based on the object-literal notation of JavaScript.

JSON is a subset of the object literal notation of JavaScript. Since it is a subset of JavaScript offers an easy way to create and store data structures within JavaScript.

JSON format is used for serializing and transmitting structured data over a network connection. What is great about JSON is that it can be used for modern programming languages.

Other benefit of JSON is that JSON for AJAX application is faster and easier than XML.

 

Read the rest of the post here: http://www.codeproject.com/Articles/773359/Introduction-to-JSON-Using-JSON-in-ASP-NET-Web-App

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS

ASP.NET Data Repeater for Heirarchial Data Source

The author was working on a project that needs to implement blog functionality. Everything was going fine until he started to implement the comment/reply function. He needs to store the data heirarchically, so he used the Data Repeater with some JQuery lines. It is easier than it looks like so in this article, the author used the EntityDataSource but you can also use other source acceptable by the repeater. The author assumes that you used Entity Framework, Data Repeater and JQuery before.

You can download the sample in the blog, so visit the site to learn more.

Read the rest of the post here: http://www.codeproject.com/Tips/773750/ASP-NET-Data-Repeater-for-hierarchical-data-source

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS

Date and Time Formatting in JavaScript Similar to .NET, C# or VB.NET

A date and time format string defines the text representation of a Date()  object which results in a custom format string. Any string now a standard date and time format is interpreted as a custom data and time format string.

When formatting operations, a custom date and time format string can be used with the format method of a Date() instance. This format method needs an input string to conform exactly to a particular pattern for the parse operation to success, otherwise it will give an error.

In this post, we’ll show how to use the Date() object with custom formatting.

Read the rest of the post here: http://www.codeproject.com/Articles/773356/Date-and-Time-formatting-in-JavaScript-like-Net-Cs

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS