Most voted questions
150,413 questions
Sort by count of
-
3
votes3
answers986
views -
3
votes1
answer811
viewsAngular Integration with Pagseguro
I am trying to implement an integration of Angular 8 with the billet generating api of pay-off. Making the request by POSTMAN, I can generate without problems, by angular I am blocked by CORS.…
angularasked 4 years, 12 months ago Matheus Barbosa 361 -
3
votes0
answers79
viewsCan the use of UUID as a document identifier and public query be considered a valid use case?
I am developing an academic level project. The system consists of the creation of documents by the user. This document is registered so that the user can view it/print it whenever he wants, but…
-
3
votes1
answer38
viewsTerminal printando in yellow
Hello, I am learning Javascript and in my terminal, when I run some code, some prints come out in yellow. Does anyone know why ? Thanks. const peso1 = 1.0 const peso2 = Number('2.0') const peso3 =…
-
3
votes1
answer158
viewsMatrix Loop with multiple vectors: Pyhton
Good evening, everyone I’m a beginner in Python and I would like your help, I did this program but the answer is in the form of several vectors or 24 vectors, and in reality I wanted only a…
-
3
votes1
answer1303
viewsColors in cmd using Python?
Guys I’m doing a game for college and I decided to put some colors in the code to look cute. I wanted to know how to make the colors of the strings appear in the cmd of windows. I tried to use the…
-
3
votes2
answers807
viewsCounting frequencies in a list
I have the code below that works to count frequencies in a list. However, the output of this code is a NoneType and so I can’t use methods like .sort(), for example, to arrange the output to show in…
-
3
votes2
answers1028
viewsIn white-space, what is the difference between pre, pre-line and pre-wrap options?
I already know that when using white-space: nowrap, the text does not break when it exceeds the limit of a container. However, I noticed that this property in CSS has the options pre, pre-line and…
cssasked 5 years ago Wallace Maxters 102,340 -
3
votes3
answers504
viewsJSON validation with more than one object
I need to send a JSON from a String. When reading a series as below, it works perfectly: json = {"resultado":" resultado 111","peso":98,"sinal":"-44","nome":"divergencia ativos","quantidade":12} But…
-
3
votes1
answer104
viewsHow to use Promises with button in Javascript?
Hello, I’m a beginner in Javascript and I wanted to create a code where we write something in the input and when clicking a button we would call a Promise. It would try to make a request on the site…
-
3
votes4
answers5284
viewsHow to center the elements within a div?
I’m trying to align the elements that are three circles with their respective descriptions within my div center using the following class: .center { margin:auto; } However, I did not succeed in this…
-
3
votes1
answer296
viewsPeriod of days between two dates, when the final date is less than the initial
In PHP when I try to return the running days of a month I only get the future days: $inicio = new DateTime('2019-11-12'); $fim = clone $inicio; $fim->add(new DateInterval('P1M')); // intervalo de…
-
3
votes1
answer547
viewsRun a Spring Batch job several times
By default, Spring Batch does not allow you to execute a job that already has a complete execution with the same parameters. If you try to run, get the message: "A job instance already exists and is…
-
3
votes1
answer411
viewsWhy are some Javascript variables declared with underline _?
Example I found on the internet: var _iterator = require("../core-js/symbol/iterator"); var _iterator2 = _interopRequireDefault(_iterator); var _symbol = require("../core-js/symbol"); var _symbol2 =…
javascriptasked 5 years ago Null 523 -
3
votes2
answers246
viewsAdd index value of the same name to the PHP array
Whoa, whoa, whoa, whoa, whoa, whoa, whoa, whoa, whoa, whoa, whoa, whoa, how do I add the values of the indexes that have the same name in php, I’m using the Laravel if you have any extra function.…
phpasked 5 years ago Rafael Lins 33 -
3
votes1
answer66
viewsIntervals between two date columns
The problem is this, I have a table that stores the leave (maternity, health, etc...) of an employee, containing the dates of start and end of leave and other information that is not relevant to the…
-
3
votes2
answers373
viewsJava square (geometric figure)
I have an exercise that is to form a square with the number we are given. Here’s the code I made: int altura=5; int largura=5; for(int i=0; i<altura; i++) { for (int j=0; j<largura; j++) {…
-
3
votes3
answers993
viewsRemove "disabled" with Javascript
Good evening. I wanted to remove the disabled attribute from a tag when a certain condition is met, but I couldn’t find any idea how to do that. Below the HTML: Escreva aqui: <input type="text"…
-
3
votes1
answer46
viewsDeserialize JSON with Newtonsoft JSON
I am trying to make an deserialize, to create a list with the contents of this JSON. However, everything arrives to the list as null. I’m gonna let down what I’ve got so far. I have the following…
-
3
votes1
answer333
viewsHow to validate 2 checkbox groups
Personal in my form I have 2 distinct groups that have 4 checkbox each. The 1st group is already validated. Which is this: HTML with PHP, it loops with the amount of items in the database: <?php…
-
3
votes2
answers87
viewsChange attribute of an element without identification
Is it possible to change some attributes of an element without knowing its identification? Example: Change the span text to another one of my interest.…
-
3
votes2
answers881
views.addeventlistener is not a Function
I want to add an event when the page scrolls, but the following error occurs: Uncaught TypeError: document.getElementsByTagName(...).addEventListener is not a function Follows code:…
-
3
votes1
answer53
viewsWhat’s wrong with using reinterpret_cast on C++?
I know what to use reinterpret_cast may cause indefinite behavior, but I still don’t understand why (I know it has something to do with the life cycle of the object and alignment of memory). I would…
-
3
votes1
answer2537
viewsWhat it means: ERROR Error: Expressionchangedafterithasbeencheckeoverthrow
Areareservadacomponentcomponent.html:2 ERROR Error: Expressionchangedafterithasbeencheckederror: Expression has changed after it was checked. Previous value: 'Hidden: Undefined'. Current value:…
angularasked 5 years ago Amadeu Antunes 3,331 -
3
votes1
answer216
viewsWhy do we use the type "Static" in a function in Typescript?
Why do we use the word static in a function in Typescript/Angular? Is she a type or just a reserved word? How can we refer to her? Example: export class ClasseExemplo{ static fazerAcaoComponent() {}…
-
3
votes1
answer56
viewsHow do I pass a variable in an id field in html?
Devs! I have the following problem: On my Ionic html page, I have a structure that creates some elements based on how many photos I have in my Storage (internal database) <ion-col size="6"…
-
3
votes1
answer101
viewsBootstrap in linear regression model - Calculating the importance of variables
I’m calculating the importance of variables for multiple regression with function varImp package caret. But when doing hair using function and bootstrap I cannot recover the values as I got for R².…
-
3
votes1
answer65
viewsproblem with Random.radint(1, 6) and if conditional
Friends, I am starting out in programming, so I apologize if it is too banal my question. My guess is that something happens in the if string, because never the winning message is read, the program…
-
3
votes1
answer122
viewsHow to avoid distortion of pixels in HTML elements in various screen/screen settings?
I noticed in a simple situation that elements with pixel are not always rendered as you imagine, a simple example is when one adjusts the browser zoom to more or less than 100%, making it appear…
-
3
votes1
answer630
viewsHow to get hasMany relationship data
I have a table Grupo and a Topicos, where the group has many topics and this is my code: public function topicos() { return $this->hasMany('App\Topico'); } In my Controller is like this: public…
-
3
votes1
answer179
viewsHow to pass the return (JSON) of a getJson request within the date where the chart values will be?
works as follows, has a . js that have the graphics assembled, but with the values inserted directly, I’m having a hard time finding content that fits directly into this example that I’m using, I…
-
3
votes1
answer2326
viewsSimple Java application error: Picked up _JAVA_OPTIONS: -Xmx4096m
I’m taking a Java course and I went to solve a simple exercise where I should read two whole numbers from the keyboard and show the sum of them. But in the console I get the error Picked up…
javaasked 5 years ago igortavtib 165 -
3
votes3
answers1466
viewsTypeerror: Cannot read Property 'filename' of Undefined
I intend to store the file in the folder uploads and secure in the bank the name of the file. The console.log() show me this: {theBook: undefined, cover: undefined} Stores the image in the folder…
-
3
votes3
answers309
viewsHow to replace variables with NEGATIVE values with their ABSOLUTE VALUE within a date.frame in R?
First of all, what is an Absolute Value? We can say that the Absolute Value or Module is the same as the distance from a real number to zero, because the module of a real number arose from the need…
-
3
votes1
answer106
viewsConstant used within repeat loop
const body = document.querySelector("body"); const divElement = document.createElement("div"); divElement.setAttribute("id", "resultado"); body.appendChild(divElement); for(i = 1; i <= 20; i++) {…
-
3
votes2
answers621
viewsHow to use Enum.Parse()?
My code displays error when using Enum.Parse<enum>(Console.ReadLine()); I am asking the user to enter the level of the position occupied, however to receive the data entered by the user…
-
3
votes1
answer54
viewsDifference between changing a variable and a recurring object
I’m recurring in two situations: one changes an object field and the other directly changes the string. What is the difference between these two forms of return since it gives different result?…
-
3
votes1
answer152
viewsPdf preload with Javascriipt or Jquery
I have an input file type and I need to generate a Preload partially showing the content of the pdf. I have the following code <label for="">Selecione o arquivo de orçamento</label>…
-
3
votes1
answer57
viewsJavapcript Proxy running . get() instead of . set()
I wrote the following minimum code: const greetings = new Proxy( { english: { well: "Hello ", come: "World!" }, portuguese: { bem: "Ola", bindo: "Mundo!" } }, { get: (ctx, key) => {…
javascriptasked 5 years ago Jose Henrique 337 -
3
votes2
answers1343
viewsHow to calculate runtime in PHP
I would like to know how long it takes for a certain function, loop loop, etc... to be executed. I use the function microtime(), but I am a little lost to know exactly what time was spent. And my…
-
3
votes1
answer297
viewsRegular Expression for a binary string that accepts even number of zeros
As stated in the title, follows the DFA that accepts the proposed language: My question is about the regular expression of that DFA which is as follows:(1*01*01*)*. Conforms to regular expression,…
regexasked 5 years ago Pirategull 659 -
3
votes2
answers909
viewsHow to replace variables with NEGATIVE values with ZERO within a date.frame in R?
Let’s say I have a 6x5 data.frame, for example: print(Dados) Linha A B C D E L1 4 3 -1 2 4 L2 1 -2 1 -5 1 L3 -1 -1 2 3 4 L4 2 4 5 -7 9 But I want to replace the Negative values of the data.frame…
rasked 5 years ago Izak Mandrak 1,059 -
3
votes0
answers493
viewsDigital signature with C# and Json
Good afternoon to you all. I’m using the link code https://github.com/Gread/BoletoOnlineBradesco that uses C# to sign Json and send the letters to Bradesco. My problem is occurring in Bouncy…
-
3
votes2
answers59
viewsRun task only when CTRL and mouse are pressed
I need to move the <input type="range"> only when the CTRL and the left mouse click are pressed. I managed to do this with this code: $(document).keydown(function(e) { if (e.which == 17) {…
javascriptasked 5 years ago Laysson Enderson 31 -
3
votes1
answer711
viewsHow to add euro currency symbol (€) on a . tex page in Latex?
I’m doing my TCC monograph on Overleaf and I’m having trouble inserting the euro symbol (€) on a page. tex template that my college offers to develop the monograph. Concluding: I wanted to rename…
-
3
votes1
answer946
viewsDate format in python
How to take the current date and format in Brazilian format '28/10/2019'
-
3
votes1
answer111
views -
3
votes2
answers156
viewsCheck if automatically filled field is "True" jQuery
I have the following fields <input type="text" value="" name="campo" id="campo"> <input type="text" value="" name="campoRecebeDados" id="campoRecebeDados"> And the next jQuery:…
jqueryasked 5 years ago Sr. André Baill 6,946 -
3
votes2
answers95
viewsHow do I set contacts for a Phone object?
In class Pessoa declared a array of the kind Telefone which stores 3 phone contacts in the set referred to below it for each contact assigns a type and a number. I have a problem where I want to…
-
3
votes1
answer269
viewsWhat kind of . NET library should I choose in C#project?
I’m thinking of creating a new project in c# I saw three types of libraries that caught my attention and I couldn’t distinguish exactly what would be the best applicability in each project. .NET…