iOS 6 let’s you detect faces on a AVCapture preview. Other meta-types are coming in the future.
In this tutorial we’ll be looking at using native C / C++ code inside an Android project.
Soemtimes libraries are only written in C++, or maybe we need that extra bit of performance. That’s why Google offers the Android NDK.
At the end of the tutorial you should be able to run C++ code in combination with your own Java classes.
Selecting a random record with MySQL can be achieved with one simple select:
SELECT * FROM `table` ORDER BY RAND() LIMIT 1;
This solution is very slow, especially when the table contains many rows. The thing is that mysql will create a temporary table and asign each row a random number.
Continue Reading →