All Questions

1
answer

Play musical note through JavaScript

I need to create a code that reproduces the sound according to the musical notes informed ... function music(){ var partitura = ''; var escala = 'CDEFGABC'; var notas = escala.split(''); for (var i = 0; i < notas.length;...
asked on 02.01.2018 / 15:06
3
answers

Auto Relationship with Laravel

I have the following problem when trying to make an auto relationship with Laravel 5. I want to make a user registration, where users can have other users linked, creating an authoring N x N, user_user; The user will have a status, and this s...
asked on 06.03.2016 / 19:45
1
answer

Difference speed in HD Sata / SSD

I have MongoDB running on a 500GB SSD. But as the folder / data began to get very large, we put a 3TB HD slave , but this being SATA and not SSD as the first. But after changing the folder date to this new HD, we noticed a considerable di...
asked on 10.05.2016 / 15:05
3
answers

How to do an update with a join?

Hello, I'm new to the forum and need help with PostgreSQL DBMS. My question is the following, in the following code used in the MySQL DBMS the execution happens perfectly, because in PostgreSQL it shows an error. MySQL Code: UPDATE user...
asked on 25.03.2016 / 23:59
2
answers

What is the best place to store the connection string? [closed]

There are a few possible places to store the string connection. Leave tied inside code, app.config , configuration file and Windows registry. What is the best place to store the string connection? Based on the requirements, security...
asked on 02.06.2016 / 15:41
1
answer

A real reason to use the data- * attribute in the html element?

Can anyone mention a single case of using the data-* attribute (in the standard suggested by W3C) for the html root element? If a real reason is not possible, then at least imagine a situation in which its use will make little or no difference i...
asked on 16.03.2016 / 02:38
3
answers

How to convert from Text to Number via code to EXCEL in C #

I have a program that reads data from a text file and exports it to an excel report. I have a problem with transcription of numbers, in the txt file I have data in this format: 8,000000 This value should be regarded as 8 (number) by the...
asked on 03.06.2016 / 19:56
1
answer

Error in AdapterView

Good night, I'm trying to call an activty by an adapter through intent, but it gives the following error:    FATAL EXCEPTION: main                                                                                                                ...
asked on 02.05.2016 / 00:21
1
answer

How to keep the data already filled in the input after submitting a form?

I'm using the PHP language and the Laravel Framework 5. In the validation of the form, if it contains some blank field or with sizes of characters not accepted, when clicking save the system shows the message of validation, however the fields th...
asked on 30.05.2016 / 05:50
2
answers

Time series autocorrelation

Consider the stochastic process AR (1). Generate a sequence of random variables 500 and assuming c = 3 and phi = {0.5, 0.95, 1}. Make autocorrelation from 1st to 3rd order (CR). How to generate these correlations in R? T=500 e=rnorm(T) phi1=.5...
asked on 31.03.2016 / 18:59