Most voted questions
150,413 questions
Sort by count of
-
11
votes1
answer1637
viewsNumber in full for number
I would like to transform an extended number to normal int; example: FunçãoParaConverter("trinta e dois") // retorna 32 FunçãoParaConverter("mil vinte e quatro") // retorna 1024…
-
11
votes3
answers432
viewsCSS operators with @
As I had asked about the operator @media, I was curious, because I saw other operators that started with @and I would like to understand what they serve operators like this, and which ones exist.…
-
11
votes1
answer2259
viewsWhat to use to format a string, % or format?
Use "%" or ".format"? I think the last one is newer, but there is some other aspect to be taken into account when deciding which one to use?
pythonasked 7 years, 1 month ago Lucas Souza 567 -
11
votes4
answers9155
viewsChange the background of input filled in by Chrome autocomplete
I am creating a form, and as everyone knows, the browser has the option "auto-fill", so far so good, but I came across the following situation: As you can notice in the image above, the field that…
cssasked 7 years, 2 months ago NoobSaibot 9,554 -
11
votes1
answer1726
viewsWhat is reactivity in Javascript?
I see in frameworks as Angular, Vue, React, the concept of reactivity. I’m totally naive on the subject, and as far as I know, the concept of reactive programming is basically performing…
-
11
votes1
answer655
viewsgit fetch: "inflate: data stream error" and "SHA1 COLLISION FOUND WITH"
I have on my machine a copy of the repository for work, another for maintenance and a third just to resolve conflicts of merge request. The external repository is in the https://gitlab.com In the…
gitasked 7 years, 2 months ago Jefferson Quesado 22,370 -
11
votes2
answers160
viewsEqual sign in Ruby method definition
I have come across the following definitions of methods and I would like to know the difference between the first definition and the second. This first has no equal sign in the definition: def nome…
-
11
votes2
answers422
viewsWhat is the advantage of using one database for reading and another for writing?
What is the advantage/difference of using separate databases, one for reading and the other for writing? In my view, there is no such concept. The writing bank, one hour will have to be read to…
database software-architecture synchronization replicationasked 7 years, 3 months ago Gabriel G. Domingos 123 -
11
votes2
answers2509
viewsWhat is the function of Function in jQuery and what is the right way or time to use?
Whenever I go to work with jQuery I just create: $(function() { }); Because it was the first way I learned, at first I thought it was a "int main()" pattern in C, but then I came across other forms…
-
11
votes1
answer269
viewsWhat sort algorithm does . NET use by default in a list?
I have a problem that I have to perform sorting in memory of a high number of items and I would like to know which algorithm that the . NET uses to sort when we call the method Sort() from a list,…
-
11
votes1
answer332
viewsHow to know if path exists?
One of the classes of my system is created with the information of a file. When starting the system, it initially runs the following lines: public List<Estabelecimento>…
-
11
votes3
answers663
viewsClass generic property
I have a class with two properties (Name and Value). The estate Name is a string, already the property Value I want to leave the variable type. public class Field<TValue> { public string Name…
-
11
votes5
answers1530
viewsDo programs written in C# depend on the . NET Framework to run?
Once compiled a C# code depends on the . NET Framework installed on the machine to run, similarly to Java?
-
11
votes3
answers2941
viewsWhat is a View on Android?
The visual components of Android as EditText, Button and others, possess the Listeners to handle events triggered by actions performed by users. Therefore, in the method corresponding to the event,…
-
11
votes3
answers39830
viewsConfigure . gitignore to not upload certain files
I am developing a project. Net and would like to add some files to not go up on Github through the .gitignore. I started researching about and saw some solutions, of which I did not understand. So…
gitasked 7 years, 4 months ago gabrielgrs 457 -
11
votes1
answer961
viewsWhat makes Kotlin a language faster than Java?
I have read in some articles that Kotlin is faster than Java, but none of them exemplifies why. [...] As fast as Java". Kotlin - Evolve your Java Code (TDC-2016) Alex Magalhaes [...] Kotlin should…
-
11
votes2
answers2058
viewsWhat would the route model look like for a Rest API in more complex operations?
I did some research on the REST API model, but among the many questions I had, I have one that is essentially important. People always gave examples of route models that looked like this:…
-
11
votes1
answer259
viewsHow to remove the last number from an integer?
How can I remove the last number from an integer? Ex: int value = 123456789; int newValue = 12345678; Note that the new value does not have 9. I know it would be possible to switch to a string and…
-
11
votes1
answer262
viewsHow do I change the language of Git to English on Linux?
I’m using Git on the Linux terminal (Ubuntu), and it’s in English. In the master business Initial submission. nothing to send (create/copy files and use "git add" to register) How I can change Git…
-
11
votes2
answers2954
viewsWhat is a scalar variable?
I was reading the PHP documentation and a function is_scalar() - as stated by the site itself - when it is used it will inform if a certain variable is scalar. However I wanted to know a little more…
-
11
votes1
answer632
viewsIn a programming language, what differentiates a first-class citizen from the rest?
In a simple way, what is a "first class citizen" in a programming language? And mainly, how do you differentiate something that is a first-class citizen of something that is not?…
-
11
votes3
answers649
viewsWhat is the Target Framework and what is it for?
I work for a while with .NET and I was asked about the target framework of my projects. I understand what it’s for but I couldn’t explain it simple and clear what exactly is.…
-
11
votes6
answers630
viewsIs there a problem compressing CSS?
I’ve been noticing that some sites have compressed CSS, I believe this only serves to load pages faster, do you have any risk in doing this? because there are some sites that use normal CSS, I…
-
11
votes1
answer389
viewsHow to trace letters and cut them?
I have this image below. As you can see, they are together. In this case, it’s a "7", "h" and "a". It is possible to scan the image to find them and then cut them where exactly you found them? I’m…
-
11
votes1
answer886
viewsIs Perl used nowadays?
Well, I see little about Perl and I don’t know much about the language, it is still used nowadays and can replace some other language like PHP or Ruby? I don’t know exactly what Perl does but as I…
-
11
votes1
answer112
viewsDoes creating local variables all the time generate extra cost for the software?
I made a program of which he writes variables all the time, and with that generated me a doubt, instantiating a variable all the time generates more cost than just assigning the value to an existing…
-
11
votes1
answer744
viewsWhat is the difference between save and Insert in Mongodb?
What difference in the Mongodb between insert item with save and with Insert ? Example: db.pessoa.insert({"nome":"João"}); db.pessoa.save({"nome":"Maria"});…
mongodbasked 7 years, 6 months ago Eduardo Sampaio 1,425 -
11
votes5
answers1059
viewsIs it possible to convert a 16-bit number to a single byte?
If I create the following expression: Int16 numero = 2017; byte m = (byte) numero; m will have the value of 225. Okay, how do I get 2017 from the byte m (reverse operation) again?…
-
11
votes2
answers3018
viewsIs it really necessary to create an auxiliary 3rd table in N-N relationships?
In several places I see that when you have a relationship N-N (if I remember correctly) it is recommended to create a 3rd auxiliary table and then later it will be transformed into a relationship 1…
-
11
votes1
answer601
viewsWhat’s a B tree?
What types of problem is it suitable for? How and why should it be used? It is possible to include an example of code?…
-
11
votes1
answer1173
viewsWhat is the difference between WCF and a Web Services?
I’ve always worked with Web Services, but lately I’ve seen a lot if you talk about WCF, hence my doubt. What’s the difference between WCF and a Web Services? Is there some improvement between one…
-
11
votes2
answers811
viewsWhat is memory segmentation?
I read about memory segmentation, however, I cannot understand what memory segmentation is and how it influences the functioning of my program. Illustration See this example of a program that…
-
11
votes2
answers440
viewsDoes any programming language use memory?
When I write a program in any programming language, compiled or interpreted, is it necessary to run a RAM? Please explain. Being more specific, I made a text editor using Javascript. When this text…
-
11
votes2
answers1673
viewsWhat is the purpose of : (two points) in PHP?
I have this question that is leaving me with a flea behind my ear. I don’t understand at all. What does the sign of : two points. Someone can explain me? Example: if ( have_posts() ) : while (…
-
11
votes6
answers1056
viewsHow to make a Split for when there is a letter in the string?
I’d like to make one string be divided with the .Split() every time there was a letter. Example: To string: 97A96D112A109X115T114H122D118Y128 Would become a array with 9 values: { 97 96 112 109 115…
-
11
votes3
answers2425
viewsWhy in Java is the size of an array an attribute and a String and a method?
In Java, the size of a array of any object can be obtained with length, which would be an attribute. But in the case of String is length(), a method. However, if you have a array of String, uses…
-
11
votes3
answers2839
viewsWhat is the solution for asynchronous PHP processes?
In PHP many times, in the middle of an operation, I need to send an email, make a call webservice or register a log, and these can sometimes take a while to process, but without having to wait for…
-
11
votes4
answers4547
viewsWhat’s the difference between Promises and Observables?
Can anyone explain to me the difference between Promises and Observables? I would like to understand the advantages and disadvantages of each. Which is more performative, which applies a best…
javascriptasked 7 years, 8 months ago Matheus Bessa 1,261 -
11
votes1
answer4142
viewsWhat is page fault?
I was reading the reply of the user Maniero regarding overlay and memory management. He cited the page fault which can occur when a program is running. However, this term page fault caused me some…
-
11
votes3
answers409
viewsWould it be necessary to have another programming language to create the Assembler?
Would it be necessary to have another programming language to create the Assembler? If so, which one? If not, what could you do to get started? I know that according to the years, right after the…
-
11
votes1
answer673
viewsDetect collision between corners of objects
I’m writing a game based on Breakout, but I can’t think of a way to detect the collision between the corner of the ball area and the paddle, so I can reverse the horizontal direction of the ball. In…
-
11
votes2
answers4107
viewsConcept of class, entity and objects
I’m reading about classes in C#, and an excerpt left me a little confused. I know that classes are objects in C#, and can be used in various ways. My doubt is in the following sentence: "A class can…
-
11
votes1
answer173
viewsConstant is really useful?
Why would I use a constant instead of a variable? In addition to readability, there is another gain in using a constant? I can’t make a difference that makes me use a constant instead of a variable.…
-
11
votes2
answers8828
viewsAfter all, what is the function Repr in python for?
I’m a bit of a beginner in python and I wanted to know what this confusing function is really for, I looked at several sites but no one has really said what it’s for
-
11
votes2
answers17350
viewsMinimum bit amount required to represent decimal numbers
I’m making a list of computer architecture and one of the first exercises is pretty basic: What is the minimum amount of bits required to represent in binary each of the decimal numbers without…
-
11
votes3
answers5878
viewsCreating a List<> from a Json C#
I have a doubt regarding JSON, I have the following JSON: { "jsonrpc":"2.0", "result":{ "nr":26, "lista":[ { "codigo":"2", "nome":"Pratos Quentes", "foto":"./images/cupcake.png" }, { "codigo":"3",…
-
11
votes4
answers650
viewsIn production environment should errors be disabled?
I saw that errors generated in production environment result in major problems, especially when you have an application related to money and/or passwords, but also due to the privacy of information.…
-
11
votes1
answer1015
viewsCalculations used to rotate an image on canvas
I have the following code below to be able to rotate an image through the canvas. function qs(selector) { return document.querySelector(selector); } function rotacionar(canvas, image, angle) {…
javascript mathematics canvas image-processing rotationasked 7 years, 10 months ago Wallace Maxters 102,340 -
11
votes3
answers572
viewsWhat is map / reduce?
Map / Reduce is a very common concept in JavaScript and many other languages. What it means and how it works in practice?
javascriptasked 7 years, 10 months ago Marcell Alves 2,453 -
11
votes1
answer18212
viewsWhat are the types of Scade in JPA?
I’m looking for information on the types of Scade that exist and how they work in JPA relational modeling. The guys I found explanations for were: NONE = Does nothing with the object (default) MERGE…