Posts by Away • 357 points
15 posts
-
1
votes2
answers308
viewsA: Show Map with point Ionic 2
To capture the current user position you can use a plugin called Geolocation. To place multiple markers (assuming that you have these positions in an array) you can place them by traversing the…
-
0
votes1
answer417
viewsQ: Update specific element in a Mongoose array
How to update the following record: "_id": "56dd4489800f800000000000", "registro": "2014-09-07T09:06:17.214Z", "stars": 0, "observacoes": [ { "texto": "", "dataResposta": "", "idUsuario":…
-
0
votes2
answers1523
viewsA: How do asymmetric signatures work in JSON Webtokens (JWT)?
Check the NPM module called jwt-simple. It can solve your problem easily. Transcription of the NPM itself: $ npm install jwt-simple var jwt = require('jwt-simple'); var payload = { foo: 'bar' }; var…
-
0
votes0
answers59
viewsQ: Help Page Single Angular
I have an application with divided into several service blocks developed using Nodejs, Angularjs and Mongodb using Express. Each service block has its own services, controllers and their own…
-
2
votes2
answers158
viewsQ: Error - Password update bcrypt
I am unable to encrypt my password during an update using bcrypt in Mongoose. The password is changed smoothly but without encryption. Follow the schema: var mongoose= require('mongoose');…
-
0
votes1
answer1869
views -
4
votes2
answers1335
viewsQ: Calculation percentage of hours
How to calculate percentage between two times? I tried like this and it wasn’t: $tempo_total= "00:10:00"; $tempo_realizado= "00:05:00"; $percent=…
-
2
votes2
answers950
viewsQ: Run Cronjob Codeigniter
How to execute a class method in Codeigniter via Cronjob? Ex: main.php accessed in http://www.meusite.com.br/principal/listaCron <?php if ( ! defined('BASEPATH')) exit('No direct script access…
-
1
votes1
answer342
viewsQ: Request Ajax Codeigniter
I am receiving the following error when sending json data via ajax using codeigniter: Disallowed Key Characters. When sending only one object works smoothly, but when sending more of an object…
-
2
votes4
answers1039
viewsQ: Error while displaying video html
I’m putting a video using Html5 and codeigniter on my page, but is only showing the player without displaying the video. script: <video width="420" height="340" autoplay controls> <source…
-
3
votes1
answer250
viewsQ: Error while uploading videos to Codeigniter
I am unable to upload videos in Codeigniter, the function works with pdf, but not with other extensions. The return I have is file type not allowed. Controller: public function add(){…
-
5
votes1
answer2128
viewsQ: JSON transfer to Codeigniter via AJAX
I’m not able to pass a string in the format JSON for a controller of Codeigniter via AJAX. A string JSON: var avaliacao= {"avaliacao":[{"pergunta":"Qual sua…
-
0
votes2
answers587
viewsQ: Model Codeigniter Access Error
I already checked and all my calls are correct. The code ran on Windows and transferred it to Ubuntu. After the transfer gives this error: An Error Was Encountered Unable to locate the model you…
codeigniterasked Away 357 -
2
votes1
answer428
viewsQ: Route error not defined in Orange 4
I’m having trouble with a link I created in a view directing to a route. Follow the error: Errorexception Route [/user/addUser] not defined .(View:…
-
9
votes3
answers995
views