Tuesday, November 23, 2010

About C / C++ / C#: Contest 41 Well under Way

If you can't see this email, click here

About.com

C / C++ / C#

Fundamentals

Tips & Tools

Going Pro



From David Bolton, your Guide to C / C++ / C#
I've another four updates and entries to mark so should have those out by the time you read this. I'm working on contest 42 but don't want to announce it for a few days. Meanwhile the weeks go past and finally I've got my iPad upgraded to iOS 4.2. Now I just want a final version of Xcode 4. Have a great week!

Lighter than XML - JSON
Short for JavaScript Object Notation, JSON is in many ways similar to XML as it is a machine and human readable text format for transferring data and it can support "recursive" data structure; i.e. an object holds string/value pairs but a value can be an array or an object. Here is an example of JSON. {      "firstName": "John",      "lastName": "Smith",      "age": 25,      "address":      {          "streetAddress": "21 2nd Street",          "city": "New York",          "state": "NY",          "postalCode": "10021"      } JSON is in my view starting to achieve greater take-up, partly due to the generally smaller size compared to XML but also the resurgence of JavaScript and Ajax that has happened in the last few years and which will continue to grow with the continuing take-up of HTML5. The json.org website has links to 25 C,C++ and C# JSON parsers, as well as for ASP, D, Go, Qt and many other languages.


Motion detection in C#
Traditionally motion detectors work through infra red detectors picking up change in heat levels as a warm body moves in front of a cooler area. With the advent of very cheap web cams, it's feasible to do motion detection by comparing two successive frames of a still and noting how much difference there is. That is not an easy problem to solve, as a human at 50' away be the same size (in pixels) as a cat at 5' and false alarm triggering over cats is really unwanted unless you're at the zoo. iSpy is an interesting open source C# application. It uses your webcam and microphone to pick up movement or sound (or lack thereof) and record and/or perform any other action when detected. You can use it for baby monitoring, home invasion detection, or just general surveillance. You can even stream video to the web or send an email. This makes use of the Aforge.NET framework and you should read Andrew Kirillov's article on motion detection algorithms which are included in Aforge.NET. you'll need that to build iSpy. If you want to write your own motion detection code, iSpy is an excellent starting point.

When You Need Better Help - Visual Studio 2010
I've always thought that help with Visual Studio etc has never been adequately sorted. You would have thought by now they would get it right. The same is true with their Office products though Office 2010 is a bit better. Rob Chandler, a Microsoft Help MVP reckoned that the help with VS2010 (its local web based in your browser) was inferior to that in VS 2008, so he has built an off-line viewer that pulls in Microsoft's help using the Microsoft help API. It runs standalone but should I think work with Visual C#/C++ Express 2010. Despite all the fuss about moving onto the web, there are some applications that are just better as standalone applications and I think Help is one of them and this certainly proves that point!

Development Projects from Initial Design to Completed Code
Each project is a complete application with notes on the requirements, the design, the architecture, code and final project review. With full source code in C, C++ or C#.

 


C / C++ / C# Ads
Featured Articles
Reviews of Software - Tools, Compilers, Editors etc
Book Reviews
Top Tools, Utilities and Resources
Glossary of Programming Terms
Welcome to the C++ Area with Articles about C++ Development
Other Blogs You might find Interesting

 

More from About.com

Thanksgiving Recipes
Herb-roasted turkey with cornbread stuffing, cranberry relish and roasted squash, sweet and tart fruit pies, and many more. More>



Choose the Perfect Gift
Whether you're looking for teens, teachers, grandparents or even pets, we have suggestions to make shopping easier. More>




This newsletter is written by:
David Bolton
C / C++ / C# Guide
Email Me | My Blog | My Forum
 
Sign up for more free newsletters on your favorite topics
You are receiving this newsletter because you subscribed to the About C / C++ / C# newsletter. If you wish to change your email address or unsubscribe, please click here.

About respects your privacy: Our Privacy Policy

Contact Information:
249 West 17th Street
New York, NY, 10011

© 2010 About.com
 


Must Reads
Programming Challenges
About C, C++ and C#
C++ for Beginners
C++ Programming
Intro to OOP

Advertisement

No comments: