Tuesday, 6 November 2012

Programming in HTML5 with JavaScript and CSS3 (70-480) Free Examination Voucher

Programming in HTML5 with JavaScript and CSS3. It's your chance to assess your skills, validate your knowledge, and prove your HTML5 chops. More importantly, it's your first step toward earning our industry's first and only certification for HTML5 expertise: Microsoft Certified Solutions Developer (MCSD). MCSD certification is proof positive to employers and peers that your code skills are second to none.

How to take free examination

Go to www.register.prometric.com and follow the steps to schedule Exam 70-480: Programming in HTML5 with JavaScript and CSS3 at a testing centre near you.

Use the voucher code HTMLJMP to get the free exam. Pass, and you'll be well on your way to joining the community of elite MCSD developers.

Developing HTML5 Apps Jump Start Free Online Course

Go to http://www.microsoftvirtualacademy.com/tracks/developing-html5-apps-jump-start and enroll in the JumpStart online course, which covers HTML5 development using JavaScript and CSS3, and sharpens your Windows app development skills.

Download free eBook (Programming Windows 8 Apps with HTML, CSS and JavaScript)

Share:

Debugging .NET code using Devices(iPad/iPhone) and Fiddler

While working on programs which are targeted for devices (mobile, tablets, etc) we often face a situation where we feel that just device simulators are not enough I wish if I could run my programs in debug mode using the physical device. And this scenario often arises because personally I too faced a scenario where I was able to run my website on the simulator without any issues but the same was not working as expected on the physical device.

So in this post I am going to show you how to debug the .NET codes using apple iPhone or iPad. To do this  you

  • First need to configure Desktop or Laptop computer where you are running your .NET code
  • Second Configure Devices iPhone or iPad

There are few perquisites which are required

  1. Of course a apple (iPhone or iPad) device which can be used to debug the codes, you can also use Andriod phones but ad hoc connections are not supported by default on Andriod phone.
  2. WiFi enabled on your PC with administrator privileges, you can either enable you Internet connection sharing on WiFi network or created a ad hoc network, details of which I am going to mention later.
  3. If you are going for ad hoc network you may need a proxy server installed on your PC, here I am going to use Fiddler, you can download from here: http://www.fiddler2.com/fiddler2/version.asp
  4. Visual Studio installed, I am going to use Visual Studio 2012 in this article, but this post holds good for any version of Visual Studio as long as it can support debugging.

In this post I am going to show connecting using iPhone/ iPad using ad hoc network using my Fiddler.

Now lets get started step by step starting from configuring my system to configuring the phone device.

Creating a ad hoc network

  1. Open Network and Sharing Centre (Control Panel\All Control Panel Items\Network and Sharing Center).
  2. Go to Manage wireless network –> Add, this will open a Popup screen where either you can Manually create a network profile or you can Create an ad hoc network

image

3. Once you get the following screen, you can enter the name of the ad hoc network of your choice, select WEP as Security type, give the Security key and select the checkbox to Save the network, as given in the screen below.

image

Now you system is almost ready to accept incoming connection through the wireless network devices, just make sure your wireless is turned on, go to the taskbar network icon and open the window, this will display the newly created ad hoc network by you as Waiting for users. 

image

Now since your network is ready to accept incoming connections I am going to set up my proxy server where I am going to use Fiddler. To configure Fiddler open the fiddler in your system, Go to Tools –> Fiddler Options –> Navigate to Connections Tab select the check boxes as given in the screenshot below and leave the port as default 8888 if not already in use in your system, this can be changed as required.

image

Now since your system is ready for device connection, the only thing left is configuring your device. To configure your device follow the following steps.

In your iPhone or iPad first go to Cellular Data settings this is applicable if you are using your network provider internet connection. Once you open this Cellular Data tab in your device, disable the cellular data as given in the screen below..

iPadDeviceiPhoneDevice1

Now its time to configure your Network Settings in iPad and iPhone

iPadDevice3

iPhoneDevice2iPhoneDevice3

In the screen above you have to configure your device to use Static IP Address, with the IP Address which should be in the same network address and subnet address. You just need to give some unused class D address which should be different from your system to which this is connecting. You can check your system IP Address of Wireless LAN adapter using ipconfig command in command prompt. This IP address will be the IP Address of the device (iPad/iPhone).

Now go to the HTTP Proxy settings on the same page below of device network settings, select the proxy settings as Manual. In the Server you have to enter the correct IP Address of the wireless LAN adapter of your system (Desktop/Laptop), enter the port which was configured on Fiddler as given in the fiddler settings above.

Once you have completed these settings your device is also ready to connect to the System. Once connected you can see the status as connected instead of Waiting for users in ad hoc network.

Now once everything looks fine, you can go ahead and first run the application in debug mode in your system, once your application opens in the web browser you can get the URL address on which your application is ready for debug. As per my convenience I have used a MVC application for debugging, but you can use any other types of web application also.

iPad1

Enter the Same URL (http://localhost:35510/) in your device. I have kept a line of code which gives me the UserAgent from where the request is coming from.

string userAgent = HttpContext.Request.UserAgent;

Following are the screens which I get in iPad and iPhone respectively

iPhoneDevice4   iPadDevice2 

Now if I go and set the breakpoint in the code, I can see the user agent which clearly shows the requested client user agent.

iPhone2Laptop

iPad2Laptop

In the above two screens you can see the user agent browser as Mozilla/5.0 (iPhone…) and Mozilla/5.0 (iPad…) for iPhone and iPad respectively.

Note: IP addresses are used in this article are just for illustration only, this is not directly or indirectly related to any existing IP address used anywhere in existence.

Hope this helps.

Share:

Friday, 2 November 2012

Visual Studio 2012 Team Foundation Service

Almost most of us who work in our personal systems often face challenges when it comes to learn something on Team Foundation Server, because the biggest challenges we face is setting up the environment, acquiring the server license, configuring the environment, setting up the client applications, etc.

So we have to depend on our office environment where we can learn something on TFS. But still we have limited privileges and we cannot experiment with so many uncovered features which we had always wished for while learning through books or website or MSDN.

Ok, having said all these let me give you some good news, Visual Studio has launched much awaited Cloud based Team Foundation Server Service for Visual Studio, Eclipse, Xcode environments with the following brilliant features and top of those free to learn, experiment and of-course for business too.

  • Team Collaboration and Agile Planning,
    • Built-in task board
    • Backlog management
    • Capacity planning
    • Issue and Bug tracking
    • Integrated feedback requests
    • Storyboarding with Microsoft PowerPoint
  • Build, Test, Deploy
    • Track build health over time
    • Continuous delivery to Azure
  • Cloud powered source code management
    • Code reviews
    • Code merging for check-in conflicts
    • Context management preserves your focus

and much more…

with no infrastructure required to manage, accessible from anywhere, supporting almost all the languages and platforms.

image

And the icing on the cake is this is Free to use, you just need to signup using this link https://tfs.visualstudio.com/

Once you sign-up for Team foundation service has got all the required resources to help you to learn the TFS features and offerings. Team Foundation Service getting started guide will help you to learn almost everything you need to know about this service like:

  • Connect to TFS (using Visual Studio, Eclipse, and Xcode)
  • Uploading your code
  • Check files in and out
  • Get your Code Reviewed using TFS environment
  • Creating and running a unit test manually or automatically with local builds
  • Using other unit test frameworks
  • Use Git and VS with TFS

Free plan of TFS will cover the following features

image

For additional users, pricing you can visit the following links for other service plans you may have to wait till 2013.

Happy Learning !!!

Share:

Thursday, 1 November 2012

Better way to Integrate Facebook Like Button

If you are developing a website and you must integrate with social networks sites like Facebook, Twitter and Google plus to reach more people. I strongly believe Facebook is the new virtual world to increase your product sales and generating web traffic. In this post I want to explain a simple tip, that how to integrate Facebook like button in optimizing way for just adding few FBML META tags.

Facebook Like Button.
Read more »
Share:

Monday, 22 October 2012

Login with Facebook and Google.

Introducing the new FGlogin commercial edition, an OAuth login system for your website with Facebook and Google. FGLogin is very quick and powerful, sure this helps you to increase your web project registrations. It's definitely a must have login system for every PHP based web projects. Hardly it will take 5 mins for installation.

Login with Facebook and Google.
Read more »
Share:

Thursday, 11 October 2012

MySQL Event Scheduler

If you are running a large public web applications like shopping and emails portals, you have handle lots of unwanted data rows for example spam emails and unused shopping cart data. Sure it will created problem in database overload. So that I want to explain a simple tip called how to use MySQL event scheduler for deleting unwanted data rows from database.

RESTful Web Services with input parameters
Read more »
Share:

Monday, 8 October 2012

RESTful Web Services JSON API Transformer with Java

This post is the continuation of my previous last post, I had explained how to create a basic RESTful web services API using Java, now I want to explain JSON transformer to work with input Get and Post methods parameters. Just added a new class called transformer it converts object data into JSON text output format.

RESTful Web Services with input parameters
Read more »
Share: