All Questions

2
answers

How to make a NOT IN mysql with 2 tables

I have 3 Person tables, group_materia, Notes, table person has: +------+--------------+-----------+ | id | Nome | turma | +------+--------------+-----------+ | 1 | Aluno 01 | 1 | | 2 | Aluno 02 | 2 |...
asked on 05.05.2018 / 15:14
1
answer

Method overload is polymorphism?

I'm having trouble understanding the concept of polymorphism in Java, I've read two articles from the same portal now, and got confused more, because for my interpretation they contradict each other: Excerpt 1:    "Overload is a concept of...
asked on 27.06.2018 / 03:40
2
answers

Is there any more optimized way to "multiply" a string without using repetition?

I'm creating an algorithm in JavaScript, and I'm already finding it too cumbersome. Now I need a string "multiplied" N times. I would like to know if it is possible to do this without using a retry. For example, for the algorithm to return "w...
asked on 08.06.2018 / 02:24
2
answers

How to call the previous month in R?

I need R to tell me the month before we are, that is, we are in "2018-05" and I need him to give me "2018-04". So far my solution was: format(Sys.Date()-as.integer(format(Sys.Date(), "%d")),"%Y-%m") I believe there should be a more "clean"...
asked on 11.06.2018 / 21:23
2
answers

How do I get back to a point before a merge in GitHub?

Take a look at the graph of my commits: link I did a crap here, I wanted to do a merge of the branch workspace with the master. The workspace is what was most current, so I wanted to pass the master and delete the workspace branch. So I was...
asked on 07.06.2018 / 00:07
1
answer

Namespace and PDO = Error

I'm doing a Framework, using namespaces. But in the PDO connection file a strange error is happening to me:    Fatal error: Uncaught exception 'PDOException' with message 'could not   find driver 'in C: \ xampp \ htdocs \ Application \ Core \...
asked on 06.06.2015 / 04:25
3
answers

Why in Python can we define an index of a Dict as a Tuple?

I noticed that in Python, we can add values of type tuple as index of a dict (dictionary). Example: test = {} test[(1, 2, 3)] = ("um", "dois", "tres") print test // {(1, 2, 3): ('um', 'dois', 'tres')} And after the defini...
asked on 17.06.2015 / 17:17
1
answer

Images Only Upload

How to only upload images ( .png and .jpeg )? Do not allow the choice of another file type. I'm using as below: <input type="file" name="arquivos" class="btn btn-success" multiple/> At the time of selecting...
asked on 30.05.2015 / 16:26
1
answer

Is there a difference between the syntax of Self-Invoking-Functions?

I've learned three ways to write Self Invoking Functions , Immediately-Invoked Function Expression (IIFE) , and I wondered if there was any difference between them. (function () { console.log("Olá"); })(); (function () { console.log...
asked on 05.06.2015 / 15:45
1
answer

System hashtags in PHP

I'm developing a hashtags system in PHP , and my question is: How can I make a% of% of posts from content? For example, the content saved in the database is:    Hi, how are you? #bomdia In case the SELECT would be somet...
asked on 28.05.2015 / 01:52