Most voted questions
150,413 questions
Sort by count of
-
7
votes3
answers12436
viewsWhat are recorders and what is their basic functioning?
I am reading a book about Assembly in order to better understand how a low-level language works, it will help me to understand more effectively the internal functioning of the programs I develop in…
-
7
votes3
answers1181
viewsIs GIT Staging Area useless?
I understand the workflow regarding the process that leads to a commit (working directory -> staged area -> repository), but I still can’t understand the usefulness of Staging Area in…
gitasked 6 years, 2 months ago Allan Dantas 359 -
7
votes1
answer4999
viewsWhen to use Cin.ignore() in C++?
When exactly to use the cin.ignore() in a software written in C++? Why many of the times, when I’m making a big software, the readings keep bugging, sometimes if I put cin.ignore() Loosens,…
c++asked 6 years, 2 months ago Victor OCV 393 -
7
votes3
answers816
viewsRemove spaces from a string from the second occurrence
Currently I am removing spaces using a simple replace() and adding a space I must preserve between the third and fourth character using substr() let str = 'abc defghijk lmnop qrstuv wx y z' str =…
-
7
votes2
answers1995
viewsWhat does "== $0" represent when inspecting a page?
When inspecting a page, I realized it appears == $0 that is not part of HTML. What does this code mean? It is part of Javascript?…
-
7
votes1
answer169
viewsBroadcasting with Laravel
I’m creating a chat and for that I need to do a real-time mode so I don’t have to drip several times on the server SignalR who does this job, I’m working with Laravel-PHP and read the documentation…
-
7
votes2
answers4189
viewsHow to generate the alphabet with white space between letters?
In Haskell I can generate the alphabet as follows: alfabeto = ['a'..'z'] To display it is enough: alfabeto "abcdefghijklmnopqrstuvwxyz" However, I would like to know how I can put a space between…
-
7
votes2
answers209
viewsWhat’s the Weakmap object for?
How the object works WeakMap? What’s the difference between him and a Object (which is the most common in Javascript)? What’s the difference between WeakMap and Map? Which browsers can I use?…
-
7
votes1
answer307
viewsWhat is the purpose of the Reflect object in Javascript?
Still curious with some news that I’m seeing in Javascript, I would now like to know what is the purpose of the object Reflect. I even found an explanation in MDN, but I didn’t quite understand the…
-
7
votes2
answers4291
viewsDifference between date and datetime
I was researching the type of data SQL SERVER and I came across this table What would be the real difference between date and datetime data? Time, minute, second notation only ? What would that…
-
7
votes4
answers5024
viewsHow to disable field with Javascript?
I own these HTML fields: <div class="col-sm-6"> <input asp-for="ConfiguracaoTecnibra.HabilitaTeclado" type="checkbox" id="cbHabilitarTeclado" onclick="HTeclado();" /> <label…
-
7
votes2
answers223
viewsIn SQL queries should I follow the order of the index?
If in my table X an index is created with the fields A, B and C (in this order), in the SQL queries I must follow exactly this order? Example following the order of the index: SELECT * FROM X WHERE…
-
7
votes1
answer99
viewsPersistent Hibernate Resource Return
Good afternoon. I would like to understand how to resolve the following issue: In the project I’m working on, Backend and Frontend are separated. To persist the data I am using Hibernate and to…
-
7
votes1
answer526
viewsHow to Force Finish a Thread in Python?
How to force a Thread to terminate in Python? Example: import threading def funcao(): print("Função executando em tarefa paralela.") print("Função executando em tarefa paralela.") print("Existem…
pythonasked 6 years, 4 months ago user110265 -
7
votes2
answers144
views"Hello, world" with Wish TCL/TK, how to change the text of a widget?
I’m having trouble understanding how the program works wish, to make a good old "Hello, World". For those who don’t know what the wish, it is a TCL interpreter ready to make graphical interfaces in…
untaggedasked 6 years, 4 months ago Jefferson Quesado 22,370 -
7
votes1
answer173
viewsHow to insert 2 inputs into the same TD with duploclick?
I would like to insert 2 inputs in a td, today my code works with only one input, and even saved the information in the database, but I need to include one more input to be inserted a password to…
-
7
votes1
answer120
viewsWhy can’t I see the icon code ( ) in developer mode?
Example of this icon: In developer mode (F12, Google Chorme), I can’t see the code of this icon, only image appears. Why does this happen ? Has some secret ? See the image below: Instead of…
-
7
votes1
answer632
viewsHow to delete a file from all commits?
In my first commit I sent a binary file that has no reason to stay. And I sent a configuration file with real passwords. I changed the password to a fake one, deleted the binary, but if you go back…
gitasked 6 years, 4 months ago eduardo.mazolini 130 -
7
votes2
answers770
viewsWhat is the difference between namedtuple and Namedtuple?
To module documentation typing states that the two code snippets below are equivalent. Using typing.NamedTuple: from typing import NamedTuple class Employee(NamedTuple): name: str id: int Using…
-
7
votes2
answers972
viewsHow to use Stream.reduce() appropriately
My problem: I have an Arraylist of the type of Routes (first value is the name of the city, second value is the destination city and the third value at distance), I want to create a new map…
-
7
votes1
answer678
viewsHow to know which Activity prior to the current Activity was called?
I have several activities, which can call a special activity. I’d like to know how to identify which Activity called. It would be something like this: I need this because I have a user registration…
-
7
votes1
answer151
viewsWhat are index hints?
I saw a comment from @Ricardopunctual that mentioned Density-based index hints your question seems very confusing. it starts with a very basic thing such as "how do I process in sql server", which…
-
7
votes2
answers1712
viewsWhat is the difference between the prefer-dist and prefer-source options in Composer?
In Composer, when we install the library, we can add as an argument the options --prefer-source or --prefer-dist. I would like to know what each one does and/or if there is a difference between the…
commiserateasked 6 years, 5 months ago Wallace Maxters 102,340 -
7
votes4
answers2176
viewsWhat are they for and why do they nest the DIV tag?
To TAG <div> is one of the most visualised within a file HTML, it is used within the beginning of the TAG <body> the closure of the </body>, as an example: <body>…
-
7
votes2
answers613
viewsCreate shortcut of type 'prop' or 'propfull' in Visual Studio
I would like to create within Visual Studio a shortcut of the type prop or propfull to automatically create a code snippet. the prop + TAB + TAB public int MyProperty { get; set; } the propfull +…
-
7
votes1
answer3919
viewsHow to list every day between two dates for more than one record (Oracle)
I applied an orientation of another topic and it worked cool when you only have one record in the table with the interval, but I had problems when the same record has more than one date range. Using…
-
7
votes2
answers2693
viewsWhat is a domain class?
What is a domain class? Why "domain"? Are there methods that it should not have (which is not its function to have determined type of method)? It admits what kind of methods?
-
7
votes2
answers1741
viewsHow is the 'Two way data Binding' process with pure JS?
Today’s Java framework is popular, such as React, Vue and Angular. They work with Two-Way Data Binding which is a hand in the wheel for the developer. How is this process done? Is there any simple…
javascriptasked 6 years, 5 months ago Lennon S. Bueno 2,182 -
7
votes1
answer3469
viewsConsume Pje web service
I need to consume the progress of a process using the web service provided by Pje. I am following the guidelines described in: http://www.pje.jus.br/wiki/index.php/Tutorial_MNI According to the…
-
7
votes2
answers406
viewsWhy doesn’t Java add up the numbers in expression?
public class Teste { public static void main(String[] args) { int x = 0; int y = 1; int z = 2; System.out.print(x + y + z); } } This returns: 3 public class Teste { public static void main(String[]…
-
7
votes2
answers3036
viewsHow to check which file is the latest in a Python folder?
Suppose you have a folder with several files .txt, with different names, I need to know the latest file. How do I do this using Python?
-
7
votes2
answers542
viewsMove div while hovering
How I create the effect similar to this site: http://www.amgrconstrucoes.com.br/lancamento When passing the mouse over the div that contains the image of the enterprise appears another div on it by…
-
7
votes1
answer177
viewsGuid.Parse() or new Guid()?
What’s the main difference between using the options Guid.Parse() or new Guid() to convert a string in a Guid? And which of the two approaches would be best used? var usuarioId = new…
-
7
votes5
answers6090
viewsAutofocus: position the cursor at the end of the value
When I Gero a input having set value (value="teste") and define the autofocus="true", the autofocus back the cursor at the beginning of the content: <form> <div> <input type="text"…
-
7
votes2
answers1093
viewsReplace empty or blank letter, something like Replace("letters","")
There is a field in the database A1_ZTEL he is varchar(15). This way each user entered record of all forms, with bar, point, comma and letter. Now I need to ride a form and read this field from…
-
7
votes3
answers331
viewsHow to make this regex?
I have some difficulties using REGEX, so I would like help to separate the following text, example: 1ª Temporada - Nome da temporada 01 - Nome do ep um 02 - Nome do ep dois 03 - Nome do ep três ...…
-
7
votes2
answers11799
viewsWhat does float("Nan") and float("inf") mean in Python?
I’ve seen a code like this: def _min(*args): res = float('inf') for value in args: if value < res: res = value return res I would like to know what is a float("inf") and a float("Nan").…
-
7
votes1
answer121
viewsWhat is the "slicing phenomenon" when trying to read data from a heterogeneous array?
I was curiously reading a reply on how to store heterogeneous types in an array when I come across the following response snippet: You will have to store in each element of the vector the object and…
-
7
votes1
answer250
viewsWhat is the applicability of the eight queens problem?
In college the professor of linear programming presented the Problem of the 8 Queens. Basically, from what I understand, this problem consists of filling the board (could be simulated with a matrix)…
computer-scienceasked 6 years, 7 months ago gato 22,329 -
7
votes1
answer94
viewsSQL Server JOINS vs Subquerys
I was making some queries, and came the need to carry out the grouping of a table that was in a JOIN within the query. To illustrate. Sales chart. +----+---------+------------+----------+ | Id |…
-
7
votes1
answer148
viewsAm I using the Pattern bridge design correctly?
I am studying design standards and would like to know if the following approach is correct for the bridge pattern and if it has how to improve:…
-
7
votes1
answer213
views -
7
votes1
answer3418
viewsphoto album with HTML and CSS
I have a folder on the site called PHOTOS , by clicking on the folder PHOTOS I thought I’d put several < article > splitting each photo album type: < article > album de fotos 01 <…
-
7
votes1
answer1340
viewsCalculate Time Difference in R
I have two dates in date and time format. Data1 <- 20/01/2018 20:33:58 Data2 <- 21/01/2018 20:23:48 The difference in hours is 23:49:50. How is the calculation of this difference in R? Also, I…
rasked 6 years, 7 months ago Bruno Avila 867 -
7
votes4
answers1780
viewsAfter all, why does the PHP source code not appear in the browser?
Well, I know that PHP is an HTML pre-processor, I know that it is interpreted by PHP and is rendered on the page but the source code does not appear. But is it really safe? I know it’s possible to…
phpasked 6 years, 7 months ago Samuel Ives 1,676 -
7
votes1
answer171
viewsAndroid - What is the difference between String and Editable?
When using the Edittext view, I saw that it returns an Editable data type and not a String. And it has different methods like getEditableText(). What is the main difference between String and this…
-
7
votes6
answers1028
viewsHow to subtract an array
Assuming I have an array let arr1 = [ {nome: 'Fulano', idade: 19}, {nome: 'Ciclano',idade: 20}, {nome: 'João', idade: 20}, {nome: 'Maria', idade: 30}, {nome: 'Teste', idade: 52} ] and I have another…
-
7
votes2
answers2973
viewsWhat’s the difference between socket and port?
Developing a app service-oriented, I came across the following question: What is the difference between door and socket within the computational framework?
terminology socket connection networks architecture-computersasked 6 years, 8 months ago Alexandro Campos 81 -
7
votes2
answers99
viewsWhy split this operation into two cause result changes?
I made a simple algorithm that solved Fibonacci in 2 logical operations within the loop. I decided to look for a better way and found a version that makes in only 1 calculation inside the loop. It…
-
7
votes1
answer5110
viewsWhat is Flyway and when to use it?
The system recently drew attention to this issue, and it talks about Flyway. So I’d like to know: what is Flyway? what problems he proposes to remedy? when to use it? what are the competing…