Most voted questions
150,413 questions
Sort by count of
-
14
votes6
answers1877
viewsCode refactoring to convert GPS coordinates into DMS format into an array
The user can enter GPS coordinates in two ways, Decimal Degrees or Degrees, Minutes, Seconds: ┌─────────────────────────────────┬─────────────────────┐ │ DMS (Degrees, Minutes, Seconds) │ DD…
-
14
votes2
answers1611
viewsHow to obtain form data via "POST"?
Is there any way to receive data from an external form using the method="post" on my jsf page? I can already do that when the data traffic via GET. <f:metadata> <f:viewParam name="dados"…
-
14
votes3
answers30199
viewsHow do I round numbers to the nearest integer?
I have numbers double as double a = 0.4, b = 0.5; How do I round it up?
-
14
votes1
answer489
viewsHow to link models (with Association), Forms, and grids in Extjs 4?
I’m using Extjs 4.2 in a project and I’m having problems involving model Associations and how to link them to Forms and grids. Let me illustrate with an example. I have 3 classes and 1 json, as…
-
14
votes2
answers2852
viewsPlot differences in matplotlib for different parameter accuracies
For a course work, I built the following code in Python using the Matplotlib and scikit-image packages: #!/usr/bin/env python # -*- coding: utf-8 -*- import numpy as np from scipy import interpolate…
-
14
votes1
answer485
viewsHow to do Signalr load test?
When testing with the library SignalR to create applications in real time in . NET, generated some doubts about scalability which could not be found on the internet. After a few tests using the…
-
14
votes3
answers2493
viewsHow to check if a string has only uppercase letters?
How can I check whether all the characters in a string are capital letters? Preferably without the use of regular expressions.
-
13
votes2
answers455
viewsWhat is the new Javascript Temporal object?
I recently discovered that you have a proposal on stage 3 a new object to work with dates. This is called Temporal. I analyzed an example code in a post from Linkedin that uses this new API:…
-
13
votes2
answers246
viewsWhat does "!!~" mean in Javascript?
I am studying Javascript and came across the following code: manageLag(selected) { if(!!~this.selections.indexOf(selected.url)) { selected.at += 5 return; } this.selections.push(selected.url) } I…
-
13
votes1
answer300
viewsWhat is an asynchronous iterator in Javascript? What is its relation to "for await" loops?
What are asynchronous Javascript iterators? What is their function and what are the differences between the "conventional" iteration protocol? What is your relationship with for await .. of? It is…
-
13
votes2
answers1239
viewsHow does the localCompare() method work?
The only thing I know about this method is that it compares the strings to see who comes first, after or if they are equal and subsequent has a representative numerical value returned as -1, 1, 0…
javascriptasked 4 years, 9 months ago felipe cardozo 275 -
13
votes1
answer286
viewsWhat are Zero Cost Abstractions?
I was reading about Rust and I saw that one of its advantages is to own Zero Cost Abstractions, I would like to know: What are Zero Cost Abstractions? It is something that the programmer needs to…
-
13
votes1
answer967
viewsHow to adjust the top margin of PDF for the following problem in html2pdf.js?
This is the main reference The idea was that the image was behind, but the lib is a limited way to do it, and the text ended up being on top: Here is an example, see that although the image is…
-
13
votes1
answer87
viewsHow does the compiler know the difference between the type I’m using in downcasting?
The classes Felino and Ave inherit from Criatura, the values are hypothetical only to inform the difference between specialized attributes. Criatura c1 = new Felino("Preto", true); Criatura c2 = new…
-
13
votes2
answers587
viewsWhat’s the difference between command, instruction and code?
What is the difference between them in the context of programming? I can use these terms interchangeably? If they are different, what is the correct term to define what we write?…
terminologyasked 5 years, 2 months ago NinjaTroll 1,752 -
13
votes3
answers690
viewsWhat is a mainframe?
I was reading some old questions, and I came across a topic on COBOL where he talked about mainframes. What is a mainframe, and what is the difference between a mainframe and a server as we know it…
-
13
votes2
answers338
viewsHow to pass the value of a variable to uppercase or minuscule?
I have a script that gets a variable when running, for example: ./myscript OLA the content of myscript: #!/bin/bash if [ -z $1 ] then echo "Por favor escolha uma opção:" echo "OLA - Faz qualquer…
-
13
votes1
answer996
viewsWhat is the allow attribute in iframes and how to use it?
According to the website of MDN Web Docs the attribute allow serves to Specifies a Feature policy for the <iframe>. Translated Specifies a resource policy for <iframe>. Source This…
htmlasked 5 years, 2 months ago user168020 -
13
votes1
answer816
viewsHow to make an excellent C++ program without C traces?
As a beginner in C++ I asked some questions here and was warned a few times by @Maniero that what I was doing was C and not C++. The problem is that C++ allows us to use many things similar to C. So…
-
13
votes2
answers1560
viewsWhat is the difference between window.Location and window.location.href?
I’ve always used window.location.href to redirect to another internal page or external URL, but when using only window.location (without the .href) produces the same result, i.e., makes the same…
-
13
votes4
answers3721
viewsList files by name (containing date), but filter the 5 days prior to the current date with . bat?
I’m trying to do something that maybe it’s not even possible to do in bat but specific using findstr? I have a dozen files in that layout: filename So, date as day and month content two digits and…
-
13
votes3
answers689
viewsConvert nested loops to recursive function to compute combinations
I did a job for compute all combinations of an array. The problem with my approach is that it only "generates" three-digit combinations (array length past 3), since I have 3 nested loops. If I…
-
13
votes0
answers693
viewsView regions with Google Geochart
Is it possible to display the states grouped according to their regions and a tooltip according to the region rather than the state? For example: Northern Region -> Acre, Amapá, Amazonas, Pará,…
-
13
votes2
answers431
viewsWhat is the difference between "Css Resolution" and "Pixel Resolution"
I wonder why a @media(max-width: 400px) is applied on a cell phone that has 1440px/2960px? How it really works ? I found a website with this information, that the mobile has 1440x2960 but the…
-
13
votes1
answer153
viewsWill HTTP/2 still need a security certificate or is it already encrypted by default?
It’s a layman’s question, but I’d like some information on the subject... At HTTP we have the possibility to use a security certificate type SSL to ensure the encryption of the data that circulates…
-
13
votes2
answers244
viewsWhat is a heuristic?
Is it the same as artificial intelligence? What is the relationship between these things? Why does it matter to us programmers? Can you give an example to illustrate?
-
13
votes1
answer338
viewsWhat is Leaky abstraction (abstraction leak)?
I was listening to a podcast and the term arose Leaky abstraction. The example given is something like this: A system uses a relational database and has a generic class for data access, at a given…
-
13
votes3
answers512
viewsWhat is the difference between the <del> and <s> tag?
I saw about the tags <del> and <s>, say that one is to be used in texts/phrases not relevant and another to "delete" part of the text, but when using both tags the effect is the same (a…
-
13
votes2
answers215
viewsWhat is the Javascript Cache class for?
I saw that Javascript has a class called Cache. From what little I could understand, it seems to have something to do with requisitions. I wanted to know a little more about this class: Does it…
javascriptasked 6 years, 3 months ago Wallace Maxters 102,340 -
13
votes3
answers680
viewsHow do I read the output of a loop-based process? [C#]
Everything happens correctly to start the process, but when trying to get some kind of return of its execution through any of the available redirectors, be it input, output or error, the application…
-
13
votes3
answers818
viewsSOLID is all that they say?
Related: What are the SOLID principles? I ordered my "Agile Principles, Standards and Practices in C#" by Robert C. Martin and one of the reasons is SOLID. But I’m reluctant about SOLID. I don’t…
-
13
votes2
answers298
viewsDoes the IP influence the ranking of the site?
I wonder if IP influences ranking in Google. I recently migrated an Azure website (exclusive IP) to a shared hosting (shared IP) and the site fell from position (page 1.2 and sometimes 3 to page…
seoasked 6 years, 5 months ago Leonardo Bonetti 5,313 -
13
votes1
answer363
viewsAre there differences between /, /* */ and #?
Considering how important it is to comment on a code, I came up with this question. I realized there are several ways to comment lines/parts of code: // /* */ # Example: // comentando uma linha /*…
-
13
votes4
answers542
viewsIs there a design standard or recommendation that defines the optimal amount of parameters a function should have?
I always value writing my codes in a short and readable way. My motto is always to think that "someday someone will mess with my code and I want the person who does it to understand it easily".…
function encoding-style parameters language-independent argumentasked 6 years, 6 months ago Wallace Maxters 102,340 -
13
votes3
answers343
viewsRegular Expressions: Lazy quantifier function "?"
I have learned about the use of Regular Expressions and read some explanations about the use of the sign ? (called Lazy quantifier), as in this Microsoft documentation: *? : Corresponds to the…
-
13
votes1
answer1046
viewsWhat are the differences between Treeset, Hashset and Linkedhashset?
The idea of Set is to not allow repeated elements, in java there are three implementations TreeSet, HashSet and LinkedHashSet found some differences in that reply, would like to know in detail if…
-
13
votes2
answers1340
viewsWhat good is a Viewmodel in ASP.NET MVC?
I’m used to the MVC approach of frameworks as Cakephp and Laravel. Now that I’m getting deeper into ASP.NET MVC, I’d like to understand what this Viewmodel is for. What is the purpose of the…
-
13
votes1
answer323
viewsHow to convert a Shiny app, consisting of multiple files, into a playable example that can be shared in a question?
Problem Here at Stackoverflow in English there is guides and also questions whose theme are the reproducible examples. However there is nothing equivalent to the Shiny what can make life difficult…
-
13
votes3
answers10018
viewsSASS and SCSS: Why use them instead of conventional CSS?
I hear a lot about SASS and SCSS, but I don’t know exactly how these tools work. I just know they are CSS generators(?). I found a related question here but it doesn’t address the question of why…
-
13
votes1
answer1056
viewsWhat are layout managers and why should they be used?
When a graphical interface with the API is being developed swing of java, end up having to mess with the positioning of components on the screen, which induces us to learn about layout managers so…
-
13
votes1
answer1859
viewsReasons to use private class
When I started in the area, in a course of POO (Object Oriented Programming) the teacher explained about access modifiers... I remember that on this very day he said that it would be possible to…
-
13
votes3
answers971
viewsHow to find "Happy Numbers" within an interval?
I’m making an application where I need to find Happy Numbers within a certain range, in the case of 0 to 50, and I found this in Wikipedia: The happy numbers are defined by the following procedure.…
-
13
votes2
answers12902
viewsWhat’s the difference between git pull and git pull --rebase
In git I have the possibility to make a git pull origin master and a git pull --rebase origin master. I’d like to know the difference between the two.
gitasked 6 years, 11 months ago Yago Azedias 1,117 -
13
votes5
answers453
viewsHow to separate "words" in Camelcase in C#?
How can I separate "words" into Camelcase using hyphen for example? String: string example = "CamelCase"; // CamelCase para: // Camel-Case and enumerator: enum Example { CamelCase }…
-
13
votes3
answers1684
viewsWhy Arrays start at 0 and not 1
Why arrays start at 0 and not 1 ? There is no 0 people, 0 animals, 0 nothing...(do not cling to this part) What is the point of doing this? I believe that it should not be just me who does not…
-
13
votes2
answers775
viewsWhat are Truthy and falsy values?
What is the difference of true and false for Truthy and falsy in Javascript? These are just values true and false of "third parties", for example of a variable?…
-
13
votes1
answer1704
viewsWhat are the terms "Cascade" and "Classifier" in relation to computer vision?
Always when I read something about Opencv and computer vision I come up with two terms that are Cascade and Classifier, these terms leave me very confused as to what they may be or mean. Therefore,…
-
13
votes4
answers4494
views -
13
votes2
answers457
viewsUse "left: -9999px" instead of "display: None"? But why?
I started to wonder about that a little while ago. I read in some article, which I don’t remember what it is, that for "visibility" sake instead of using display: none or visibility: hidden should…
-
13
votes1
answer1552
viewsHow do the Angularjs Watchers work?
In Angularjs, there is the two-way data Binding, which causes the values to be displayed immediately on views even when this value is updated in controller. In addition there is also the function…