Most voted questions
150,413 questions
Sort by count of
-
4
votes2
answers4395
viewsPost com x-www-form-urlencoded no Angular
Hello, I have a POST request that is content-type: x-www-form-urlencoded. I need to pass some parameters on my Body, this way: I’m doing this way below to add my parameters on the request body:…
-
4
votes2
answers220
viewsStandard implementations in C#interface
I was reading about the new features of C# 8 and came across the Default Interface Implentations, i.e., standard implementations in interfaces. The code below exemplifies public interface…
-
4
votes1
answer86
viewsWhy is creating a variable size Slice slower?
Using the make([]byte, tamanho) he has a different behavior when the tamanho is a variable or a constant. Consider the two codes: package Testes import ( "testing" ) func BenchmarkConstante(b…
-
4
votes2
answers2079
viewsHow to get back to a point before merging into Github
Take a look at my commits chart: https://github.com/danieldspx/cni/network I took a dump here, I wanted to merge the Workspace branch with the master. The Workspace is the one that was more current,…
-
4
votes1
answer117
viewsrecharge design material effects
I have a site with material design, but when I update the html of the page with XHR the new content loses the effect of javascript as I could to reload mdl? To make the change between the view, I…
-
4
votes2
answers73
viewsCreating an array from two
I have the situation where I need to build in java a arrayC[] from a arrayA[4] and a arrayB[7], where the arrayC[] should present in order the arrayA[4] and then the arrayB[7]: for example:…
-
4
votes1
answer111
viewsBring only one product per affiliate to sql server
Good day I need to bring only one product per affiliate, but in my table I have several times the same product just changing the date, I would like to take the product of the last date. What do I…
-
4
votes1
answer164
viewsGrouping arrays hierarchically PHP / Mysql
I have the following structure in a table in the database. My intention is that when I do a select * from in it I can interact up the values so that I have an array in the hierarchical style. That…
-
4
votes1
answer357
viewsSet language in index.php
I’m trying to develop a very simple system, contains 5 different languages, this part works perfectly, the problem is that when I first enter the site, in this case the file is the index.php, it…
-
4
votes3
answers11076
viewsTurning factor into numeric R
Good night! I am doing a job where I import a base and after the import I create a range of values. Ex. I import the base with the read.csv dados <- read.csv(base, header=TRUE, sep=',') Put in…
-
4
votes1
answer202
viewsImplement a blink counter in the face detection
As q do to display the amount of flashes of people detected at the time. The code below detects face with Haar Cascade, where it displays a face counter. from __future__ import print_function…
-
4
votes2
answers1052
viewsCannot pass a null Grantedauthority Collection Spring Security
I am developing a web application with Spring Boot, and I am trying to implement authentication using Spring Security. I am following the tutorial from Michelli, but I’m making the following…
-
4
votes2
answers2161
viewsHow to delete a foreign key from Mysql
I’m having the same problem in every database. I have a database created with the following lines create database nova; create table estado( id int primary key auto_increment, nome varchar(20) );…
-
4
votes1
answer353
viewsWhat is the function of Python descriptors?
In Python there is the protocol of the descriptors which is basically to define a class to control the access to the attributes of another, but my question is, would this be the real functionality…
-
4
votes2
answers555
viewshow to automatically fill in an input?
As the code shows with several textfield, I want to make visible only date, date and KM and from these 3 fill in the others that will be invisible, the amount to be paid will be displayed on an…
-
4
votes3
answers1583
viewsfunction in R that also returns the execution time itself
I know there is Rprof(), but it seems to me rather inaccurate compared to microbenchmark(). However, if I want to use the microbenchmark() I have to call the function 2 times, once to have her…
-
4
votes2
answers480
viewsIncrease div height with animation using CSS
I have this code that creates a wine glass with CSS: body{ background: #000; } .wrap { width: 100px; margin: 0 auto; position: relative; } .glass{ margin: 0 auto; height: 100px; width: 100px;…
-
4
votes1
answer134
viewsPass a method on all routes of all http methods except two
Basically I want to make all the routes that come from any http method (get, post, put, ...) pass, first, by a method that will make the verification if the user is authenticated, however, this…
-
4
votes1
answer131
viewsDifficulty in using Datepicker
I’m studying things for a project here and I’m trying to use Datepicker, I managed to implement normally, but I want to use two in the same Activity, putting an initial date and an end date, put two…
-
4
votes2
answers134
viewsREGEX - Small details that don’t match
I have that expression: (?:[ \t]*[a-z][)]\s*)?([^\r\n<]+(?:(?:\r?\n(?!\s*[a-z][)])|<(?!br\s*\/?>(?:\s*<br\s*\/?>)*\s*(?:\s+[a-z][)]|\s*$)))[^\r\n<]*)*)(?:<br\s*\/?>\s*)*…
-
4
votes1
answer4785
viewsBest practices for creating an Angular project
I am studying Angular to develop a web application, and I would like to know what are the best practices regarding the creation of folders, creation of the classes related to the service and other…
angularasked 6 years, 5 months ago Macario1983 1,335 -
4
votes1
answer74
viewswidth in responsive slide show
I’m building the responsive of a study project, Codes below: var slideItem=0; window.onload =function() { setInterval(passarSlide, 2000); var slidewidth…
-
4
votes1
answer125
viewsHTTP request within a company that uses proxy
I’m sorry if that question is repeated. I always try to get the answer before asking here, and this time I didn’t (I suddenly didn’t use the right keywords, perhaps for lack of knowledge, but…
-
4
votes2
answers6881
viewsHow to find splitters of a number quickly
I have to ask a question that calculates the very large number dividers and needs in a fast way without being the conventional way, could help me My code #include<stdio.h> int main() { int…
-
4
votes1
answer888
viewsConverting String to Arraylist
I am receiving in my java code a variable with the following value String arquivo = "CNPJ;INSCRICAOESTADUAL;COD_IBGE;DT_OPE;VLR_CARTAO_CRED;VLR_CARTAO_DEB 35083840049;0;4312476;13/01/2018;0.00;66.00…
-
4
votes1
answer6891
viewsWebservice/api consult court proceedings
Good morning, everyone! Do you know any webservice/api where it is possible to carry out the consultation of judicial processes in all or in some courts of justice of Brazil? On the website of the…
-
4
votes3
answers546
viewsConvert char to integer in C#
Reading a blog article, I came across the following syntax for converting char to integer: string value = "123"; foreach (var c in value) { if (char.IsDigit(c)) { int digito = c - '0'; } } I wonder…
-
4
votes1
answer937
viewsDownload file as zip with PHP
I have the following file coming from the database: $sqlAnexos = mysqli_query($this->conexao,"SELECT * FROM arquivos"); while($jmArquivos = mysqli_fetch_object($sqlAnexos)){ ... echo "<a…
phpasked 6 years, 5 months ago user24136 -
4
votes2
answers163
viewsFile.Exists and the accentuation
I have a system developed in Webforms (Eca!) that checks the existence of an image to then display it. Everything is working correctly, however, when the image path has accents, the method…
-
4
votes1
answer427
viewsIs there any way to detect the second monitor/screen with Javascript?
I wonder if there is any way to detect the existence of a second monitor with Javascript. In a scenario where I was using two monitors/screens on my computer, I would like to open a popup via…
-
4
votes1
answer281
viewsSELECT Mysql - Prioritizing results that are not null
Hello, I have a table with several records, which are not mandatory. I need to execute a query, and bring only the result that has more information that is not null. Ex: ID | Col-A | Col-B | Col-C |…
-
4
votes2
answers3438
viewsHTML / CSS - input text Mask date, time
I am a beginner in the area and I do not have much knowledge, I have the following code, and I would like it to be filled only with numbers and in the format "00/00/0000" and "00:00" respectively. I…
-
4
votes4
answers327
viewsReturn results for all months of the interval
I own the following query: SELECT CAST(SUM(CASE WHEN s2.name LIKE '%Servidores' THEN (ta2.time_unit * 1.5)/60 ELSE ta2.time_unit/60 END) as DECIMAL(12,2)) AS TEMPO_CORRETO,…
-
4
votes1
answer3776
viewsHow to create MASK with pure JS in React
I am transforming a site HTML, CSS and jQuery in React but I saw that the use of jQuery is lagged in React since it is possible to create some components faster and simpler, my doubt is how to…
-
4
votes2
answers459
viewsWhat’s the "Never" type for?
Today I was asked what the guy is for never Typescript, but it got confused for me. It just serves to say that it does not return anything? What’s the difference to the void?…
-
4
votes2
answers101
viewsHow to make a loop/routine for the write.fst() function?
I have the following files in my working directory: Dados_1.fst Dados_2.fst Dados_3.fst Dados_4.fst ... Dados_10.fst The Dados_x.fst file (where x goes from 1 to 10) has the columns CODIGO,…
-
4
votes1
answer104
viewsDifference between [i] + 1 and [i + 1]
I have doubts about [i] + 1 and [i + 1], one increases position and the other content, correct? In relation to rating (*i)++, it is similar to which of the two cited above?…
-
4
votes2
answers57
viewsI want every time I click on the 'Armchair' function it changes color
function Selecionar(){ var selecionado = document.getElementById("poltronas"); selecionado.style.background = "yellow"; var selecionado = document.getElementById("poltronas");…
-
4
votes1
answer823
viewsWhat is the purpose of Concurrencystamp and Securitystamp in ASP.NET Identity?
The summary of both properties in the entity IdentityUser are in English: Concurrencystamp: A Random value that must change Whenever a user is persisted to the store. Translating would be something…
-
4
votes1
answer220
views -
4
votes2
answers659
viewssummation multiplication algorithm
I’m doing a job that I need to create an algorithm that turns product into sum or difference and I can only use the signals +, - and the commands else, if, print, while and input. I was able to make…
-
4
votes1
answer175
viewsHow to loop to generate graphics in R?
Consider the following Data Frame: ITENS <-c("A","B","C","D","E") Q.1 <-c(10,20,10,40,10) Q.2 <-c(5,25,0,50,10) Q.3 <-c(15,20,5,40,10) Q.4 <-c(15,30,5,30,5) Q.5 <-c(20,25,5,20,15)…
-
4
votes2
answers385
viewsProblem with C matrices
I have to do a program that will read 4 grades from each of the 6 students in a class and store them in a matrix NOTES[6][5]. For each student, the arithmetic mean of the 4 grades should be…
-
4
votes3
answers767
viewsEscape Single and double quotes from the text area even giving Crlt+V
// I just don’t want to let you type in single quotes and double quotes $('#bot').keypress(function (e) { var regex = new RegExp("^[a-zA-Z0-9-]+$"); var str = String.fromCharCode(!e.charCode ?…
-
4
votes1
answer355
viewsCreate angular design without using angular-cli
Good night, my dear. Can someone give me instructions (or links to articles) on how to create a project at angular 4 from scratch, without using angular-cli? I am a language beginner and need to…
angularasked 6 years, 5 months ago Bruno Sousa 110 -
4
votes1
answer181
viewsFunction to return the proper python source code name
Is there a function to return the source file name itself? The intention would be to create a log file, which one of the data would have the name of the source that is generating that log. If you…
pythonasked 6 years, 5 months ago Rodrigo Saito 88 -
4
votes9
answers15601
views'nodemon' is not recognized
After nodemon installation I get the following error : 'nodemon' is not recognized as an internal command or external, a operable program or a batch file. The following commands have been passed:…
-
4
votes1
answer170
viewsHow to save all data inserted into a form-control in Mysql
Guys, how can I make a script to save all data right after its insertion. In case the view would be this. After typing and typing enter the data would already be saved in the comic. What’s the best…
-
4
votes1
answer292
viewsHow to check if data already exists in the bank before inserting another in angular?
I have already made a modal that receives a name, it sends the controller in the function of inserting new contact. I want to check if this data is already registered in the bank so that it does not…
-
4
votes1
answer2549
viewsHTTP React Native Request
an API sends a status:false the code taken status. While status==false, will be rendered the image of exclamation.png and message 'Pedido em Análise'. Case status change to true both image and…