Symmetri Developer Blog

June 16, 2008

Simple gesture recognition

General, Flash/Flex, Algorithms - By Shourov Bhattacharya

We have released our first, very basic prototype of gesture recognition using Flash and AS3. Basically, it uses a simple motion detection algorithm to look for horizontal motion and registers each discrete movement to the left as an event. The idea is that you can fire the event with a wave of your hand, which then triggers some kind of action within the application. At this stage, it’s not all that accurate or robust - you can’t move too fast, or too close to the camera, and even at an ideal distance it seems to miss a movement now and then. But it’s a start towards building a proof-of-concept for gesture recognition in Flash.

http://www.symmetri.com/mcontrol

FilterExpression LIKE wildcard doesn’t work?

.NET/C# - By Shourov Bhattacharya

Is it just me, or does the wildcard ‘%’ NOT work when setting the FilterExpression on an ObjectDataSource in .NET 2.0? Instead of the usual ‘%’ character, I have found that the asterisk ‘*’ is much more reliable. For example, the following statement returned no rows:

dsDocuments.FilterExpression = 'title LIKE '%Engineering%'

but this DID work:

dsDocuments.FilterExpression = 'title LIKE '*Engineering*'

MSDN documentation says that both forms are equivalent, but apparently not, at least in my experience.

Get free blog up and running in minutes with Blogsome
Theme designed by Janis Joseph