Most voted questions
150,413 questions
Sort by count of
-
5
votes2
answers866
viewsGit - how to ignore files inside a folder
How do I view the folder without Versing all the files that are inside it? I have tried several ways and I can’t, either versioning the files or stopping the folder. I need it created for the proper…
gitasked 5 years, 9 months ago João Paulo Silva 177 -
5
votes1
answer1030
viewsWhat is the difference between :first-Child and :first-of-type in CSS?
I was writing a line of code and I was ready to type :first-of-type to change a certain element. That’s when I got the doubt: I must use first-of-type or first-child? Since both present the same…
-
5
votes2
answers49
viewsExtract vectors from a vector set of vector names and merge into a single vector
I have a vector that contains names of other vectors. For example: teste [1] "vetor_arte" "vetor_rio" "vetor_parque" vetor_arte [1] 1 3 4 11 12 13 14 16 29 30 41 vetor_rio [1] 6 7 8 9 10…
-
5
votes3
answers969
viewsDifferences and similarities between apply and for loop functions
I have this list: dataset<-data.frame(matrix(runif(6*30,20,100),ncol=6)) cluster<-kmeans(dataset,centers=3) cluster dataset$kmeans<-as.factor(cluster[['cluster']])…
-
5
votes1
answer189
viewsMysql returning all integers as string in PHP
Whenever I am making a query, PHP is bringing the data from the MYSQL database as string, and this is affecting data conversion when I send the customer a JSON response. For example, in the table…
-
5
votes1
answer4672
viewsHow to use SQL "LIKE" in Sequelize?
I am developing using sequelize but as it is my first time using this ORM I am with some doubts. I have the code below to make a query in the database through an input type text but I am using the…
-
5
votes3
answers147
viewsJoin between banks
Staff I am running the command below but I haven’t gotten the desired result. USE banco1 SELECT * FROM sistema.tb_menus_perfil_params a LEFT JOIN banco2.sistema.tb_menus_perfil_params b ON a.pm_id =…
-
5
votes2
answers67
viewsDifference in performance when Duplicate a table
There is significant difference in performance between these two examples? SELECT * INTO [IP].BA_exemplo.dbo.TabelaB FROM BA_Temp..TabelaA and SELECT A,B,C,D... -- (todos os campos da tabela…
-
5
votes1
answer3753
viewsHow to change the y-axis scale on a line chart
I’m trying to plot a graph where the points on the y-axis vary in decimal places but I couldn’t adjust the axis scale to vary in decimal places as well. t_mean = c(30.24, 30.73, 30.94, 31.97, 31.28,…
-
5
votes1
answer330
viewsHow to save bank data in the database?
When making a virtual store what is the best way to save the user’s bank data in the database? Credit card number, security number and expiry date. For example, using Laravel. It would use a type of…
-
5
votes2
answers2447
viewsHow to automatically download PDF to Selenium? With Python
I am using Python with the Selenium webdriver to automate the download of multiple PDF files. I get the PDF preview window. And now I would like to automatically download the file without popping up…
-
5
votes1
answer166
viewsCarousel content harms SEO? Is the hidden Carousel content indexed?
I have a question about Carrousel and how its content is indexed or not by crawlers search. First, I believe that most Carousels are not so friendly from the point of view of Accessibility. This…
-
5
votes1
answer60
viewsHow to implement mappers in R?
I would like the answer to contain information on: What are mappers? How to create a mapper on R? In what situations mappers are used (their role in functional programming)?…
-
5
votes1
answer279
viewsRadar effect with CSS
I’m trying to make an animation like "radar" around an image using only CSS with @keyframes. I even managed to reach a result, except for the fact that I can not synchronize the two "waves" of the…
-
5
votes1
answer254
viewsTwo marbles and a 100-story building
Classic question of job interviews... You receive two marbles (marbles), you are told that they will break when they fall from a certain height (and presumably do not suffer damage if they fall…
-
5
votes1
answer98
viewsMount CSS from Image
I have the image below that shows a form HTML. I wanted to make that effect in the form but I couldn’t. Can someone help me? Follow my lead. body { font-family: 'Roboto', sans-serif;…
-
5
votes2
answers257
viewsBehaviour of the pseudo-class :Nth-Child
Unfortunately the question marked as "possible duplicate" (and its responses) address something else, specifically the functioning of variable n in formulas passed in the :nth-child(), which neither…
-
5
votes2
answers150
viewsAdd values from a select when repeat client id
How I could sum the values of a select when repeating the account id? Example I use that select: $servername = "localhost"; $username = "username"; $password = "password"; $dbname = "myDB"; //…
-
5
votes1
answer90
viewsUsing template, why use the const modifier in this variable (C++)?
#include <iostream> using std::cout; using std::endl; template <unsigned int i> struct Fibo{ static const unsigned result = Fibo<i-1>::result + Fibo<i-2>::result; }; template…
-
5
votes3
answers1590
viewsCheck that all fields of an entity is null
I’m doing a verification of an entity view model in the C# and I have to validate if all fields are null, because I have to require at least 1 filter to continue the routine. Doubt: What better…
c#asked 5 years, 10 months ago Victor Laio 2,043 -
5
votes1
answer146
viewsLINQ Lambda | Query Syntax VS Method Syntax Performance
Doubt regarding the construction and performance of querys using Query Syntax and Method Syntax / LINQ Query Syntax: var VendorQuery = from v in vendors where v.CompanyName.Contains("Toy") orderby…
-
5
votes1
answer85
viewsWhat are columns-lists of a data.frame?
The tidyverse stimulates the use of columns-list in data frames.. But, after all, what are columns-list? on what occasions they are commonly used? they can be created with the r-base or just as…
-
5
votes2
answers1524
viewsChange <Chr> to number in R
My dear, I am trying to convert the data of columns 4 and 5 to number, but you are giving this error. Any suggestions? Thanks in advance! library(tidyverse) dadosarrumados <- data_frame( Região =…
rasked 5 years, 10 months ago Fabiano Meira 59 -
5
votes2
answers1371
viewsRegex capturing exactly x digits of a string
I’m trying to make a regular expression in which it captures exactly x digits(specifically in my case x=6). Example: "test 1 n°123456 test end" "2 n°7890123 test end" I want you to return in the…
-
5
votes4
answers844
viewsHow to Make Material Design Style Button Only with CSS
On Android and on design system Material Design is common to see this button they call Ripple Buttom. https://material-components.github.io/material-components-web-catalog/#/Component/ripple But it…
-
5
votes4
answers146
viewsPerforming functions with and without creating local variables
Despite the simplicity of this question, I could not find an answer to it on the Internet. Is there any structural/performance difference between the two functions defined below? def F(x): Output =…
-
5
votes2
answers498
viewsHow to make mobile sum in R?
I have a vector 1:50 and need to perform a moving sum (equal to moving average), that is, in the case of the last 5 observations, the new vector would be c(sum(1:5), sum(2:6), sum(3:7), ...,…
-
5
votes2
answers214
viewsApplication of the `assign` function in loops
I want to play names in variables with a loop. With for I can get: library(tidyverse) for(i in 1:6){ names<-str_c('var',i) assign(names,runif(30,20,100)) } But with lapply and map nay: lapply…
-
5
votes2
answers197
viewsGet JSON from the URL properly
I have the following method that gives me one String: public static final String jsonClientes = " {\"clientes\": " + " [" + " { \"idClientesT\": 1," + " \"tipo\":\"s\"," + " \"nome\":\"Carlos\"" + "…
-
5
votes1
answer4890
viewsIs there any way to remove CSS and JS codes not used by the application?
I wonder if there are any transpilator analysing the classes and ids used in an HTML page and removes all classes and ids not used in CSS and Javascript. This would be interesting to further…
-
5
votes1
answer295
viewsWhat is the difference between extension and library in PHP?
In PHP there are some extensions within the language. For example, the SPL, to PHAR and the PDO are some of these extensions. Basically, my doubts are as follows:: What’s the difference between an…
php terminology characteristic-language library extensionasked 5 years, 10 months ago raphael 2,131 -
5
votes2
answers215
views"Leak" text behind <th> using Sticky CSS position
I’m using position: sticky; in the <thead> of a table where I assign a background color to <th>. My intention is that, when scrolling the page, the header remains visible because the…
-
5
votes1
answer159
viewsHow to use methods contracts and why?
Reading a book on development . NET, I saw a brief description about methods Contracts and tried to know a little more on the internet. It uses an imperative syntax that is costly and has low tool…
-
5
votes1
answer140
viewsWhat is the difference between a Warehouse date and a Lake date?
Considering the concepts of data Warehouse and of data Lake, what notable differences we can cite between them?
-
5
votes1
answer216
viewsWhat does the == operator mean in Kotlin?
What does the === Kotlin operator mean, and how to use it? I found this snippet of code in the documentation, but I was left with doubts. val boxedA: Int? = a val anotherBoxedA: Int? = a…
-
5
votes2
answers85
viewsRepeating the subtraction of groups in a data frame for all numerical variables
I have the following code: df <- data.frame(grp = rep(letters[1:3], each = 2), index = rep(1:2, times = 3), value = seq(10, 60, length.out = 6), value2 = seq(20, 70, length.out = 6), value3 =…
-
5
votes1
answer76
viewsIs there any way to test a CSS animation by Devtools?
I have this simple animation done in CSS, but I’m having difficulties to "debug" your behavior. Every time I have to go in the code, save, and update in the browser. Is there any way to test a…
-
5
votes1
answer112
viewsIs it prudent to use several paradigms in a C++ project?
Would it be advantageous to use several paradigms in a project in C++? For example, in a certain part of the code I use reactive Programming, in other parts I use OOP, and in other parts I use…
c++ oop encoding-style functional-programming paradigmsasked 5 years, 11 months ago Strawberry Swing 177 -
5
votes2
answers95
viewsIs doing unstable code commits in Git bad practice?
I have a very big change to make or I have cause of a class that has many relationships. Do I need to leave the project in a stable situation before doing local commits? Or is tested and stable code…
-
5
votes1
answer247
viewsRemove eye shine on image
Well, I’m trying to apply Canny edge to the image but the brightness that is contained in the pupil hinders the result because to have an edge with cv2.Canny() or feature.canny() needs there to be a…
-
5
votes2
answers1222
viewsHow to get out of git listing?
I have a project downloaded from the Github repository. When I execute the command git log within that project, it lists all the branches existing in the project, but I can’t leave the list. I’ve…
-
5
votes1
answer334
viewsRaw String Literals Java
I saw that in JDK 12 it is possible to make raw string literals similar to some programming languages like C#, JS, R etc. Ex in C#: "Essa não é uma \n raw string"; Exit: Essa não é uma raw string…
-
5
votes1
answer76
viewsRegular Expression to clone a value in a field
I have the following values: PRO|00000001|GASOLINA ADITIVADA|0101001|27101259| I’d like an expression that changes values and stays that way: PRO|00000001|GASOLINA ADITIVADA|00000001|27101259| I…
regexasked 5 years, 11 months ago Marcos Correia 123 -
5
votes2
answers203
viewsWhen to use "Try catch" in layered application?
Let’s say I have my layers Controller Business Repository so it is necessary to create this block in the 3 layers or create only in the controller? If I do this she ensures that every code that is…
-
5
votes1
answer462
viewsSchema modularization using Adonisjs and Graphql
I have a project where I am using Adonisjs and Graphql, I created the schema and defined the darlings, mutations, types. But everything was centered on just one file, so I decided to modularize the…
-
5
votes3
answers1148
viewsDynamic allocation in C - allocating without knowing the total amount of elements
I have a question about the dynamic allocation in c, as to the use of the function malloc(). If we take, for example, a case of registration of a full name, as we have no way of knowing the amount…
-
5
votes1
answer122
viewsInheritance at compilation time?
I was reviewing some codes and some concepts when I find the following assertive: The legacy mechanism in Java occurs at compile time, i.e., every reuse of code accomplished by inheritance is…
-
5
votes2
answers502
viewsIs it possible to use dictionaries inside lists in Python?
I need to scroll through a list that contains dictionaries and present the information of this one. But testing the attributes here .item() and .value() I couldn’t. Look: #6.8 - Animais de…
pythonasked 5 years, 11 months ago Nameless Man 159 -
5
votes2
answers201
viewsWhat is the difference between the string.Slice() method and the string.substring() method?
We know the method string.slice() and the method string.substring() allow extracting a part of a string and creating a new string as a result (without modifying the original string). What…
-
5
votes1
answer144
viewsMount two-dimensional PHP array
I need to mount a two-dimensional array through 2 arrays received via post. Example of arrays I receive: Array ( [0] => disc03 [1] => disc04 ) Array ( [0] => prof03 [1] => prof04 ) From…
phpasked 5 years, 11 months ago Reginaldo Boeke 113