All Questions

2
answers

Close PDO connection

I have worked with other languages before working with PHP and in some the framework when you opened a connection with the bank it was good to finish it in the PDO so I realized there is no function in the PDO class that closes this connection....
asked on 19.05.2014 / 15:18
1
answer

Check duplicate values in array

My question is: I have the following array: $array = array(10, 30, 10, 40, 40); I would like to know if there is a simple way to display the message: "There are duplicate values" or "There are no duplicate values". The arra...
asked on 17.04.2014 / 22:51
3
answers

Count of occurrences in a String

As I write a function that receives a
asked on 12.12.2015 / 16:49
2
answers

How do I check if a directory exists in Java?

I'm trying to check if a directory entered in a JTextField exists or not. I tried to use Files.notExists() but the first argument must be of type Path and I could not figure out how to convert from String . String ca...
asked on 25.03.2014 / 20:10
1
answer

Decoder for CAPTCHA

I need to turn a captcha into text, and be specific, to download NFE from the #     
asked on 04.04.2014 / 14:28
2
answers

Two buttons to perform the same function?

I would like to click on two different buttons to perform the same function by changing only one value. In the code below I can execute the function by clicking the first button, but when I click on the second one it does not execute. How can...
asked on 30.04.2014 / 17:08
2
answers

How to do data mining in a txt file with re.finditer

This code can tell me the location of the words batman and sei in the whole txt file: import re f = open('C:/pah.txt','r+') text = f.read() words = ['batman','sei'] for x in words: for m in re.finditer(x,text): prin...
asked on 28.03.2014 / 21:21
1
answer

Libraries for communication between Arduino and Android

I am a beginner Arduino programmer trying to make a connection with my cell phone (Android) and / or my laptop using Java. I did some research and so far I've found three examples of how this might work: Using rxtx libraries (GNU IO) Us...
asked on 18.05.2014 / 15:18
2
answers

Jquery mask in dynamically created fields

I have a product values registration page, where I have an input field with a value mask in R $. But since this field is created dynamically after a search in the bd, the mask is only working on the first input. I know of a solution but it does...
asked on 05.06.2014 / 21:08
2
answers

Search system - Select within another

Hello, I'm doing a search engine, but I'm kind of a layperson about Querys. The method that I thought to refine the search, which in the case would be a simple search between two fields of a table with several products, was to be eliminated thro...
asked on 08.05.2014 / 22:07