Most voted questions
150,413 questions
Sort by count of
-
4
votes3
answers98
viewsSort select displaying something at the end after sorting
I have a table called Tabela1 and another call Tabela2: Tabela 1 Tabela2 Indice, pessoa_id sts, pessoa_id The index goes from 0 to 10, and sts can be ON-LINE, OFF-LINE OR ON-LINE-PAUSADO. I wish…
-
4
votes3
answers1018
viewsConvert to date type 'yyyy-mm-dd'
I have a problem trying to modify the type of date that appears to me in two columns of a table of mine. This is my code: declare @top10reclamacoes varchar(max) declare @html varchar(max) declare…
-
4
votes1
answer134
viewsConcatenate files according to the order of the list C#
I have a program that concatenates PDF files. First it does the SPLIT of all pages of each file and store them in a temporary folder. When I press the end button, it calls a function GetFiles() that…
-
4
votes1
answer51
viewsHow to fade more than one element in the result of an Ajax
I am making a file for loading new news, however, new news appears quickly without a smooth entry. I know you can use something like this:…
-
4
votes1
answer415
viewsLoading before displaying content
I need to make a gif animation before I load my graphics, and after the upload is done, the animation stops appearing, I’m using Highcharts to create the graphics, but I have no idea how to do this…
-
4
votes2
answers766
viewsIterate through multiple Xmls files with Python
Hello, everybody. Imagine the following situation: I have a directory with several Xmls Nfe files and need to move them by issuer (CNPJ) and/or issue date to another directory. I’ve been able to…
-
4
votes1
answer117
viewsResize a vector in Matlab
Good afternoon. Here’s the following, I used the following function to create an empty array that later stores certain values requested from the user: fragil = zeros(1, 10); %criaçao do vetor idF =…
-
4
votes1
answer83
viewsHow does the compiler know that class x is an extension?
In this example, I create a class extension method DateTime in the c#: static class DateTimeExtensions { public DateTime PrimeiroDiaDoMes(this DateTime data) { return new DateTime(data.Year,…
-
4
votes3
answers1067
viewsIndex or key in Javascript object
I have this situation: const movies = { 1: { id: 1, name: 'Planet Earth', }, 2: { id: 2, name: 'Selma', }, 3: { id: 3, name: 'Million Dollar Baby', }, What would these numbers be 1, 2 and 3 with two…
-
4
votes2
answers613
viewsNodejs - Mysql Error: Too Many Connections
I recently made a refactor of my code to adopt the MVC standard, because it was very disorganized! However, an error called "Too Many Connections" started to appear. This error causes my Node-mysql…
-
4
votes1
answer113
viewscss responsive misaligned
Hello, everybody! I have an image gallery coming from a database that defaults some items when the screen resolution is reduced to 1150px. This is done when the title under the image is too large…
-
4
votes1
answer315
viewsSilverlight Lightswitch - [Noelements] Debug resource chains not available
I am responsible for supporting a web platform made in Silverlight, in which I am not allowed to change anything in its code. The customer has complained that sometimes there are some strange…
-
4
votes1
answer110
viewsTo what extent do you use frameworks?
In general, to what extent and when we should use frameworks? It is important to previously learn "raw" language, or you can start learning through frameworks? What are the disadvantages of using…
-
4
votes2
answers13159
viewsError: Access to Xmlhttprequest at 'file://...' from origin 'null' has been blocked by CORS policy
Hello, I am trying to add an html file inside another page through a directive. And give this error: Access to Xmlhttprequest at 'file://.../Angularjs/Formul%C3%A1rio%20Simples/views/client.html'…
-
4
votes3
answers2746
viewsHow to write HTML as text within a div?
For example I have the div: <div class="option" id="resposta-1" onclick="mudaConteudo()"></div> I would like to write without html recognizing as a tag but rather a text: <div…
-
4
votes2
answers97
viewsSearch for lower values of one field according to values of another
I have this data entered in my table. mysql> SELECT * FROM db_cotacao; +----+------------+-------+------------+--------+---------+ | id | data | valor | validade | idforn | idativo |…
-
4
votes1
answer704
viewsHow to extract the week number of the month in R?
I’m having trouble extracting the week number of the month from a specific date. Example: hoje = Sys.Date() print(hoje) [1] "2019-02-11" In the example of the date above, hoje would be the 2nd week…
-
4
votes3
answers4397
viewshtml file does not identify CSS
I went for a style on the page and HTML does not use the CSS file. First I put it like this: <link rel="stylesheet" href="main.css"> <link rel="stylesheet" href="bootstrap.css"> And on…
-
4
votes2
answers370
viewsDifference between scroll speed and the speed the image is revealed using background-Attachment: Fixed
Is there any way I can control or create a difference/delay between the speed of scroll the mouse and the speed that an image in background using background-attachment: fixed appear? CSS: #parallax…
-
4
votes2
answers987
viewsHow to use one Model Class values in another in Django?
Talk guys, I haven’t found a north or how to research on, so I’m going to go to the O.R.. I have the following in my models.py, Ingredient and Product: class Ingrediente(models.Model): produtor =…
-
4
votes1
answer578
viewsHow to generate a subquery in Line/EF
Hello, everybody. I have a situation, where I concatenate some subquerys Sqls that are concatenated into other Sqls queries, to return some values. I have several functions like these, because I use…
sql-server entity-framework linq linq-to-entities linq-to-sqlasked 5 years, 8 months ago Fabiano Richetti 41 -
4
votes3
answers342
viewsAdd a new label to every button click
This is probably a very simple question, but I’m new to programming and I need a little help. I need every time I click a button a new label appears, but you need to add that label in a way that I…
-
4
votes1
answer661
viewsJava spring: Infinite recursion (Stackoverflowerror) error
I’m having trouble carrying out the method list of translations of the document, I’m not understanding the reason for the error, follows code: Translation.java @Getter @Setter @NoArgsConstructor…
-
4
votes1
answer715
viewsHow to pass parameters for IN clauses in Jasperreports?
I have a question in the passage of a parameter in Ireport. I need to pass a list as a parameter. Example: In SQL code the query looks like this: SELECT * FROM TABELA WHERE COD IN (1,2,3,4) In…
-
4
votes2
answers192
viewsAdd and Remove Field through Checkbox
I have a form where I select colors for the page, and in it there is a checkbox with the option of usar padrão do site, the moment I click on this checkbox it removes the field, but when I uncheck…
-
4
votes1
answer2934
viewsHow to pass parameters on events in React?
Assuming the code below (line 15): import React from 'react' import ReactDOM from 'react-dom' const items = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] function App() { function handleClick(item) { alert(`Você…
-
4
votes1
answer1360
viewsLatitude and longitude average by CEP
I need to find the starting point and end of CEP latitude/longitude. I need to analyze on average a latitude and longitude and this initial and final parameter would show whether this coordinate is…
-
4
votes0
answers216
viewsFile config Serilog Sink Asp.net Core
I am using the Serilog log log library on ASP.NET Core 2.1 I am using based on the Serilog manual: https://github.com/serilog/serilog-sinks-mssqlserver Normally the configuration file is in…
-
4
votes1
answer649
viewsPayment cannot be processed because don’t have Secure Connection.SSL Certificate
I am using Ionic 3 with the plugin of the marketPago and when I will complete the purchase it returns me this error, everything takes into account to be an error caused by the Ionic run on a…
-
4
votes1
answer371
viewsHow to use letters instead of numbers within the LETTERS array?
The vector LETTERS works as follows: LETTERS[1:10] [1] "A" "B" "C" "D" "E" "F" "G" "H" "I" "J" Like adjust this vector to insert letters instead of numbers? Something like: LETTERS[A:J] Error:…
-
4
votes1
answer123
views'dot Plot' relative to mean with standard deviation
Good morning In the attached graph, the points refer to the value of the average selectivity of each species. On this chart, I’d like to: 1) have larger font sizes of smaller body mass <9kg…
-
4
votes3
answers470
viewsLeft Join with LINQ
I have two tables that come from different repositories. One comes from an API and I have one that comes from BD. I already have the two tables mapped to classes. I want to select all records from…
-
4
votes2
answers210
viewsImprove function performance that determines whether it is palindromic
Objective: to optimize performance Description of the problem: I have a function that returns me if the word is a palindrome with true otherwise with `false, until then quiet, but need to improve…
-
4
votes2
answers2210
viewsHow to concatenate a char into a string?
I’m trying to copy the char E for the component char of my struct No: void push(Pilha* p, char E) { No* novo = (No*)malloc(sizeof(No)); strcpy(novo->simbolo, E); novo->prox = p->topo;…
-
4
votes2
answers60
viewsArray of checkbox elements
Test scenario Dynamic form: function addReg(){ const template = $('#formX > div').last(); const novo = template.clone(); $(template).find('select').each(function(i) {…
-
4
votes2
answers170
viewsComputer architecture with bat
You have the following bat code: if %PROCESSOR_ARCHITECTURE%==X86 (echo 32 bits) else echo 64 bits This code takes the architecture of the processor, but I wanted to take the architecture of the…
-
4
votes1
answer878
viewsContact Form does not send a message - UOL Host
The form even picks up the data after clicking on Ubmit, sends the user to a thank you page but the message does not reach the destination, which is my email. HTML: <section id="contato">…
-
4
votes1
answer83
viewsWhat is the need of a while in a producer-consumer?
I’m used to programming using this while in problems involving synchronization of threds because that’s how API’s usually ask you to do it, but I’ve never wondered why it is. I am taking a course of…
thread multithreading operating-system synchronizationasked 5 years, 9 months ago Michael Pacheco 1,657 -
4
votes1
answer129
viewsHow the XPATH contains function works
I have a xml thus: <?xml version="1.0" encoding="UTF-8" ?> <A x1="ab"> <B x1="abb"> <C x1="cc"> Marta </C> <B/> <B x1="be"> <C x1="be"> João…
-
4
votes1
answer587
viewsWhat is Quirks Mode and Browser Standards Mode?
Time and again I hear the term Quirks Mode, but I never really understood what it means or what it implies in rendering the HTML / CSS document. What happens for the page to enter Quirks Mode, and…
-
4
votes2
answers602
viewsReturn Zero in Function Mysql if query is NULL
I have this function: BEGIN RETURN( SELECT valor_desconto AS desconto FROM ItemCardapio WHERE id_produto = idProduto AND id_cardapio = idCardapio ); END How do I return 0 if the consultation is…
mysqlasked 5 years, 9 months ago Rafael Silva 944 -
4
votes2
answers1399
viewsIs there a difference between flex-Basis, flex-Grow and width? What is the recommendation for using them in a Flex container?
I have a technical question about using the property flex-basis, flex-grow and width. Note that in the image below I got the same result using the 3 properties. Then I was in doubt, if the 3…
-
4
votes1
answer75
viewsDoubt query in SQL Server - Information Association
My friends, good night! I need to perform a query in a database using SQL Server and I got stuck in a problem so I ask, please help from you. Here is an example summary of the problem: I have a…
-
4
votes3
answers275
viewsHow to configure pygame in English?
I’m playing a game with pygame. I want to show a text in Portuguese on the screen, but the same exchange "ç", "ã", "[", and "<" for "?" (question mark). import pygame class TelaInicial(): def…
-
4
votes1
answer903
viewsC# Read Excel Spreadsheet
Hello, I have 1 problem reading an excel spreadsheet, ListaNomes.Add(new Entidades() { GrupoFornecParceiro = rd["Grupo do Fornec./Parceiro+"].ToString() }); when it goes to Add the value of the…
-
4
votes1
answer89
viewsWhat is a loose object?
From time to time my versioning tool tells me there’s something loose in my branch. Fortunately the tool always tightens my loose ones, but it gets the curiosity. Why does Git loosen me objects?…
gitasked 5 years, 9 months ago Oralista de Sistemas 23,115 -
4
votes2
answers52
viewsHow to search for specific data on the same line?
I’m reading a file XML where I have to take the values of certain data that are on the same line, example: I have the following line: <"Row GenericKitName=\"12000\" QueryID=\"999\"…
-
4
votes2
answers299
viewsSelect Laravel Entering Next Record Alone
Good evening, I have a project in Laravel and I’m having the following difficulty: I have a controller that retrieves data from my database, has a variable that receives string and this string…
-
4
votes1
answer241
viewsWhat is the advantage of using the latest version of . NET Framework?
By default my Visual Studio selects . NET Framework 4.6.1 when starting a new project, but is there any advantage in selecting the latest version? (4.7.1)
-
4
votes1
answer4069
viewsWhat are jQuery’s AJAX beforeSend arguments for?
I usually see the use of the function of beforeSend: of jQuery.ajax() being used in a simple way, such as emptying a div before the request: function enviar(){ $.ajax({ beforeSend: function(){…