Using d3 with Windows 8 JavaScript (WinJS) to parse a CSV file to Create a Scatter Plot

This is example of getting started with d3 to build a Windows 8 app using JavaScript. I will go step by step to create d3 scatter plot in Windows 8.  I added how to parse a CSV and to use that data to create a scatter plot.

Screenshot (21)

Continue reading

List View Click Event Example Windows 8 JavaScript (WinJS)

Here is a simple example of selecting an item from a List View with Windows 8 JavaScript (WinJS).

 

Windows 8 Link List Click Event

 

Continue reading

Reverse Geocoding using Bing Map in Windows 8 JavaScript (WinJS) Example

Here is an example of using Bing Map Api to reverse geocode a longitude and latitude to get an address.  I used this while building a Windows 8 JavaScript app. I started off using Google map api but I could not get pass the undefined ‘google’ issue so this a nice work around. It made more sense to go this route since I was already using the Bing Map API.

First step is to add the Bing Maps to your app. To sum up the stepsYou just have to download and add it to your solution then reference it from your default.html.

Continue reading

How to get List of Files from futureAccessList after relaunch Windows 8 JavaScript (WinJS) example

Simple quick JavaScript Windows 8 example of getting files that was saved by the user using futureAccessList. This also shows how to convert the MRU token to a file. I added this to the default.js.

Continue reading

2 Column Layout Example with Bing Map Windows 8 JavaScript (WinJS)

Here is an example of 2 column HTML  layout that will work with a Bing Map. You can easily create a multicolumn layout map adding a div inside “container” and adjusting the width  percentage.

2 column layout windows 8 HTML

Continue reading

How to get array of photos location, size, and camera information Windows 8 JavaScript (WinJS) Example

Windows 8 logoI am taking a break from Android development and getting into Windows 8 apps using Javascript. I am still learning so some of my code will not be best performance but it is tested. This Windows 8 example shows how to take an array of photo files and return an array of photo information including the file properties and image properties using JavaScript. With the image properties you get the meta data of a picture including the location (longitude, latitude), camera model, and image size.  The biggest problem I ran into was looping the array of photos to get the image properties (getImagePropertiesAsync() ). This is because I was not use to asynchronous programming. I found a solution (may not be ideal) online that worked. Not sure how important the timeout is but I know it works. I will have to do more testing to see if I can remove it. I am burnt out at the moment. 

Continue reading

Creating Global Session Variables for all Activities Android Example

Here is an Android example of how to share variables through out your activities and your project. There is many ways including preferences, extending from a base activity or using  a database to share variables. I like this one because it can be accessed through the whole project and it is easy to implement. The down side is that the variables are only available through a session. For example if the user restarts the application then all the variable will also be cleared. So they can be viewed as session variables.

 

Continue reading

Fading In/Out Image Button and Starting New Scene Unity 3D Example

Here is a simple example of a button fading an image out and fading in a different image on a button in Unity 3d. I have also included how to go to a new scene/level using the button with either index of the scene or by title of the scene.

Continue reading

Android Example Passing Variables Between Activities using Intent

Here is an example of passing variables between activities using Intent. It is easy to add extra inside an intent but unless you do it a lot then you may after reference an example.

Continue reading

Android Example of using Thread Class for Multithreading App

Here is a simple example of using the Thread Class for a Multithreading application . Shows how to use the Progress Dialog, Handler, and running on the UI Thread. Also how to handle the Looper.prepare() error (“java.lang.RuntimeException: Can’t create handler inside thread that has not called Looper.prepare()”). If you are getting this error then you are trying to do work that should be done on the UI/Main thread. I have example in the code to handle this.

device-2014-04-09-130053

Continue reading


Graveyard Database Logo

Has everything you want to know about grave yards. Plus has many celebrites and world leaders graves. Pssst it is my other site

Google + Profile
Check out Android Photo Mapping, its a app/site I been working on
  • wholesale nfl jerseys
  • wholesale nfl jerseys china