Most voted questions
150,413 questions
Sort by count of
-
4
votes1
answer104
viewsManipulation of columns-list
I have a tibble so-called my, which contains the column-list data library(tidyverse) dataset<-data.frame(matrix(rnorm(6*30,1000,100),ncol=6)) cluster<-kmeans(dataset,centers=3)…
-
4
votes1
answer630
viewsDifference from Angular Production and Development Build
I would like to know the differences between the build of production and the build development in Angular?
-
4
votes2
answers54
viewsCompensating for Select Option loss
I have a style I use for the fields of form: .inputTextMedio { border: 1px solid rgb(0,0,0); border-radius: 10px; width: 250px; height: 30px; padding: 3px; display: inline-block; } The problem is…
-
4
votes2
answers1563
viewsIn HTML and CSS should I use Single Quotes or Double Quotes? Is there any recommendation?
I recently noticed that the text editor that I use gives me an "alert" if I use simple quotes ' ' in HTML. Below are two examples, one using Simple Quotes in the body of the document in…
-
4
votes2
answers289
viewsEmail and password validation using Keyup
I am using the code that tells me if both emails are identical, if both passwords are identical and if they are at least 8 and at most 10 characters long. And only if the emails were equal,…
-
4
votes2
answers33
viewsUnwanted space on an edge with Hover event
I’m trying to replicate the menu effect of OW game modes selection and I came across the following problem: Apparently it is working right. However, when the border appears, it has an extra spacing…
-
4
votes1
answer77
viewsBootstrap 3 Pagination - Do not centralize
The code below even exaggerated the centralized alignment classes, and still does not centralize (Twitter-Bootstrap 3.7): <section> <div class="container"> <div class="row">…
twitter-bootstrapasked 5 years, 9 months ago ElvisP 1,523 -
4
votes1
answer70
viewsGenerate multiple samples from the same vector
I’m a beginner in R. I’m trying to do a function to generate as many samples as possible without repeating size 4 taken from the same vector. I tried to loop the for, but I can’t do the whole thing.…
-
4
votes1
answer332
viewsCompare data from two SQL Server tables
Good night, I am studying SQL queries and I came across a problem in a query, I have two tables: Table: Products +----------------+--------------+--------+ | Codigo | Produto | Valor |…
-
4
votes4
answers145
viewsHow to count strings from a variable
I have a variable in the database that’s like COMPOSIÇÃO DA COLIGAÇÃO : DS_COMPOSICAO DA COLIGACAO AVANTE / PDT / PODE / PMN AVANTE / PR / PV DC / PRTB / AVANTE / SOLIDARIEDADE / PRP / PATRI DC /…
rasked 5 years, 9 months ago Décio Vieira da Rocha 73 -
4
votes1
answer286
viewsHow to align an element at the bottom of the mother div?
I need the content that’s in <h1> stay aligned below (bottom) in <div>. <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"…
-
4
votes2
answers86
viewsProblem when changing field focus
I’m having a problem changing the input focus between the TextBox of my application. The problem is actually this: tb_Estados has a AutoCompleteMode = AutoCompleteMode.Append and a…
-
4
votes2
answers123
viewsWhy doesn’t my class apply the style I set to the "H1" tag?
I did an example of CSS code to learn a little bit more about the use of classes. However, I realized a mistake and I can’t quite understand why. 1° example .fonte-style-h1 { vertical-align: middle;…
-
4
votes2
answers111
viewsMobile Swipe: Hangs when moving your finger on the screen quickly
Hello, I’m studying Touch Events and making an example of a page with full sections that passes one by one on the screen. I did the CSS, HTML and Script, the basic works... But when I test on the…
-
4
votes2
answers173
viewssql record in tables and return the table name
Well, here’s the thing query Mysql; SELECT idMembro FROM membros WHERE idMembro IN ( SELECT idMembro FROM pastores union SELECT idLider FROM redes union SELECT idLider FROM regioes union SELECT…
-
4
votes1
answer203
viewsR connection to Myqsl
Does anyone know how #Mysql can have access to a dataframe that was handled in R, I have already connected to the following script install.packages("RMySQL") install.packages("RJDBC") library(DBI)…
-
4
votes2
answers489
viewsDetect URL Webview
I have a little problem, I need to know the URL every time the page is changed. my code works perfectly normally opens youtube that would be the example : WebView wv; public void onBackPressed(){…
-
4
votes3
answers155
viewsWhy does print() print outputs one below the other and not the other?
Continuing my studies in Python, a new doubt arose. Before asking, I researched here on Sopt using the expression "print next to Python" and I did not find anything that could kill my doubt and…
-
4
votes1
answer482
viewsAlgorithm for Helicopter Escape Solution
I recently managed to solve an algorithmic problem by enumerating all possible conditions. However, I believe that through some mathematical artifice, it would be possible to solve the problem more…
algorithmasked 5 years, 9 months ago Jeanderson Candido 230 -
4
votes2
answers213
viewsHow to filter only the last day of each month?
How can I filter a query bringing the result by the last day of each month, in SQL Server 2012? I tried the EOMONTH, I think due to the version. SELECT E8_FILIAL, E8_AGENCIA, E8_CONTA, E8_DTSALAT,…
-
4
votes1
answer4917
views<? php echo $_SERVER["PHP_SELF"];? > what is the function?
I was studying about POST methods and all right, I know that the form needs to process and so it is forwarded via action, but what is the function of the code: action="<?php echo…
phpasked 5 years, 9 months ago Thalles Rangel 61 -
4
votes2
answers855
viewsHow to break line in Pseudo Content element ::after or ::before?
Is there any way to break the line of a text that is in content of a pseudo element type o ::after or the ::before ? Whereas something like this: content: "<br> não quebra?"; or this content:…
-
4
votes1
answer54
viewsPayload blank return when performing return to WEB application in Golang
I am checking in the API if the user’s email is already registered and returns a warning message. Even performing the requests the payload returns empty. Even debugging and knowing that the payload…
-
4
votes1
answer161
viewsDocker Registry local error: No such image: localhost:5000
Good morning to all, I’ve had a problem for two days that I haven’t been able to solve. I built an environment with 3 machines, with Docker swarm, one machine manager and two nodes. The problem,…
dockerasked 5 years, 9 months ago William Borgo 145 -
4
votes2
answers346
viewsReuse of variables
I had a question about code optimization. I assume that the more the code is dried, the faster the algorithm will be compiled and executed. Starting from this principle, I have the habit of reusing…
-
4
votes1
answer1677
viewsCalculate percentage of certain colors in an image
I have a program that reads an image and checks if there are certain colors in that image, if it does paint each pixel a certain color. I couldn’t find materials on the Internet that could help me,…
python-3.x opencv image-processing histogramasked 5 years, 9 months ago Marcos Paulo S. Rezende 351 -
4
votes2
answers387
viewsProblem with audio stream on android
My shorthand code is this: MediaPlayer mediaPlayer = new MediaPlayer(); mediaPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC); mediaPlayer.setDataSource("http://stm43.srvstm.com:8474/;");…
-
4
votes1
answer50
viewsWith CSS is it possible to change the cursor more than once when interacting with the element?
I have an element that will can be moved by the screen. So thinking about ux/ui I wish I could give two feedbacks for the user. In the first case it places the mouse over the element, and in the…
-
4
votes1
answer50
viewsHow to make a prediction interval for a restricted group?
Considering the model with only these two explanatory variables, indicate a 95% prediction interval for an individual in X1 first quartile (1st Qu) and X2 second quartile. I know the generic code,…
rasked 5 years, 10 months ago Gabriel Costa Pinto 43 -
4
votes3
answers2117
viewsRegular expression to return text between keys
I have this String: str = "Eu sou uma string {dentro de uma string {dentro de outra} }" What regular expression can I use to get just: dentro de uma string {dentro de outra}…
-
4
votes1
answer202
viewsFunctional programming: applicability of parameters (.x) and (.) in purrr::map
I’m migrating to the package purrr, mainly in relation to the use of the function map. But I’m having a hard time understanding the concepts of functional programming in purrr. I would like to learn…
-
4
votes3
answers186
viewsRemove Environment (and list) elements based on their classes
Consider the vectors: a<-1:10 b<-1:10 c<-'a' d<-'a' e<-list('b') f<-list('b') g<-1.1 h<-1.1 The function below removes only one class (which is integer, in this case):…
-
4
votes2
answers196
viewsDo ( Casting ) of the return of Malloc(), Calloc() and Realloc() - C
According to the discussion Do I cast the result of malloc?, in C is not recommended or correct to cast Malloc() return. This also applies to Calloc() and Realloc functions()? Taking advantage, the…
-
4
votes1
answer46
viewsError mounting HTML table with jQuery
I need to create this screen: The problem is that the code I made generates 9 columns in a row instead of generating 3 columns per row: That is the code: @{ ViewBag.Title = "Home Page"; } <div…
-
4
votes1
answer128
viewsHow to insert records via cursor?
I need to insert unique records by a field that has the unique identifier, so I’m using cursor; however, the unique identifier does not add according to the inserts. ERROR: You are duplicating and…
-
4
votes2
answers379
viewsRecover List Written in Python File
I’d like to go to my file that contains the following ['teste1', '27-12-18', '12/5/2015', 'Aberta'] ['teste2', '27-12-18', '6/7/7', 'Aberta'] ['teste3', '27-12-18', '12/5/6', 'Fechada'] and only…
-
4
votes1
answer260
viewsValidate fields in a form made with jQuery-Steps
The form has two Steps, I was able to validate the first step using the onStepChanging. But in the second step where there are fields that need to be validated, the user action becomes Submit, which…
-
4
votes1
answer898
viewsServer cannot attach a header after HTTP headers have been sent
Good morning, I have the following code that I use to compress the controllers using the GZip. I log in to the system normally, but if I try to change registered company the following error is…
-
4
votes3
answers488
viewsCalculation of Difference between Dates
I have the following DF: MATRICULA <- c('111','222','333','444','555') DATA_INICIO <- c('10/12/2017','31/12/2014', '30/06/2015','20/11/2016','01/04/2014') DATA_FIM <- c('10/12/2017',…
rasked 5 years, 10 months ago Bruno Avila 867 -
4
votes2
answers1799
viewsOperator "AND" in Regex
I’m trying to use the operator AND in regex. I have looked at that link, but this case did not help me. My case is, for example, in the text: "FORT/310117/200826/12979898000170" I want you to return…
-
4
votes0
answers61
viewsUpdate problem of an Updatepanel
I have a page that contains several graphs. We use Google Maps to create them. The graphs are organized in dashboards. Page description: On the page contains a UpdatePanel responsible for dashboard…
-
4
votes1
answer74
viewsWhat is rel="noopener"? Should I use it on all links on my site? Can it affect SEO?
I recently noticed that the property rel of link may receive the tribute noopener, but I didn’t quite understand the advantages of using it... <a href="http://example.com" target="_blank"…
-
4
votes1
answer618
viewsPicking Gaps in an SQL sequence
Hello, today I own a select that returns me the following result: I do another select that returns a value, 5 for example. I would need to know which numbers are not between number 1 and number 5.…
-
4
votes2
answers972
viewsMissing required Parameters for [Route: ] [URI: /{}/]
I am trying to pass an update parameter, but it is giving error. Controller public function update(ColaborationFormRequest $request, $id { $dataForm = $request->all(); $colaboration =…
-
4
votes1
answer290
viewsHow to get a PHP file past $.ajax?
I’m having a problem I don’t know if it’s sending in $.ajax or picking up with PHP. Is not coming the $_FILES normal on the other side, arrives as 'caminhofoto' => string 'C:\fakepath\1.jpg'…
-
4
votes3
answers2829
viewsAccent error on Visual Studio output
print('Olá Python!) Here is some information about setting up my PC. Windows 10 Pro Cmder Active code page: 850…
-
4
votes1
answer203
viewsFunction "strcmp()" working without adding "string. h"
I wrote an algorithm in C that uses the function strcmp(). Even forgetting to add the string.h the algorithm worked. I would like to understand how it worked since I only found this function in the…
-
4
votes2
answers396
viewsUsing REGEX in PHP to capture any number that is not within single quotes
I have been studying regex for some time and now I have a problem: capture all the numbers, including decimals, other than in single quotes. I’m creating a kind of Viewer for PHP code in order to…
-
4
votes1
answer1486
viewsEncoding problem in Python
At one point in my code I receive a variable var of type str containing SENTEN\u00c7A. in making var2 = var.encode() print(var2) is printed b'SENTEN\\u00c7A' The original word would be 'SENTENCE' In…
-
4
votes1
answer90
viewsFormat Time using initBinder
I need to catch the time with the "hh:mm" format but it is not working, follow the error also to better specify: Whitelabel Error Page This application has no Explicit Mapping for /error, so you are…