Most voted questions
150,413 questions
Sort by count of
-
27
votes4
answers15751
viewsHow to check if an image exists in a remote URL?
In order to have the administration of a website to be performed from a server other than the one where the website is hosted, the problem of dealing with remote images has arisen. Common problems:…
-
26
votes3
answers1419
viewsComparison of integers in Java
Integer valor = 127; Integer valor2 = 127; System.out.printIn(valor == valor2); Output: true Integer valor = 128; Integer valor2 = 128; System.out.printIn(valor == valor2); Output: false Why does…
-
26
votes1
answer242
viewsWrite software in 1st or 3rd person?
I am creating a software in C# and I would like to know if I should write it in 1st or 3rd person. I remember that once my teacher of logic programming came to comment on this (which software should…
uxasked 6 years, 10 months ago user107458 -
26
votes2
answers2114
viewsWhat is an asymptote?
In a reply came the term asymptotic. In comment came a definition. I think it would be to have a more complete definition here. But the focus of the question is even simpler: In Portuguese clear,…
-
26
votes1
answer2059
viewsWhat are the coroutines?
What I’ve been given to understand is that it’s a new way of writing asynchronous code, allowing you to avoid blocking the thread. This leads me to assume that they are an alternative to class…
-
26
votes6
answers751
viewsNumbers and your friends
The sum of all natural numbers (positive integer) of divisors 220 except 220 is equal to: 1 + 2 + 4 + 5 + 10 + 11 + 20 + 22 + 44 + 55 + 110 = 284 And the sum of all natural numbers of divisors 284…
-
26
votes3
answers3586
viewsIn programming, what is an object?
In programming, it is common to hear the term objeto, often defined in multiple vague definitions, if defined. What is, in fact, an object in programming (not limited to object-oriented…
-
26
votes5
answers1461
viewsIs it possible to code the size of the object in memory?
If I need to calculate the occupied space to make any decision has how to figure out the size that each type takes to check how much memory will be occupied if I allocate multiple instances of it?…
-
26
votes3
answers640
viewsHow should an error page (404) behave?
Should it redirect to another page? After how long? Should there be an index? A box and search free? Or already do the search suggesting pages based on what was typed? Should it demonstrate that it…
-
26
votes4
answers1508
viewsWhat is the difference between continuous integration and continuous delivery?
They are two widely used terms, and often even as synonyms. But what is the difference between them (if any)? What are the most common tools used in both scenarios?
terminology software-engineering continuous-integrationasked 7 years, 11 months ago ldeoliveira 2,015 -
26
votes2
answers19823
viewsWhat is the difference between htm, html, dhtml and ghtml?
Sailing in our "deepweb", I noticed some variations of the URL extension in the browser on some simple pages. For example on the globe with., which for some cases is .ghtml. For some time I imagined…
-
26
votes3
answers10445
viewsReact Native or Ionic?
I need to create an App and would like to know which of your technologies is the most suitable for mobile development today. What is the main difference between Reactnative and Ionic? Which of the…
-
26
votes5
answers1574
viewsWhy do "Alert", "confirm" and "prompt" lock the loading independent of the definition order?
I’d like to understand why, when we use the functions alert, confirm or prompt, they always cause a kind of "freeze" on the screen. For example, I have a alertand then I have a div with a defined…
-
26
votes2
answers1892
viewsWhat is the difference, in practice, between "" and String.Empty?
No. NET is noticeable in multiple ways to initialize a string with an empty value, called "quotation marks". Is there a right way to do this? And what would be the practical difference between…
-
26
votes1
answer10816
viewsWhat is the difference between Mysql and phpMyAdmin?
What’s the difference between Mysql and phpMyAdmin?
-
26
votes4
answers6194
viewsBest practices for naming functions
I would like to know which tenses are most used to name the functions. For example, there is a more suitable in this hypothetical case? Calculadora calculadora; calculadora.soma(3, 4);…
-
26
votes2
answers5051
viewsWhat is a deterministic, nondeterministic algorithm?
What is a deterministic and nondeterministic algorithm? What are the characteristics of both? It is possible to implement both in any language? NOTE: if possible exemplify with some implementation…
-
26
votes5
answers7637
viewsIs Excel a programming language?
No, I’m not asking for an opinion. I’m asking this question here because today I found this unlikely question: HTML is a programming language? And, I confess, I voted in favour of the second comment…
-
26
votes2
answers534
viewsWhat can make a regular expression slow?
It’s happened here in the Stackoverlow I am recommended by some users to avoid the use of regex, in some cases as it may have undesirable performance. I have also heard that, depeded in the way that…
regexasked 9 years, 3 months ago Wallace Maxters 102,340 -
26
votes6
answers10518
viewsDifference between php <?php tags and <?=
Well I’m learning Laravel and I was left with a doubt following some tutorials. At certain moments within the view the tag is used : <?php foreach($produtos as $p): ?> and when will I get the…
-
26
votes1
answer6947
viewsWhen to use Cordova or Xamarin?
When researching a bit about platforms for application development mobile I came across Xamarin and Cordova. Both proposed to develop a single code base for apps running on Android, iOS and Windows…
-
26
votes4
answers8564
viewsWhat good is a gists on the github?
What is the purpose of a gists in the github? Where it differentiates into a repository?
githubasked 9 years, 6 months ago Wallace Maxters 102,340 -
26
votes2
answers5412
viewsWhat is Lazy Loading and Eager Loading?
What is Lazy Loading and Eager Loading? I saw these terms in a documentation, but I did not understand it very well, so my doubt is what these terms mean and I would like, if possible, to restrict…
php cakephp language-independent advance-charge lazy-loadasked 9 years, 6 months ago Ricardo 14,521 -
26
votes1
answer48265
viewsWhat character encoding (Collation) should I use in Mysql?
What is the most appropriate character encoding (Collation) for a Mysql database that will store Portuguese language data?
-
26
votes3
answers31330
viewsHow to edit an incorrect commit message in Git?
How to edit an incorrect commit message in Git? Examples can be cited?
gitasked 9 years, 9 months ago Paulo Costa 3,976 -
26
votes6
answers12868
viewsWhat’s the difference between Isis and elseif?
I wanted to know the difference between else and elseif in PHP, and when should I use one or the other.
-
26
votes2
answers1684
viewsWhat are Unit Tests for and what are the advantages?
I saw some videos and articles on unit testing, learned the Qunit framework and some test situations. Still I could not think of a practical use that is worth more than a common browser debugging or…
-
26
votes2
answers28661
viewsIs there an API to send a message via Whatsapp using PHP?
Is there an API to send a message to Whatsapp from a person using PHP?
-
26
votes4
answers5242
viewsWhat is the priority of HTML? "id" or "class"?
I would like to know if HTML is a priority id or class. For example, if I’m assembling my structure and do the following: <div class="teste1" id="teste2">TESTE</div> What will he do?…
-
26
votes3
answers8812
viewsHow to determine the user’s approximate location by IP?
When I use search engines for certain searches, mainly related to maps or commercial establishments, these systems usually serve me results relevant to my geographical location. When I’m on the PC,…
ipasked 10 years, 3 months ago Oralista de Sistemas 23,115 -
26
votes2
answers3291
viewsCrop image with Javascript
I need to upload a photo and then put it in a modal for the user to make a proportional cutout 4/3 a short web search found this jQuery plugin jCrop. He seems to provide me with the coordinates to…
-
26
votes1
answer4728
viewsWhat is technical debt?
Technical debt is the sum of some types of backlog in your project that can prevent the evolution of your project. However, this concept is much more comprehensive than that, and I would like to…
-
26
votes2
answers2693
viewsWhat is the difference between charset and collation in a database?
Every time I create a database, I always come across these definitions and I don’t really know the difference. I understand what it is charset, but not collation.
-
26
votes3
answers8116
viewsHow does the session work in web browsers?
A session allows, for example, that I allow the user to remain logged in, saving the information of who is logged in (username, for example). I believe it’s something more elaborate than cookies,…
-
26
votes3
answers568
viewsCompute secure data randomly
Random functions are not entirely random in computation. I wonder if there is a safe way to generate a salt, or any other random string safely, without using external hardware. Can randomization be…
-
26
votes2
answers119390
viewsHow to insert date and datetime into a table in Mysql?
The big problem is that after the insert, all values that have date, are as zeroes and in the format yyyy-dd-mm and not dd/mm/yyyy, as it was inserted initially. How can I insert these values into…
-
26
votes1
answer1329
viewsIs it good practice to make an exception in these cases?
I’m solving some object orientation exercises. One of the exercises asks to write a class that represents an airplane flight, containing the date, number and methods to check the status of seats.…
-
26
votes2
answers14336
viewsSome way to style "parent" element with CSS
Hello, is there any way to select the parent element of another element with CSS? To be more specific, I’m studying on localhost using the phpBB3 forum platform, when a message is thankful it wins…
-
26
votes2
answers9155
viewsWhat is serialization? When to use? How to implement in C#?
[Serializable] public class Pessoa { public string Nome { get; set; } public string Cpf { get; set; } } There’s only one kind of serialization? What alternatives not to need serialize an object?…
-
26
votes2
answers5355
viewsGet colors from the image
There is a possibility (with plugins or not) to catch the [main] colors or the predominant colors, similar to Adobe Kuler, image? Example I have this image: And I wanted to take her main colors,…
-
26
votes3
answers2363
viewsWhat does it mean: "functions are first class objects in Javascript"?
Several times I have heard this: "functions are first class objects in Javascript". Functions being stored in variables and passed in methods and so on was not something that surprised me so much in…
-
26
votes4
answers2688
viewsHow to package and distribute a web system?
I need a certain Web system - including the PHP server itself, as well as Mysql - to be "packaged" in an executable file, thus allowing the layman to use it in a kind of browser of his own. What…
-
25
votes5
answers527
viewsWhat is programming logic and computational thinking?
Lately I’ve been looking at some programming courses and I’ve noticed that they talk about a lot of things like frameworks and tools and focus little on the language itself, and that’s led me to…
computer-scienceasked 4 years, 11 months ago gato 22,329 -
25
votes3
answers681
viewsWhat makes cache invalidation a difficult solution?
There’s a famous phrase: There are only two hard problems in Computer Science: cache invalidation and naming Things -- Phil Karlton So she says it’s hard to name things, which has a funny tone since…
-
25
votes4
answers2054
viewsWhat can be considered a character?
In another question, Is it bad practice to put numbers as id in HTML elements? If yes why? is asked about placing numbers as id in HTML elements. I saw that after a few minutes a great confusion…
language-independentasked 7 years, 2 months ago UzumakiArtanis 9,534 -
25
votes1
answer19287
viewsHow does PHP-FPM work?
Guys, I have a question related to the concept of PHP-FPM. From what I understand from the documentation, it is a module of PHP that manages requests to the server to avoid high loads, or am I…
-
25
votes4
answers4422
viewsWhat is the difference between & and &&operators?
I was making a simple code with a if two conditions. Everything worked normal and after I went to read, I realized I had written condicao & condicao2 instead of using &&. Even with this…
-
25
votes6
answers17379
viewsHow to improve reading performance of a SQL Server database?
I have a database with more than 250 tables, there are tables with more than millions of records and when I need to search or change some of these records, it takes a lot of time, which ends up…
-
25
votes4
answers4174
viewsWhat is the meaning of the operator ( * ) asterisk?
In C this operator is used in pointer type variables. However, in Python I don’t know which way, and why to use it. Therefore, what is the meaning of the operator (*) in the Python language?
-
25
votes1
answer2636
viewsWhat is the difference between const and readonly?
Read-only constants and fields cannot be modified, as can be seen in the documentation: const Constant fields and locations are not variable and cannot be modified. readonly When a field declaration…