Eye Tracking Sensor

Creating an eye tracking app using a BlueGain EOG Biosignal Amplifier to wirelessly connect to a computer and using a Matlab script reading the EOG data. Integrating with .Net.

Posted on Friday, October 02, 2015 8:20 AM

Tour de Tonka 2015

Riding Tour de Tonka 8/1/2015 100 mile route with Kelly Fitz. Rose volunteered with Annette Barrett to direct people at corner of CR6 & 92.

Posted on Saturday, August 01, 2015 12:00 AM

VS2013 Developer Command Line

Using Windows Explorer, navigate to:
C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Visual Studio 2013

In that folder, you'll see a shortcut named Visual Studio Tools that maps to (assuming default installation):
C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools\Shortcuts

Double-click the shortcut (or go to the folder above).

From that folder, copy the shortcut named Developer Command Prompt for VS2013 (and any others you find useful) to the first directory (for the Start Menu). You'll likely be prompted for administrative access (do so).

Once you've done that, you'll now have an icon available for the 2013 command prompt.

Posted on Tuesday, July 14, 2015 10:48 AM

Linq - query distinct using object

Code to get distinct on objects

var params = values.Where(w => w.something == "something").DistinctBy(d => d.name);

public static IEnumerable<TSource> DistinctBy<TSource, TKey>
    (this IEnumerable<TSource> source, Func<TSource, TKey> keySelector)
    HashSet<TKey> seenKeys = new HashSet<TKey>();
    foreach (TSource element in source)
        if (seenKeys.Add(keySelector(element)))
            yield return element;

Posted on Tuesday, April 21, 2015 6:15 AM

Adaptive Object Model

Working on software that is using Adaptive Object Model.

Architectures that can dynamically adapt to changing requirement are sometimes called reflective or meta-architectures. We call a particular kind of reflective architecture an Adaptive Object-Model (AOM). An Adaptive Object-Model is a system that represents classes, attributes, relationships, and behavior as metadata. It is a model based on instances rather than classes. Users change the metadata (object model) to reflect changes to the domain model. AOM stores its Object-Model in XML files or in a database and interprets it. Consequently, the object model is adaptive; when the descriptive information for the object model is changed, the system immediately reflects those changes.

Posted on Saturday, April 04, 2015 5:48 AM

File path problems - Visual Studio - FileListAbsolute.txt

FileListAbsolute.txt are generated or updated when build. Get latest from source control and copied the project(s) to different folders to work on 'new' version. The FileListAbsolute.txt still has the paths to the other folders. Even though my reference is to the dll I want, I noticed that the actual file being referenced is to the FileListAbsolute.txt pathed version. Delete the FileListAbsolute.txt files and they are regenerated when rebuild all.

Posted on Monday, February 16, 2015 7:58 AM

Working with XML files using C++


Build a XML doc...


#include "tinyxml2.h"
using namespace tinyxml2;

XMLDocument parameterDocument;
XMLNode* pRoot = parameterDocument.NewElement("Parameters");
XMLDocument doc;

int loadOkay = doc.LoadFile(fileName.c_str());
if (loadOkay == 0)
	tinyxml2::XMLNode* pDocRoot = doc.FirstChild();
	tinyxml2::XMLElement* pElement = pDocRoot->FirstChildElement("Parameter");
	for (tinyxml2::XMLElement* child = pDocRoot->FirstChildElement(); child != NULL; child = child->NextSiblingElement())
		XMLElement* pElement = additionalParameterDocument.NewElement("Parameter");

		for (tinyxml2::XMLElement* child1 = child->FirstChildElement(); child1 != NULL; child1 = child1->NextSiblingElement())
			XMLElement * pEle = additionalParameterDocument.NewElement(child1->Value());


Posted on Tuesday, January 06, 2015 12:50 PM

Copying Files Between Windows and Linux using PuTTY

Transfer files between your Windows PC and your Linux (Ubuntu) project using Ethernet.

PuTTY is a program that connects one device to another over the network. It supports SSH and Telnet, among others. It is a “client” application that talks to a “host”.

Download PuTTY here: http://www.chiark.greenend.org.uk/~sgtatham/putty/

File transfers can be done using PSCP (Putty Secure CoPy) or by using PSFTP (Putty Secure File Transfer Protocol).
PSCP is launched from a command prompt.

set PATH=C:\Program Files (x86)\PuTTY

To copy a Windows file to Linux system, at the DOS prompt, type "pscp c:/ user@remoteserver:Dean" which will copy the files to a Linux folder called Dean.

The reverse works as well (copy Linux file to Windows), "pscp user@remoteserver:/Dean/ c:/"

Posted on Tuesday, December 23, 2014 9:18 AM

C# Read Excel File

Microsoft.Office.Interop.Excel.Application _excelApp = new Microsoft.Office.Interop.Excel.Application();
Workbook workbook = _excelApp.Workbooks.Open(openFileDialog1.FileName);
Worksheet workSheet = workbook.Worksheets["TabName"];
Range usedRange = workSheet.UsedRange;
object[,] valueArray = usedRange.get_Value(XlRangeValueDataType.xlRangeValueDefault);
TextBox.Text = valueArray[2, 2].ToString();

Posted on Wednesday, December 03, 2014 7:48 AM

Not able to change account picture and lock screen picture in Windows 8.1

Clicking on the Browse button just flickers and doesn't not display select window

1. Run > Regedit
2. Go to "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Current Version\Explorer\Desktop\NameSpace"
3. Right Click at the "NameSpace" folder and make a new Key and name it to {B4FB3F98-C1EA-428d-A78A-D1F5659CBA93}
4. Double click at the "(Default)" string and put the Value data as "Other Users" (with no quotes)

Posted on Sunday, November 16, 2014 11:59 AM