Most voted questions
150,413 questions
Sort by count of
-
5
votes3
answers1319
viewsHow to create a list from a JSON with Javascript?
Suppose I have the following given JSON: const dados = {"animais":[ { "id":1, "tipo":"Cachorro", "nome":"Max", "tags":"Border Collier" },{ "id":2, "tipo":"Cachorro", "nome":"Fini", "tags":"Lhasa…
javascriptasked 5 years, 6 months ago Lucas Morse 129 -
5
votes2
answers389
viewsWhat is the function of the keys { } in this interpolation?
class MyStateFull extends StatefulWidget{ MyStateFull(this.nome); final String nome = 'Maria'; @override _ContadorClique createState() => _ContadorClique(); // @override //…
-
5
votes2
answers4031
viewsWhat is Workspace in Visual Studio Code
What is a Workspace in Visual Studio Code and what’s the difference between working with Folder Structure and work with Workspace?…
-
5
votes2
answers87
viewsChange the type of a variable in a statement of a line, change the type of variables that come and sequence, why?
By declaring more than one variable of the same type on a line, I can subsequently perform arithmetic operations with these values. Ex.: let num1 = 10, num2 = 5, num3= 10; let resultado = num1 +…
javascriptasked 5 years, 6 months ago Vitor Miguel 194 -
5
votes4
answers319
viewsRegex - set 2 limits and pick up all content inside
In the string below, I need to get the text content from ENERGIA ELETRICA CONSUMO up to the percentage symbol %. That is to say: ENERGIA ELETRICA CONSUMO kWh 370 0,787324 291,31 291,31 29,00% Is it…
-
5
votes2
answers151
viewsDoes HTTP/2 need something other than server configuration to work?
I already have HTTP/2 configured on the server, testing by https://tools.keycdn.com/http2-test the result is: HTTP/2 Protocol is supported. ALPN Extension is supported. But looking through the…
-
5
votes2
answers1064
viewsVisual Studio opening multiple browser windows
How does both projects open in a single Google Chrome tab ? Process being carried out, Click on Solution -> Properties -> Configuration Properties -> Define both projects to be compiled…
-
5
votes1
answer941
viewsJWT authentication with role Claims in ASP.NET Core Identity
SOLVED - Authorize with roles With the help of this link: https://stackoverflow.com/a/47025009/10647645 And a reply in the post with the final files with the resolution UNSOLVED - Identityserver,…
-
5
votes1
answer195
viewsLaravel Auth with Subdominio
Good morning, I’m trying to perform an auth with Ubdomain, but every time soon on the site returns the error of Too Many Redirects. This is my .env: SESSION_DOMAIN=.meudominio.com.br And the first…
laravel laravel-5 laravel-routes subdomain routingasked 5 years, 7 months ago Vitor Marileu Figueredo 155 -
5
votes2
answers401
viewsHow to disable emoji rendering inside an HTML tag
I have a platform (Website ) where any individual can create content (images and text), however would like to control the rendering of HTML symbols in particular the Emoji within a specific tag (in…
-
5
votes1
answer577
viewsHow to implement Feature Policy Header by htaccess?
For which I understood, this response header controls access to the content of the application, and in conjunction with other headers such as the Referrer Policy approached in this question,…
-
5
votes1
answer240
viewsWhat does git stash create?
I always use the git stash, who ends up making a git stash push, and send it to a stack, and then retrieve the changes later using the git stash pop. So far so good, but I found that there is the…
gitasked 5 years, 7 months ago user155240 -
5
votes1
answer232
viewsRedirect to previous page: PHP vs. Javascript
What is the most advantageous way to make the user return to the previous page. For example, in Frond-end would look like this: <a href="window.history.back()">Voltar</a> Already in the…
-
5
votes1
answer252
viewsAccess to object properties in a list (KOTLIN). Why is it so complicated?
I’m trying to do something that I think is extremely simple: Given a class called Student, i instated 3 students and added on a list (mutableListOf). That done, I want to access the name of the…
-
5
votes1
answer281
viewsIs Winforms dead now?
Windows Forms has been on the market for approximately 17 years since. NET Framework 1.0 released in 2002, and still remains one of the major limitations of running only on Windows, as its name…
-
5
votes1
answer194
viewsHow could I undo a paragraph marking
Normal text image: Image of the selected text: Obs: I intend to format the selection better, but in case what I need is to reverse the process through the cancel method: When there is no paragraph…
-
5
votes2
answers441
viewsShow and hide button with jQuery
I have the following buttons: Below the button INCLUDE, has a button ETCH, that is set as HIDE():, when I click the button INCLUDE, I want the include button to be set as HIDE();, and the button…
jqueryasked 5 years, 7 months ago Rafael Passos 527 -
5
votes2
answers104
viewsR straight location of x in y
I have this doubt, but honestly I do not know if the solution really exists in R. I have a graph x/y, and I want to draw two lines, (1) from the x-axis to the die and another (2) from the y-axis to…
-
5
votes2
answers345
viewsHow does the rounding of the string format work?
Consider the following code snippet: decimal myValue = 3.045M; Console.WriteLine("Result by Math.Round = " + Math.Round(myValue, 2)); Console.WriteLine("Result by string.Format = " +…
-
5
votes1
answer458
viewsWhat is the difference between innerHTML and appendchild in JS?
What’s the difference between innerHTML and the appendChild? In my opinion they are very similar.
-
5
votes1
answer584
viewsWhat types of authentications are supported by HTTP?
I intend to delve deeper into authentications that are in the context of HTTP protocol, however, I don’t know their types. Therefore, I would like a brief explanation regarding the authentications…
-
5
votes2
answers76
viewsInsert a background inside a triangle in the corner of a div
I’m developing an angle portfolio, but I have a question about SCSS. I was interested in creating something that I don’t usually see much in portfolios, insert the portfolio background only in the…
-
5
votes1
answer4714
viewsWhat are the possible causes of "Connection reset by peer: Fastcgi: Comm with server aborted" error and how to fix it?
According to some responses in the OS, such as this and this, it seems that the error occurs because it ends the max_execution_time, but it was not clear to me what are the possible causes and how…
-
5
votes1
answer221
viewsWhen is the standard model request/Answer required in the context of a REST application?
If possible, let’s imagine a context where Spring Boot and JPA are used. During the construction of some REST API, I always wonder if I should perform the standard model request/Response. For…
-
5
votes2
answers1359
viewsShould I commit my virtualenv to Github?
I did a project in Python using a virtualenv, in this case I should upload all virtualenv to Github or just the Python code?
-
5
votes2
answers273
viewsPHP: How is sending email via SMTP without the mail function?
I would like to know how is the implementation of sending email with SMTP. How is this communication made if the function mail is not used? How is the communication with server in this case? What…
-
5
votes1
answer1690
viewsTolistasync() - Sqlnullvalueexception: Data is Null. This method or Property cannot be called on Null values
I’m getting the following error while trying to list all the records of a model: Sqlnullvalueexception: Data is Null. This method or Property cannot be called on Null values.…
-
5
votes4
answers1546
viewsTake specific value from a JSON or XML
Hello, I have an entire JSON inside a string and I need to turn it into an object in order to access some data... I’ll leave the code below to see if you can help me. My JSON is in that string:…
-
5
votes1
answer496
viewsDisable Flyway migrate on startup and run only when requested
I’m just getting started with the Flyway in the Java along with the Spring Boot and I currently have an activity that tells me to do the Flyway execute the migrate() only when a certain endpoint is…
-
5
votes1
answer1200
viewsHow to create a database automatically in Laravel with all tables?
Well I need help in a problem, I am developing a system for the first time in Latin and I need to create a database for each user registered in my system, these databases should have the same tables…
php database sqlite laravel-eloquent laravel-5.3asked 5 years, 9 months ago Igor De Moraes Sampaio 79 -
5
votes1
answer2738
viewsHow to make a python file execute commands in cmd?
For example: netsh wlan show profile This command of cmd shows the wifi networks already connected, at least once to my notebook! How can I run this command using python 3?…
-
5
votes2
answers139
viewsSend message confirmation received UDP
Good afternoon, I have the code for Udplisten, which causes PC1 to send a message to PC3 via an interlocutor (PC2), however, after the message reaches PC3, it has to send to PC1 to confirm that it…
-
5
votes2
answers1797
viewsIs there any way to decrease the amount of Else and if?
I should create the conditions for enrolling students based on their age, I was wondering if there is any way to decrease the amount of if in that part of the code: int idade =…
-
5
votes3
answers232
viewsHow to overlay a superclass method using a polymorphic parameter?
I have an abstract superclass Service with an abstract method onExecute(ServiceData data) that is superimposed in the subclass EchoService. However, in this overlaid method, I need the parameter to…
-
5
votes2
answers172
viewsWhy don’t I need to declare the parameter in the function?
In the React documentation he brings an example of form, when the input receives some property value onChange is called with the function handleSubmit(event) in that way onChange={this.handleChange}…
-
5
votes1
answer138
viewsThe spread of Ecmascript ... arr is an operator?
I’ve seen articles referring to spread as "spread syntax" and as "spread operator" (for example here). I understand that an "operator" is "a function that takes arguments and returns a single…
javascript terminology characteristic-language operators ecmascriptasked 5 years, 9 months ago Thiago Krempser 1,878 -
5
votes1
answer899
viewsReact Native - Schedule Local Notifications
I’m using the library React Native Push Notifications to schedule notifications, but I’m facing a problem I don’t know if it’s possible to resolve with this lib. I have to schedule a notification…
javascript react-native push-notification local-notificationasked 5 years, 9 months ago Vynstus 462 -
5
votes2
answers482
viewsWhat is the difference between `UNDEFINED` and `IS NOT DEFINED`
I have an annoying confusion between error messages undefined // (indefinido) and ReferenceError: x is not defined (Erro de Referência: x não está definido). Chrome error messages. var a; a; //…
javascriptasked 5 years, 9 months ago Cristiano Gilberto João 1,045 -
5
votes1
answer205
viewsHow much does an HTTP request cost?
Client sends a post bodiless to any API post('api.dominio.com') Server returns only 204 status code return res.status(204) Assuming the above situation happens, the client makes a request without…
-
5
votes1
answer235
viewsHow to switch a CSS style sheet and maintain its state in Web Storage?
I need to change a whole sheet of CSS style, I’ve done both, one, the main and the other with accessibility (high contrast, larger letters etc.) <link rel="stylesheet" type="text/css"…
-
5
votes2
answers449
viewsQuestions about block scope in Javascript
The doubts are as follows: What is the difference between block scope and function scope in Javascript? The idea of block scope arose in Ecmascript 6 with let and const?…
-
5
votes2
answers767
viewsHow do HTTP response status codes work?
I’m redirecting a user to the root route in case they don’t pass a condition and the slim framework asks for an http status for redirection. With this I did not understand exactly how this process…
-
5
votes1
answer44
viewsConfiguration of the Hibernate!
Hello I’m having a difficulty regarding a Hibernate configuration hibernate.hbm2ddl.import_files i believe q am doing everything right to find the sql path, I am using the same to insert some data…
-
5
votes1
answer947
viewsWhat is the effect that the overflow property: Hidden is doing on the code?
I have this very simple code down there. Only the problem is that if I take the property overflow of the code simply, add the background color and putting it again it appears because this is…
-
5
votes4
answers317
viewsRegex to identify all occurrences of years
I made this Regex to capture the occurrences of years in a sequence of numbers (between 2010-2029). text = '0412020982012' rg = r'20[1-2][0-9]' years = re.compile("(%s)" % (rg)).findall(text) Works…
-
5
votes2
answers3919
viewsCheck Even Numbers
I need to check the even numbers between x and y, but when I run the code it keeps loading the page eternally and shows in the console only the number x. I’m running the code on Google Chrome.…
javascriptasked 5 years, 10 months ago Ruan Linos Alves 53 -
5
votes2
answers141
viewsconnect python 3x to a server
I have been studying python for some time and I was trying to create a script to connect to a server and get a response from it, but when I use the code I get an error that I can’t fix My code…
-
5
votes4
answers4894
viewsPHP returning wrong current time
I’m having a problem using the function date using the parameters to return the current time. When I use the function: $hora = date('H:i:s'); When I give a echo in the variable $hora to verify, I…
-
5
votes1
answer245
viewsCan anyone explain to me the working logic of this pattern
I am writing a compiler Scheme R6RS(school work). It is working perfectly with the exception of this standard proposed in the manual 11.19 - Macro Transformes: sintaxe-rules. I have read and reread…
-
5
votes1
answer410
viewsDownload a table from a website in data.frame format in R
Good night I need to download the table entitled Fundamentalist indicators at the following link http://www.fundamentus.com.br/detalhes.php?papel=PETR4 I intend to download all the assets of the…
rasked 5 years, 10 months ago Henrique Faria de Oliveira 725