Posts by João Castilho • 259 points
16 posts
-
1
votes2
answers1113
viewsA: Comparison of python string inside if
In Pythos, the "if statements" and cycles always end with : So just change it: if(line[1] != "Keyword") for if line[1] != "Keyword":…
-
2
votes1
answer72
viewsA: What is Big Data and what is its relationship to the relational model?
Big data is a concept that has been talked about a lot in recent years. In 2000, Doug Laney defined this concept with 3 V’s: Volume - Need to store a large amount of data Speed - Need to get this…
-
0
votes2
answers690
viewsA: Attributeerror: 'int' Object has no attribute 'value'
You made a mistake calling your job. The correct form would be: a = DidaticaTech() a.incrementa() The variable incremento is also defined in its class and is an integer. That is why the error…
-
-4
votes2
answers138
viewsA: How to be more cautious when using the Eval function?
No, if it’s not enough, try with Try except def calcula(string): try: resultado = eval(string) return resultado except Exception: print("Não é uma operação válida")…
-
2
votes1
answer41
viewsA: The Program does not advance
You have a lot of errors in this code snippet. First mistake: You’re not calling the job cadastro and login anywhere in your script, you just initialized them. How to correct: while True: welcome =…
pythonanswered João Castilho 259 -
0
votes1
answer179
viewsQ: Read Numpy files in Jupyter Lab
Good afternoon, I am currently developing an Artificial Intelligence project. In the current phase of my project, I have my neural networks implemented and I am in the phase of training the neural…
-
1
votes2
answers469
viewsA: How to access content from a json file?
You can access the contents of the archive? If you can, it’s not too complicated. I may be seeing wrong, it seems to me it’s a dictionary and the key media is worth a list. So, you access the first…
-
2
votes1
answer122
viewsA: Problem with passing parameters/return of function matrices in C
The problem of conflicting types for 'matCofator' is because of the erroneous statement of the function. What you wrote was: float matCofator(int n, float a[n][n]); What you must want is float *…
-
2
votes1
answer4988
viewsA: Pick up element in Arraylist
Focus on this line: ArrayList<RespostasAguaCasa> lista = new ArrayList<>(); The list object is a ArrayList of RespostasAguaCasa The problem is that in the next line, you confuse several…
-
-2
votes1
answer413
viewsA: How do you reverse the variables?
Try this way: public int X,Y,Z; X = 10; Y = 2; //Inversão Z = Y; //Z = 2 Y = X; //Y = 10 X = Z; //X = 2 //Assim inverteu-se os valores de X e Y
javaanswered João Castilho 259 -
0
votes0
answers122
viewsQ: Android - Create a Socket in Singleton
Good night, I’m developing an android game where to play online have to connect to the server. At first I was trying to create sockets in an Activity where the game will occur, but the app was…
-
-1
votes1
answer63
viewsQ: SQL - Problem Naming Variables
Since I don’t know how to explain my problem, I’ll give you an example: select cod_prod, sum(quantidade) as "Quantidade 2013", sum(quantidade) as "Quantidade 2014" from itens group by cod_prod…
-
0
votes0
answers109
viewsQ: Pass music as html page parameter
Great, I’m trying to make a game menu on HTML5 + Javascript + CSS3 and when I click on a button I want you to change the page html, but may the same music continue to give. I suppose with the method…
-
0
votes1
answer148
viewsQ: redirect javascript page after animation
Good, I’m making a game in HTML5 + CSS3 + Javascript and I’m in the initial menu. I wanted the button before redirecting the page to make an animation. The animation part is working fine, but once I…
-
0
votes1
answer63
viewsQ: CSS Search Element for JS
Good, I am now starting HTML5 + Javascript + CSS programming and I have a question that I suppose is basic, but I can’t find an answer. I created an HTML5 canvas and since I wasn’t able to add…
-
-1
votes1
answer1961
viewsQ: Jtextfield does not interpret n as line breaking
When printing customer data in Jtextfield, when the \n is present means a line break, but instead of moving to the next line each time you find a \n, he simply ignores and continues to write in…