Installing the Kinect For Use With Unity in Windows

January 26, 2012 in Game Dev, Tip, Tutorial, Unity3D

Hello everyone. Just a short video to walk you through installing and configuring the Microsoft Kinect. This video will get the Kinect working with the Unity Game Engine in Windows 7 (and maybe earlier, but that is untested).

 

Links:

http://unity3d.com/unity/download/

http://zigfu.com

Installing the Kinect on Linux or Mac? Look here: http://www.nightmarekitty.com/2011/10/28/unity-and-kinect-tutorial/

Measuring Program Speed in VB .NET Using Stopwatch

December 13, 2010 in Code, Tip, Visual basic

In the past, I have used functions like GetTickCount to determine the amount of time a process takes. This has allowed me to benchmark the performance of my applications. Recently, however, I have started to use the built in Stopwatch object. This has proven to be more accurate and also gives me a measurement of time instead of some obscure number of system “clicks”. I have found a process that can take anywhere from 47 to 64 clicks, but always takes 60 milliseconds. Stopwatch is also fairly easy to use:

Dim sw as New Stopwatch()
sw.Start()

'Do some code process here

sw.Stop()
Msgbox("Process finished in " + sw.ElapsedMilliseconds.ToString() + " ms")

That’s it.

Obfu-What? Reducing Spam Through Email Obfuscation

October 14, 2010 in Code, NPTech, Software, Tip, Visual Basic, Website

I have yet to meet another person who can pronounce Obfuscation, but I have found it to be very important when managing a website. Obfuscation, meaning to make unclear, can be applied to email addresses on a website. This enables you to be both safe from crawling spam-bots, and able to give your users click-able, readable, email links (i.e. No more “mike(at)website(dot)com”). I recently began using Email Obfuscation roughly a year ago when we redesigned our website. At the time, our spam firewall filtered roughly 25K spam emails a day(roughly 200 per user) with another 100-200 making it through to email accounts. I decided to gauge the impact of “hiding” our email addresses, but didn’t want users confused or inconvenienced by our email links. Encoding our email address seemed to be the way to go.

In this situation, obfuscation is done by converting ASCII (plain-text) characters into Unicode (specifically for me UTF-8). This specific format stayed encoded on the page, but became decoded when the user viewed or clicked on the link. As such, crawlers would only see Unicode, while users saw plain-text. Confused? Check it out in action on the website I manage here. Just mouse over the link and check out the status bar on the bottom. Whoa! Trippy, right?

This is all well and good, but how do you begin to use this cool technology on your website? There are many websites on the internet which will encode text for you. The problem I have found is that some of the code used gets decoded by the server. If you mouse over the link and see plain-text, so will a web crawler. Instead, I have written an Email Obfuscation app for you. This program will take any plain-text (though it works better if you actually put in an email address), and not only convert it to Unicode, but also wrap it all up in HTML tags so you only have to drop it onto your web page (NOTE: If you are using a CMS, you may need to “tell” it to not decode on your page. Furthermore, if after adding the HTML tags, you don’t see anything in your WYSIWYG editor, don’t worry, it is there, just invisible). This app is free to use and be modified (less spam is better for everyone).

In exchange for all of this wonderfullness (I made it a word) I would like your feedback. Gauge how much spam you get now, try this on your website, and then check again in a month. Report back here after that so we can all see how much your spam was reduced. I would be interested to know if my website was a fluke, or if everyone sees such a great reduction in spam!

You can download the app here.

You can download the source code here.

NOTE: The app and the source are written in VB.Net. You will need the .Net framework installed to run them.

Fixing “error code 8202″ When Installing Exchange 2007

August 18, 2010 in Bug, Exchange 2007, Fix, Tip, Tutorial, Uncategorized, Windows Server 2008

NOTE: This issue would seem to arise from attempting to install Exchange 2007 a second time after an initial install has failed.

1) From a server on the domain in which Exchange is being installed, run the ADSI Edit utility.

- adsiedit.msc

2)Right Click “ADSI Edit” and select “Connect To”. Select the well know naming context “Schema”

clip_image002

3) Navigate to “CN=ms-Exch-Resource-Schema” and double click it

clip_image004

4) Location the “mayContain” field. Open it and look for any items that have “DUP” and a GUID attached to it (see image for an example).

clip_image006

5) This is where the steps from the articles get confusing. If you try to modify the “DUP” value you will get the following error:

Operation failed. Error code: 0×57

The parameter is incorrect.

00000057: ldapErr: DSID-0C090B7C, comment: Error in attribute

conversion operation, data 0, v1db0

Instead, you have to navigate to another CN key inside the schema. In the example, the value that has the “DUP” is the “msExchResourcePropertyScheme”, we you would need to navigate to “CN=ms-Exch-Resource-Property-Schema”. From there, locate the attribute “lDAPDisplayName”. Change the value of the attribute to remove the “DUP” and the GUID.

clip_image008

6) Press “OK” and wait for replication (or force replication). Once everything has replicated, attempt your Exchange 2007 installation again. The problem should be resolved and your AD schema should update correctly.

You have Got to be Kidding Me!

February 26, 2010 in Backup and Restore, Bug, Tip

I am running Backup Exec 11d to back up my Exchange server to removeable hard disks. Recently, one of the HDDs hit max data capacity. This happens often enough, and always to server removes old data and goes on its way. In this particular case the, the drive was flagged “Low Disk Space” and the backups idled with the message “Idle; no devices ready”. I tried everything: restarts, updates, data deletion, job recreation, media set altering.

Everything except pause the drive that is. After reading this post, I thought “no way is that the fix” (I was wrong). One simple pause and unpause later, problemed solved… Good Grief!