Monday, June 13, 2016

Login View App Project in Intel XDK - Part 1

This app helps you include support for logging in to proceed with the app. The user will be asked to register his login information before he/she access the app. Intel XDK version 3400 and Windows 10 Professional were used for this post.

Some details of Login View App  are available here:


Launch Intel XDK and Start a New Project.

The following window with all the templates open.


Click on Login View App to display this window.


In the Login View App window choose Standard HTML5.


Click Continue at the bottom right.

In the New Project Name and Location screen that gets displayed provide a name for the project


Enter a name, herein TestLog and click Create.
The project is successfully created.


The Intel XDK displays the index.html page as shown.


It has 4 views under the 'pages' section.
Welcome View
Login View
Register View and the
Main App View

In the DEVELOP tab there is nothing else but the code. There is no DESIGN tab. There are files and folders of the app as shown.


Click on the EMULATE tab to display the app on the Apple iPhone 6 emulator (probably this was the emulator that was used the last time).


Click on Register. The Register page opens as shown.


Enter the details and click Register
The account get created and you get to the start page. This page is empty and you need to start here.

Creating content in the empty page:

In the www folder make a right click to get the drop-down. Create New file,  FirstPage.html (empty for now)

In the Main App View page add the following code after creating the FirstPage.html.


When you launch the app and enter your login information. The Start page shows up as shown.

Now you can add content to FirstPage.html. I just reused a file from a previous project.

Now when click the link in the start page, the following is displayed. It seems to spawn a local web server at some port.

If you are looking for more technical details you can find it here.

Visit this site for more of Intel XDK Projects

This app does not store any user information. The registration is therefore useful for one (only one) time registration only. There is no back end database and is illustrative of using forms.

Tuesday, June 7, 2016

Microsoft's new collabortion app, GigJam

GigJam (code name 'Magic Glass") is an app that uses Cortana to coordinate and bring together data from various sources the scattered corporate data, on any of the PC, tablet or Phone. Each piece of data will be avialble on Cards (formatted by the app) and you can add/remove pieces of information on the cards and consolidate and send it over to one or more collaborators.

This information can be:

  • Read only or Editable
  • Synchronous or Asynchronous collaboration
  • Platform neutral being written using standards: HTML5, JavaScript, OAuth and REST
It is conceivable to use and colloborate not only Windows but also Apple and Android devices. The colloboration can take place even in the absence of Windows in the coloborating devices. The nice thing is that you can get away from the PCs and tablets and use just the phone. Truly mobile centric app.

Watch this video:

Friday, June 3, 2016

Arduino 101: Programming with Visual Studio 2015 Community Update 2

 How can I program Arduino 101 board using Visual Studio?

It is not very difficult. You need to use the right tools.
If you rather not use Visual Studio 2015, you could also use the program from Arduino.

But Visual studio does lot more than Arduino Program.

Follow these steps.
Step 1:
First thing you need to have is the correct version (if you follow my advice) of Visual Studio. Get the Visual Studio 2015 Community (What I have is the same but with Update 2).

If you do not have, no problem. Read this post.

Step 2:
For Arduino to work with Visual Studio 2015 Community (VS2015C), you need to install the Arduino Extensions for Visual Studio. A default install of VS2015C does not have the 'hooks' to create a Arduino Project. You will not find it in the 'New Project...' templates.

You need to install the Arduino Extension for Visual Studio 2015. You can get an idea how to do it by following this Swaytorial:

Step 0:
Of course you need to buy the Arduino 101. It is available from many sources. Connect it to computer with a USB cable as shown.

With all of the above in place, it is very easy to run the board from Visual Studio 2015 Community.

Step 3:
 Open Tools menu as shown to access the Extensions and Updates... submenu.


The extension immediately brings in the support for Arduino 101.

Start a new project as shown here:


Provide a name for the project (herein OneZeroOne)and click OK. The project with folders will be created for you as shown.


In the above image click on the OneZeroOne.ino file. This is the 'sketch' that you will using to interact with the board via your USB drive to which the arduino 101 board is connected. It will be a simple, empty template. You can cut and paste any of the relevant sketches. Herein I have used the same sketch I used here to run the 'Blink' project that makes a LED on the arduino 101 board to flash on and off. It is one of the example applications, something akin to a 'Hello World'.

Here is the sketch used in this post:


When you compile and run this program you may get a message like this.


You may also get the messages from the serial port as shown as you connect/disconnect or run the program:


The arduino extension you added will also add a arduino specific toolbar as shown which makes it easy to work with the board.

There are couple of ways to build the program and upload it to the board. Here is one way using the main menu.

The result:
 As soon as you upload the second LED on the board starts blinking.