Most voted questions
150,413 questions
Sort by count of
-
8
votes2
answers322
viewsWhat is the HTTP verb I use for logout?
I have a logout endpoint to make the Current user token invalid. With this came a question: Which HTTP verb should I use to log out?
-
8
votes2
answers3578
viewsIs there a size limit for data transmitted via POST?
I sent a form via GET with a large number of text (about 6,000 characters) and received a very long URL error. I did the same test via POST and the data was successfully sent. My question is whether…
httpasked 7 years, 3 months ago Italo Rodrigo 4,344 -
8
votes3
answers1793
viewsHow to divide integers and get value with decimal part?
I am trying to divide the following values into c#: Double media = 0.0; int soma = 7; int cont = 2; media = soma / cont; Is returning 3.…
-
8
votes1
answer1301
viewsWhat is Harvard architecture?
Reading a few things about architecture, in several cases it is compared to Harvard Architecture with Von Neumann Architecture. I found here in the SO this question about What is von Neumann’s…
-
8
votes3
answers590
viewsImage Border within Select Radio after choosing an option
I have a virtual store in which it generates the following HTML of a select that has image inside it. I would like to hide the input (select radio ball) and display only one border in the selected…
-
8
votes3
answers948
viewsWhat makes a JOIN bad in a database?
Where I currently work I had to make some queries in the database to generate a report or take emails from students who did not do remakes in other courses. However, I was given the idea of making…
-
8
votes3
answers1323
viewsWhy do pointers have a fixed size independent of the pointed type?
The space occupied by normal variables (int, float, double, char) obeys the type rule: int occupies 4 bytes, float occupies 4 bytes, double occupies 8 bytes etc. Why pointers of different types have…
casked 7 years, 3 months ago Natã Marques 81 -
8
votes1
answer2284
viewsHow does Bag of Words work and where does it use it?
I have recently researched on artificial intelligence and found some articles talking about such a "bag of words", but I don’t know what it is and I didn’t find anything in Portuguese talking about…
artificial-intelligenceasked 7 years, 3 months ago Francisco 7,472 -
8
votes1
answer1670
viewsBar graph sorted using dplyr and ggplot2
I would like to create a bar chart after counting the number of occurrences of the categories of a data set. Suppose my dataset is this below: dados <- structure(list(categorias = structure(c(5L,…
-
8
votes1
answer442
viewsWhat is considered a "gambiarra" or a bad code?
For example, I create a code, and it works, but I’m not sure it’s right for me to do it that way. Is that a trick? I have to make sure that the code is done in such a way for it to be considered a…
-
8
votes1
answer1224
viewsAdd line to line in a date.table in R
Is there any method that can be added row by row in a date.table in R without using a'for', so that the value of the next row in a column is the value of the previous row added with a value…
rasked 7 years, 4 months ago mbranbilla 314 -
8
votes3
answers1312
viewsHow to create PHP executable program?
Is it possible to create a program for my company that is executable, only with PHP and Mysql? Or I will need other languages such as C, Java, etc. In case the program is internal only.
-
8
votes3
answers726
viewsWhy does Google recommend inline CSS?
I was optimizing a site from a client who insists on wanting to get a high score in Pagespeed Insights, and I’m having problems with "eliminating Javascript and rendering blocking CSS in content…
-
8
votes1
answer517
viewsParallelize python Odd-Even Sort sorting algorithm
I have developed the following serial code to perform the Odd-Even Sort sorting, which first sorts even/odd and then odd/even. import time def oddevenSort(x): sorted = False while not sorted: sorted…
-
8
votes1
answer5807
viewsHow to create a new. M3U file correctly? (Since I already have streaming .TS)
I’m starting to study to make an online teaching site (live video), but the examples I’m using from the internet are giving me the most varied errors, as the example I use... In this example, he is…
-
8
votes1
answer748
viewsfilter in dplyr using a categorical variable
Suppose I have the following data set: set.seed(12) dados <- data.frame(grupos=rep(letters[1:5], 5), valores=rnorm(25)) head(dados) grupos valores 1 a -1.8323176 2 b -0.0560389 3 c 0.6692396 4 d…
-
8
votes5
answers1745
viewsConsole utilities.log()
I was doing a refactoring on a code made in the format MVC, making the code more readable, eliminating duplicated code and deleting variables and API’s that were no longer being used. When deleting…
javascriptasked 7 years, 4 months ago Paz 3,062 -
8
votes2
answers139
viewsEverything I do with Jquery I can do with Javascript?
I have a serious problem that is: I’m learning jQuery before Javascript, and I think now I’m going to get hurt, put in my sites only use jQuery, and I’m realizing it’s bad practice. But returning…
-
8
votes1
answer638
viewsWhat is the pcntl_fork function for?
I was looking for some solution in PHP, where I could run a script without waiting for a certain function that processes time-consuming things to be expected to finish the execution of it. I came…
-
8
votes4
answers5555
viewsDetermine the nth Fibonacci term with recursion
I don’t understand anything about recursive functions, even debugging, is very confusing for me. Someone can explain me in an easy way? I tried to analyze the following code: #!/usr/bin/python def…
-
8
votes4
answers1003
viewsProblem saving a change using Entity Framework
I am trying to persist a change I make to a record but am getting this error: System.Invalidoperationexception: 'A referential Integrity Constraint Violation occurred: The Property value(s) of…
-
8
votes4
answers3416
viewsHow to do a search to know if a string is inside a vector in C#
I’m doing a little program that searches inside a vector. The problem I’m having is that if he finds the name he gives a message saying it was found but then gives another message saying that it was…
-
8
votes2
answers218
viewsCould someone help me with this formal language?
Could someone help me with the following language: {a^n b^m | n<= m <= 2n} Forgive my ignorance, but I’m failing to form a battery automaton with this language. I’m trying through a…
computer-theoryasked 7 years, 4 months ago Breno Lima 81 -
8
votes1
answer2408
viewsWhat does the MVW of Angularjs mean?
When Google searches for Angular, it is returned: Angularjs - Superheroic Javascript MVW Framework I know that MVC means Model-View-Controller but what is the W of MVW Framework? Is this a new…
-
8
votes2
answers1132
viewsInsert sequence Oracle
Folks good night I’m wanting to insert data into a table , which has a sequence created, but when trying to insert data with nextval it presents the following error Error SQL Error: ORA-00911:…
-
8
votes1
answer188
viewsHow to mark in bold triple and quadrupled sequential characters of a string?
I want to mark the triple and quadrupled sequences of a string like this: $string = "AAACDEAAAABBBUUDD"; And I would like to get as a result the following:…
-
8
votes3
answers13782
viewsChanging the data type of an sql column
Good morning. I have the spine CliTelCel char(10) on the table of Clientes, need to change char(10) for char(11). However this column already exists data, what would be the best way to proceed in…
-
8
votes1
answer1958
viewsAre there any R functions similar to excel PROCV?
In my case I have two date frames.: > head(Trecho) Xt Yt Zt 1 -75.56468 1.642710 0 2 -74.56469 1.639634 0 3 -73.56469 1.636557 0 4 -72.56470 1.633480 0 5 -71.56470 1.630403 0 6 -70.56471 1.627326…
rasked 7 years, 5 months ago Aurenice Figueira 83 -
8
votes3
answers799
viewsHow to sort by the relevance of Like?
I’m making an autocomplete that makes a request to a url, which in turn queries in the database. This consultation is made with the LIKE. I use %$termo% to be able to consult, but I would like to…
-
8
votes2
answers772
viewsHow does XOR work for two binaries with more than one digit?
I learned that the XOR operator works as OR Exclusive, that is, the end result is only 1 when only one of the operators is equal to 1. The truth table illustrates this well: My question is: how the…
-
8
votes1
answer156
viewsWhat are symbols in the . NET Framework?
How do symbols work in the . NET Framework (and other platforms)? How do they make it possible to debug application even without having the source code on the machine? What is your relationship with…
-
8
votes1
answer158
viewsHow to use deep-Learning to parse forms with addresses?
I have an app I need to import personal data into. I often receive excel or csv/txt files with fields such as name, address, email, phone, etc... File formatting varies, order also, and sometimes…
-
8
votes1
answer127
viewsStatic members are collected by GC when no longer needed?
In a class that has a static variable, it exists throughout the application. The linked object is collected at some point? Example: public class Exemplo { private static List<int> lista = new…
-
8
votes1
answer122
views -
8
votes2
answers590
viewsWhat is the useshellexecute property for?
Developing an application in c# I came across the property UseShellExecute in the following code snippet: ProcessStartInfo startInfo = new ProcessStartInfo(); startInfo.CreateNoWindow = false;…
-
8
votes4
answers260
viewsSend data to server even if window is closed
I’m wearing the event beforeunload to try to send an ajax request to the server before the user leaves the page but it has not worked out very well.. Is there any way to send a request that…
-
8
votes1
answer119
viewsDesign has more than 65536 methods
When adding the Analytics Package to the project, an error occurred in the project. As explained on this blog , the error occurs when the project has more than 65536 methods (only the added Google…
-
8
votes2
answers300
viewsWhy does . NET’s Garbage ollector have several generations?
I understand why there is a Garbage Collector, but I wanted to know the advantages of making it have several generations. It seems something much more complicated, it needs to be very advantageous.…
-
8
votes2
answers357
viewsEventos Bubbles Javascript
What a Javascript Bubble Event means? I couldn’t understand the meaning and use of the Bubbles events. Following the W3schools reference: https://www.w3schools.com/jsref/event_bubbles.asp Could you…
-
8
votes5
answers1493
viewsHow to create a function to validate time in PHP
I am trying to validate a time field in PHP, and with the help of this topic on an external site I came to this script: function validaHoras($campo){ if (preg_match('/^[0-9]{2}:[0-9]{2}$/', $campo))…
-
8
votes3
answers184
viewsSearch in String
I have a String of dynamic size and I need to search for the "#" cross to the next blank. I tried to use split, but without success. String texto = "oi tudo bem como vai #01?"; String[] t ; t =…
-
8
votes1
answer515
viewsWhat is COM (Component Object Model)?
I was reading this question1 here on the site and I have sometimes come across the term "objects WITH". A brief survey showed me that WITH that is to say Component Object Model, but I couldn’t…
windows language-independent interoperability componentasked 7 years, 6 months ago Jéf Bueno 67,331 -
8
votes1
answer125
viewsWhat is the best way to get out of a C#app?
The most common way is to go out with a return in the Main(). But I saw that there is Environment.Exit() and the Application.Exit(). When should we use each?…
-
8
votes2
answers314
viewsIs there any difference between clip and overflow property?
Studying on the property clip I came across the following statement: The estate clip works in a similar way to overflow with some differences. It gave me some doubts: This statement is true? What…
-
8
votes3
answers722
viewsInitialize private fields in the declaration or constructor?
I’m modeling a class that has a private list and an internal dependency on another object: public class Teste { private IList<string> Textos; private Teste2 Teste2; } I can initiate them in…
-
8
votes2
answers523
viewsWhat is an extensible language?
I found some definitions on extensible language, from English Extensible language, in which it is defined that it is a language that the programmer himself can modify it. However, I did not…
-
8
votes1
answer2048
viewsWhat is the difference between replace() and replaceAll()?
I was reading the documentation to properly develop a mask and save without it. However I came across this doubt of methods replace and replaceAll for my string. What is the difference between the…
-
8
votes2
answers592
viewsBest practices regarding the use of access modifiers
How to restrict other classes from accessing certain members (methods, variables/fields, nested classes/interfaces) one-class? I would like to know the best practices for using the access modifiers…
-
8
votes4
answers392
viewsProgram that returns the unusual numbers of two lists (python)
I’m trying to make a program, in Python, that returns a list with the unusual elements between two other lists. I made the following code: def indice(a,b): ind = [] for i in range (len(a)): for w in…
-
8
votes5
answers10407
viewsIdentify if there is an uppercase letter in the string
I have declared two certain variables, one of which is uppercase and the other only lowercase. See the example below: actor = "Jon Snow" pet = "wolf" How can I identify if it exists at least one…