Most voted questions
150,413 questions
Sort by count of
-
7
votes2
answers2984
viewsSurrogate Key and Natural Key
I’m studying about data Warehouse, but I was confused about the concepts of SK and NK. From what I understand, in a DW, a natural key would be a column like foregin key in the table dimension, of…
-
7
votes3
answers520
viewsWhy do line breaks between elements cause space between them?
I was doing a few code organization here before commiting and realized that an indentation in HTML caused a problem in my layout, so I went to inspect to find out what I had done wrong besides…
-
7
votes6
answers2555
viewsHow to change the title element text?
Follows code: $(document).ready(function() { $('#1ano_card_title').text('R$20,00'); }); <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <h2…
-
7
votes3
answers4835
viewsIt is possible to concatenate numbers of type int
For example 10 and 12, concatenated would be 1012, this without being string, it would have to be the whole kind, you can do it?
-
7
votes1
answer1414
viewsMake mysql query with INNER JOIN between different mysql servers
How could you make a query with INNER JOIN between different servers, as exemplified below: SELECT serverA.clinte AS CLIENTE, serverB.enderecoCliente AS ENDERECO FROM 127.0.0.1.dbo.cliente AS…
mysqlasked 6 years, 8 months ago Chefe Druida 1,086 -
7
votes2
answers743
viewsThree points in the parameter of a function in a class, what is it for?
I was inspecting a class of a phpoffice vendor called phpspreadsheet and found the following function in the module Calculation.php... is not really a problem, but I would like to understand the…
phpasked 6 years, 8 months ago Rodolfo Estima Rodrigues 93 -
7
votes2
answers2928
viewsWhat’s the difference between For, Foreach and Find in Javascript?
What is the difference between the 3? For, ForEach and the Find
-
7
votes2
answers1064
viewsLambda functions in C++, when to use and what are the advantages?
When choosing to use a lambda function or a normal function, and what is the advantage of using a lambda function compared to a normal function? There is the call price of a function in a lambda…
-
7
votes4
answers1976
viewsRemove numbers at the end of a Regex string C#
I have a string that contains the name of some records. Examples : string nome = "MARIA APARECIDA DE SOUZA MOURA 636598241"; string nome = "MARIA APARECIDA DE SOUZA MOURA 2018"; I would like to…
-
7
votes2
answers327
viewsAfter all, is Java a platform or a programming language?
I see various materials referring to Java as a technology (platform) and others as a programming language.
-
7
votes3
answers145
viewsHow to embed one library into the other?
I have created a C++ game development library. Only my library needs another to display the images on the screen, the SDL2. So every time someone wants to use my library, they would have to link to…
-
7
votes2
answers3051
viewsOpen link in a new tab without target or window.open
I have a function that does a redirect: vm.pagarUpload = function() { $http({ method: 'POST', url: API.url + 'app/service.php?t=pagarUpload', data: { nome: vm.nomeUpload, email: vm.emailUpload, cpf:…
-
7
votes1
answer144
viewsThe __fastcall, necessary or not?
What is the usefulness of using __fastcall in the C function call++?
-
7
votes2
answers195
viewsLINQ query with sum
I have the following appointment at LINQ var dados = _db.Contratos .Where(a => a.Adesoes.Any(b => b.Pago)) .Select(a => new { Contrato = a.Numero, ValorTASenior = a.Adesoes.Where(b =>…
-
7
votes2
answers936
viewsWhat is the @media selector in CSS for?
I’d like to understand what the dial is for @media in CSS, as I have found in several codes and wanted to know if you have a specialty.
-
7
votes2
answers957
viewsWhat is the way to truncate a string in Csharp?
I have a scenario where I have set the maximum size of a field. I want to cut that amount to the limit. I am doing this through the Substring, but returns an error when I have a character of smaller…
-
7
votes1
answer16562
viewsRegex inside SQL Server
How to recover fields with the following pattern? a111/1111 or a111_1111 or a111-1111 or a111+1111 where: a = some letter of the alphabet; 1 = any digit of 1-9; I rode a Regex that is working…
-
7
votes6
answers1015
viewsHow could I highlight the radio button that is selected?
I own this radio group which serves to specify the severity level of a given occurrence, using the colors to classify the level. Behold: <html lang="en"> <head> <meta…
-
7
votes1
answer535
viewsHow does atan2 function?
I have the following scenario: The angle should be chosen so that it always points directly to the mouse. Find the angle relative to the X axis (then 0 is straight to the right and PI/2 is straight…
-
7
votes3
answers12885
viewsHow do you know what language a program was written in?
I downloaded a program on Windows, and in it I can not get information about which language was programmed. There is how to know?
-
7
votes1
answer5112
viewsHow to detect what are the common points between two circles?
I need assistance for the following program: Receive from the keyboard the equations of two circles: c1= X^2+y^2+ax+by+c=0 c2= X^2+y^2+a2=x+by+c=0 and show if the circles have points in common,…
-
7
votes2
answers17539
viewsCan’t bind to 'ngModel' Since it isn’t a known Property of 'input'
I’m with [(ngModel)]="cliente.nome" this code keeps generating the error of: Can't bind to 'ngModel' since it isn't a known property of 'input'. ("="col-md-4 control-label" for="idNome">Nome:…
-
7
votes3
answers3104
viewsWhy does GROUP BY not work with Mysql in this case?
I am using the Mysql language and am trying to group a table of professions with the GROUP BY through the consultation below. SELECT name, occupation FROM OCCUPATIONS GROUP BY occupation; But I get…
-
7
votes2
answers6139
viewsHow to install . NET Core packages from Nuget using VS Code?
I am using VS Code to develop a . NET Core project and would like to know how to install packages in Nuget on it. In Visual Studio, there is a specific terminal for this, the Package Manager…
-
7
votes1
answer181
viewsIs the "Row ID" equal to the primary key?
The function Insert of Android returns a row ID according to the documentation, the Row ID of the Newly inserted Row, or -1 if an error occurred To row ID corresponds to the primary key, ID, if…
-
7
votes1
answer149
viewsWhat happens if a binary search does not find the element?
What happens if a binary search does not find the element? It goes into loop? What is the best way to finish the execution?
-
7
votes2
answers70
viewsWhy does the return of the linear search for the element not found have to be -1?
Why should I return -1 at the end of a linear search if the element was not found? int linearSearch(int[] list, int size, int key){ for(int index=0; index<size; index++) if(list[index]==key)…
-
7
votes2
answers74
viewsWhat is the best type to store area, volume, perimeter?
Decimal, Numeric or Float. What is the best option for storing area or volume? I would use Decimal, but I would like to see the opinion of others as well. I guess not, but the right guy or the next…
-
7
votes1
answer5602
viewsWhat is the meaning of the acronyms SISD, SIMD, MISD, MIMD? What is your relationship with programming?
In some answers and questions I see quotations to these acronyms. They usually fit in the following table: | Single data | Multiple data Single instruction | SISD | SIMD Multiple instruction | MISD…
terminology parallelism architecture-computersasked 6 years, 11 months ago Jefferson Quesado 22,370 -
7
votes4
answers1768
viewsHow to generate a serial key that contains a prefix in the first 5 characters?
I have a script in PHP that generates a "serial key", but I need this script to generate this "serial key" with a pattern at the beginning, as if it were a prefix. The code I already have is:…
-
7
votes3
answers845
viewsHow to declare a constant in Ruby?
How to declare a constant in Ruby? In other languages I do something like: const CONSTANTE = 1024 And CONSTANTE cannot be changed at runtime. But I can’t find anything like this in Ruby.…
-
7
votes4
answers2632
viewsWhat is the equivalent of CSS media queries in Javascript?
When I want to apply certain style according to screen size, I usually use CSS media queries. Example: @media only screen and (max-width : 768px) { .container { width:960px; } } I wonder if in…
-
7
votes2
answers684
viewsUse of interfaces in domain classes?
The project analyst I’m working on as a C# programmer vigorously defends the concept of SOLID in development. And it says that one of the requirements to use it is to have interfaces for everything.…
-
7
votes2
answers1249
viewsReturning function string directly and with array
What works: void *teste(); int main () { printf("\nRESULTADO: %s\n", teste()); return 0; } void *teste(){ return "Ponteiro"; } What goes wrong: void *teste(); int main () { printf("\nRESULTADO:…
-
7
votes1
answer8313
viewsjQuery Mask plugin for CPF
I would like to know what I am doing wrong. I am using this plugin https://github.com/igorescobar/jQuery-Mask-Plugin to try to apply a cpf mask (need to be through CDN) but when I enter the data in…
-
7
votes2
answers1311
viewsWhat is the "Pointer-Events" property for?
I was researching a way to style the little arrow <select /> and came across a solution that used a <label> with the value pointer-events: none. I wonder what that’s for pointer-events…
css3asked 6 years, 12 months ago Wallace Maxters 102,340 -
7
votes1
answer2667
viewsHow does it work to use a vector of type struct ? (C++)
I would like help to understand how it works to declare a vector of type struct. In the example of the code below I create the struct configcarros and I would like to create a vector of the type of…
-
7
votes1
answer121
viewsIs it possible to change more than one record at a time?
That is the code: UPDATE PESSOAS SET COR = ('Pardo') WHERE ID = 1; But I have 2 more records to do the same procedure, I could do everything at once adding the ID?…
-
7
votes3
answers1500
viewsWhen to use blank lines in a Python program?
Skipping lines is one of the aspects that make a program well indented? If so, what is the criteria used to skip lines?
-
7
votes3
answers135
viewsWhy 1 2 is 3 and why when I display 0x33 appears 51 and 022 appears 18?
Because that: echo 1 ^ 2; is equal to 3? And why that: echo 0x33, ' birds sit on ', 022, ' trees.'; is equal to this: "51 Birds sit on 18 Trees" ?…
phpasked 7 years ago Julio Henrique 4,352 -
7
votes1
answer82
viewsHow important is it really to validate codes by W3C?
I understand that validating code can be important and mainly help those who are starting to correct errors and be more informed about obsolete elements in current language versions. But how much…
-
7
votes2
answers2160
viewsHow to install Pip for a particular version of Python?
I have Ubuntu 17.10 installed and it came with Python 2.7 and 3.6. I installed Python 3.4 but I can’t install Pip on it, it always goes to the latest version with pip3 which is 3.6 How can I install…
-
7
votes1
answer7312
viewsWhat’s the difference between a charge test and a stress test?
I read it here that the stress test is (my emphasis) performed to submit the software to extreme situations. Basically, the stress test is based on test the limits of the software and evaluate its…
-
7
votes2
answers254
views"Deep Copy" without importing the "copy" module?
Is there any other way to perform a "Deep Copy" of Python objects without using method deepcopy() of the standard library copy ? The code below could be written differently ? import copy class Xpto:…
-
7
votes1
answer98
viewsGit, Doubt when I commit
I have a question when using git, and would like your help. I have the following situation: I’m developing a new feature in my application, but I haven’t completed it. Let’s assume I’m developing it…
-
7
votes1
answer761
viewsVuejs: how to check all checks and count your quantity?
The problem is this: I have several lists with a title, where it serves as a "select all" but it should select only the checkboxes that are your "brothers". But I can’t check them in the "select…
-
7
votes1
answer398
viewsFind the last day of the month
At the beginning of the month I always need to calculate the age of people within a certain database. I always consider the last date of that month, for example: in September I calculated the age…
-
7
votes1
answer1156
viewsWhat is the functionality of the "heapify" method of the heapq module?
What is the method for heapify library heapq python? How could I use it in a list, for example?
-
7
votes2
answers275
viewsDetermine how many "islands" a matrix contains
I need to create a program that receives as input a matrix size (up to 300 by 300) and the matrix values that will be stored (can be only 1 or 0). I must determine the number of "islands" (clusters…
-
7
votes2
answers1329
viewsJAVA: What is the difference between Outputstream and getOutputStream()?
I’m studying java and came across several classes of input and output data, but I had a doubt in the difference between OutputStream and getOutputStream(). From what I understand, the…