Posts by alexjosesilva • 3,119 points
279 posts
-
0
votes1
answer45
viewsA: Dynamic joptionpane in Java: combobox
import javax.swing.JOptionPane; import javax.swing.ImageIcon; import java.util.ArrayList; import java.util.List; public class Javaapp { public static void…
-
0
votes1
answer45
viewsQ: Dynamic joptionpane in Java: combobox
Is it possible to make Joptionpane dynamic ? I’m having difficulty registering new entries in the countrys array[]. I’m using Java 1.8 sdk Code import javax.swing.JOptionPane; import…
-
0
votes2
answers2257
viewsA: Set current date in Input type Date
If you are using Javascript you can do this gambiarra: <script> //seta a data atual document.getElementById("campoData").value = value='<?php echo date("Y-m-d"); ?>'; </script>…
-
1
votes2
answers33
viewsA: Array as a function parameter
Just a misconception. #include <stdio.h> void ZeraNegativos(int entrada[]) { for (int i = 0; i < 9; i++) { if (entrada[i] < 0) { entrada[i] = 0; //zera todo número menor do que zero } }…
-
0
votes1
answer45
viewsA: Get function information in Lua
A sample of how this is done: En global.lua (where the global function is located) : globalFunction1 = function(params) print("Eu sou globalFunction1") end the call of function, outrofile. :…
luaanswered alexjosesilva 3,119 -
1
votes2
answers45
viewsA: How to split a string in Mysql?
I believe it will help: SELECT SUBSTRING_INDEX(SUBSTRING_INDEX(nomecompleto, ' ', 1), ' ', -1) AS primeironome ,TRIM( SUBSTR(nomecompleto, LOCATE(' ', nomecompleto)) ) AS sobrenome FROM suatabela…
mysqlanswered alexjosesilva 3,119 -
1
votes1
answer97
viewsA: dropdown bootstrap menu does not open!
This is a simple example, but watch out for the libraries used. <!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <link…
-
-1
votes1
answer82
viewsA: How does reactive programming work behind it?
It can be said that reactive programming is an extended and more powerful version of the Observer standard. Given the premise of having observable objects as the program’s input port, one of the…
reactive-programminganswered alexjosesilva 3,119 -
1
votes2
answers85
viewsA: Help me! C language
I believe it’s more a matter of familiarity with programming. Pay attention to edentation and clasps. Otherwise, congratulations on a good job. Code in execution Code: #include <stdio.h>…
canswered alexjosesilva 3,119 -
0
votes1
answer203
viewsQ: Side Menu is not displayed in the app made in React-Native
I’m developing an APP in React-On, I need to display a menu-left side. Although it does not display any error message, the side menu does not appear. I am using React-navigation-Drawer to create the…
-
0
votes1
answer1281
viewsQ: Format date in Angular?
I am developing a form in which birth date is required: <div class="form-group"> <label for="name">Data Nascimento</label> <input type="text" placeholder="Insira Data"…
-
2
votes3
answers2679
viewsQ: Apply mask to an HTML table column with Angular?
How to put CPF mask in a table ? For inputs I used the ui-Cpf-Mask directive, but need to put in a table cell. code: <tr *ngFor="let user of users | async"> <td>{{user.nome}}</td>…
-
0
votes1
answer403
viewsA: ng if to select field value select option
Just add the lines <td *ngIf="user.sexo==1">Masculino</td> <td *ngIf="user.sexo==2">Feminino</td> Stayed like this: <div class="panel panel-primary"> <div…
angularanswered alexjosesilva 3,119 -
0
votes1
answer403
viewsQ: ng if to select field value select option
I have this code in angular: <div class="form-group"> <label for="sexo">Sexo</label> <select type="text" class="form-control" id="emailId" required [(ngModel)]="user.sexo"…
angularasked alexjosesilva 3,119 -
3
votes3
answers12331
viewsQ: has been blocked by CORS policy: No 'Access-Control-Allow-Origin'
I am developing an integrated Java Backend (Rest Spring) with Angular Front 8. When trying to list the list of users(via JSON) I get this message: Access to Xmlhttprequest at…
-
-1
votes1
answer106
viewsQ: With setting the deadline on the dynamic datepicker?
I have to set a maximum date for the calendar in a dynamic way that is the month MUST be from the CURRENT and at most ONE year after the month CURRENT. $(document).ready(function() {…
-
0
votes1
answer394
viewsQ: Error using . stream(). filter in JAVA
I am developing an application in which it aims to create a list that respects the condition of being of type = "unit". In the code below, I create the list and from a function I try to generate…
-
0
votes0
answers125
viewsQ: How to print the contents of an Object in a List<>
I am developing a JAVA application in which will display the contents of an object in a list. My goal is to print the object content of a list. package teste1; import java.util.ArrayList; import…
-
0
votes1
answer256
viewsA: Loading dependency Graph, done. error: bundling failed: Referenceerror: Unknown helper objectSpread2 at loadHelper
I was able to fix it by deleting the node_modules folder, then after reinstalling with npm install and re-starting the package: npm start…
-
0
votes1
answer256
viewsQ: Loading dependency Graph, done. error: bundling failed: Referenceerror: Unknown helper objectSpread2 at loadHelper
I am developing an app in React On. However when generating buildo I get message: Loading dependency Graph, done. error: bundling failed: Referenceerror: Unknown helper objectSpread2 at loadHelper…
-
1
votes0
answers18
viewsQ: Load URL into htmlText tag
I need to upload a url inside this tag: <mx:HBox id="horizontalBoxInfo" width="100%" > <mx:TextArea id="textAreaInfo" width="100%" height="200" editable="false" horizontalScrollPolicy="off"…
-
0
votes0
answers106
viewsQ: Create a Boolean column in Oracle Database
In an oracle bank I have to create a column with the Boolean type ALTER TABLE dbamv.prepad ADD editable BOOLEAN default FALSE; But the database displayed an error message: ORA-00902: invalid data…
-
0
votes1
answer196
viewsQ: Error when adding foreign key to table
I get the error message: SQL Error [42703]: ERROR: column "tela_inicial_id" referenced in Foreign key Constraint does not exist ERROR: column "tela_initial_id" referenced in Foreign key Constraint…
-
-1
votes1
answer148
viewsQ: How to add CR or LF to the end of the. pdf file generated by Stella.Boleto?
I managed a ticket of the Itau and was indicated to validate with the operator (bank Itau). The operator required to insert the special characters: CR+LF. How do I do that ?
-
3
votes2
answers1247
viewsQ: SQL Error [42601]: ERROR: syntax error at or near "Foreign"
When creating this table in postgre sql I get this error message Table creation tipo_agendamento_escritorio create table tipo_agendamento_escritorio( id int8 not null, primary key (id),…
-
0
votes1
answer369
viewsA: The value of Function INDIRECT parameter 1 is "Income! D3:Q3". It is not a valid cell/range reference
I found the answer on the google forum: Instead of "Income" in the Summary spreadsheet change the formula to "Income". Adopt the same procedure for "Expence" switching to Expenses. The terms of the…
-
-1
votes1
answer369
viewsQ: The value of Function INDIRECT parameter 1 is "Income! D3:Q3". It is not a valid cell/range reference
I’m using the spreadsheet templates provided by google. However I’m getting this message: The value of Function INDIRECT parameter 1 is "Income! D3:Q3". It is not a valid cell/range reference.…
-
0
votes1
answer252
viewsQ: Angular: insert date in input only
In the system there is a field to insert a date. I want to block the input to insert only the dd/mm/yyyy values <mat-form-field class="input-full-width"> <mat-label>Data…
-
0
votes1
answer2708
viewsQ: Angular set value in radio button
I have a field on the form with radio Buttons: <div class="form-group" > <label class="control-label col-md-4">Tipo Atividade2*:</label> <input type="radio"…
-
1
votes0
answers239
viewsQ: How to convert a Maven project to Gradlew?
I have a Maven project working perfectly and I need to convert to Gradlew how I can do this ?
-
0
votes1
answer271
viewsA: How do I change to required input using Angular Material?
Proposed solution: <span> <label>Atividade Fixa: </label> <mat-radio-group name="atividade_fixa"> <mat-radio-button (change)="requiredTime=true"…
-
-1
votes1
answer271
viewsQ: How do I change to required input using Angular Material?
How can I set as mandatory fields to fill after set choice in the radio as fixed: Code html <span> <label>Atividade Fixa: </label> <mat-radio-group name="atividade_fixa">…
-
0
votes1
answer379
viewsQ: Block weekends in the Angular Material datepicker
I am using the Datepicker of Angular Material and need to block Saturdays and Sundays in order not to be selected. How can I do this ? Code: ts import {Component} from '@angular/core'; /** @title…
-
1
votes0
answers106
viewsQ: Error generating reCaptcha
I get an error message: Uncaught Domexception: Blocked a frame with origin "https://www.google.com" from accessing a cross-origin frame. at :1:16 Code: <html> <body> <script…
-
-3
votes1
answer110
viewsQ: How to generate a qrCode from a url
url = https://staging.coinwise.io/api/invoice/v1/invoice/koy-intel-juridica/default-btc?value=0.05 Json:…
-
0
votes1
answer49
viewsA: Error obtaining time with Row.getCell()
The solution to this problem was this: public void obterHora(){ String hora; int h=row.getCell(7).getDateCellValue().getHours(); int m=row.getCell(7).getDateCellValue().getMinutes(); int…
-
0
votes1
answer50
viewsA: Get the time on from an Excell spreadsheet
The solution to this problem was this: public void obterHora(){ String hora; int h=row.getCell(7).getDateCellValue().getHours(); int m=row.getCell(7).getDateCellValue().getMinutes(); int…
-
0
votes1
answer50
viewsQ: Get the time on from an Excell spreadsheet
I am using the POI api in Java. To get the time in an excel spreadsheet. In the Excell worksheet the given is as text image: public void obterHora(){ Cell hora = row.getCell(7);…
-
-1
votes1
answer49
viewsQ: Error obtaining time with Row.getCell()
I’m getting data from a spreadsheet in excel. public void Hora() Cell horaAgen = null; if(row.getCell(7) != null ){ horaAgen = row.getCell(7); System.out.println("hora: "+horaAgen); } } On the…
-
2
votes1
answer320
viewsA: Eclipse doesn’t stop at the Breakpoints
After Internet searches, I followed these steps: Project: Clean I disabled Build Automatically I restarted the server and everything went back to normal
-
0
votes1
answer320
viewsQ: Eclipse doesn’t stop at the Breakpoints
During code development. Eclipse does not stop at breakpoints. After some researches I changed the configuration of the eclipse but did not cause any change of the eclipse state. Observing: I’m…
-
0
votes1
answer782
viewsQ: ERROR Typeerror: Cannot read Property
I have to click a button on an html page and trigger a function in the Component.ts called methodThis, but I’m getting an error message (error image) front image Component. import { Component,…
-
0
votes1
answer55
viewsA: Error while displaying json in Angular 6
The error was in the way json was called. I ran this way: <tr role="row" *ngFor="let clientes of cliente"> <!-- NPU / CIV --> <td>{{clientes.nome}}</td>…
-
0
votes1
answer68
viewsQ: Convert Json data (2018-09-20 15:58:38) to (20/09/2018 15:58:38)
While developing an app at the angle, I get a json with values and date. I need to display the date in the.html payment list in the format dd/mm/yyyy. How can I do ? Listapagamento.ts import {…
angularasked alexjosesilva 3,119 -
-1
votes1
answer55
viewsQ: Error while displaying json in Angular 6
I cannot view json list in html I have json in the.ts component ts component. import { Component, Input, Output, EventEmitter } from '@angular/core'; import { BaseComponent } from…
-
-3
votes1
answer3184
viewsQ: Angular ignores line break in String
I’m assembling a message with several messages in JAVA. After it was sent to the front/view but the angle is eating all the lines breaks: public String salvarPorXLS(){ while (rowIterator.hasNext())…
-
-6
votes2
answers1061
viewsQ: Convert dd-mm-yy date to yyyy-mm-dd in Java
I am receiving via form: 28-set-2018 and I need to save in the bank 2019-09-29 00:00:00
-
-2
votes1
answer116
viewsQ: Convert Cell to String type in Apache POI
How can I convert a guy Cell for String ? String datateste = row.getCell(5);
-
0
votes1
answer513
viewsA: GRAVE: Allocate Exception for Servlet
The error is in the environment configuration: lib javax.servlet.jar was missing and added to Buid-Path…
-
-2
votes1
answer513
viewsQ: GRAVE: Allocate Exception for Servlet
I’m afraid of this mistake! I’m using Tomcat 8.5 Code package br.com.controler; import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest;…