All Questions

1
answer

Single random value

I have seen several posts about the subject but it is not exactly what I was looking for. Some time ago when I was in internship, they told me to save some records with a unique random id in each one, and they told me the name of that kind of...
asked on 14.04.2016 / 12:31
1
answer

How to show the axes of a histogram with their respective classes in R?

I plots a histogram of the weight variable in my data sheet but it appears without the axes. The code I used was: hist(rehab.1$PESO, main = "", axes = F, xlab = "Peso(kg)", ylab = "frequências absolutas",col = 'green')     
asked on 18.03.2016 / 20:37
1
answer

Execution order of migrations

Hello On my first job, I worked using code-first with the Entity Framework 4. At this time, I saw a limitation on it: the generated migrations only ran in order. For example, if two people are working with persistence in my branch, generated...
asked on 21.03.2016 / 22:40
2
answers

Service versus BroadcastReceiver

What's the difference, on Android, between Service and BroadcastReceiver? How long can a Service run (running)? How long can a BroadcastReceiver run (running)? Can I create notifications via BroadcastReceiver or just via Service? Is it...
asked on 07.04.2016 / 17:19
1
answer

12 to 24 hour format in JavaScript

I have a digital clock in JavaScript that is printing time from 1/12. How to convert to 13/24. <script> function relogio() { var d = new Date() var t = d.toLocaleTimeString() document.getElementById('relogio').innerH...
asked on 23.03.2016 / 21:22
2
answers

Register data in a foreign key table

I'm trying to register a user but in his table there is a foreign key attached to another table. My problem is that this foreign key is referencing the address table, but I do not yet have an address for this user, I want it to be able to reg...
asked on 25.03.2016 / 08:21
1
answer

Python - 'int' object is not iterable

Hello, I'm creating a character converter for your ascii code through a recursive function in Python. However I have an "int 'object is not iterable" problem. My code is this: def cod(n): for i in n: i = str(i) if len(n) == 1:...
asked on 09.12.2015 / 19:34
1
answer

How to delimit the number of characters written per line in a "txt" output, in the R?

I am writing a filelog and want to print it on an A4 sheet. One of the parts of this filelog has a variable, with the following structure: cod<-c(82024,82042,82067,82098,82106,82113,82141,82145,82178,82181,82184,82188,82191,82198,82212,...
asked on 19.03.2016 / 18:38
1
answer

How do I open a password-protected Word document?

I can usually open a .docx file in Word using desktop.open fault of java, but there is a case where I need to open the document that is password protected and Word opens asking for the same. Is there any way I can enter the password still in t...
asked on 06.01.2016 / 22:38
1
answer

Java + Database - Add Role to existing user, through Java

Use MongoDB with Java and need, through Java execute the following command in mongoDB: db.grantRolesToUser( "joao", [ {role:"dbOwner",db:"loja"} ] ) That is, I need to add a role to an existing user, and I need to specify the database. Afte...
asked on 06.01.2016 / 16:24