All Questions

2
answers

Firefox API audio compatibility issue

I'm using the API to issue some sounds, the problem is that in Firefox I can not run mp3 , but how can I do to include other formatting in this code? How can I do to add another ogg font for example? I'm using API to call Audio like...
asked on 08.12.2015 / 03:09
1
answer

How to use arguments passed to a python script?

In scripts php, we can, when executed by the command line, capture its values of the arguments passed through the variable $argv and its number through the variable $argc . For example (Script): echo 'My name is ', $argv...
asked on 15.02.2016 / 14:32
1
answer

Matrix operations with no set size

I need to perform operations on an array that will be passed by parameter, the problem is that its size is not fixed so I do not know how to loop to go to the end of a column or row for example. private static void calcularMatriz(int[][] matri...
asked on 22.08.2015 / 23:46
5
answers

localhost does not have access to the requested page

I'm trying to access a URL in AJAX but is giving the following error:    XMLHttpRequest can not load link . At the   'Access-Control-Allow-Origin' header is present on the requested   resource. Origin ' link ' is therefore not...
asked on 15.12.2015 / 12:18
1
answer

How to read PDF data in R?

I have numerous PDF files containing CPRM water wells , like this: link Within these files are information on the soil lithology of each well, as can be seen in the image below. The lithology table is on the second sheet of t...
asked on 23.09.2015 / 01:37
1
answer

How to Encrypt with the AES Algorithm using 128-192-256 keys in Java

I need to do an encryption with the AES algorithm by testing the runtime according to the sizes of the keys (128-192-256), but I can not find how to toggle the size of the key to be generated by the system, since my code returns that the key siz...
asked on 15.09.2015 / 21:47
2
answers

How to fix error "TypeError: must be unicode, not str" in Python?

When backing up my database in Sqlite3 , the Python interpreter returns the following message:    TypeError: must be unicode, not str on line f.write("%s\n" % linha) , I could not find a solution for this error. Follow the code:...
asked on 25.08.2015 / 19:30
1
answer

WebService REST Simple

How to create a simple REST-type WebService that does HTTP communication from an Android device to the server using the PHP language? My goal is to Requests and receive a Response from the server.     
asked on 28.08.2015 / 19:10
2
answers

Fluent API relationship questions for EF 5

I have two classes: User > Contains your PK (ID). UsuarioP > Contains user ID (FK). Class User.cs public Usuario() { this.UsuariosP = new List<UsuarioP>(); } public int Id { get; set; } (...) public virtual ICo...
asked on 28.09.2015 / 15:21
2
answers

What are the differences between "type = button" and "type = submit" in an input?

I have a simple JavaScript code to add a string to a ul list: JS: function init() { var botao = document.getElementById("addButton"); botao.onclick = handleButtonClick; } function handleButtonClick() { var textInput = d...
asked on 20.08.2015 / 21:50