Most voted questions
150,413 questions
Sort by count of
-
6
votes1
answer584
viewsWhat does this "." point in Python mean?
What does that mean dot between the variable var and index? Example: var = ['João','Pedro','André','Alice'] var.index('André') Has any name?…
-
6
votes3
answers6054
viewsDraw a rectangle using Python repeating structures
I have to solve the following activity in Python: I need to write a program that prints a rectangle with the full edges and the middle open: >>> digite a largura: 10 >>> digite a…
pythonasked 7 years, 6 months ago Marcos Vinicius 63 -
6
votes2
answers7324
viewsWhat is a lock and what are its causes?
I often come across the term: Table x is with lock. What it means and what its causes?
-
6
votes3
answers4491
viewsHow to check if the program is already running in C#
I wonder if there is a way to check if there is already an instance of the running program, so that if I click the program icon it does not call a new instance of the program but open the already…
c#asked 7 years, 6 months ago Victor Freitas 738 -
6
votes2
answers40270
viewsHow do I mask an input?
I’m trying to put on a mask CPF in a input, I’ve seen a lot of answers here and none of them worked, I tried to use the mask on its own input, in the jQuery and none of it worked. I use the…
-
6
votes2
answers996
viewsHow do I protect my JSON application?
I created a unique subdomain to provide data from my tables in JSON, it facilitates requests for both the mobile version and the desktop version of my site, but I would like to protect such data or…
-
6
votes1
answer930
viewsHow does the White Box Test work?
I read in this reply user’s utluiz the following description of the White Box Test, see: White box test: when assessing the internal functioning of the software. For example, if certain methods…
-
6
votes2
answers43536
viewsError doing Insert - String or Binary data > would be truncated
By making this Internet: INSERT INTO t_cmo_oit1980_leitura(id_oit_let,id_oit,rx_num, dt_rx) SELECT (1), (SELECT id_oit FROM t_cmo_oit1980 WHERE id_oit = 6574), (SELECT rx_num FROM…
-
6
votes3
answers504
viewsMap Many to Many in the Entity Framework
I’m having a problem mapping with the Entity Framework. I have two models, "project" and "company", where in the "company" there can be several "projects". public class Projeto { [Key] public int Id…
-
6
votes1
answer230
viewsFilter Postgresql Information on Windows Forms screen using Entity Framework
Is there any way to search for the information in postgresql by nickname? But without using alias, only in the field register in the table I already enter the real name for the field? Example:…
-
6
votes1
answer155
viewsModeling with Code First so you can exchange databases
If I generate my database for Mysql using the concept of Code First is it possible to change it to SQL Server in the future with relative ease? Need to change the classes or just the config and the…
-
6
votes1
answer105
viewsWhy does one script freeze the browser and the other not if the number of loops is the same?
I have 2 scripts To and B. Testing whether a number is prime in the A script The browser freezes with large prime numbers - 9 digits - (e.g. ). I tested in Chrome and IE, both browsers frozen. In…
javascriptasked 7 years, 6 months ago user60252 -
6
votes3
answers137
viewsAccess to pointer on main
Why in the statement as argument in function main(): char* argv[] instead of char argv[] i can access the information. I know one is pointer. I can’t access when it’s not pointer. #include…
-
6
votes1
answer84
viewsHow to start a variable correctly?
There is a difference between these two ways to start a variable? List<classeterapeutica> itens = new List<classeterapeutica>(); modelOff.classeterapeuticas.ToList(); or…
-
6
votes1
answer130
viewsDifference Between Using "FROM Table, Table2" X "Join Table ON Table2"
Considering the two forms of union of tables through a join(anyone): SELECT Tabela.A, Tabela.B, Tabela2.C FROM Tabela LEFT JOIN Tabela2 ON Tabela.Id = Tabela2.TabelaId And a union using from SELECT…
-
6
votes3
answers6745
viewsHow to validate whether it is a vowel without writing all the letters of the alphabet
Write the vowel function that takes a single character as a parameter and return True if it is a vowel and False if it is a consonant. Note that vowel("a") must return True vowel("b") must return…
-
6
votes3
answers2361
viewsHigh consumption of RAM
My Visual Studio 2015 when I use to debug a WEB C# MVC project has the following RAM consumption: Is this consumption normal? My computer gets very slow when I have to test some modification on a…
-
6
votes3
answers1428
viewsHow to define the comparison of equality between two objects present in an Arraylist?
How can I define the equality comparison behavior between two objects whose class is defined by me that are stored in an Arraylist object? Java nomecor. public class NomeCor { private String nome;…
-
6
votes1
answer3403
viewsHow does any and all work in Python?
How the functions work any and all in Python and what are the differences between them? They happen to be functions equivalent to Array.prototype.some and Array.prototype.every javascript?…
-
6
votes1
answer329
viewsHow are expressions evaluated in Java?
Reading some references it was possible to understand the basic, but not enough to decipher the following code: public class Expression { public static void main(String[] args) { int s = 5; s += s +…
-
6
votes1
answer1762
viewsHow to put a logo on Toolbar?
I was researching here and I found something very interesting, the company logo on Toolbar. How do I place a company’s logo on Toolbar?
-
6
votes1
answer7278
viewsHow to use the function toupper() in char in C?
I’m creating a variable: char nome[20]; After this, I am asking the user to enter a name: printf("Digite um nome : "); scanf("%20s",&nome); And I’m checking to see if the name is correct:…
-
6
votes2
answers7914
viewsWhat is the difference between Java Keywords extends and Java Implements?
I would like to know when they should be used and how we can distinguish them. I know that basically Implements, means that this class implements a class or an interface. E extends can access the…
-
6
votes1
answer326
viewsHow to create a monolithic application executable. NET?
I wouldn’t want to do the deploy from the full DLL application, wanted something simple, no installer, wanted to generate only one executable file, but the . NET is all DLL-based. You can generate a…
-
6
votes1
answer5856
viewsDoubts in Arvore Binaria in C - Printing order, pre-order and post-order
I have several doubts about the operation of binary tree in C. I have a code for insertion, removal and printing in order, pre-order and post-order. These codes were taken from the Internet, because…
-
6
votes1
answer202
viewsProblem Doing JSON to a Site
I need to do JSON from the following link, in order to obtain the data for a record AWP | Dragon Lore (Field Tested) of the day: 2017-03-25. Link: https://opskins.com/pricelist/730.json How can I…
-
6
votes2
answers242
viewsGet only given last month using R
I need to extract the last monthly values from dataframe column 2 ntnb45. Is there any direct way to do this in R? library(GetTDData) ntnb <- download.TD.data('NTN-B') ntnb45 <-…
-
6
votes1
answer1448
viewsHow to enable Flash Player in Javascript browser?
Is there any way to enable Flash Player via Javascript in the browser like at that link?…
-
6
votes1
answer4275
viewsWhat is the difference between using focusin/focusout and Focus/Blur?
Using jQuery to focus on a specific element raised the doubt: What’s the difference between using focusin() in relation to focus()? And focusout() in relation to the blur()? Is there any specific…
-
6
votes3
answers284
viewsWhat should I observe when creating a hash code?
Still talking about the reply about hash code it was not clear what should be observed to produce good hash codes. I understood that it needs to be a number that doesn’t generate a lot of…
-
6
votes1
answer292
viewsBest possible algorithm
I come again with a question aimed at the area of Complexity of Algorithms, but this time how to choose the most efficient algorithm, for this we will consider the two expressions below: Algorithm…
asked 7 years, 7 months ago Félix 204 -
6
votes2
answers157
viewsIs capturing Nullpointerexception bad practice?
I’ve been a little uneasy about security issues and vulnerabilities lately, and in my research, I came up with an article that intrigued me. According to the OWASP: Description It is generally a bad…
-
6
votes2
answers740
viewsSwap whitespace for %20 in Java
I have the following URL: String Url = "www.minhaUrl/pagina/meus parametros tem espaços em branco"; I need to turn it into: String Url =…
javaasked 7 years, 7 months ago fernandoocf 1,095 -
6
votes1
answer282
viewsShould we disregard the return of functions in C that already receive the desired value by the parameter by reference?
Looking at the documentation of scanf() I saw that it returns a value, but I see the codes using it without using that return. This is right?…
-
6
votes4
answers7295
viewsHow to generate a spreadsheet from another using VBA
I have the worksheet below with the following columns: I would like to generate a second spreadsheet based on the above information, following the following conditions: a) If categoria ==…
-
6
votes1
answer2145
viewsWhat is the difference between JWT and JWS?
I asked a question a little while ago on the site regarding the JWT, which is used to create access tokens through JSON. I tried to implement JWT between two applications that use different versions…
-
6
votes7
answers19300
viewsIncreasing modal size using bootstrap and html
I have a certain modal responsible for displaying some content of the site, however the content can not be adjusted to the modal screen, it always gets the same width regardless of the content ...…
-
6
votes2
answers1113
viewsHow to return the most appearing words in a column?
I have this table below which has two columns, being id and description: CREATE TABLE myBigTable ( id INT(11) AUTO_INCREMENT PRIMARY KEY, description TEXT NOT NULL ) After entering some records, I…
-
6
votes1
answer94
viewsWhat is Accelerated Mobile Pages (AMP)?
By chance I ended up reading on an administration portal where I talked about digital marketing trends for the year 2017 and what caught my attention the most was the AMP. Which led me to the…
-
6
votes4
answers2358
viewsReturn day of week from date in dd/mm/yyy format
I have this function that brings me the day of the week: public static String getWeek(String date){ //ex 07/03/2017 String dayWeek = "---"; GregorianCalendar gc = new GregorianCalendar(); try {…
-
6
votes1
answer368
viewsWhy do they say $_GET in PHP is insecure against sql Injection?
Well, my question is simple. I’ve been hearing a lot of stories lately that $_GET in PHP is insecure against sql Injection. Could you tell me why? Thank you.
-
6
votes5
answers227
viewsWhat are strings started with @inside PHP comments?
I was reading a code, like this : /** * PHPMailer - PHP email creation and transport class * NOTE: Requires PHP version 5 or later * @package PHPMailer * @author Andy Prevost * @author Marcus…
-
6
votes2
answers2044
viewsHow to keep Ivs aligned on top of each other?
- I am extremely new to the subject and do not know much, I am going from searches on the internet, videos and readings, I say this in case there is some code or unnecessary rule in my doubts I…
-
6
votes1
answer708
viewsIn R, when does a vector become "Too long"?
When trying to create an infinite vector (1:Inf) I received the following message: Error in 1:Inf : result would be Too long a vector However, when the vector does not know in memory the message is…
-
6
votes2
answers4772
viewsCPF and CNPJ validation
I’ve been doing research on Swift and I haven’t seen examples that contemplate the validation of both CPF and CNPJ. So any of your colleagues have a function that can validate them?
-
6
votes1
answer1162
viewsDeploy App Node.js on localhost(Production)
I developed an application with Angular + Node.js. The only detail is that there is no centralized server (Node.js), that is, each client will have its version of the server running on its network.…
-
6
votes4
answers1233
viewsWhat is the correct order to use the PHP header and ob_start functions?
Before starting the ob_start function(); header('Content-Type: text/html; charset=utf-8'); ob_start(); .... ob_end_flush(); After starting the ob_start function(); ob_start(); header('Content-Type:…
-
6
votes2
answers670
viewsAn Exception of type 'System.Outofmemoryexception' occurred in mscorlib.dll but was not handled in user code Asp.net
I’m having a hard time solving this mistake. My goal is to collect data from an Excel file and store it in c#variables, which in turn will be inserted into SQL Server 2012. Reading is done line by…
-
6
votes1
answer138
viewsWhy is Offloading for the GPU a good idea?
I follow some forums on the Internet and I realize that recently there has been much talk of holding Offloading tasks for the GPU. Mozilla has implemented a new engine for its browser called Servo.…
-
6
votes2
answers2487
viewsWhat is a recursive function?
I’ve always heard that recursion is an intelligent idea that plays a central role in functional programming and computer science in general. From what I understand, briefly, there is recursion…