All Questions

2
answers

View the contents of object NodeList

How to display content received through objectNodeList ? Through the following function I try to get the contents of the tags through the class. function final(){ var titulos = document.querySelectorAll(".p2.p2-resultado-busca");...
asked on 28.11.2016 / 14:05
1
answer

What is illegible for python?

I would like to know what exactly is wrong with this python code: import urllib.request page = urllib.request.urlopen("http://beans-r-us.appspot.com/prices-loyalty.html") text = page.read().decode('utf8') price = 99.99 while price > 4....
asked on 19.11.2016 / 14:45
1
answer

Decorating a JTextField with an icon

My question is whether it is possible to "decorate" a field, such as JTextField or JFormattedTextField, with an icon. An example would look something like this: Following an example, I made the following class. package componentes;...
asked on 09.12.2016 / 23:36
1
answer

What are the differences between a DataTable and a DataReader for MySQL queries in C #?

I am creating a C # project with MySQL, my connector follows the Singleton pattern and I use MySqlDataReader to retrieve the data from the table and popular a List so far so good. My problem started when I had to recover data from one table b...
asked on 26.01.2015 / 20:58
2
answers

Regular expression to retrieve strings that begin with a colon (:)

I need a regular expression to retrieve a list of strings that start with the colon (":") and end with the space character or end of parentheses (")"). > Example: String texto = "(:TEXTOQUALQUER NADA DO FOI :TEXTOQQDENOVO SERÁ DE NOVO :TEX...
asked on 11.12.2014 / 20:15
1
answer

How to set date formats in Django 1.7 for the whole system

Is there any way to change display settings and / or date formatting at system level?     
asked on 08.02.2015 / 17:30
1
answer

What is the difference between using the StandardCopyOption enum constants?

I'm implementing copy of files and decided to use the Files , and one of the method signatures copy() " is to receive 2 parameters of type Path and a third of type CopyOption and it is in this last one that I had dou...
asked on 07.12.2016 / 23:49
1
answer

How to return a file in an input type file field?

I have an html form that uploads a file and I can save it to a folder. The problem is that now I need to do the reverse operation, and return the file in that same field of type input type file so that the user can edit. Someone can give me a ha...
asked on 03.02.2015 / 11:29
3
answers

How to control the volume of the app media on Android

I'm having a question about how to control the media volume of the app. I'm using this method: Button button1; MediaPlyer mp; button1 = (Button)findViewById(R.id.button1); button1.setOnClickListener(new View.OnClickListener() { @Override p...
asked on 01.02.2015 / 12:35
1
answer

Transcription javascript calculations for PHP

How can I transcribe this code into javascript for PHP? var temp = "<div class='brick' style='width:{width}px;'><img src='i/photo/{index}.jpg' width='100%'></div>"; var w = 1, h = 1, html = '', limitItem = 49; for (var i = 0...
asked on 15.12.2014 / 03:49