Most voted questions
150,413 questions
Sort by count of
-
19
votes6
answers50339
viewsIndent code in Visual Studio Code
How to create a shortcut to make spaces equal between assignments? Ex: $nome = "Maria Ferreira"; $telefone = "99645876"; To $nome = "Maria Ferreira"; $telefone = "99645876";…
visual-studio-codeasked 6 years, 6 months ago Herick 591 -
19
votes4
answers1629
viewsUse color, RGB or hexa names?
In this MDN documentation I find a huge list of color names which can be used in the CSS with their respective hexadecimal values. For example: -------------------------------------- | nome em En |…
-
19
votes2
answers288
viewsWhat is a "dangling Object/commit" in git?
My repository has momentarily corrupted after the yesterday’s blackout in Brazil. I managed to heal the corruption (thus) and decided to run a git fsck to check the status of my local repository.…
-
19
votes2
answers1855
viewsWhat is Monkey patch?
What is Monkey patch in programming and what is the usefulness and risk of using such a technique? This concept varies from technology to technology, from language to language or what? And another…
terminologyasked 6 years, 10 months ago vinibrsl 19,711 -
19
votes2
answers1128
viewsWhat is the difference of use between Keypressed and Actionperformed?
I ran some tests to see the difference in use, and apparently they both go off under pressure ENTER on the keyboard, as can be seen in the example below: import java.awt.*; import java.awt.event.*;…
-
19
votes1
answer13251
viewsWhat is it and what is Karnaugh’s map for?
The question is just this: What is and what is this map of Karnaugh? I do not want to know everything about it, a short definition and a small example is enough.
-
19
votes2
answers1336
viewsWhat’s the difference between "Compile time" and "run time"?
Compile time and run time are common terms that we often hear in the programming area, what are the main differences or characteristics of these two terms?
runtimeasked 7 years, 7 months ago rubStackOverflow 7,372 -
19
votes1
answer11672
viewsWhat is a stress test?
I see some questions here in the OS, old and new, in various languages, asking how to do a stress test. What would be a stress test? What this test measures? This test is a reliable way to measure,…
-
19
votes4
answers6112
viewsVHDL is a programming language?
VHDL is a language very present in books dealing with logic circuits, but little is spoken of it in other contexts. There is not even a tag vhdl no Stack Overflow em Português. Então: VHDL is a…
-
19
votes3
answers9682
viewsWhat’s the difference between Where and having?
Doing some tests on a database that in Mysql, I realized that: SELECT * From client WHERE uuid = '1kvsg4oracxq' returns the same result as: SELECT * From client HAVING uuid = '1kvsg4oracxq' What…
-
19
votes3
answers910
viewsHow to use $.on in pure Javascript: "$(...). on(event, selector, function)"?
It is as follows, in jQuery we have the on, any element <a> with class test and without the class foo will trigger the function when clicked, even if you create the element later the event is…
-
19
votes2
answers4241
viewsWhat is a rubber duck and what is it for?
There is an expression used from time to time in the middle of programming that concerns working on code with a rubber duckling. How the duck helps develop software in a better way?
terminologyasked 7 years, 8 months ago Oralista de Sistemas 23,115 -
19
votes2
answers18808
viewsWhat’s a pull request for?
I am working as a team in bitbucket and I would like to know what a pull request is for. On what occasions we should use this feature.
-
19
votes1
answer361
viewsCheck if a screen screenshot has been taken
The Snapchat has a feature that is to notify the user every time someone, any other user, takes a screenshot of their stories. At first I thought about the hypothesis of checking if the user pressed…
-
19
votes4
answers1350
viewsHow to pass string by reference?
I passed a string as a parameter. As far as I know it is passed by reference, so if I change anything in it within the method, when it leaves it the value will continue to change. I took the test…
-
19
votes1
answer750
viewsWhat is "idiomatic expression" in programming?
I have come across the term "idiomatic expression" or "more idiomatic form". Just search the site you will find several references: /search?q=idiomatica After all, what is "idiomatic expression"? It…
-
19
votes4
answers1173
viewsWhat does the regular expression "/(?=(?:...)*$)/" do in detail?
I just needed a solution to put points to separate numbers from three to three, backwards. For example: 1000 => 1.000 100000 => 100.000 10000000 => 1.000.000 In a reply I found in English…
-
19
votes2
answers787
viewsWhat is elegant coding?
I always see some answers to questions suggesting that if you do something x is more elegant than the y form. I started thinking what would be elegant in our context. 9 pages of 50 records with the…
-
19
votes2
answers5046
viewsWhat is the difference between Isnullorempty and Isnullorwhitespace?
Li here that there is no practical difference between String.Empty and "", and then the doubt came to me. What’s the difference between using String.IsNullOrEmpty(String) and…
-
19
votes5
answers5742
viewsIs it possible to develop websites with C/C++?
I know a little bit of PHP, but I see that on content sites, sometimes it gives a crashes and etc. Researching, I saw reports (very superficial) that it is possible to develop web applications with…
-
19
votes1
answer639
viewsWhat happens when we call a function?
At the machine instruction level, what will happen on the call?
-
19
votes1
answer294
viewsError running container (Docker) with browser-Sync
I get this warning when I give start in my container with browser-Sync: [BS] Watching files... (node:1) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Exited…
-
19
votes2
answers21759
viewsWhat are the main differences between Unicode, UTF, ASCII, ANSI?
What are the main differences between "encodings" Unicode, UTF, ASCII, ANSI? They are all really encodings or some are just "sub-categories" of others? I don’t want to know all the details of each,…
-
19
votes2
answers468
viewsMeaning of "__"
In the implementation of the Linux kernel, I came across this statement on line 89: #define _THIS_IP_ ({ __label__ __here; __here: (unsigned long)&&__here; }) I know that in C, symbols…
-
19
votes1
answer739
viewsWhat is the difference between "Generics" (Java/C#) and "template" (C++)
In the question What are the differences between Generic Types in C# and Java? the difference between the Generics between Java and C#. We know that C++ does not have Generics, but uses templates…
-
19
votes2
answers8059
viewsWhat is upcasting and downcasting in the Java language?
What would be downcasting and upcasting in Java? Examples please.
-
19
votes3
answers1592
viewsWhat is System.Linq for?
I asked that question here at SOPT What is the equivalent of PHP’s C array_map#? And I was curious to know what this is about System.Linq. Because when I tried to use the answer code above without…
-
19
votes7
answers22208
viewsIs using MD5 the safest way to encrypt passwords in PHP?
I know there are several methods of encrypting passwords in PHP (md5, sha1, Base64...) although I don’t know much about, what I see most is the use of MD5. Using MD5 to encrypt passwords is the…
-
19
votes1
answer782
viewsCreate classes taking advantage of lambda
After reading this question made by utluiz, I could understand, even if in a more superficial way, a little of the usefulness of the expressions lambda added to JDK 8. However, in addition to the…
-
19
votes1
answer10250
viewsWhat is REPLACE INTO for in MYSQL?
What is the purpose of the command REPLACE INTO in MYSQL? Example: REPLACE INTO tabela(col1, col2) values(value1, value2) WHERE id = 1
mysqlasked 8 years, 12 months ago Wallace Maxters 102,340 -
19
votes1
answer25589
viewsWhen should I use __init__ in functions within classes?
For the book I am studying, in some moments the author uses __init__ as a first function of a class. This function (and others) always has self as one of the variables (something I haven’t yet…
-
19
votes4
answers10808
viewsIs it possible to create a desktop application using only PHP, HTML, CSS and jQuery?
Although I know that PHP is a language for the web, I would like to know one thing. It is possible in any situation to create an application, system or application with only PHP+HTML+CSS+jQuery that…
-
19
votes1
answer1697
viewsWhat is Fluent Interface?
I quickly read some articles about Fluent Interface but I could not clearly understand this pattern. Definition Wikipedia: It is an implementation of an API oriented to object that aims to provide…
-
19
votes1
answer7366
viewsWhat is a backtracking algorithm?
What is an algorithm Backtracking ? What are its characteristics ? What are its advantages and disadvantages ?
-
19
votes1
answer403
viewsHow does Symbol work on ES6?
In the new Javascript specification Ecmascript (ES6) a new primitive type was created called Symbol() what use it is?…
-
19
votes2
answers9703
viewsIs it possible to program object oriented in C?
There is the possibility to build a C program using POO? I have looked on several websites for examples of this, but I have found nothing concrete, which tells me whether or not it really gives. If…
-
19
votes3
answers4009
viewsWhy is it important to remove X-Powered-by from response headers? How to remove?
Why it is important to remove the X-Powered-By of the response headers? This prevents some kind of attack, or avoids "insider information" to the attacker? Example: X-Powered-By:…
-
19
votes2
answers957
viewsInclude within class and access to $this, self or Static
I found this little code inside the folder Composer/ClassLoader.php, in a project where I use the composer. /** * Scope isolated include. * * Prevents access to $this/self from included files. */…
phpasked 9 years, 6 months ago Wallace Maxters 102,340 -
19
votes2
answers3101
viewsWhat does "region above the fold" mean?
On the page of google developers there are several citations to this term: "Structure your HTML to first load only critical content, from region above the fold" What would this region above the fold…
-
19
votes1
answer2421
viewsHow does this code that generates a maze work?
I don’t know Python very well and I can’t read that code right. Would someone kindly post comments to facilitate reading? Preferably explaining what each line does. from random import shuffle,…
-
19
votes2
answers982
viewsSelectonemenu is not loaded when selecting object for editing
I have a component SelectOneMenu (Primefaces) of cities, which is loaded according to the selected state. My component is with following behavior, right after saving the object and then selecting it…
-
19
votes2
answers594
viewsCollect Google Analytics data for Mysql tables
I have seen many examples of how to export data from Google Analytics to other formats as well as keep the exported data updated, but none so far served to export the data to Mysql given the…
-
19
votes1
answer15921
viewsWhen to use module.Exports or Exports on Node.js?
I am starting my study with Node and I came across the two ways to export something so that it is available with the require, I would like to know what is the best way and why. Thank you…
-
19
votes3
answers1826
viewsHow to calculate PI with "n" decimal places in Javascript?
Using the object Math of Javascript, I can return an PI value with fixed decimal places, example: Math.PI //3.141592653589793 But in case I need (yes, very unusual) calculate the same with more…
-
19
votes1
answer1277
viewsWhat is "Runtime Environment" really?
Studying a little about ASP.NET 5 I came across something I did not understand very well. To use it you need to install KVM (K Version Manager) and KPM (K Package Manager). KVM is responsible for…
-
19
votes1
answer941
viewsHow does C/C++ "padding work?
In several responses here at Stackoverflow I have noticed users commenting on padding in data structures. struct { int a; char b; float d; } What is this one padding (filling) that exists between…
-
19
votes8
answers5853
viewsRecognize word repeats in String
I have a text inside a StringBuffer and I need to check and mark the words that appear more than once. At first I used a circular row of 10 positions, because I am interested only repeated words in…
-
19
votes4
answers551
viewsWhen are branches useful in Git?
I’m studying Git and from what I’ve seen about branches I’ve basically identified two major situations where branches are useful: When we have a stable version of the code in the master branch and…
gitasked 10 years ago SomeDeveloper 18,074 -
19
votes1
answer5560
viewsAbout the boolean attribute Defer and async vs optimization
The use of async and defer for optimization is a good subject to touch when we want pages loaded more quickly and also without blocking problems. Doubts: Using async, if the browser does not…
-
19
votes3
answers736
viewsWhat kind of treatment can be performed in this case?
At the moment I want to learn more about exception treatment, a topic that is very well commented by @Maniero. I read several of his answers about exceptions, but I still had a question. The method…