Most voted questions
150,413 questions
Sort by count of
-
4
votes1
answer93
viewsData Cleanup - SQL Server
I’m working with a column of phones, but some lines have two phones separated by ";". 99999999 ; 99999222 12345678 ; 87654321 40028922 123123456 ; 1122334455 My goal is to put duplicate phones on…
-
4
votes2
answers186
viewsHow to make a video start and restart automatically?
Good evening, I’m making a website and in the middle of it I put a video that I want to start and restart automatically without the user having to click the play button or the restart button, can…
-
4
votes2
answers284
viewsIs it safe to leave crucial information in an Hidden input in HTML?
I can leave, for example, the ID of a user q I will do select in the hidden, and use it (the id) without having to confirm that that ID belongs to the logged in user? In other words, the user can…
-
4
votes2
answers318
viewsSum values from different JSON indices
I have an API that a chunk of it returns the following array, and for each index has an object slas that brings all carriers: [ { "itemIndex": 0, "selectedSla": "Expressa",…
-
4
votes2
answers7739
viewsFlutter - Change internationalization of date names
I am new to Flutter and I would like to know if it is possible to automatically translate the names of the days of the week, months, etc ... encompassing every application?
-
4
votes2
answers884
viewsProblem with currency percentage and rounding
How to maintain monetary values with only 2 decimal places when performing percentage operations? Example: Total value: R$ 377,17 Percentage divisions: 33%, 33% and 34% Problem: the sum of the value…
-
4
votes2
answers439
viewsSize of type int with short and long prefixes in C
My architecture is Unix, so by default the size of type int is 4 bytes, so far so good. In Luis Dama’s book he states that short and long prefixes solve the problem for portability of programs…
-
4
votes2
answers211
viewsWhy is it wrong when I try to assign a value to the variable within a conditional operator?
I have the following code that should receive 4 numbers and tell which one is the largest. #include <stdio.h> int max_of_four(int x, int z, int y, int w); int main() { int a, b, c, d;…
-
4
votes0
answers118
viewsHow can log messages be sent in a COBOL application?
Considering the Mainstream environments with COBOL Enterprise for z/OS and a generic Linux environment with Wildebeest, both should trigger error messages, exceptions and system logs. Considering…
-
4
votes1
answer60
viewsA - Create control column from two other columns
Expensive, I have a very large database with the following feature: ORIENTAÇÃO VOTO Sim Sim Não Sim Sim Não Não Não I would like to create a third column in which if the values hit, 1 will appear.…
rasked 5 years, 3 months ago Guilherme Marques 89 -
4
votes2
answers72
viewsKnow which values within the IN condition are not linked to the table
Hello, I have a very simple table as an example: I also have a query that checks the existing values within the IN, example: SELECT * FROM tLetras l WHERE l.letras IN…
-
4
votes4
answers178
viewsDoubt about React (props or state)
Good afternoon I’m beginner with React, I started reading his documentation and I had a little question: would like to know the difference between prop and state? And when I know when to use a prop…
-
4
votes2
answers187
viewsHow to remove characters q, ç and g from the HTML <u> tag in Regex?
I am converting HTML to doc, and I came across a very specific problem. Words that contain the letters q, g and ç when underlined, are getting an unwanted result. I thought I’d settle this way:…
-
4
votes4
answers4308
viewsLoad component only after finishing HTTP requests
My application uses angular-6-json-schema-form to create and manage forms dynamically. Now I would like the select Component, for example have your data coming from some REST source: My attempts:…
-
4
votes1
answer196
viewsDoubt about React in Javascript
I am a C programmer and recently I started studying Javascript, I already have a notion of programming but as I come from a language relatively "simple" I am facing difficulties in understanding…
-
4
votes3
answers290
viewsHow to make compatible objects coming from two different classes, derived from the same interface?
I have an interface (I’ll call it ICliente) which is used as a contract between an application and a DLL. public interface ICliente { int Id {get; set;} string Nome {get; set;} ... } This interface…
-
4
votes2
answers278
viewsMatrix or Vector, huh?
What are the advantages of using a matrix, since the vector is easier to use and does the same things?
-
4
votes1
answer83
viewsIs it possible to use logical operators within "Cout"? - C++
I would like to know if you have how to use logical operators and/or ternary operator within the Cout, as well as is possible within the printf. int main () { int n = 5; //Como fazer isso (Funciona)…
c++asked 5 years, 3 months ago Vitor Carlos 120 -
4
votes1
answer799
viewsHow to export classes, methods or constants in a Python module
Hello, I’m starting to work with Python and have a good experience with Typescript. In Typescript, I have a habit of creating modules when I need to organize my code, so: <rootDir> domain…
-
4
votes1
answer147
viewsInjection of dependencies into functions and not classes. Is it "wrong"?
It is not new that the concept of dependency injection is almost directly related to classes. Tell me "dependency injection" and I can imagine the following: // services/UserService.ts export…
typescript pattern-design encoding-style dependency-injection iocasked 5 years, 3 months ago Luiz Felipe 32,886 -
4
votes5
answers1315
viewsJoin two events that have the same function
I am new to programming and I was creating an html code, in which I am calling JS functions in my own input. Anyway, I have this excerpt, in my input code: <input type="text"…
-
4
votes3
answers1332
viewsFormat DATETIME SQL Server
I wonder if you have any way to change the Datetime format in SQL Server EX: 2019-07-09 11:42:00 for 09-07-2019 11:42:00
-
4
votes4
answers1892
viewsError React-Nactivate-Esture-Handler in version React-Native 0.60.0
Guys, I have a problem with React Navigation after the last update of React-Native for version 0.60.0 The react-native-gesture-handler is not compatible because of a autolink that the new version of…
-
4
votes1
answer744
viewsWhat are the dangers of keeping the Oauth2 token on the frontend?
I believe I am paranoid, but I could not find any situation similar to mine (if you know pass me the link, I am grateful) so I wanted to ask this question to get a definitive answer. Before the…
-
4
votes1
answer57
viewsWhat is this :Object = ""?
I found an excerpt of code that I didn’t understand what it does. I searched but did not find an answer (or did not use the correct terms to search). Code: <div v-if="returnedObject"…
htmlasked 5 years, 3 months ago user133918 -
4
votes1
answer141
viewsBring value from another cell to the formula without being String
The formula in excel PROCV vertically search for a value in a specific table of an X column. Having said that, I have the following problem with this formula: =PROCV(J7;JUL;6;JUL!C4:C35) With this I…
excelasked 5 years, 3 months ago Marcos Henzel 797 -
4
votes1
answer85
viewsWhy use parameter modifiers?
While writing functions and subroutines, we use parameters to interact with the function algorithm. These parameters can have several purposes, such as passing a value, a reference, or leaving a…
-
4
votes2
answers2190
viewsConvert string to float on C#
What I’ve learned so far when we want to use the command Console.Readline() to read data that the user type we have to perform a conversion when this data is not of the type string, I know the…
-
4
votes2
answers105
viewsHow do I treat a jQuery array (remove duplicates and prevent an item from appearing in 2 arrays)?
I have 2 arrays (like and notlike) and as I give like or notlike, it adds the item in the array, currently it is like this: //DEFINE ARRAYS like = new Array(); notlike = new Array(); //SE CLICA NO…
-
4
votes2
answers144
viewsWhere is the error in the leap year code?
I’m wondering where I went wrong in this code where the user types a year and appears on the screen whether that year is leap or not. function calcularBissexto() { var bi =…
-
4
votes0
answers134
viewsHow to solve the Delaunay triangulation problem?
I have a problem involving Delaunay triangulation. I need to perform a triangulation of some circles. However, I need to remove some triangles that are invalid for me, because the triangulation is…
-
4
votes1
answer681
viewsGet the current date and time here from Brazil to enter in the database
I have a table that records the login and logout of users on the system. However, when the login is done, the date and time stored are not being added according to the time zone of Brasilia. Follow…
-
4
votes1
answer516
viewsWhat does & Python mean? What is your name? is an operator?
I was looking over the loop while in Python, and everything was going well, but suddenly I see: "&", that even searching I could not find anything about. i = 0 while i < 5 : print(i) i =…
-
4
votes1
answer199
viewsHow to read an XML that is inside the project?
I’m creating a web application with .NET Core Razor and I need to get my code to read a file XML. I can already get him to read this XML, but with another path, which is out of my project. That is,…
-
4
votes2
answers234
viewsVariable declaration assignment in C
Is it necessary to assign a value to a variable in C once we declare it? I ask because an old programmer told me that it is necessary, because, if we do not declare at first, the compiler could…
-
4
votes1
answer84
viewsEntry problem in loop comparing string
I can’t make it into the loop using only the char 'Anunciar', when you put something in, it starts the loop. What should I do? #include <stdio.h> #include <stdlib.h> #include…
-
4
votes2
answers1851
viewsWhat is the problem of using [n]varchar(max)?
Why the practice of using [n]varchar(max) can cause problems? In my scripts whenever I don’t really know what the length of a string and to prevent problems, I have used nvarchar(max). A few days…
-
4
votes3
answers2072
viewsHow to join two data.frames of different sizes per column in R?
Suppose I have two different date frames.: print(DADOS_1) linha coluna1 coluna2 1 1 3 2 3 4 3 1 1 4 2 2 print(DADOS_2) linha coluna3 coluna4 1 3 1 2 2 2 3 5 0 4 2 4 5 1 3 6 3 1 I need to unite…
rasked 5 years, 4 months ago Izak Mandrak 1,059 -
4
votes1
answer102
viewsUse of "global" with mysqli leaves the connection open?
In this form of access to the bank with mysqli I was in doubt whether two connections are opened, and whether, after closing the $stmt, if there is still a connection always open. The use is…
-
4
votes3
answers5041
viewsHow to make a project public to private on Github?
I have a public project on the free account, has how to make it private?
githubasked 5 years, 4 months ago Ederson Costa 59 -
4
votes1
answer654
viewsIs it possible to list 2 tables from 2 different banks?
I’m looking to relate 2 different database tables. I’m using SQL Server SSMS 17.9.1. TBL1 in DB1 TBL2 in DB2 Scenarios: Both banks are on the same server; Database 1 is on my server and database 2…
-
4
votes1
answer1544
viewsMulti-threading in PHP applications
There is some Pattern design to perform the execution of multiple processes and the collection of results in it? Scenario: I have a large volume of data (> 200000 entries), have to perform…
-
4
votes1
answer92
viewsWhat are Renderless Components?
What exactly is the utility of a Renderless component? Is there any real advantage to its use?
-
4
votes1
answer461
viewsHow to versioning the REST API URI address?
I’m looking at ways to view the Uris from a REST Spring API because if they launch a new application, the REST API will meet the new application and support the old application requests for a…
-
4
votes2
answers476
viewsDiagonal edge at the corners of the page
I am studying about diagonal edges and intend to apply an effect like this on my page: Until now I found little material about it and the closest was this: html, body { height: 100%; } * {…
-
4
votes2
answers16832
viewsReact Hook useEffect has a Missing dependency: .... Either include it or remove the dependency array React-Hooks/exhaustive-deps
I’m getting the following warning when using the hook useEffect: React Hook useEffect has a Missing dependency: 'connect'. Either include it or remove the dependency array…
-
4
votes2
answers108
viewsWhy doesn’t the <p> tag inherit your father’s color?
I have the following very simple code <!DOCTYPE html> <html lang="pt-br"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width,…
-
4
votes3
answers146
viewswrite json sentences html
I tried to make a mini database in JSON: [ { "titulo": "Exemplo", "localizacao": "Rua de Exemplo", "texto": "Texto grande de exemplo para usar como teste" } ] Then I created a general variable for…
-
4
votes1
answer213
viewsDouble type variable precision problem
I’m solving the 1021 issue of the Judge URI, but I have a problem with the accuracy of my input value. Follow the base code: #include <iostream.h> int main(){ double a; cin >> a; } The…
-
4
votes5
answers815
viewsCheck if URL has string
hello, I am making a code using Typescript and I need to do a check to know which page the user is on, I am doing this check as follows: const url = window.location.href; if (url.indexOf("/Menu")) {…