Posts by Mateus • 977 points
80 posts
-
0
votes2
answers130
viewsA: Show the highest average of all calculated averages
If I understand correctly you just want to create a variable there double maior_media hence assigning: if(media > maior_media) maior_media = media; Print this when necessary and remember to reset…
-
0
votes0
answers38
viewsQ: Background does not continue in the area larger than the browser screen
I have a login screen: <%@page contentType="text/html" pageEncoding="UTF-8"%> <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> <c:set var="context"…
-
-1
votes1
answer41
viewsQ: Comparison between Objects always returns false
Why even with that: ValidacaoHelper.saoIguais(3044, 3044), that is, with equal parameters, the return is false? /** * @param obj * objeto a ser validado * @return TRUE se o objetos passados por…
-
2
votes2
answers115
viewsQ: When adding system function does not compile
I have the following class: package br.com.xti.ouvidoria.helper; import java.util.Collection; /** * @author Samuel Correia Guimarães */ public class ValidacaoHelper { /** * @param obj * objeto a ser…
-
0
votes0
answers139
viewsQ: Condition check to launch Trigger
I have this table: CREATE TABLE public.tbtramite ( idtramite integer NOT NULL DEFAULT nextval('tbtramite_idtramite_seq'::regclass), dsdescricao character varying(255), dttramite timestamp without…
postgresqlasked Mateus 977 -
2
votes1
answer163
viewsA: Error executing function for the second time
Well, with a lot of analysis and help from everyone who commented it was really evident the error in the fact dq in the table tbmanifestacao_tbclassificacao the field tbclassificacao_idclassificacao…
-
0
votes2
answers164
viewsA: PHP/Mysql Select products below a value in the table
I need to select the products with the value below 300 reais in which the situation column is equal to 2: $query = mysql_query("SELECT * FROM ofertas WHERE situacao LIKE '2' AND valor < 300") or…
-
0
votes2
answers4197
viewsA: How to put an edge on an Android Textview
import android.content.Context; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.util.AttributeSet; import android.widget.TextView; public…
-
4
votes1
answer163
viewsQ: Error executing function for the second time
Inside the controller I have this function: public void salvaEncaminhamento() { Integer qtdEncaminhamento = 0; if (manifestacao.getTbEncaminhamentoCollection() != null) { qtdEncaminhamento =…
-
2
votes1
answer71
viewsQ: Eslint suggestion in React import
On the line import React, { Component } from 'react'; Eslint marks import and brings the following message: [eslint] Definition for rule 'react/require-extension' was not found…
-
0
votes1
answer93
viewsA: What are the advantages of using "currying" in a function?
Currying is a technique for rewriting functions with multiple parameters such as the composition of functions of a parameter. The curry function can be applied only to a subset of its parameters.…
-
0
votes1
answer1610
viewsQ: Record app data developed with React-Native in a remote Postgresql database
Good I’m developing an application in React-Activate. In this application will basically have some forms to register information, but this information must be saved in a Postgresql bd which is…
-
2
votes1
answer124
viewsQ: I cannot delete warnings from Eslint
I am learning React-Native, I have never had much experience with Javascript, I have installed the Eslint extension and I am trying to follow the line looking for the best syntax. But there are two…
-
3
votes1
answer146
viewsA: PHP variables
Good believe you mean variable variable and not variable variable What are variables of variables and what they serve? A variable name that can be configured and used dynamically. A variable takes…
-
4
votes3
answers1569
viewsQ: Command suggestions in Vscode
I am programming in React-Native using Visual Studio Code, in the extensions I installed Eslint Javascript (ES6) code snippets jsx React Native tools React-Native/React/Redux snippets for es6/es7…
-
1
votes2
answers4702
viewsA: How to convert date difference from seconds to hours/days?
This is the code that asks the user for the number of seconds and displays in days, hours, minutes and the remaining seconds. Just vc put your output in seconds instead of the variable seconds and…
-
1
votes1
answer1044
viewsQ: Error while trying to run app in android studio emulator
I’m trying to run the app in the emulator of Android Studio, at first the terminal seems to be all right: D:\react-apps\teste>react-native run-android Scanning 557 folders for symlinks in…
react-nativeasked Mateus 977 -
1
votes2
answers58
viewsA: Why is the condition of j never satisfied with "||", and why is i satisfied with "&&"?
Because the value of j is static. You have just the i++ thus j will always meet the proposed condition
-
2
votes2
answers1614
viewsA: How to calculate the time of each year between two dates?
Good from what I understand you would need to calculate only the first and last year because the others would be wasted since the result is predicted. But if you insist, play the years in an array…
-
1
votes1
answer66
viewsA: Doubt pointers in C
The problem is here: while(a>0){ vet = (int*) malloc(sizeof(int)); vet[i]=a%10; a=a/10; i++; } You’re missing the vector inside the loop. So each time you are re-breaking the vector and thus…
-
0
votes3
answers559
viewsA: Document protocol
I didn’t understand your logic very well, but to implement without having to spend all the time returning the current year, or going through the table to know the protocol index, you can create a…
-
0
votes1
answer74
viewsQ: Apply source code updates after Fork time and multiple changes
I have a situation where we use a system that the code is open source, but we made some modifications to fit our need. Now the original system has undergone code changes to improve security, I’m…
-
0
votes2
answers1790
viewsQ: Error trying to give npm start in React-Native project
I’m starting in the development of apps with React-Native, to learn created a virtual machine running Lubuntu and followed the step by step installation of the prerequisites: sudo apt-get update #…
react-nativeasked Mateus 977 -
-5
votes1
answer94
viewsQ: Free tool for application wireframe
Which free tool have used and would indicate to make the wireframe of an application?
-
3
votes2
answers8261
views -
1
votes0
answers43
viewsQ: Run search update on button
My search field updates a selectManyMenu whenever something is typed in it <p:inputText id="txtFiltroOrgaoDestino" value="#{mBManifestacao.txtFiltroOrgaoDestino}" style="width: 350px">…
-
2
votes5
answers7507
viewsA: Change function of onclick
Something like: var aux = true; function acaoContato(botao) { aux ? removerContato(botao) : vincularContato(botao); } At the end of each of the functions you perform the state change of aux, and the…
-
0
votes2
answers780
viewsQ: Start with an already selected <f:selectItem
I would like when the menu is presented the "Option 1" starts selected, something like an html Selected <p:selectManyMenu id="basic" value="#{selectManyView.selectedOptions}"> <f:selectItem…
-
3
votes4
answers123
viewsA: How to check if one String completes another?
var str1 = "joao foi ao mercado"; var str2 = "joao fo"; if ( str1.contains(str2) ) //é parrte else //não é parte Here are several other ways…
-
1
votes3
answers633
viewsA: C: Delta, X1 and x2 result always giving 0.000000
& before a variable indicates that you are searching for its address and not the content, so that at the time you receive a data you use the variable &variable because it stores that data in…