“You tried to execute a query that does not include the specified aggregate function”

The error is because fName is included in the SELECT list, but is not included in a GROUP BY clause and is not part of an aggregate function (Count(), Min(), Max(), Sum(), etc.) You can fix that problem by including fName in a GROUP BY. But then you will face the same issue with surname. So put both in the GROUP BY: Note I used Count(*) where you wanted SUM(orders.quantity). However, orders isn’t included … Read more

How to resolve the “ADB server didn’t ACK” error?

Try the following: Close Eclipse. Restart your phone. End adb.exe process in Task Manager (Windows). In Mac, force close in Activity Monitor. Issue kill and start command in \platform-tools\ C:\sdk\platform-tools>adb kill-server C:\sdk\platform-tools>adb start-server If it says something like ‘started successfully’, you are good.

Empty an array in Java / processing

There’s Not that it does anything different than you’d do on your own (it just loops through every element and sets it to null). It’s not native in that it’s pure Java code that performs this, but it is a library function if maybe that’s what you meant. This of course doesn’t allow you to resize the array (to … Read more

What does the fpermissive flag do?

Right from the docs: -fpermissiveDowngrade some diagnostics about nonconformant code from errors to warnings. Thus, using -fpermissive will allow some nonconforming code to compile. Bottom line: don’t use it unless you know what you are doing!