Most voted questions
150,413 questions
Sort by count of
-
16
votes2
answers2178
viewsConcept of Man-in-the-Middle attack
Conceptually speaking, what is an attack Man in the middle, more commonly known as man-in-the-Middle Attack?
-
16
votes3
answers1952
viewsHow to remove a website from Google?
Had found some instructions on the internet, to remove a google site, referred to an old version of webmasters tools, that there was this feature, but I can not find this option in the current…
googleasked 10 years, 11 months ago Jader Dias 495 -
16
votes3
answers4980
viewsWhat is the usefulness of the til operator in CSS?
When reading some codes I see that it is common to use the tilde (~) in the selector setting. Ex.: .effeckt-show.effeckt-modal-wrap ~ .effeckt-modal-overlay { ... } Code taken from Effeckt.css.…
-
16
votes3
answers4097
viewsHow to randomly color Divs with a Javascript Color Array?
I created a function that changes colors (pulled from one array) on certain page elements (which are also on array), but it was very strange, as it changes the colors of the elements one after the…
-
16
votes5
answers21918
viewsHow to replace the <img src> of a small image with a large image?
Information: I’m trying to make a simple photo gallery. I want to show the large-sized image in the center of the screen. (Clicar em 0.jpg e mostrar em uma outra div 0Large.jpg) Problem: With the…
-
16
votes5
answers14262
viewsHow to sort list with complex object by one of its properties?
I have a list of objects and I want to sort the list by one of the properties (Desc type string), how do I do this? public class Foo { public string Desc { get; set; } // Várias outras propriedades…
-
16
votes3
answers568
viewsIs there an advantage to an explicit "self" instead of the implicit "this"?
Unlike most [most popular] object-oriented languages, which use a keyword to refer to the object that is "target" of a method call (commonly called this), the Python language requires every method…
-
16
votes6
answers14835
viewsAndroid app development: what are the tools and language to start a project?
I would like to venture into creating apps for Android. At first I would make one just for own use. What tools would I need to build my development environment? My application would use database,…
-
16
votes4
answers4778
viewsHow do value types and reference types work in Javascript?
I know that in C# there are value types and reference types and one of the differences between them is in memory management. What decides how the variables will behave is their type, so if it’s a…
-
16
votes3
answers5592
viewsWhere to create a class of its own, and how to instantiate it later?
I have a class of my own (i.e. external to the standard PHP and Laravel libraries) that makes some connections with equipment in my network and also need to create routines for email and SMS…
-
16
votes2
answers2406
views"margin-top" and "margin-bottom" overlapping, why?
I have three elements div: HTML <div class="wrapper"> <div class="box"></div> <div class="box"></div> <div class="box"></div> </div> CSS .box {…
-
16
votes4
answers4212
viewsHow do I start the next ten?
How can I round a number to the nearest ten in Javascript? For example: The user type 11, then round to 20; the user type 11.5, round to 20; and so on.
-
16
votes1
answer776
viewsHTTP cache headers in Servlets
I would like to know if there are libraries or solutions to treat requests containing headers as Last-Modified, If-Modified-Since, If-Range (for download summary), If-None-Match, Cache-Control,…
-
16
votes3
answers1404
viewsHow to compare HTML elements by real z-index?
Given two arbitrary HTML elements A and B on the same page, how can I find out which one is "closest" to the user (i.e. if they overlapped, which one would obscure the other)? To css specification…
-
16
votes2
answers2309
viewsDifference in Indice Unique and Unique Constraint usage in Sql Server?
I would like to know the behavior/differences between a Indice Unique and Unique Constraints to the Sql Server ? Many may think that it makes no difference in the database, but it does! And not only…
-
16
votes4
answers8320
viewsWhat is the difference between client-side and server-side code in web development?
I’m studying ASP.NET through a book called Professional: ASP.NET 4.5 in C# and VB and at various times the author talks about code client-side and server-side, would like to know the difference.…
-
16
votes1
answer1315
viewsHow does Spliterator work in Java 8?
In Java 8 (which was released in March 2014), there is a new interface called Splitter. She has a purpose similar to Iterator, but is designed to perform parallel iterations. However, even after…
-
16
votes9
answers27569
viewsHow do I read Javascript URL values (Querystring)?
When accessing a page, for example /item?tipo=1&nome=po%C3%A7%C3%A3o%20de%20cura How do I get these URL values, decoding appropriately?
-
16
votes2
answers15027
viewsHow can I refer to the heaviest queries in SQL Server?
In the SQL Server database, how is it possible to know which queries have consumed the most resources of the database in its execution?
-
16
votes4
answers1969
viewsHow to save Ctrl+S to Vim?
When I use Vim in the terminal Ctrl+S, or the terminal hangs or something else strange happens. How to squeeze Ctrl+S is already almost an instinct to save, how to map this shortcut to save the…
-
16
votes2
answers1245
viewsWhy is Addrange so much faster than Add?
I’m working on a data integration between two databases, and I’m using Entity Framework for that reason. I then generated the following code, which iterates each record in the Base Situations table…
-
16
votes9
answers17662
viewsError: R cannot be resolved
I am creating an Android project and am facing the following error in my IDE. package br.com.app; import android.R; public class MinhaApp extends Activity { @Override public void onCreate (Bundle…
-
15
votes2
answers399
viewsHow does Python structural matching (match declaration) work?
Recently, the Pattern matching structural version was introduced 3.10 (still in alpha) Python. For this, the keywords match and case. Were, in the notes of release, included several examples, among…
python python-3.x characteristic-language pattern-matchingasked 3 years, 11 months ago Luiz Felipe 32,886 -
15
votes3
answers4946
viewsWhat is a monorepo? What are its advantages and disadvantages?
What is a monorepo (mono repository) and what problems it seeks to solve? What are the advantages? What are the disadvantages?
software-architectureasked 4 years, 8 months ago Luiz Felipe 32,886 -
15
votes1
answer229
viewsIs a finite state machine capable of detecting the primality of a number?
I recently saw a publishing how they taught Perl to recognize a prime number using regular expressions. The regular expression in question is: /^1?$|^(11+?)\1+$/ The only requirement of this regular…
regex mathematics computer-theory automata formal-languagesasked 4 years, 11 months ago Jefferson Quesado 22,370 -
15
votes1
answer433
viewsWhat are logical properties in CSS?
Recently I found the concept of "logical properties in CSS". It seems to me, is a new system to create CSS in a logical way, not physical (direction and fixed positions, let’s say so). However, this…
-
15
votes1
answer127
viewsIs there already a structured language for quantum processors?
Quantum processors have been in a long development process for many years. However, we "mere mortals" still do not have large-scale access to these powerful devices (something similar to what…
-
15
votes3
answers2559
viewsWhat is the difference between software, program, app, and system?
Obvious question that escaped long of being asked here at Sopt. Software Program Application / application App Information system What’s the difference? I believe I know the answer, but let’s see if…
terminology software-engineering software-architecture app softwareasked 5 years, 2 months ago Piovezan 15,850 -
15
votes2
answers189
viewsAre HTTP headers case sensitive or case insensitive?
Two headers with the same name but one in upper case and the other in lower case, by default, are considered the same? What HTTP does, unite them, ignore some or send both? An application that waits…
-
15
votes2
answers1586
viewsIs it good practice to have all sizes of favicons, and include all rel links in HTML?
I’ve always used only the favicon.ico on the pages HTML, with it at the root and with its link rel in the HEAD: <link rel='shortcut icon' href='https://site/favicon.ico'> But recently,…
-
15
votes1
answer704
viewsWhat is and what is an anonymous function in R?
What is an anonymous function? And why can it be called função lambda? What is the usefulness of an anonymous function in language R? Where it can be applied (for example, it can be applied in…
-
15
votes5
answers1048
viewsWhat is the use of knowing how to debug a code in R?
According to the theory, debugging can be defined as the art and science of correcting unexpected problems in your code. What is the usefulness (for a data analyst) of knowing thresh a code? What…
-
15
votes1
answer605
viewsQuestions about analysis and structured and object-oriented design
Software process, involves various activities, among them, analysis and design. Among the options of methods to perform these activities, we have the structured and object-oriented. Regarding both,…
oop modeling software-engineering encoding-style structured-programmingasked 5 years, 10 months ago renanvm 3,797 -
15
votes1
answer314
viewsIs the HTTP protocol in version 2 still stateless (stateless)?
HTTP is a stateless protocol (stateless), i.e., requests and responses are independent, so the server does not need to store any data from any previous action. But with its new version (HTTP 2), a…
-
15
votes2
answers567
viewsWhat would CSS Injection Attacks be? Does CSS have security holes?
I was reading a documentation from Mozilla and came across this term CSS Injection Attacks I tried to do some research, but I couldn’t get any information that would make it clear what this type of…
-
15
votes2
answers2907
viewsWhat is Jakarta EE?
Only Javaee nomenclature changed or other significant changes will occur? Will be compatible with Javaee 8-? Javaee and Jakartaee will be maintained by the same community?
-
15
votes1
answer339
viewsWhat are they and how do signals work?
Do they exist only on Unix or also on Windows? If so, what would be the equivalent on Windows system? What is the relationship with Signal Handling? A practical example of a Signal Handling can be…
-
15
votes2
answers321
viewsHow to emulate the regular expression reset branch in Java
I have this regex: Pattern p = Pattern.compile("(?:([aeiou]+)[0-9]+|([123]+)[a-z]+)\\W+"); Basically, it has the following parts: one or more lower-case vowels ([aeiou]+), followed by one or more…
-
15
votes2
answers243
viewsWhat are Variable Fonts? How do I work with them in CSS?
I’ve heard enough of the term Variable Fonts, and that this would be a new standard that the Web should adopt as a whole soon... I do not know if this really proceeds, but it seems that this new…
-
15
votes3
answers356
viewsWhy is it possible to change an array or object value from within a constant?
const array = ["a", "b", "c", "d"]; array[1] = 2; console.log(array); //- ['a',2,'c','d'] In this example I gave, I changed the value of the constant dynamically, too, it is possible to do the same…
-
15
votes4
answers2051
viewsDropping indexes or Foreign Keys in a table can slow the query?
What I always read some tutorials talking about Mysql and I’ve also heard from some fellow programmers is that the lack of indexes or foreign keys in a table can make a query slow. For example, I…
-
15
votes1
answer222
viewsCan displaying many elements in the DOM impair performance?
I really like using libraries like Vue and AngularJs and my favorite implementation was to Infinite Scroll (or loading on demand). I mean, I initially upload 15 records via ajax. If the user scrolls…
-
15
votes2
answers160
viewsWhat are "weak references"? When to use them?
In managed memory environments like Java, Python and Javascript, I’ve read something about weak references (WeakRef). I read that it had something to do with detecting the objects that can be…
terminology language-independent reference garbage-collectorasked 6 years, 6 months ago Jefferson Quesado 22,370 -
15
votes1
answer137
viewsHow can the search for an element in a set be O(1)?
In accordance with the official Python page as to the complexity of time algorithms, sequences list and set have the following characteristics:: List Set Highlight for the operator in, which…
-
15
votes2
answers4119
viewsDifference between DTO and Viewmodel?
In this question we can see that it is Viewmodel: What good is a Viewmodel in ASP.NET MVC? In this other question we can see what DTO is: What is a DTO? But after all: What is the difference between…
-
15
votes1
answer346
viewsWhat is the alternative of 'And' in Portuguese for variable names and methods?
One question that always bothers me when I’m in a Java project where we use Portuguese terms is dealing with method names or variables that represent, somehow, two things and I need to mention both…
-
15
votes3
answers4552
viewsUse VARCHAR(255) for all fields or choose the best size for each field?
Assuming the following fields (for example): Nome, Rua, Cidade ,UF. The Nome would be the client’s name. There are people with 2 short names or people with 5 or more names, so it is possible to have…
-
15
votes1
answer201
viewsDoes creating many static classes impact system performance?
I’ve been creating many static classes to facilitate and clear code, such as a Google Translate API call. public static class GoogleTranslate { public static string Translate(string word){ //código…
-
15
votes1
answer170
viewsWhat is the use of "= delete" in the declaration of a constructor in C++?
I came across a builder declared as follows: State(const State& em) = delete; Does anyone know what the = delete at the end of the signature of the manufacturer?…
-
15
votes1
answer221
viewsIs there any way to build a useful application based entirely on the functional paradigm?
The functional paradigm, in theory, is beautiful to see. Purism, immutability and determinism. This can facilitate development, decrease the incidence of bugs and help in maintainability. From this,…