Most voted questions
150,413 questions
Sort by count of
-
4
votes1
answer1169
viewsCheck that the graph is connected
Can anyone tell me how I can implement a method that checks me if an undirected graph is connected and, if not, returns its related components? public void connectComps(){…
-
4
votes1
answer4254
viewsC, C++, C#? Why should a beginner start learning?
I am 17 years old and I am learning Java, when I feel that I already master the language I plan to migrate to . NET! What is recommended to start C, C++ or C#? Thanks for the help ^^
-
4
votes1
answer1013
viewsHow to make a CSS animation starting from one side in Hover and ending from the other when Hover comes out?
I have an animation where an element appears entering from left to right when I do the :hover in the .box, but I would like that when I took the mouse from the .box the element now exits from the…
-
4
votes1
answer1091
viewsBest way to go through a Hashset
I’m used to programming in PHP and now I’m studying Java, and the Collections API is something new and very interesting for me. I searched the internet and easily found several ways to go through a…
-
4
votes3
answers1668
viewsEvent onmouseover random colors
Speak Devs, I am with the code js below briefly the idea is that when the user click on the button creates a new element on the screen with the shape of a square, every time the user passes the…
javascriptasked 5 years, 11 months ago Henrique 429 -
4
votes2
answers404
viewsQuery with Datetime Sql and C#
I’m trying to get you to return to me the patient of a particular day and time in command next: SqlCommand cmdSelect = new SqlCommand("select DISTINCT P.nome,P.codPaciente, M.codMedico, C.descricao…
-
4
votes1
answer92
viewsError opening form inside panel
I would like to open a form inside a panel, but when it opens, it is always the same size and in the same place regardless of the size of the form or the location. Dim rv As New formRV rv.link =…
vb.netasked 5 years, 11 months ago Lucas Pedro 297 -
4
votes1
answer104
viewsHow to organize photos in multiple frames
I wanted to make this effect of the image below. Here img.fotosC { margin: 5px; } img.fotoLat { width: 17%; } img.fotoCent1 { width: 10%; } img.fotoCent2 { width: 40.5%; } <div…
-
4
votes1
answer3984
viewsTimezone do Brasil para Datetimeoffset C#
I’d like to know what’s possible Timezones available for all regions of Brazil. I saw we got the E. South America Standard Time for Brasília’s time, but for example, what would be the Timezone acre?…
-
4
votes1
answer71
viewsSum returns Nan for values above 999
I have a function that calculates subtotal + ascrescimo - desconto, but I went to test a value above 999 it returns NAN. //função para calcular o total da nota function calcular() { var soma1 = 0;…
javascriptasked 5 years, 11 months ago frodrigues 181 -
4
votes2
answers580
viewsHow to create an optional parameter in ADVPL?
In several functions documented by Totvs there are optional parameters. I would like to create an optional parameter in my function, how to do? I’m wanting to make the function updEnvio receive a…
-
4
votes1
answer593
viewscapture Pattern groups with regex
How do I capture group-separated information with regex? I have a string with the following format: /+1-541-754-3010 156 Alphand_St. <J Steeve> 133, Green, Rd. <E Kustur> NY-56423…
-
4
votes1
answer224
viewsHow to add values to an array of a Ruby array?
puts "Alunos\n\n" alunos = [["Daniel: ", "Nota: 10\n\n"],["Abima: ", "Nota: 10\n\n"], ["Wilame: ", "Nota: 10\n\n"],["Felipe: ","Nota: 10\n\n"]] puts alunos I wonder if it is possible to add a new…
-
4
votes0
answers132
viewsProblem trying to delete a c# dll with Delphi 5 using COM
I have a DLL that I use to perform digital signature of PDF’s created in c# (Assinaturadigitalpdf.dll), it in turn uses a dll that handles PDF files (itextsharp.dll), I load it into Delphi and run…
-
4
votes1
answer1238
viewsWhat is the difference between $Digest and $apply?
In Angularjs, we have two methods that execute the $watchers synchronously: $digest and $apply. I’d like to ask a few questions: What’s the difference between them? When I should wear one or the…
angularjsasked 5 years, 11 months ago Wallace Maxters 102,340 -
4
votes1
answer496
viewsHow to Inspect an element that only appears when I do Hover on another element?
I have an element that when making a hover in it will appear a pseudo-element elsewhere on the screen, however I would like to inspect this pseudo-element when it is visible on the screen. How do I…
-
4
votes0
answers148
views -
4
votes1
answer1359
viewsPostgresql md5 encryption
I am creating a table using Postgresql and there will still be a password field with MD5 encryption. What would the syntax look like in it? Because I have more contact with Mysql than Postgresql.…
-
4
votes1
answer90
viewsHow to read txt file with multi-dimensional datasets?
am with a dataset file composed of multiple dimensions in a single txt. For example, 2 3 #dimensao do primeiro dataset 1 2 3 4 5 6 4 4 #dimensao do segundo dataset 1 2 3 4 5 6 7 8 9 10 11 12 13 14…
rasked 5 years, 12 months ago Wagner Jorge 1,377 -
4
votes1
answer1269
viewsRegex for repeat numbers on CNPJ
I have the following regular expression: regex:/^\d{2}\.\d{3}\.\d{3}\/\d{4}\\-\d{2}$/ I can validate for that, but not for repeated numbers. I want to apply within this regex, a form that does not…
-
4
votes2
answers897
viewsIs there an Excel function that associates letters with numbers (A = 1, B = 2, C = 3 etc.)?
Is there any Excel function that associates letters to numbers according to alphabetical order (ie, f(A) = 1, f(B) = 2, f(C) = 3 and so on)?
-
4
votes1
answer124
viewsIs it possible to make Polyfill for Arrow Function and Template String?
The functionality of Template String and Arrow Function are excellent to facilitate some Javascript operations. However, it seems that not all browsers still support the same. In many cases of lack…
javascriptasked 6 years ago Wallace Maxters 102,340 -
4
votes3
answers122
viewsModule Operator invokes special object methods
To biblioteca padrão do Python has the module operator, studying the same I noticed that some of its functions have say "aliases", for example: operator.setitem(a, b, c) operator.__setitem__(a, b,…
-
4
votes1
answer3207
viewsBack to top button only with CSS. Smooth scroll only with CSS is possible?
I know that here on the site there are numerous questions of Smooth Scroll and Button to "return to top" (back to top), but they all involve Javascript or jQuery, but this não is my goal. I would…
-
4
votes1
answer3271
viewsWhat are environment variables?
I have seen many questions, articles and even some modules in the standard Python library where a term is introduced which is "environment variables". Here at Stackoverflow there are many questions…
-
4
votes1
answer232
viewsUse of Generalization/Specialization in Data Modeling
I’ve read some articles about Generalization/Specialization in data modeling, but some questions have arisen: Is the primary key to generalization also the primary key to specializations - that is,…
-
4
votes2
answers341
viewsWhat would be the correct way to verify if a value exists in the table in Lua?
if not name in Namez do table.insert(Namez,name) end What would be the correct way to check if a name is not in the table?
-
4
votes1
answer107
viewsHow to paint multiple page elements by clicking and dragging the mouse?
Essentially my program creates a "screen" of "pixels" where the Divs are the pixels. It randomly generates the colors in the image and the user can use a palette that is below to change, as if to…
-
4
votes2
answers121
viewscalculate a probability function in R
Good afternoon. It’s my first intervention in the stack, I’m a beginner in the R, and my doubts are quite basic. I need to generate a sample of 1000 observations of a distribution function W. W is a…
-
4
votes1
answer59
viewsIs there a technique for reporting Javascript errors?
The following is as follows: I use the Laravel Framework and, in it, configure the application so that when any server error occurs, it sends me an email, writes in a log file and/or sends me a…
-
4
votes4
answers915
viewsConvert date format to php
Personal I am working with Wordpress php and get from the database a date in the following format: "22 October, 2018", more need to convert it to "2018-10-22", how do I get that? tried:…
-
4
votes2
answers673
viewsWith CSS is it possible to fill in the "eyes" of the Font? Is it possible to fill in the "holes" of the letters A, O, P, etc?
I was wanting to create a title to use in the sessions of my site, but wanted the source to have an effect similar to those images, With eyes filled giving the impression that the source has the…
-
4
votes1
answer618
viewsRegular expression does not validate password when I type only numbers
I am using this regular expression to validate my password, the password must have only letters and numbers, must have at least a letter and a number. (Minimum 8 characters). I’m using that…
-
4
votes1
answer141
viewsFilter dates in array
Currently I use firebase as my database. I need to take a collection and bring the data of a specific month according to two fields of my collection. firebase doesn’t let us make querys with…
-
4
votes2
answers372
viewsHow to show 2 rows in Listbox
It’s a simple question, but I did some research, and I couldn’t find anything specific to my case. The code below corresponds to searching for data in a table, but when there is more than 1…
-
4
votes1
answer985
viewsPage number with DOMPDF and LARAVEL
How do I place the number of each page with domPDF? I use it with the Standard. Example: Page 1-4, Page 2-4, Page 3-4 and Page 4-4; My function to fetch database data: public function print($id) {…
-
4
votes1
answer48
viewsMean of repeated lines
People, I have a data.frame as follows Gene 12h 10d 6w Slc39a10 1.52 -6.72 -1.84 Slc39a10 1.52 -6.72 -1.84 Mfsd6 -0.15 0.672 0.26 Mfsd6 -2.55 -54.53 -23.75 Hecw2 2.13 2.71 1.92 Hecw2 -7.30 -4.34…
-
4
votes1
answer316
viewsFormat array of dates
I have an Laravel application with the following code: private function todosRegistros($id, $colunas = ['data', 'nivel']) { return Leitura::select($colunas)->where('estacao_id', $id); } public…
-
4
votes1
answer159
viewsHow do IDE and compiler integrate?
Taken from here: What is a programming language, IDE and compiler? In general the compiler is a console program, but there are cases that they are libraries that can be used in conjunction with…
-
4
votes1
answer366
viewsopen a view in a new tab
I have a view with a chart, but I don’t want it to open inside my template and yes in a new aba. $this->loadGrafico('graficoEscola', $grafico);…
-
4
votes2
answers594
viewsWhat is Java Sort?
Every programmer know that a list of arrays are printed in an orderly way, but in the middle of the way sort(). The result of the impression was this: Abacaxi Banana Laranja Manga I thought it would…
-
4
votes2
answers214
viewsTrying to understand the Java print
Watch the code right below; public class Dois { public static void main(String[] args) { int a = 3; int b = 4; System.out.print(" " + 7 + 2 + " "); } } The score is 72, but I thought the result was…
-
4
votes2
answers76
viewsFind() function of the set library does not return whether or not it found
I’m writing a little program for a college exercise and I’m having second thoughts about find(). I must enter two integer numbers, check if the first number exists within the set previously defined.…
-
4
votes1
answer1104
viewsRun a file . R within another code in R
I have a code that reads the XML files that are in an enterprise network folder, and generates a file .RData. I have other codes that generate different reports for different sectors, using as a…
-
4
votes1
answer577
viewsHow to validate a CPF using a function in R?
I am trying to improve the code of @Rui Barradas that is posted here as a response, but it does not work for some situations. After debugging the code, I understand that the problem lies in the…
rasked 6 years ago CARLOS FALCÃO 49 -
4
votes1
answer311
viewsCorrplot package
How can I add significance to correlation without overlapping between the symbol (*) and the correlation value?? So that it looks like in the picture…
rasked 6 years ago Elizabete Silva 41 -
4
votes1
answer73
viewsWhy is it that when I include my . h header, the . c implementation is not included as well?
I have three files, produtos.h, produtos.c and main.c. produtos.h is located in the folder "headers", produtos.c is located in "sources" and main.c is in the same folder as "headers" and "sources",…
-
4
votes1
answer1959
viewscalculate a row-by-line list media in python
question: Using the text file notes_students.dat write a program that averages each student’s grades and prints each student’s name and average. filing cabinet: jose 10 15 20 30 40 pedro 23 16 19 22…
-
4
votes1
answer1206
viewsHow to remove area of interest from the background of an image?
I am starting to work with image processing in pattern recognition, and I need to do pre-processing of the images I will use. First, I need to highlight the region of interest from the background of…
-
4
votes1
answer5022
viewsMysql command alter table, difference from "Modify" and "change"?
What are the main differences in change and Modify, in which cases should I use them ? alter table cadastro change nome nome varchar(20); alter table cadastro modify nome varchar(30);…