Most voted questions
150,413 questions
Sort by count of
-
4
votes1
answer410
viewsGolang - Doubt about pointers
I have a struct called Calculator, with two properties: version and author. To be able to instantiate this struct already initiating these methods, since Golang has no constructors, the various tips…
-
4
votes2
answers2531
viewsAPI request mails returning null
I have a problem with my code c#, I am trying to consume the Post Office API but the data is null. I found another tutorial on the internet that said to instantiate the class trace and grab the…
-
4
votes1
answer849
viewsFirebase database modeling: n:n relations
I’m studying firebase that uses Nosql and I came up with a question when watching this video: Converting SQL Structures into Firebase Structures - Firebase Database for SQL Developers #2 In it the…
-
4
votes1
answer364
viewsWhat is the difference between viewDidLoad and awakeFromNib?
What is the main difference between viewDidLoad and awakeFromNib in development on Swift for iOS?
-
4
votes0
answers210
viewsExample of Scheme respecting the 3FN?
When studying about 3FN I came across 2 interesting examples and I wondered if when making a small change, the examples would continue to meet 3FN. Explanation about the concept of 3FN Explaining…
-
4
votes1
answer201
viewsWhy do normalized schematics up to 3FN not have N:N relationships?
Explanation of the concept I believe that by definition a database schema is found in 3FN, when it is in 1FN,2FN and nay has transitive dependency. Transitive dependence is when an attribute NONKEY,…
-
4
votes2
answers1472
viewsHow to use Javascript to lock a keyboard key and display alert in the field about the recommended key?
How do I make a Javascript to block comma usage , within the field and at the same time also make an informed notification that point only . is allowed and also check if what the user has typed is…
javascriptasked 7 years ago Bruno D.assis 305 -
4
votes1
answer175
viewsProblems with scanf and printf in C++
I have a program in which I need to store an array of a music class that generates a list of the songs and their characteristics. The problem is that at the time of the printing method it generates…
-
4
votes2
answers351
viewsJoptionpane in the foreground
I have an app that uses one JOptionPane to show an error message, however I would like the JOptionPane always appeared in the foreground. JOptionPane.showMessageDialog(null, "Usuário ou senha…
-
4
votes1
answer660
viewsHow to convert an object vector to another object?
I wanted to know if there is any simple way to convert a vector of objects A to a vector of objects of type B, which follow the second structure: Object A { aId: number; aNome: string; aDesc:…
typescriptasked 7 years ago Felipe Avelar 9,507 -
4
votes3
answers269
viewsWhat would this Jquery code look like in pure JS?
This code snippet is to activate the . Nav class but in JS it has some options like: classList.toggle('active-nav') but to deactivate when clicking again on pure JS? follows script with Jquery!…
-
4
votes2
answers397
viewsHow do I search with Query Builder in Laravel?
I need to display the name of the doctor who requested a patient report, however, with Laravel I tried to show this information on View thus: {{laudo->paciente->medico->nome}} Then I…
-
4
votes1
answer114
viewsBind by SQL Server position using JS Node (MSSQL)
I wonder if it is possible to bind the parameters by position instead of the name using mssql in Nodejs. Ex.: //Por nome return pool.request() .input('input_parameter1', sql.Int, 10)…
-
4
votes1
answer144
viewsWhy does Oracle not have autoincrement?
Assuming that it is known that Oracle has the resources of the table quence. I would like to understand why they only recently implemented the autoincrement in Oracle, since it was a feature…
-
4
votes1
answer462
viewsWhat is the foreign key (SQL) for
For what I’ve been researching, when pulling the information of two tables in a database, JOIN is used, which has nothing to do with foreign key. So what’s the point of declaring a field as Foreign…
-
4
votes2
answers214
viewsList values of an array in a spinner, and when selecting an item print its value from another array
I have a spinner that lists the types of person (physical and legal - respectively Ids = 1 and 2) and would like when selecting one of them, to be printed in a Toast your ID. //array tipoPessoa…
androidasked 7 years ago Thyago Dias 465 -
4
votes1
answer90
views -
4
votes3
answers512
viewsJquery monitoring key sequences
I’m making a form, where data is entered by scanning barcodes (default code 128). After scanning each value, the handheld scanner is already set to give a <TAB> and go to the next field,…
-
4
votes2
answers890
viewsModal bootstrap does not appear when clicking button
<!DOCTYPE html> <html lang="pt-pt"> <head> <link rel="stylesheet" type="text/css" href="./DataTables/DataTables-1.10.16/css/bootstrap.min.css"/> <link rel="stylesheet"…
-
4
votes1
answer1667
viewsCreate strstr / Pointer return function in C
I am trying to redo the strstr function (look for a value passed by parameter in a text, find shows the rest) by account. This is my current code, it has already worked but I gave some miss click…
-
4
votes1
answer296
viewsDynamic graph does not update
I’m using the library Rgraph graphics HTML5, and should update dynamically together with the bank. However, I would like the last data imputed in the bank to be placed on the chart, so if I inserted…
-
4
votes1
answer1731
viewsEncode and decot URL
I have an application that I need to send links with user information, basic example below: https://www.meusite.com.br/[email protected]&token=token I want to encode the part…
-
4
votes2
answers170
viewsDoubt - Savechanges does not work, only returns 0
Follows code: using (var db = new Entities()) { var result = db. Tabela1 .Where(x => x.Id == 1) .Select(x => new SuaClasse { Coluna1 = x.Coluna1, }) .FirstOrDefault(); if (result.Coluna1 !=…
c#asked 7 years ago Matheus Miranda 5,375 -
4
votes1
answer681
viewsMutually exclusive relationship (MER)
I know there are several ways to implement this conceptual model, but I would like to know the best way (if there is one that stands out) Caption PK : Primary Key (primary key); FK : Foreign Key…
-
4
votes1
answer2558
viewsHow to select text columns in the editor?
I am editing some files with VS Code and need to select an entire column of file. For example: Insert Into Tabela (Data, Nome) Values (2017-07-05, 'Huginho') (2017-08-08, 'Zezinho') (2017-11-25,…
visual-studio-codeasked 7 years ago Jéf Bueno 67,331 -
4
votes1
answer5136
views"New" autoload from PHP 7
I would like to understand the "new" autoload of PHP, in it I can choose the name I want to put? For example, in the old one, it was __autoload. That in case, I can put autoload_de_teste ? Another…
-
4
votes2
answers60
viewsDiv doesn’t stick to the top?
I have a div that I would like you to hold to the top when the div has to touch the top. I tried to do this, resulted but the div continuous blinking. What’s wrong? SCRIPT $(window).on('scroll',…
jqueryasked 7 years ago I_like_trains 1,430 -
4
votes5
answers3132
viewsWhat is the difference between comparison operators on Oracle?
In Oracle there are several operators to make "different" comparisons, such as: <> ¬= != ^= Example: Select * from tabel where nomeTabela <> 's'; Select * from tabel where nomeTabela !=…
-
4
votes2
answers197
viewsHow to pass id to delete function
I’m creating a to-do list, I can create fields with tasks, and elements with javascript, but when I click the close button, the only field that disappears is the last one. I place the created…
javascriptasked 7 years ago user87737 -
4
votes2
answers4622
viewsWhat command using *ngIf to do a larger and smaller check
I’m using ngIF only to change the color of the object, but I’m needing to create one that the result.Mediatotal is less than 70 and greater than 50. What is the correct syntax to do this:…
-
4
votes1
answer4003
viewsRecursive binary tree and leaf sum
Friends I’m having trouble solving this exercise, and I don’t know how else to do it. I even implemented the tree with recursiveness, but I couldn’t leave the NODE empty and some leaves with number,…
-
4
votes2
answers407
viewsWhen I put input inside some div javascript does not work
I want to apply the css in a form but when I put the inputs inside some div javascript does not work See the code: In case when I type the email and the password was for the button to turn blue…
-
4
votes1
answer735
viewsLosing image quality while resizing in pygame
I have some pictures of cards in size 140x190 and am using the method pygame.trnasform.scale to resize to 105x143 which is a proportional value. But it is losing quality, while the images of the…
-
4
votes3
answers1776
viewsDeselect radio type input
I have two inputs of the kind radio. Follow the code below: <input type="radio" id="isgift0" name="isgift" value="0" class="arredondado" /> <label for="isgift0">Teste 1</label>…
-
4
votes5
answers1054
viewsHow to make each input stay on a separate line?
I have this HTML and would like each input stay in separate lines, in this case below I had 3 lines, one for each input. *{ margin: 0px; padding: 0px; background-color: #ccc; font-family: 'Arial';…
-
4
votes1
answer254
viewsHow to set up PHP FTP - Help
When using Winscp I perform the following steps: (fictitious data) hostname: bala.rimunivert.com.br username: zzzzzzz@rjozzz 000 after that he asks Gateway username: juliohenrique Password gateway:…
-
4
votes2
answers123
viewsHow to apply attributes of a parent Viewgroup to child in android studio?
How to make children of a Viewgroup inherit a parent attribute? For example, I would like to set up layout_marginTop="16dp" for all Textview daughters <LinearLayout…
-
4
votes3
answers106
viewsProblems closing menu by clicking links
Guys I made a website onepage is in this link, it has a fixed menu on the side that opens when it is clicked but is the following in these links there are anchors that when they are clicked the site…
-
4
votes2
answers256
viewsFunction javascript duplicating trigger by init method
I have a function in my main menu that, when clicked, starts a 'classe' for the sector in question, everything goes well, however, I need to start the same class again when someone goes back to the…
-
4
votes1
answer3377
viewsWhy is the use of ';' mandatory in the WITH clause?
I’ve always used the WITH in my consultations, however, I never understood exactly why is required the ';' before the clause WITH. The Error is very succinct, but it gives an idea that the WITH…
-
4
votes1
answer619
viewsHow to get a Mac-Address from a local network IP using . NET Core on Linux?
I already have tools that can identify the Mac-Address of my network devices, since the 'server' or the application is running on Windows and . NET Framework. I’ve been using the following: using…
-
4
votes1
answer135
viewsTour Virtual 360 - Google Maps
I’ve done some map integrations with the Google Maps API for Javascript in some customers, I checked that the types of maps conform to the basic map documentation are those below: roadmap- Displays…
-
4
votes2
answers932
viewsHow to pass a large list of objects to API in C#?
I am passing a list of objects to my API in C#. When the list size is smaller, everything happens as it should. When the list is a little longer the list arrives empty in my API. When the list is…
-
4
votes4
answers882
viewsUpdate the data in the database without changing the others that already exist - PDO
Hi, I’m trying to create a page to change the registration data with mysql database, but it should only update the data that are filled and not change the other data if it already exists in the…
-
4
votes1
answer533
viewsGet the frequency from a vector in the frequency domain
I was looking at the following topics: https://stackoverflow.com/questions/7674877/how-to-get-frequency-from-fft-result…
-
4
votes4
answers581
viewsWhat is the most appropriate method to "connect" a CSS code to an HTML?
I was looking around and I saw that there are some different methods of doing this. For example, there is a method where you put the code CSS in the same code file HTML, and already has another,…
-
4
votes1
answer13616
viewsHow to create a cron in Laravel?
I have to create a Cron on Laravel to send emails every 24 hours. I’m supposed to upload data from the bank. So after a query in the database cron should send the email with the query data.
-
4
votes1
answer247
viewsJavascript function to add days, is adding up a month ahead
I’m with this Javascript function that’s adding up the days on a date, the days it sums up right, only instead of it adding up 24/10/2017 + 2 days = 26/10/2017, He plays a month forward, then he…
javascriptasked 7 years ago Mariana 2,512 -
4
votes1
answer102
viewsPicking Strings from other Activitys
How do I pick a String, or more, from another Activity, and then use it in another Activity, someone there can tell me?
-
4
votes2
answers684
viewsProblems assigning values to variables in an object
I need to pass variable data to another class called Fila.java. There I have a vector of the type that receives objects, so in the main class I created an object that I initialized as follows :…