Entries by Kevin Godden

Windows WPF – Always scroll to end of ListBox when new item added

If anybody is looking for a quick and dirty way of getting a list box to always scroll to its end then have a look here: http://stackoverflow.com/questions/10884031/wpf-raise-an-event-when-item-is-added-in-listview Take a look in Item #6, it worked well for me although I am aware that it may be seen somewhat as a hack – but then sometimes […]

Computer Vision in the Cloud? – Amazon makes Nvidia GPUs available

I just came across this article from The Register that mentions that Amazon is making Nvidia GPU cores available: http://www.theregister.co.uk/2013/11/05/aws_gpu_grid_service/ Makes me think again about the possibilities of doing Computer Vision / Machine Vision in the cloud (taking advantage of GPGPU techniques via OpenCL etc.), however like most of Amazon’s stuff it would probably be […]

Strange behaviour of std::thread in Visual Studio 2012

Today I came across some strange behaviour with the VS2012 implementation of std::thread. The created thread’s job was to access the XIMEA camera API, one method of thread creation worked ok, and another only half worked. With the first mode the API could grab from multiple cameras as expected, while with the other it could […]

WPF Application add Console window for stdout etc.

I thought this would be quite hard to achieve, but it turned out to be easy. I wanted my WPF windows app to run with a standard console output so that I could see all tat was written to stdout via printf() etc from some C code that is linked in to the WPF app […]

Linux – General Purpose IO (GPIO) from user space code

I came across this good article about how to program general purpose IO (GPIO) from user space code in Linux http://falsinsoft.blogspot.ie/2012/11/access-gpio-from-linux-user-space.html It contains a nice little synopsis of the steps involved with setting up and reading & writing inputs and outputs!