Posts by David Coelho • 621 points
34 posts
-
0
votes3
answers1235
viewsA: Group an array of objects
I solved as follows using the lodash groupBy: let itt = []; // Recebe os valores do banco de dados let arr1 = []; for (let i = 0; i < itt.length; i++) { arr1.push(Object.values(itt[i])) } let…
-
0
votes3
answers1235
viewsQ: Group an array of objects
I am trying to group an array of objects that comes from the database in the following format: [ { '12312312': { 'first_name': 'David', 'id_question': 0, 'acertou': 1 }, '23423423': { 'first_name':…
-
2
votes0
answers535
viewsQ: Problem with Node-Sass
I’m using the Ode 8.9.1 with npm 5.5.1 and @angular/cli 1.5.0. When running npm install I get the following error on the terminal: Downloading binary from…
-
2
votes1
answer927
viewsQ: Read row by row from file . txt
I am trying to read a file . txt from 3.5GB line to line and save to Mongo db. The columns use the "|" tab and I am using Node js with Express. I did the test with a file smaller than 43 lines and…
-
0
votes1
answer130
viewsQ: Export DESCRIBE TABLE from Postgres to txt
Is it possible to generate a file . txt with the DESCRIBE TABLE of a table in Postgres by PHP? I need to make a file download available. txt with the description of the fields(name, type, character…
-
1
votes1
answer233
viewsA: Save token coming in Api Sponse
Solved. I inserted a few more options in the file that generates the final replay on the server and it worked. I followed the suggestion of…
-
0
votes1
answer233
viewsQ: Save token coming in Api Sponse
I am trying to save the token that my server sends in each request. Although "Authorization" appears to be present in Sponse, I cannot print the value. The code is: What returns from the server:…
-
0
votes2
answers79
viewsQ: Complex wp_query
I am setting up a schedule of events in Wordpress and need to list all the events of the week grouped by current day. I have events that last only one day and others that last all month. I created…
-
0
votes1
answer296
viewsQ: Handle Firebase data in controller with angular 1
I’m working with Angular 1, Angularfire and Firebase. I made the following call that returns the following data: var _refLista = firebase.database().ref() $scope.lista =…
-
2
votes1
answer2110
viewsQ: Letter ç in VS Code editor
Cedilha "ç" disappeared in the Visual Studio Code I use on Macbook. This happened some time ago after an update. Works in any editor but VS Code. Someone’s been through it?…
-
6
votes2
answers1862
viewsQ: Groupby in Javascript
I’m getting the following result from a query: [ { "disciplina":"Portugues", "periodo":"1º Bimestre", "tipo":"1ª avaliacao", "valor":9.5 }, { "disciplina":"Matematica", "periodo":"1º Bimestre",…
-
1
votes2
answers358
viewsQ: On click event repeating action
My code: var calendar = { init: function(org_id) { $.ajax({ url: 'http://localhost:8000/listar/' + org_id, type: 'GET', dataType: 'json' }).done(function(data) { var events = data.events; for (var i…
-
1
votes0
answers53
viewsQ: Firebase user update with SDK node
I am trying to update login data of a firebase user using the Node admin sdk. My code looks like this: var uid = req.body.uid; var objectUpdate = { "displayName": "David Coelho" };…
-
3
votes2
answers591
viewsQ: Popular select with database values
I need a select in the form with values from another table. Type: <select> <option value="29">Frentista</option> </select> I wrote my select like this: {{…
-
0
votes1
answer458
viewsQ: Create new users with Laravel 5.3
I ran make:auth from Aravel 5.3 but when I’m creating new users I lose my session and the new user is logged in. Does anyone know how to create a new user and continue logging in with my account?…
-
-2
votes1
answer237
viewsQ: Chat for IOS with Swift 3
I’m looking for a faster way to develop a Whatsapp app for IOS. As I’m very new in Swift I would like to know if there is something like a "skeleton app" that I could improve the look and point to…
-
1
votes2
answers291
viewsA: Problems recovering a json object
I don’t know if it’ll help you but it worked out well here. $obj = '{ "data":{ "messages":[ { "id":1, "sender":"[email protected]", "recipient":"[email protected]",…
phpanswered David Coelho 621 -
5
votes2
answers2002
viewsQ: What versions of the Android SDK should I have installed at least?
When I downloaded Android Studio and opened SDK Manager it shows some packages to be downloaded and installed. I saw that it has several versions of Android. My doubts are: Which of them are…
-
-1
votes1
answer749
viewsQ: Update user in Firebase
Does anyone know how we can edit the login data of any user, registered in Firebase by firebase.auth(). createUserWithEmailAndPassword, via an admin panel other than Firebase itself? That is, how…
-
2
votes2
answers494
viewsQ: How to make a daemon for the "mongod" command
What is the procedure for letting Mongo run on the server without having to use the command mongod? Is there a specific command of Mongo for this?
mongodbasked David Coelho 621 -
1
votes1
answer30
viewsQ: External variable gets value from an Success
I am unable to recover the value of the variable countEventChecks after Success. How can I assign the value of a return to another variable? for (var x = 0; x < eventosCkeckedPeloUser.length;…
-
6
votes1
answer726
viewsQ: Open my App from a link sent via email
I am trying to get the user, by clicking on the link received via email, to be redirected to a specific view of my application. It would be something like: 'myapp://app-custom-path'. I’m using…
-
1
votes1
answer787
viewsQ: ng-click button inside a label
My intention is for a close-up button to appear inside the input so that by clicking on it, the search query is reassembled and returns all the items again and not just the items of the search in…
-
0
votes1
answer43
viewsA: Use of filter in ng-repeat in jade templates
Well, I did a lot of research and couldn’t find the solution via filter. So I went to the javascript.Sort array and it worked fine.
-
1
votes1
answer43
viewsQ: Use of filter in ng-repeat in jade templates
Guys I think I’m doing something wrong but I’m not finding the error in the code. ul(class='list-group') li(class="list-group-item", ng-repeat="v in votadas | filter: '-votos'") h4 Música: {{…
-
2
votes1
answer93
viewsQ: Property in javascript object
How can I do a check on a array of objects where the intention would be to eliminate duplicates however, I need to add the values of a property? Example: I have a array object: musicas = [{nome:…
-
0
votes2
answers1179
viewsQ: Controller does not see ng-model of Angular JS
The Create ctrl controller is not seeing the ng-model input of my form. I can pass values from the controller to the view but I’m not getting the reverse. Where am I going wrong? Controller:…
-
0
votes1
answer390
viewsQ: Routes Laravel / Angular $routeProvider
I have something like this in my app.js: app.config( function( $routeProvider ) { $routeProvider.when('evento/:id/:caminho', { templateUrl: 'views/evento.html', controller:…
-
5
votes2
answers2377
viewsQ: Write image with php
I am trying to print online certificates dynamically filled with PHP. The code I’m using is: class Certificado { public $nome_para_certificado = ''; public $modelo_de_certificado = ''; function…
-
6
votes3
answers5260
viewsQ: Laravel: Migrations
I have a question about Migrations do Laravel and I believe you can help me. 1 - I created a model with Migration by php artisan make:model Evento -m; 2 - In addition to increments and timestamps I…
-
1
votes0
answers125
viewsQ: ng-repeat in JSON file
I’m putting together a menu with ng-repeat="espaco in espacos". Until then quiet. <ul class="nav nav-pills nav-stacked"> <li role="presentation" ng-repeat="espaco in espacos"><a…
-
1
votes1
answer732
viewsQ: Recover Input File with Angular Js
I need to create an object with the data of a form and do not know what to do with input type="file". Is there any ready-made, ng-model type directive, that recovers the file from an input…
-
0
votes0
answers679
viewsQ: New Visual Studio Code
I’m starting to use the text editor of Microsoft Visual Studio Code and I’m missing a plugin for sftp. Someone who knows could help me?
ftpasked David Coelho 621 -
0
votes0
answers524
viewsQ: How to access an Openshift Mysql database via Jdbc via Google Spreadsheet?
I want to access a Mysql database hosted in Openshift via Jdbc from Google Spreadsheet. It is possible? In Google Spreadsheet, in Ferramentas -> Editor de Scripts, I am having problems with the…