UTM Coordinate Converter Available

December 7th, 2009

Link: http://www.ewert-technologies.ca/online_tools/coordinate_converter.html

 

Another free online tools is now available: UTM Coordinate Converter.  This tool converts Geographic Locations into various fomats and displays the location on a Google Map.  The tool supports Decimal Degrees, Degree Minutes, Degree Minutes Seconds and UTM.  It also support various Datums when converting between Latitude/Longitude and UTM.

To try out this free tool, as well as the other free tools offered by Ewert Technologies, go to Online Tools.

The tool require the Java plugin for your browser.  If you don't have the Java plugin, go to www.java.com.

Introduction to working with Java dates

November 26th, 2009

 

Many new Java developers often struggle with how to deal with dates in Java.  In the article, I will give a quick primer on how to easily work with dates.

In Java, a date/time is stored internally as the number of milliseconds since January 1, 1970 UTC; this is often referred to as the Epoch.  So, when creating a Date object, the constructor is a long.  To create a Date object with the current date and time, use the empty constructor.

import java.util.Date;
Date myDate = new Date(); //creates Date object using the current date and time

To display a Date in a format a user can read, the SimpleDateFormat class comes into play.   To use SimpleDateFormat, you specify a pattern for the date.  The various pattern letters are defined in the Java API documentation.

Examples:

"yyyy-MM-dd" would produce something like 2009-11-26

"MMMM dd, yyyy HH:mm" would produce something like November 26, 2009 21:03

So to display you Date you first create an instance of a SimpleDateFormat, and use that to create a String:

SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");
String formattedDate = dateFormat.format(myDate);

The SimpleDateFormat class can also be used to create a Date object from a String:

Date newDate = dateFormat.parse("1969-10-15");

The above produces a new Date object set to October 15, 1969.

There a many more complexities with date and times, such as dealing with time zones, calcuating differences between dates, etc. but this should hopefully provide a good starting point.

For a handy tool, to convert between Java timestamps and formatted Dates incorporating different time zones, try Timestamp Converter

Using Wink to create Screen Casts

November 17th, 2009

 

Over the past few weeks I have been playing around with different software for creating screen casts, that can be used to demonstrate the features of PWMinder.  While screen shot images are important to let the user see the general look of the UI, screen casts showcase how an application really works!

In my search for screen cast software, my requirements were that the software is free (or fairly inexpensive), allows the screen casts to be easily put on to a web page, and easy to learn and use.

After trying several applications I have settled on using Wink.  What makes Wink different is that instead of recording user actions as a 'movie' it records it as individual screen shots.  The screen shots are triggered by user actions such as mouse clicks and keyboard events. With this model, you don't have to worry about making typing mistakes, etc. while you are recording, because if you make a mistake you simple remove those screen shots.  You also to have to worry about timing while recording (e.g. pausing too long in on place, or not waiting long enough at another), because Wink only capture a sreen shot in reponse to an input event.  With wink, after you have recorded your series of screen shots, you go back and can specify how long each screen should be displayed for. This feature also makes the resulting video smaller; for example in a typical movie-type capture model, if you stay on the same screen for 5 seconds, it captures in the range of 150 images, while for Wink, it captures and stores the image just once and then on replay, displays it for 5 seconds.

Other useful features include the ability to add text and callouts to the screens to provide added information.

Once you are happy with your sequence, you render it to a .swf file.  It also creates a javascript file and and .html file so you can integrate the flash into your website.

The way I integrated the videos into my website was to create a static image of the first video screen shot, resized it smaller, to act as a thumbnail, and saved it as an .png file.

On the page I want to launch the video from I added the following code:

<a href="AutoLogin.htm" target="Wink"
onclick="javascript:WinkPresentation('AutoLogin.htm');">
<img src="autologin_thumb.png" width="205" height="154" alt="Auto Login thumbnail image" title="Click to view screen cast" border="0"/>
</a>

where the href points to the .html file created by Wink and img src is the thumbnail.  The .html created by wink looks something like:

<HTML>
<BODY>
<center><OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" WIDTH="1024" HEIGHT="788" CODEBASE="http://active.macromedia.com/flash5/cabs/swflash.cab#version=7,0,0,0">
<PARAM NAME=movie VALUE="AutoLogin.swf">
<PARAM NAME=play VALUE=true>
<PARAM NAME=loop VALUE=false>
<PARAM NAME=wmode VALUE=transparent>
<PARAM NAME=quality VALUE=low>
<EMBED SRC="AutoLogin.swf" WIDTH=1024 HEIGHT=788 quality=low loop=false wmode=transparent TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">
</EMBED>
</OBJECT></center>
<SCRIPT src='AutoLogin.js'></script>
</BODY>
</HTML>

where the script src is the javascript file created by Wink.

Some tips:

  • I recorded with my screen resolution set to 1024x768 so video would fit on most screens when viewing
  • I set Cursor Movement setting about 10% of the way to Rough (i.e. closer to smooth).  This seemed to give the most natural mouse movement.

To see some screen casts I created check out: http:/www.ewert-technologies.ca/products/pwminder/screen_casts.html

New PWMinder 2.0 Screen Cast

November 16th, 2009

A new Screen Cast is available for PWMinder.  This new demo shows how to set up and configure the Auto Login feature, for automatically logging in to a website.  It uses logging in to a Gmail account as an example.  To view this screen cast and other PWMinder screen casts, please visit: http://www.ewert-technologies.ca/products/pwminder/screen_casts.html.

For more information on setting up Auto Login, in PWMinder, please refer to the User Guide available on the PWMinder download page.

PWMinder 2.0 Screen Casts now available.

October 27th, 2009

I have recently added some Screen Casts demonstration videos of PWMinder 2.0.  Initially I have added a video demonstrating how to create a new Repository, and one demonstrating how to Add a new Record.  These can be viewed at http://www.ewert-technologies.ca/products/pwminder/screen_casts.html.  I plan on adding more demonstrations, covering topics such as exporting a Repository, setting up Auto-Login, and searching.