Posts by Ingo Guilherme Both Eyng • 119 points
9 posts
-
0
votes1
answer34
viewsA: Error when doing Aggregate command with Mongodb $geoNear
I solved the problem by changing the name of my collection where are the location to another. Apparently the collection cannot have the same attribute name as in the error:…
mongodbanswered Ingo Guilherme Both Eyng 119 -
1
votes1
answer34
viewsQ: Error when doing Aggregate command with Mongodb $geoNear
I own a collection calling for location with the following data: { _id: ObjectId("5a900f4af1b7fd855010c0cf"), car_id: ObjectId("5a85c26a35fdcf1098c23480"), location: { type:"Point",…
mongodbasked Ingo Guilherme Both Eyng 119 -
1
votes1
answer64
viewsQ: The updateOne function is not working, returns me OK, but does not change anything
I am using Mongodb to do data persistence in my application, with Nodejs. I make the call like this: module.exports = function (app) { var dbConfig = app.config.db; return { changeAccountStatus:…
-
2
votes2
answers1549
viewsA: Pass AJAX variable to php
Use this in JS, will send the parameters to your PHP code where you can send to the database. $.ajax({ method: "GET", url: "seucodigobanco.php", data: { usr: username1, pws: password1, ... //Resto…
-
0
votes1
answer155
viewsQ: Error writing binary file using fwrite
Why this code snippet DataRootDir data = rootdir[i]; fwrite (data, sizeof(DataRootDir), 1, arq); always returns the error error: cannot convert 'DataRootDir' to 'const void*' for argument '1' to…
-
0
votes2
answers1057
viewsA: Angular route link does not work on bootstrap
Try something like this on the links: <a ng-class="isActive('#seuLink')" href="#seuLink">Link</a> Don’t put the bar first, even if your.js app has the bar there. Example: In your app.js…
-
2
votes2
answers1403
viewsA: Compare data sql
It is possible to do so: select count(COD_IDENT_PESSO); FROM tbl_PRESENCA WHERE DAT_REPOT_REALZ BETWEEN DATE_SUB(CURDATE(), INTERVAL 7 DAY) AND CURDATE() AND FLG_IDENT_PRESE = 'S'; SQL above will…
-
4
votes1
answer1735
viewsQ: Problem retrieving Datasource in Wildfly: javax.naming.Namenotfoundexception
I am trying to establish a connection using Datasource, and is returning the following error: Feb 08, 2016 8:15:03 PM org.xnio.Xnio <clinit> INFO: XNIO version 3.2.2.Final Feb 08, 2016 8:15:03…
-
1
votes1
answer940
viewsQ: Consume Webservice passing object as parameter
I have the Webservice and send the object Cliente as a parameter, I would like to know how to make it work, and it create a suitable WSDL when running Server, so I can make the call on a Client…