All Questions

2
answers

Read text file and play content in positions in an array!

I am in doubt that I can read a .txt file and store its data in different positions in a array . The file is saved as follows: city=A(100,80); city=B(160,70); city=C(110,50); city=D(140,120); city=F(155,40); city=G(210,60); cit...
asked on 24.08.2016 / 01:17
2
answers

Interface and inheritance for the java connection class

Considering object orientation, would the use of inheritance and interface in this way be correct? But in this way, any request to connect to the database will require a new object. Is there a way to statically access or need a new object create...
asked on 27.07.2016 / 13:38
1
answer

Create View in MySQL through Laravel

How can I create a view in the MySQL database through migrations of Laravel? I did not find anything in the documentation.     
asked on 26.09.2016 / 19:35
2
answers

Brazilian Time Zone in MySQL

I have a MySQL database table named registros . In it, I have the following structure: id_registro , nome_registro , data_registro . In data_registro I'm using current_timestamp (), fetching the time from th...
asked on 08.09.2016 / 17:02
2
answers

How to transform attributes into properties?

In C #, I can avoid using getter and setter , turning the attributes into properties, as below: public class Pessoa { public int pes_idade { get; set; } public string pes_nome { get; set; } } Can you do this in Java?  ...
asked on 26.08.2016 / 20:36
1
answer

Clojure proposal?

I recently heard of this programming language, Clojure, it uses functions only, is not typed, and appears to be very complex, this is an example of a function that receives a parameter and multiplies that parameter by it even. (defn square [x]...
asked on 10.08.2016 / 13:42
4
answers

How to put mask for Nextel in a Javascript input?

I'd like to put a mask on a <input> that expects the format Nextel : <input type="text" name="nextel"> The problem that according to site is the format of Nextel: Urban:2digitsFleet:1to7digitsID:2to5digitsEitherthe...
asked on 19.08.2016 / 16:48
2
answers

What are the differences between require () and library ()?

In R, what are the differences between require() and library() , if any? When should I include require() and when should I include library() ?     
asked on 18.09.2016 / 05:50
1
answer

Close menu when clicking off with javascript

I have the following code //Menu Mobile var closeTab = document.getElementById("close-i"); document.querySelector(".user-list").onclick = function() { document.documentElement.classList.add("menu-ativo") }; document.documentElement.oncli...
asked on 11.10.2016 / 18:22
1
answer

How to create program in C that can use parameters?

I'm studying C, and now trying to pass parameters. Well, although I'm thinking I got it, it's giving me an error when I try to use that variable ... I need to compare the "argument_value" char to make decisions in the program! What...
asked on 04.10.2016 / 04:26