Posts by Nayron Morais • 276 points
30 posts
-
0
votes0
answers1009
viewsQ: Attributeerror: 'Nonetype' Object has no attribute
Hello, I’m doing some testing with the framework Kivy and this error is being presented to me: AttributeError: 'NoneType' object has no attribute 'text' Well, follow the code Python: class…
-
0
votes1
answer47
viewsA: How to display only set objects as true in a new Activity
See the following examples: First you should create your own layout for the list item: <?xml version="1.0" encoding="utf-8"?> <android.support.v7.widget.LinearLayoutCompat…
-
1
votes1
answer720
viewsA: Sqlite error: Foreign key Mismatch (fk incompatibils) when trying to make an insert
The error is in the reference you are making in the association table (VACINAPET) of the VACCINE table, in the VACINAPET table you indicate as the primary key of the VACCINE table the field…
-
0
votes1
answer270
viewsQ: Upload JSF File with ajax
I’m trying to upload any file by the element h:inputfile jsf itself, and, I try to do this with ajax, but when I try to upload this error appears in the browser console... Uncaught TypeError: Cannot…
-
0
votes1
answer321
viewsA: Android app => Unfortunately name_project has stopped
The problem is in your activity_main.xml In your main class you are making the following reference to floating button: FloatingActionButton btnAdd = (FloatingActionButton) findViewById(R.id.btnAdd);…
-
1
votes1
answer56
viewsA: How to make Join with multiple tables?
There are these two ways: USING JOIN: SELECT * FROM ALUNO AS AL JOIN CURSO AS CS ON AL.curso_id = CS.id_cursos JOIN MODULOS AS MD ON CS.id_cursos = MD.cursos_id JOIN MATERIAIS AS MT ON MT.modulos_id…
-
1
votes1
answer336
viewsQ: Python - How to add add values between row and column in ndarray
Hello, I am having the following difficulty, this because I am working with numpy now, I am inexperienced... Well my problem is this, I have a tuple (w, t), and the t repeats itself, so that I want…
-
3
votes1
answer2152
viewsQ: Python - Open multiple files in one For
Could someone please help me explain why I can’t add the texts of each file to each position on my list? ''' Funções para o processamento dos textos (cartas) para base de aprendizagem'''…
-
0
votes0
answers99
viewsQ: Component Not Rendered By Ajax
I have a form, where internally has a component h message: and a h:inputText, and I am submitting this form by jsf standard ajax... the problem is... when submitting the form ajax does not update…
-
2
votes1
answer383
viewsA: Sum of Records per group
Try using the sum function of sql and group by client!
-
1
votes1
answer148
viewsQ: Error picking GET attribute in jsp!
I am facing the following problem, I am making the following redirection: response.sendRedirect("../../index.jsp?NA=1"); Where the url goes like this:…
-
0
votes1
answer1193
viewsA: Update from comparison between two postgres tables
To be used JOIN you must have a relationship between the tables, otherwise you won’t be able to, see how it can be done: UPDATE Vendas set camposVendas = novoValor,... JOIN TabelaVendedor1 as TB1 ON…
-
1
votes0
answers189
viewsQ: Communication Failure while Joining agent Platform: No ICP active - JADE
Hello could help me with this, I’m starting now in JADE, and I’m trying to start two agents, however gives the following exception: Communication failure while joining agent platform: No ICP active…
-
0
votes1
answer203
viewsA: Netbeans Does Not Recognize File . Java
To generate the report with Jasperreport you will need the following libraries: Commons-beanutils Commons-Collections Commons-digester Commons-logging groovy-all iText poi jasperreports Make sure…
-
1
votes1
answer166
viewsA: Pass data contained in Arraylist to attributes of an object
private static void setJogos(List listaSorteios) { Jogo jogo; int contador = 0; for (int u = 0; u < (listaSorteios.size()/18); u++) { contador =…
-
0
votes2
answers796
viewsA: How do I view data from a specific line in a database without knowing which line it is?
echo '<div id="lista"><img src="_imagens/pizzaiolo_corpo-300x288.png" class="logo"><a href="javascript:mostrar();"><h2>'.$linha['nomep'].'</h2></a></div>';…
-
0
votes1
answer48
viewsA: Jasperreport - Passing Objects to report column
I got it through logic: I did so: <field name="vendacardinalidades[0].usuario.pessoa.nome" class="java.lang.String"/> ... <textField isStretchWithOverflow="true"> <reportElement x="0"…
-
0
votes1
answer48
viewsQ: Jasperreport - Passing Objects to report column
I have to take the dice from the following field : venda.getVendacardinalidades().get(0).getUsuario().getPessoa().getNome() And put this value in a report column, how do I do that: I was trying to…
-
0
votes2
answers59
viewsA: Accentuation of the database not accepted on the site
There are a number of factors that can influence this problem: first - Check the encoding of the text being saved by your text editor; 2nd - Check the encoding that is being used in your browser…
-
2
votes2
answers574
viewsQ: Postgresql query without data return
See the following SQL code: SELECT * FROM venda ve WHERE ve.datavenda <= DATE '28/08/2016' In the database you have the following data: The above SQL query is not returning any results, why?…
-
0
votes1
answer244
viewsA: How do I bump my player with a Tile on Unity 5?
In order for there to be a collision in your case, you must assign a Collider in the Tile and in the player add a Rigibody and also a Collider. Emphasizing that both components must be 2D type,…
-
1
votes0
answers97
viewsQ: Perform Hibernate mapping (Annotations) of foreign key being also the primary
I want to carry out the mapping in the standard Hibernate Annotations of my class, being the one-to-one relationship between the tables, and the primary key of one is foreign and primary in the…
-
0
votes2
answers1563
viewsA: How do I email multiple people with Phpmailer?
Put inside a repeat loop, where the control clause ( condition to finish) would be the amount of records in the bank, ie the amount of email’s registered in the bank. Or you can check if the…
-
3
votes1
answer333
viewsQ: How to add scrollbar in Datagridview VB?
I need to add a scroll bar for the amount of lines in a DataGridView, because I don’t want to work with pagination, then the question arises, how to do?
vb.netasked Nayron Morais 276 -
-1
votes1
answer438
viewsQ: How to pass a pointer inside a struct per function parameter?
The situation is as follows: I have a struct with a field that is a pointer pointer, however I want to pass as parameter in a function only the pointer pointed, that is, the innermost pointer of…
-
0
votes1
answer120
viewsQ: Error classse R, Android Studio
After creating a project in Android Studio, the following error appears on the console: /home/nayron/AndroidStudioProjects/MyApplication2 /app/build…
-
-4
votes6
answers2425
viewsA: Arrays are pointers, right?
If you have an array with 'n' positions, it is a pointer when you put only its nomenclature, that is, you do not index it, this way: int array[10]; array[0... 9]; <-- Quando você colocar uma…
-
1
votes2
answers313
viewsQ: How to access the pointer of a struct within the pointer of another struct?
typedef struct vertice { int num_vertice; int profundidade; struct vertice **vertices_adja; } Vertice; typedef struct grafo { int qtd_vertices; int *Vertice; } Grafo; I want to access the attributes…
-
0
votes3
answers5856
viewsA: Leave fixed elements on a static page
You can give a static size to the content you want to center and place automatic margins (left and right), so the browser will be responsible for centralizing this content, see an example:…
-
0
votes1
answer1154
viewsQ: Open gallery, select and save address in database - Android
I was wondering how I can open the gallery in my android app at runtime, select an image and copy that image to a folder of my application in SD card and save the image path in the database, someone…