Posts by André Nascimento • 1,258 points
107 posts
-
0
votes1
answer28
viewsA: The Mouseclick function of Autoit closes the script
I solved as follows: I created the variables within the function: func click() $x=8 $y=40 Mouseclick("left", $x, $y, 1, 1) Endfunc Since the last two parameters are the amount of click (1) and the…
autoitanswered André Nascimento 1,258 -
1
votes1
answer28
viewsQ: The Mouseclick function of Autoit closes the script
I created a HotKeySet in Autoit, but when I use the Mouseclick function, it is closing the script. Follow the following code: HotKeySet("^9", "clicar") func clicar() MouseClick($MOUSE_CLICK_LEFT, 8,…
autoitasked André Nascimento 1,258 -
1
votes0
answers30
viewsQ: Creating objects with rpy2
There are two ways to create R objects using rpy2? I have an example: import rpy2.robjects as robjects # Criando um objeto R a partir do Python robjects.r(''' rfunc <- function() { print("ola") }…
-
-3
votes1
answer230
viewsQ: Play son using html and javascript with an audio file array
I want to create a project to make a kind of game for me to study music. I would play a chord and I would reply what grade it would be. The system would give me the answer whether I got it right or…
javascriptasked André Nascimento 1,258 -
0
votes2
answers26
viewsA: failure in function snippet to read table
I solved using cursor. create or replace function FC_INS_TIPO_GASTO return number as cursor c_transparencia_gastos is select distinct numSubCota, txtDescricao from transparencia_gastos where sgUF =…
-
0
votes2
answers26
viewsQ: failure in function snippet to read table
I’m developing a function that reads from one table and inserts into the other: The error is: Warning: Function created with build errors. I removed the select line and it works. So, the error is in…
-
-1
votes1
answer54
viewsQ: Error with Trigger and exception
The detail is that I am trying to insert a post and fire a Rigger to save the message according to whether or not the post is entered. The mistake is I can’t capture the exception. When I enter…
pl-sqlasked André Nascimento 1,258 -
0
votes1
answer534
viewsQ: Calculate Roc curve (sensitivity and specificity) with scklear
Hello. How do I calculate the Roc curve in python? I already have part of the code: Is a dataset of tweets that are classified into insecure and others. I am working with cross validation because…
pythonasked André Nascimento 1,258 -
0
votes2
answers74
viewsQ: exclude people names from a C array
Hello. I have a C algorithm to delete a user but not interact in the array: #include<stdio.h> #include<stdlib.h> #include<locale.h> #include<conio.h> #define numeroUSER 100…
casked André Nascimento 1,258 -
0
votes1
answer203
viewsA: How to correctly use jsf and primeface templates
Content on the index page must be inside the Composition tag. //xhtml template. xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:p="http://primefaces.org/ui"…
primefacesanswered André Nascimento 1,258 -
-1
votes1
answer203
viewsQ: How to correctly use jsf and primeface templates
I made a template and called it inside another page, but what I apply on the second page does not work. In index.xhtml I write a phrase to test, but it is not printed on the screen. Only the…
primefacesasked André Nascimento 1,258 -
0
votes1
answer55
viewsQ: Make multiple sql queries in a single query
Hello. I want to do a search for expenses entered in the expenses table. I want to do in the same query: add the expenses found according to the search parameters, count how many expenses were also…
cakephpasked André Nascimento 1,258 -
-1
votes2
answers286
viewsQ: Debug with Flask/Python
I’m studying the Flask framework. I happen to need thresh an object request with form data. I also need to stop at a certain point, like the die() in PHP. How do I do that? I’ve tried os.exit(1),…
-
3
votes2
answers594
viewsQ: Error instantiating python OO objects
Guys, I will gather here in this message two questions of python OO. Anaconda use (python 3.6.1). I’m trying to make a little project to study object orientation in python 3.6.1. Initially, the…
python-3.xasked André Nascimento 1,258 -
1
votes1
answer1126
viewsQ: Unicode Error: 'utf-8' codec can’t Decode byte when installing rpy2 with Pip
I’m trying to install rpy2 which is a package to run R language in python, but gives the error: $ pip install rpy2 < Using cached rpy2-2.9.2.tar.gz Exception: Traceback (most recent call last):…
-
1
votes1
answer146
viewsQ: How to insert column average in all NA values
Hello. How to insert the average in all NA values. I have a code that I read the file, I check if it’s in and it doesn’t have, but when I turn it into a number, several NA appear and if I remove it,…
rasked André Nascimento 1,258 -
0
votes0
answers164
viewsQ: View csv file data in view
I want to display data from a file in the Django template. I don’t know how. Whether in the model or in the view. Application ucsal. Model: from django.db import models import pandas as pd class…
djangoasked André Nascimento 1,258 -
0
votes0
answers34
viewsQ: web2py - show variable value with data from a.csv file in the view
I have a web2py framework project called ucsalPY with an Aplication called ucsal. The path of application is: ucsalPY/application/ucsal (/controllers, /models, /views) In the default.py controller I…
-
2
votes1
answer42
viewsQ: Error in classifying text with a tree
I’m trying to sort, but it’s giving the error. Follow the code, then the error. #coding=UTF-8 import io import os import pandas as pd from sklearn.feature_extraction.text import CountVectorizer from…
pythonasked André Nascimento 1,258 -
0
votes0
answers23
viewsQ: Error when sorting with kmn
I am trying to sort using kmn, but is giving error shown after code: Filing cabinet search_data.py from dados import carregar_acessos from sklearn.naive_bayes import MultinomialNB import os…
pythonasked André Nascimento 1,258 -
2
votes1
answer100
viewsQ: Sklearn - error in model training
I’m trying to sort with sklearn, but I’m getting an error: from sklearn.feature_extraction.text import CountVectorizer from sklearn.linear_model import LinearRegression from sklearn.naive_bayes…
sklearnasked André Nascimento 1,258 -
2
votes2
answers690
viewsA: Searching strings in R language
I got it this way: x <- agrep(pattern="projeto de pesquisa", df$titulo, ignore.case = TRUE, value = TRUE, fixed = TRUE) ignore.case uppercase ignore and value returns the value of the…
ranswered André Nascimento 1,258 -
2
votes2
answers690
viewsQ: Searching strings in R language
I need to search a df column where the text may not be exact. Example: df$titulo=="SE" & df$titulo=="projeto de pesquisa" can’t find anything. I’ve tried using like instead of =, I’ve tried…
rasked André Nascimento 1,258 -
2
votes1
answer5572
viewsQ: Pandas - select lines
Hello. How do I select a specific line in a dataframe? df1=pd.read_csv('arquivo1.csv', encoding='ISO-8859-1', sep=";") I’ve tried to do df.index[2], but gives error. The 2 is the line I want.…
-
2
votes0
answers38
viewsQ: Form for a different model
I’m using Cakephp 2.6.4. I have two tables in the database: despesas and receitas. I have the CRUD methods of spending and revenue. I created the controller RelatoriosController for detailed reports…
-
10
votes1
answer9340
viewsA: How to tokenize English words using NLTK?
import nltk from nltk import tokenize palavras_tokenize = tokenize.word_tokenize(text, language='portuguese')
-
-1
votes1
answer517
viewsQ: Install nltk in python 3.6
Hello. How do I install nltk in python 3.6? I use anaconda. When I do: import nltk and run, no mistake, but when I do nltk. for autocomplete, it does not work. The module is installed, but there is…
nltkasked André Nascimento 1,258 -
2
votes1
answer311
viewsQ: Twitter data with python
Hello. I want to mine twitter data using python. I started doing an initial example, but it’s giving error. I imported twitter_python to the python lib folder 3.6 via the setupe.py install command…
pythonasked André Nascimento 1,258 -
-2
votes1
answer29
viewsQ: Error saving with cakephp
Hello. I do not understand why this error. The code is apparently correct. https://pastebin.com/3NZwmFMM Follows print of error: https://uploaddeimagens.com.br/imagens/print_erro_firefox-jpg The…
cakephpasked André Nascimento 1,258 -
4
votes1
answer405
viewsQ: Testing Factory Hibernate
Is giving null Exception on line HibernateUtil.getFactory().openSession(); in the main method. Follow how are the configuration and test files: <?xml version='1.0' encoding='utf-8'?>…
-
7
votes3
answers36730
viewsQ: Error pushing origin master on github
I have the following error in github when I’m going to push. Please make sure you have the correct access Rights and the Repository exists. I created the repository and as I was already with the…
-
0
votes1
answer148
viewsQ: Use request.getattribute("key"))
I am passing a List list and want to recover in jsp through request.getattribute("key"): @Override protected doGet(HTTPServlet request, HTTPServletResponse response) throw new ServletException {…
servletasked André Nascimento 1,258 -
0
votes3
answers93
viewsA: Join with two tables and a varchar2 field
I did so: select*from estado as e join cidade as c on e.id_estado=c.fk_id_cidade and c.cidade='Salvador'; A variable can be passed as a parameter to the city attribute.…
oracleanswered André Nascimento 1,258 -
1
votes3
answers93
viewsQ: Join with two tables and a varchar2 field
Hello. I am using oracle 11 g. I’m trying to search a state table for a particular city. For example, the state of Bahia has several cities. If Salvador is informed, he must return to the state of…
oracleasked André Nascimento 1,258 -
2
votes1
answer148
viewsQ: Truncate tables with Cache
I have a hotel table and reserve table. In the reserve table I have the primary key of the hotel table as foreign key. I can’t truncate because there are relationships between keys. How can I? I’ve…
-
1
votes2
answers1041
viewsA: A link to go back one level in the folder hierarchy and go to the level below in another folder
I solved it this way: <a href="../menu/menu_inicial.jsp"></a> and for the hotel folder and the registration file.jsp, I did: <a href="../hotel/cadastro_hotel.jsp"></a> O'. /'…
jspanswered André Nascimento 1,258 -
3
votes1
answer1901
viewsQ: Backup oracle tables 11g
Use oracle 11g in the free version. According to the database lessons with oracle, the free version does not allow creating database. One can create user and create tables. Based on this, how do I…
-
3
votes2
answers1041
viewsQ: A link to go back one level in the folder hierarchy and go to the level below in another folder
Hello. The problem is this: inside the Webcontent folder I have the hotel folder and inside this hotel folder I have the arqivo cadastro_hotel.jsp. In the Webcontent root, I have the menu folder and…
jspasked André Nascimento 1,258 -
1
votes1
answer309
viewsQ: Connect to oracle 11 c
I am trying to connect on oracle 11 c and the connection is not performed. Gives error: ES Error: Got Minus one from a read call > I’m testing the query in a Servlet, I’m not searching for the…
-
2
votes2
answers1924
viewsQ: Create Trigger for Quence in Primary key
I have the following table in oracle: table guest id_hospede nome login senha rg cpf telefone sequence: create sequence seq_hospede_1 start with 1 increment by 1 maxvalue 1000 minvalue 1 nocache…
oracleasked André Nascimento 1,258 -
0
votes0
answers59
viewsQ: 500 error on Servlet instantiation
Hello. I am trying to make a Servlet, but Tomcat does not find this Servlet class. The error is: HTTP Status 500 - Error instantiating Servlet class…
servletasked André Nascimento 1,258 -
0
votes3
answers7469
viewsA: Connect to oracle database by command line after installation
In the oracle terminal is typed: CONNECT SYSTEM/root root is the password defined in the installation.
oracleanswered André Nascimento 1,258 -
0
votes3
answers7469
viewsQ: Connect to oracle database by command line after installation
I installed the Oracle database, but I can’t remember how I connect at the bank prompt. I think it’s System connect "password". Someone fix me, please.
oracleasked André Nascimento 1,258 -
1
votes3
answers705
viewsQ: Pass parameter to the second Activity
I am trying to pass some parameter to another Activity, but the application hangs on the second screen. The name of the application is calculator. The error that says on the second screen is:…
androidasked André Nascimento 1,258 -
0
votes0
answers258
viewsQ: Submit html form to a Servlet
I made a connection with mysql and I’m making a crud on its own java. I want to use html and send to java to do the crud. From what I read, you need a servlet. I tried to do it, but I couldn’t. They…
servletasked André Nascimento 1,258 -
-1
votes2
answers1186
viewsA: Find the jdbc mysql driver and establish connection
I made the connection class as follows: package conect_DB; import java.sql.DriverManager; import java.sql.SQLException; public class Conexao { public static java.sql.Connection conexao; private…
javaanswered André Nascimento 1,258 -
2
votes2
answers1186
viewsQ: Find the jdbc mysql driver and establish connection
I’m trying to make a connection to java directly with jdbc. I inserted the mysql jar jdbc into the project properties, javabuildpath and adding the external jar. I am making the following example…
javaasked André Nascimento 1,258 -
2
votes3
answers108
viewsQ: Instantiation of objects in php
I’m having some difficulties in instantiating objects in php. I have the code in OO: class Usuario { private $idade; private $nome; public function getNome() { return $this->nome; } public…
phpasked André Nascimento 1,258 -
-1
votes2
answers724
viewsQ: How to make links with sub-links
Hello. How to make a link and when it is clicked, show more links below? For example: a link of statistics of issues resolved on a website and that when clicking on this link, displays the links:…
htmlasked André Nascimento 1,258 -
-1
votes2
answers49
viewsQ: Aid to create the first android project
Hello. I can’t create the project to start the android study. Follow a screenshot of the project creation on the sendspace link. Please see and tell me what I’m missing.…
androidasked André Nascimento 1,258