Microsoft Dev Center Benefits

Originally Posted at MSDN Blogs: Microsoft Gulf Technical Community


 

Hello Developers!!

I wanted to share with you the news about the updated rewards functionality in the Windows Dev Center Benefits. For those of you who are not aware of the program, Dev Center Benefits is a global program for Windows app developers of all experience levels. Developers receive technical, design, publishing, and marketing offers to help build and promote their apps.

The program provides access to great offers as well as challenges to earn points to redeem for rewards, these rewards include the following:
Rewards Program of Windows Dev Center Benefits

  • Free Dev Center account for unregistered developers
  • Architectural guidance
  • Design Guidance
  • Gift cards for Windows Store
  • 1 million ad impressions with AdDuplex
  • Priority consideration for BizSpark program
  • Windows Store merchandising promotions
  • Priority Publisher Support

The members who join can participate in challenges to earn points which can then be redeemed for rewards. This program is available at no additional costs for those who are already a registered Windows Store developer. If you are new developer on the Microsoft platform, the program will provide a token that waives the cost of the Dev Center registration (normally $99 USD for companies and $19 USD for individuals). Moreover, all Windows and Windows Phone app developers are eligible to enroll in Dev Center Benefits. The program is open where a Windows Dev Center is available:

Joining is easy and for free, you just need a Microsoft Account (The Microsoft account you login with is assoicated to your Windows or Windows Phone Dev Center account). Here is the link to Join:https://devcenterbenefits.windows.com/join/#!/

Happy and in this case “rewarding” coding!

Microsoft Dev Center Benefits was originally published on Rami Sarieddine's Blog

Posted in Uncategorized

Microsoft Dev Center Benefits

Originally Posted at MSDN Blogs: Microsoft Gulf Technical Community


 

Hello Developers!!

I wanted to share with you the news about the updated rewards functionality in the Windows Dev Center Benefits. For those of you who are not aware of the program, Dev Center Benefits is a global program for Windows app developers of all experience levels. Developers receive technical, design, publishing, and marketing offers to help build and promote their apps.

The program provides access to great offers as well as challenges to earn points to redeem for rewards, these rewards include the following:
Rewards Program of Windows Dev Center Benefits

  • Free Dev Center account for unregistered developers
  • Architectural guidance
  • Design Guidance
  • Gift cards for Windows Store
  • 1 million ad impressions with AdDuplex
  • Priority consideration for BizSpark program
  • Windows Store merchandising promotions
  • Priority Publisher Support

The members who join can participate in challenges to earn points which can then be redeemed for rewards. This program is available at no additional costs for those who are already a registered Windows Store developer. If you are new developer on the Microsoft platform, the program will provide a token that waives the cost of the Dev Center registration (normally $99 USD for companies and $19 USD for individuals). Moreover, all Windows and Windows Phone app developers are eligible to enroll in Dev Center Benefits. The program is open where a Windows Dev Center is available:

Joining is easy and for free, you just need a Microsoft Account (The Microsoft account you login with is assoicated to your Windows or Windows Phone Dev Center account). Here is the link to Join:https://devcenterbenefits.windows.com/join/#!/

Happy and in this case “rewarding” coding!

Posted in Uncategorized

How to get FTP Credentials for Microsoft Azure Websites

Azure Websites

Originally Posted at MSDN Blogs: Microsoft Gulf Technical Community
———————————————————————————————–

Some of you, who have been using Azure or planning to use it at some point, might come across this small predicament. So you create a Azure Website and then you might want to connect to that Website via FTP. You go to the Azure Portal -> Websites, you look for the FTP credentials but all you can see is the following:

  • Site URL:                             something.azurewebsites.net
  • FTP host name:                  ftp://waws-prod-db3-003.ftp.azurewebsites.windows.net
  • FTPS host name:               ftps://waws-prod-db3-003.ftp.azurewebsites.windows.net
  • Deployment / FTP user:    something\user
  • FTP Diagnostic Logs:        ftp://waws-prod-db3-003.ftp.azurewebsites.windows.net/LogFiles
  • FTPS Diagnostic Logs:     ftps://waws-prod-db3-003.ftp.azurewebsites.windows.net/LogFiles

These values do not give you access to your FTP credentials. Moreover, the FTP credentials are not the login and password that you are using everywhere else.
Nevertheless,  Azure provides you with a Publish Profile that you can download as per the following screenshot:

– Save that Publish Settings file some where on your machine so you can edit it.

– Open the file with a notepad or XML viewer for better readability (you can open it with Visual Studio too)

The file would look something like the following:

The previous screenshot shows the FTP server name (Host), user name and password. These values are what you need to enter when you use an FTP tool like Filezilla or any other tool you have to access your site remotely. Bear in mind, that the ftp Passive Mode is set to true.

That’s it for now. Happy FTPing.

 

Posted in Windows Azure Tagged with:

JavaScript Promises Essentials

Book Cover

I have some very exciting news!

My book titled JavaScript Promises Essentials has been published. For the past couple of months I was a bit :) busy with authoring this small technical book of around 90 pages. It was a great challenge, as the topic is very focused. This book is my second publication after the title Developing Windows Store Apps with Html5 and JavaScript which was published last year around the same time. My second authoring experience and it is getting better, I do hope that I will be able to find time in the future for more books and maintain the rhythm. The book was published by Packt Publishing whose team of editors, technical editors, reviewers and project managers provided me with a great guidance and support throughout the authoring period. Moreover, I would like to thank Brian Cavalier for his support and taking the time to contribute with his knowledge on the topic.

The book has the following details:

  • ISBN: 139781783985647
  • Paperback: 90 pages

In a nutshell, the main topic of the book is JavaScript Promises; which is a new programming concept in JavaScript that allow developers to request data that they don’t have yet and deal with it at a non-determined point in the future (asynchronously). Starting with the basics of the promise objects, we’ll be able to leverage the maximum capabilities of promises when writing applications.

The book starts by giving you some background information on the asynchronous programming model in JavaScript, recognizing its importance in JavaScript programming. It then walks you through the key concepts and intricacies of the Promises API. Following that, you will learn how you can write complex asynchronous operations with chained promises and be able to catch and handle exceptions. This book aims at providing you with the essential knowledge needed to write better asynchronous operations using JavaScript promises

Who This Book Is For

If you are a JavaScript developer working with asynchronous operations and want to know more about promises, then this book is ideal for you. Having a detailed explanation of JavaScript promises will be perfect as your next step towards adopting this new standard and using the API in your web and JavaScript applications.

Here is a list of some of the things that you will learn from reading this book:

  • Implement asynchronous programming in JavaScript
  • Get acquainted with the JavaScript Promises API
  • Choose the right JavaScript libraries to use callbacks in a non-compatible platform
  • Write chained asynchronous operations that are easy to manage
  • Master WinJS Promises for developing Windows applications
  • Differentiate between various implementations of promises in JavaScript
  • Put promises into action in your applications
  • Catch and handle errors effectively in asynchronous operations
  • Explore browser support and platform compatibility for JavaScript promises

Read more about the book on this link, or download a sample chapter from here

You can also find the book on Amazon available in Paperback  and Kindle Edition via this link: http://www.amazon.com/JavaScript-Promises-Essentials-Rami-Sarieddine/dp/178398564X

Happy Reading :)

Posted in Books Tagged with: ,

The simplest JavaScript Promises examples

You might have heard the new buzz word Promises. I am not going to take long explaining Promises in this post, I will have another just on that topic. But for now, what you need to know is the following

  • Promise/A+ is the open standard for sound, interoperable JavaScript promises.
  • “Promise” in the A+ spec is defined as “an object or function with a then method whose behavior conforms to this specification”.
  • Promises present a great solution to address the complexities of asynchronous operations in JavaScript.
  • Promises are native with ECMAScript 6
  • Promises save you from the “CallBack Hell”
  • Promises have been implemented in numerous JavaScript libraries and many of which are complaint to the Promises/A+ spec.
  • It is available in WinJS but it adheres to the CommonJS/Promises proposal and still is not complaint to the Promises/A+ spec

I wanted to share with you the simplest example of an asynchronous call with Promises. The following code can be viewed in this JSFiddle http://jsfiddle.net/azrd0n4s/ as well

var promTest = function () {
return new Promise(function (resolve) {
setTimeout(resolve, 2000);
});
};
promTest().then(function () {
alert("and then?");
}, function (error) {
alert("i have errored");
});

The previous code is straightforward, we created a variable called promTest and assign it to a function that returns a new promise, we create a new promise that is resolved with a setTimeout after 2 seconds.
Then we call that promise with its then() method and pass it alert() in the success handler and alert(“i have errored”!) in the error handler.
Run the code in an HTML page or the above JSFiddle link and you will see it action.

Now how about a simple example that uses an XMLHttpRequest to make a web call and retrieve a JSON content  using promises. You can test it on this JSFiddle:  http://jsfiddle.net/cv0n9ogj/
HTML


<div id="result" style="color: red;"> </div>

JavaScript
var getJSON = function(url) {
return new Promise(function(resolve, reject) {
var xhr = new XMLHttpRequest();
xhr.open('get', url, true);
xhr.responseType = 'json';
xhr.onload = function() {
var status = xhr.status;
if (status == 200) {
resolve(xhr.response);
} else {
reject(status);
}
};
xhr.send();
});
};
getJSON('https://www.googleapis.com/freebase/v1/text/en/bob_dylan').then(function(data) {
// alert('Your Json result is: ' + data.result); //you can comment this, i used it to debug
result.innerText = data.result; //display the result in an HTML element
}, function(error) { //error detection....
alert('Something went wrong.' + error);
});

The code is simple again, we define a function called getJSON that returns a promise, it makes an xhr call to a URL, this web call returns json retrieved in the result of the then() method after it succeeds, then we put that result in an div element for display. you can add/remove a letter from the URL to cause an error and see how it is alerted.

Posted in Web Development Tagged with:

Enter your email address to receive notifications of new posts.

Join 56 other subscribers

Ads

 ASP.NET AJAX data grid by Infragistics

High performance and scalable ASP.NET AJAX data grid