Interesting questions
-
2
votes0
answers30
viewsRun an asynchronous function in React-Nactivate only the first time it is called
I am using the function of the expo-camera Camera component onBarCodeScanned={(event) => { handleQRCode(event); }} And every time there’s a bar code he calls me handleQRCode, but just passing the…
-
-4
votes0
answers19
viewsError when adding Big Decimal elements
I need to add all pre-defined elements to the elements that will be inserted by the user, but gives error when instantiating Bigdecimal private BigDecimal concentracaoK; private BigDecimal…
-
1
votes2
answers93
views -
1
votes2
answers15896
viewsHow to stop an execution in Python?
I’m starting programming in Python and would like to know how to stop the program execution? In the language C for example, there is the equivalent command system("pause"). If I open IDLE, more…
-
2
votes1
answer722
viewsAdd values within the Two-Dimensional Matrix from the line the user chooses
In the exercise I had to create a two-dimensional matrix and then when the user typed 0, 1 or 2 to know the matrix line, I should add the line values and show the result. I wonder if inside the…
-
0
votes1
answer119
viewsPython counting by function, BASIC
Create a program in Python that, for any list of integer values, gets (through functions) and prints on the screen, the amount of positive, null and negative values of the list. My doubt is to do…
pythonasked 6 years, 5 months ago Milton Vincius 33 -
0
votes1
answer312
viewsTake the value of a javascript button and run php function
Hello! I have a button html with a value which is generated from a foreach, following example: foreach ($array_informado as $rows){ if (mysqli_num_rows(consulta_imei($rows))>0) {…
-
1
votes0
answers85
viewsHow can I relate 3 field to Wordpress post?
I have a custom field whose name is type of vehicle. This field gets the guys car or motorcycle. I made a combo select with jQuery which, when selecting the type of vehicle, is completed with the…
-
4
votes2
answers676
viewsInstallation of Firebase in Android Studio
I was watching a video about installing Firebase and it says to go into: File > Project Structure, and open this image window: However, the next step is to click Cloud, but when I enter Project…
-
1
votes1
answer189
viewsCreate input fields according to the size of an array
Good evening, I’m receiving via JSON a List with the structure below: anexo: [{cod: 5, nome: "anexo1.pdf"}, {cod: 6, nome: "texto.txt"}] And I use the function below: $.getJSON(url + cod, function…
-
0
votes0
answers25
viewsErrors when rendering a Sectionlist with an object array
I’m trying to insert a SectionList, but is returning in the console, in order, the following errors: Uncaught TypeError: Cannot read property 'length' of undefined The above error occurred in the…
-
2
votes0
answers897
viewsError 500 when consuming Webservice
The code is returning the following error message: An unhandled Exception of type 'System.Net.Webexception' occurred in System.dll Additional information: Remote server returned an error: (500)…
-
4
votes1
answer616
viewsThread problem
public class ThreadTest implements Runnable { private String word; private long time; public ThreadTest(String word,long time){ this.word = word; this.time = time; } public void run() { try {…
-
-3
votes1
answer782
viewsRead and insert data into a table via C#
I have this code to insert values in a table column: conn.Open(); comm.CommandText = @"INSERT INTO ArticleBarCode(Code, Code_Article, BarCode, CreatedBy, CreatedOn, ModifiedBy, ModifiedOn,…
-
0
votes1
answer23
viewsIf it’s not working properly
Hello, guys. All right? So I’d like to ask you a question. I created the following code: import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner entrada = new…
-
0
votes1
answer1156
viewsChanging sequential values of a multidimensional array
In the framework I develop (PHP language), I use multidimensional array for HTML reporting. There is a particular report that I cannot properly sort in the SQL query, having only all the data by…
-
0
votes3
answers719
viewsSuccess: Function(data) in Ajax not working
Everything inside Success it does not execute, but the request is successfully sent because I saw inside the Chrome network and the login is done normally, it just does not trigger the ajax Success.…
-
0
votes0
answers16
viewsHow to send data from a form to an email, being I the recipient of the data and the customer receiving a confirmation sending in his email?
I’m developing a website using bootstrap, and I want to get into this area. I made a condensed budget form the inputs: Name, Phone, E-mail, Message containing details and type service (Using Check…
-
0
votes0
answers148
viewsPhpmailer Addattachment does not work
good night. I’m trying to make an attachment on Phpmailer as follows: $arquivo = '../enviados/planilha.xlsx'; $mail->AddAttachment($arquivo); This way, the attachment does not go along with the…
-
0
votes1
answer1283
viewsHow to put variable inside quotes in javascript?
I need to make this code work. But every time I put the variable in place or inside "" it doesn’t work. //jvectormap data var visitorsData = { "US": 398, //USA "SA": 400, //Saudi Arabia "CA": 1000,…