Most voted questions
150,413 questions
Sort by count of
-
10
votes4
answers4140
viewsWhat is bias in neural networks?
In my Artificial Intelligence class the teacher addressed the subject of neural networks, which in this case, neural networks have the layers, such as: entree, occult and exit and the neurons that…
artificial-intelligenceasked 6 years, 3 months ago gato 22,329 -
10
votes2
answers913
viewsHow to change the selected text color and background with the mouse?
When we select a text with the mouse on a website the text is white and blue (I think it may vary from browser to browser). But I would like to know if it is possible to change the color and…
cssasked 6 years, 3 months ago João Pedro Schmitz 2,974 -
10
votes3
answers645
viewsWith CSS to cut text? Type a cut text effect or broken font?
I was wanting to create a text to use as a tag <h2> on the site. The idea is that the element continues as a text, I don’t want an image, because I want to keep the text semantic and…
-
10
votes2
answers686
viewsHow are those thumbnail preview videos created in players?
Currently websites like Youtube and some others of adult content, play a preview video when we position the computer mouse on some Thumb from a list of videos that is shown to us users. In order to…
-
10
votes2
answers111
viewsWhat is the name of this structure in Python?
In the following code: first_part = 46 last_part = 57 guess = f'{first_part}{last_part}'.encode() print(guess) print(type(guess)) But I didn’t understand the code: guess =…
-
10
votes2
answers598
viewsCounter properties in CSS. What are they for and how do they work?
I was recently studying CSS and discovered the counter-reset and the counter-increment, I just didn’t really understand the properties and I had some questions. Doubts What good is counter-reset and…
cssasked 6 years, 4 months ago João Pedro Schmitz 2,974 -
10
votes3
answers789
viewsHow is a REGEX Javascript for Mail Tracking Code (AZ123456789AZ)
I need a Regex for the A-Z 1-9 A-Z standard validating AZ123456789AZ I’ve tried to /^[[A-Z]{2}[1-9]{9}[A-Z]{2}]/$
-
10
votes1
answer729
viewsWhen should an ordered list actually be an ordered list in HTML?
In HTML there are two basic elements to define a list: <ol>, representing an ordered list; <ul>, which represents a disorderly list; But when, in fact, it makes sense to represent an…
-
10
votes1
answer217
viewsWhat is the DIANA?
I had a database problem related to the size of an object, which returned the following error: pls-00123 program too big (Dian nodes) The problem I understood and I know what can be done, but I…
-
10
votes3
answers341
viewsWhy am I calling the subclass method?
public class A { public String imprimir() { return "A"; } } public class B extends A { public String imprimir() { return "B"; } } public class C extends B { public String imprimir() { return "C"; }…
-
10
votes2
answers169
viewsWhen should I worry about UX?
I have recently seen some posts about what UX is (User Experience) and this part seems to me to be understandable about "what is?" However, I wanted to know when I should worry about UX. I am a web…
uxasked 6 years, 5 months ago Giovanni Dias 712 -
10
votes2
answers1420
viewsHow to split a String that contains white spaces at the beginning?
For the problem in question, I need to remove all the special characters and spaces and count the new possible outputs. My intention is to separate the string with the method split(). For this,…
-
10
votes2
answers320
viewsWhy can’t f-strings be used as docstring?
In accordance with the PEP 257, one has: A docstring is a literal string that occurs as the first statement in a module, Function, class, or method Definition. Such a docstring Becomes the __doc__…
-
10
votes2
answers930
viewsPrototype functions in C/C++
What kinds of functions are these? What can these prototypes do? /*1*/int func ( int (*x)(int,int) ) /*2*/int func ( int x(int,int) ) /*3*/int func1 ( int(fn)() ) /*4*/int func2 ( int(*fn)() ) Is…
-
10
votes4
answers271
viewsJavascript equivalent of "Date.now()" in C#?
Here speaks how to get milliseconds using Date.now();, that returns something like 1533144170651. Follows his documentation: The method now() returns the milliseconds since January 1 1970 00:00:00…
-
10
votes1
answer151
viewsIs there any technical reason for the Observer pattern or similarities not to be used independently of the observed object?
We often use things we don’t even think about because it’s like this. I don’t like to put mechanism bumpers on object that is of specific domain. If I have a screen control or a client who has some…
-
10
votes2
answers753
viewsWhat does the exclamation mark mean after a guy’s name?
I have seen a lot in Kotlin types marked with an exclamation mark at the end. Especially when I use Java’s API. Something like CharSequence! What does that mean?…
-
10
votes2
answers390
viewsFloat with PHP precision
I am bringing from the database the sum of the values and as a result it returns me as the example below: 6.3285714285714 I wish he’d stay that way: 6.32 I’ve tried the ceil() and the round(), but…
-
10
votes2
answers21590
viewsWhat is the function of "Try" and "except"
Could someone answer me what the parameter means try: and the except? I need to do a show and I have a question about this.
-
10
votes1
answer195
viewsCreate a resizable window
Hello, I was able to create a console window that does not show scrollbars: CONSOLE_SCREEN_BUFFER_INFO csbi; int columns, rows; COORD size; COORD BufSize; while(TRUE) { size =…
-
10
votes2
answers413
viewsUpdate with Case When you need Where?
UPDATE bethadba.FOFILHOS SET CPF = CASE WHEN CODI_EMP = 61 AND I_EMPREGADOS = 156 AND i_filhos = 1 THEN '00551366133' WHEN CODI_EMP = 57 AND I_EMPREGADOS = 290 AND i_filhos = 1 THEN '00636170993'…
-
10
votes1
answer3773
viewsWhat is this Apache Kafka?
I was researching on Microservices integration and I came across this Apache Kafka. I did some research here and I saw him being cited in this Microservices integration response and in that other…
-
10
votes3
answers1210
viewsHow to organize a project in Ode
I would like some idea of how I could organize a project in Node.js, currently the files are this way: - router.js - controller L controllerUser.js L controllerAuth.js L ... - service L…
-
10
votes1
answer471
viewsHow can you check if the number is in between so fast?
It is known that with the module timeit it is possible to measure, in Python, the execution time of code snippets. Curious, I was testing what is the time it takes to verify if a certain number is…
-
10
votes4
answers12404
viewsHow to compare if two javascript objects are equal?
We know that if I have two objects created in different variables, but with the same content, when comparing, javascript will return false. Example var objA = {a:'teste'} var objB = {a:'teste'} if…
javascriptasked 6 years, 9 months ago Rodrigo K.B 637 -
10
votes1
answer798
viewsWhat are the metadata?
I was researching about "sanitize" data and found this answer by @Maniero, who quotes: "Delete text snippets in a data entry that you have characteristics of metadata, which may cause some security…
terminologyasked 6 years, 11 months ago Sam 79,597 -
10
votes2
answers187
viewsIn which scenarios is Elasticsearch worth using?
In which scenarios Elasticsearch is indicated as a replacement for ER or NOSQL database searches. The main doubt is when I should use Elasticsearch, because I realize in my applications that a…
-
10
votes1
answer1927
viewsWhat and what are the types of development environment?
Occasionally I see something like this in several projects: env: 'production' What is this? What are the other conventional options (besides "Production") and what is it for? Why should I use this…
terminology software-engineering language-independentasked 6 years, 11 months ago Luiz Felipe 32,886 -
10
votes2
answers3110
viewsMysql = Mariadb, huh?
It’s been a few days since I’ve been listening to the teacher in my class saying,: Oracle purchased the MySQL and just renamed it to MariaDB. As I am not easy to believe in the things spoken, I went…
-
10
votes4
answers5616
viewsWhat kind of application can I use Mongodb in?
Use Mongodb in every kind of application is bad? There are application types where it is most recommended and types where it is not recommended to use a Nosql?…
-
10
votes2
answers565
viewsWhy doesn’t Firefox display WEBP images?
I made a slide on a site where I use images that were passed to me in WEBP format. I thought it was all right because in Chrome everything was working. However I noticed that in Firefox (version…
-
10
votes1
answer896
viewsWhat is MUSL? What are the pros of someone carrying it on my laptop?
I’m interested in the pros that this can bring to my laptop.
-
10
votes4
answers9952
viewsError: Another git process seems to be running in this Repository
I have a repository with several files, including html, javascript, css among others, and today I had this error, I’ve researched quite a lot more no solutions so far surtiu effect. Another git…
-
10
votes1
answer318
viewsIs there any pythonic way to make "Slice" from an array?
In Javascript there is the Array.prototype.slice: var input = [ 'laranja', 'limão', 'melancia', 'mamão' ]; var aparada = input.slice(1, -1); console.log( aparada ); And in the PHP the array_slice:…
-
10
votes4
answers2204
viewsHow to check if a Localdate is a weekend?
I have the following date of type LocalDate 2017-12-21 How to check if it’s a weekend? I tried to use the Calendar, but it seems to only work with Date.…
-
10
votes1
answer1387
viewsDifference between exhaust, encodeURI and encodeURIComponent
What is the difference between these three functions, and when to use each of them? escape() encodeURI() encodeURIComponent()…
javascriptasked 7 years, 1 month ago Fernando Souza 1,887 -
10
votes1
answer839
viewsJS calculator: unexpected results
I created a simple calculator in Javascript, but some results are going wrong, for example, operations like '10+10' (returns 18) or '20/2' (returns 8). I’m still learning to mess with the language,…
javascriptasked 7 years, 1 month ago Carolina S. 103 -
10
votes1
answer187
viewsHow to identify an invalid graph for operator allocation problem per machine?
Recently I was answering a question (Machine Scheduling - Graph Theory), but there was an open problem that I could not solve: Given any graph, identify if it is valid for the operator allocation…
-
10
votes2
answers2752
viewsWhat is the difference in the statements with [] and {} in Javascript?
var a=[] var b={} What is the difference in statements with [] and {} in Javascript? And in what context is best used each? Question in English: Soen…
javascriptasked 7 years, 2 months ago rubStackOverflow 7,372 -
10
votes3
answers168
viewsWhy is it necessary to create a function to execute certain methods?
.onclick = function() {myFunction()}; Why the example below does not work? .onclick = myFunction() It runs without me having clicked! <script> document.getElementById("demo").onclick =…
-
10
votes3
answers828
viewsSeparate typed words within an input
I have a input, where the user enters his or her full name from the following code: <input type="text" id="fullname" name="fullname" title="fullname" maxlength="255" class="input-text fullname…
-
10
votes3
answers5420
viewsConfigure ng-bootstrap Datepicker for EN
I’m wearing a Datepicker from Ng-Bootstrap with Angular 2 and I want to set the date format (YYYY/MM/DD) to the format (DD/MM/YYYY) I also need to change the calendar days and months to Portuguese.…
-
10
votes3
answers883
viewsHow to create operators in Python?
I was searching the internet about why Python doesn’t have the operator ++ and I saw someone saying that you can create this operator. How do you do this? How to create a Python operator?…
-
10
votes1
answer257
viewsWhat are extended functions?
I’m writing an article on programming in Kotlin, I came across this name, which are extended functions?
android function terminology characteristic-language kotlinasked 7 years, 3 months ago Lucas Vieira 397 -
10
votes1
answer5204
viewsWhat is the difference between . on(), . click(), . Blur(), bind()?
And if there is one more, what would it be? And the difference of that "some more" to the others above. Note: I know you have, I’m not saying you don’t have, if someone in a didactic way can answer…
jqueryasked 7 years, 3 months ago Lucas de Carvalho 6,427 -
10
votes3
answers540
viewsWhat kind of smart pointer to choose?
How to know what kind of smart pointer to use? And what’s the difference between them? Example: std::unique_ptr<MinhaClasse> mClasse(new MinhaClasse) std::shared_ptr<MinhaClasse>…
-
10
votes4
answers236
viewsComparison syntax referring to the same variable
Let me give you an example in C#: namespace Compare { class Program { static void Main(string[] args) { string name = "Girl"; if(name == "Girl" || == "girl") //... } } } This form clearly contains…
-
10
votes5
answers972
viewsHow to get the name of the day of the week on the first day of the month?
How do I get the name (Monday, Tuesday, Wednesday...) of the first day of the month of December from the current date?
-
10
votes1
answer121
viewsWhat is Metadata-Based Architecture (MDDA)?
What is a Metadata-Based Architecture? When using this type of architecture?
-
10
votes2
answers1070
viewsPath from previous folder
How can I get the path from the previous folder? For example I have this path : C:/Pasta1/Pasta2 And I wanted to get in the way of folder 1 C:/Pasta1 How can I do that?…