Interesting questions
-
2
votes2
answers458
viewsError while clearing buffer in GCC (Ubuntu 18.04)
I was watching a tutorial of C, and appeared a part about buffer cleaning using the functions fflush and __fpurge. So far so good, but when I tried applying with __fflush, the GCC returns me the…
-
-1
votes1
answer297
viewsChange a date input when changing select
I would like if user select a specific option of a select in the form as the second option another field of the date type of the same form change to today date automatically. <input type="date"…
-
0
votes2
answers186
viewspreventDefault() does not work
Good evening, I’ve searched all the forum on the internet and I haven’t found anything to solve my problem. I’m studying React, and I’m trying to submit a form, but I don’t want the page to Reload…
-
3
votes1
answer99
viewsHow to force Highcharts to show all points?
I use the API highcharts to generate graphs from information collected in a database, the problem is that when it comes to many points in your series, it HIDES and GENERATES an Average in periods..…
-
1
votes1
answer72
viewsAccordion menu with option open by default
I’m creating a Menu Accordion, based on a example that I found on the internet, however, I’m struggling to try to make it an open option by default, equally in this example here. Could someone help…
-
0
votes1
answer94
viewsHow to import CSV files from a same level folder (and/or above) in Python?
I have already searched several topics here, unsuccessfully however. So, if there is already an equal question, please forgive me and indicate a solution. My project is articulated as follows:…
-
0
votes1
answer47
viewsPut JS only in a div
My question is this, I have a div I need her to have a less up-to-date version of js. My page has the Bootstrap 4.1 and need to rotate the jquery 2.2.3 in the div, where the most updated version…
-
-2
votes1
answer180
viewsC# Generate random and unique number, check the database if any equal number has already been generated and if you have to generate another number again
I’m developing a system where I need to generate one random number and single and write to the bank, this system will run every day generating new numbers based on business rules. With the help of…
-
3
votes1
answer296
viewsCan I consider that my application is in MVC?
Personally, I’m kind of having a conceptual doubt. I started implementing my application (c# - Forms) thinking of following development based on the MVC architecture. But intuitively - and I don’t…
-
4
votes1
answer71
viewsSum returns Nan for values above 999
I have a function that calculates subtotal + ascrescimo - desconto, but I went to test a value above 999 it returns NAN. //função para calcular o total da nota function calcular() { var soma1 = 0;…
javascriptasked 7 years, 10 months ago frodrigues 181 -
3
votes2
answers1405
views -
2
votes2
answers167
viewsThe whole name doesn’t appear
In C language as I can show the whole name when asked to enter the user name, I think it is not correct the definition of the char, my code is this: int main(int argc, char** argv) { char nome[100];…
-
2
votes1
answer785
viewsComposite key problems in JPA
Hi, I’m a little young with JPA and I’m having problems with a composite PK. Follows the class Aluno: @Entity @Table(name = "Aluno") public class Aluno { @Id private String ra; @Column(length = 50,…
-
0
votes1
answer43
viewsVisual studio runtimelibrary error
This shows the following runtimelibrary error: Error LNK2038 Mismatch Detected for 'Runtimelibrary': value 'Md_dynamicrelease' doesn’t match value 'Mdd_dynamicdebug' in Aimbot.obj INDIGO C:…
-
0
votes1
answer1588
viewsHow to go back to the previous page with physical smartphone button - Ionic
How do I allow the physical button come back of the mobile carries out a certain function in the Ionic 3? (In this case, a function that makes the application open the home page)…
-
0
votes1
answer37
viewsBest method for uploading images
I have an AMP page that I load the logo image by inserting the link inside the img tag, so: <amp-img src="//i2.wp.com/www.meusite.com.br/wp-content/uploads/lgootipo.png" alt="logotipo"…
-
1
votes1
answer595
viewsLoad Json file with Ajax
How to upload a Json file to my html. The console does not show any error, but no field is filled with data from the Json file. <h3 class="center">Tela de alunos</h3> <div…
-
1
votes2
answers834
viewsFind the highest vector value
A program that asks to find the largest number of an array, typing the amount of elements and until which element it will verify. However, in this program that I did it is not considering the first…
-
0
votes1
answer37
viewsSecure email link sending, which allows the user to access an Action Edit in the controller
I need to email a secure link so that the user at the click can access an Edit action in the controller. For example: Sending the link: localhost:64148/Movies/Edit? id=4 However I cannot send the…
-
4
votes2
answers195
viewsCarrierwave - destroy object only after it has been deleted from my storage
Carrierwave only deletes the 'mounted' file after the object in the database has been removed: after_commit :remove_avatar! :on => :destroy https://github.com/carrierwaveuploader/carrierwave I am…