All Questions

1
answer

How to use a variable in array_walk?

I am trying a solution without going through "manually" ( foreach ) an array, to add in the subarrays, a new pair of chave => valor . With array_walk I can invoke a callback and treat the array but how do I pass a variable...
asked on 12.09.2016 / 18:54
1
answer

Web Scraping: How to change the value of a drop-down button of a site using R?

I want to create a script in R to read an HTML table. Doing this from a static page with the rvest package is easy, the problem is that I have to change the value of two buttons on the page. The site is this here . Note that above the...
asked on 21.06.2016 / 05:34
1
answer

Extract elements from a List

I have this list: a <- list() a[[1]] <- matrix(c(1,2),nrow = 2) How do I select element 2?     
asked on 17.06.2016 / 01:35
2
answers

Checking days remaining between current date and deadline for contact [duplicate]

Good afternoon folks, as per the code below, I can not check the remaining days between $ date and $ prazocontato. $consulta = mysql_query(" SELECT s.id_cliente, p.nome_servicos, s.data, s.prazocontato, s.email, s.vaifazerservicos...
asked on 25.07.2016 / 20:39
1
answer

How to implement a Route System in MVC?

I'm creating an MVC framework (more for studies), and I'm trying to implement a route system , but I'm not sure how to execute the routes. So I would like to know if there is any execution flow for an MVC project. Mine looks something like t...
asked on 16.06.2016 / 15:01
2
answers

Consultation with Eloquent do Laravel

I have this query: select Q.id,Q.questao, D.disciplina, S.serie, S.ensino from questoes as Q left join capitulos_questoes as CQ on CQ.questoes_id = Q.id left join modulos_questoes as MQ on MQ.questoes_id = Q.id left join banco_discip...
asked on 10.10.2016 / 19:38
2
answers

How to define a header with a JWT token in a request made by the Requests library?

I am using the Requests Python library to make HTTP requests. I was able to make a post request quietly in order to get a JWT token. But now I need to send this token through a header, but I have no idea how to do it. The code I cur...
asked on 27.10.2016 / 13:58
3
answers

Ionic - Show side menu in all view except main page

Hi. I have a problem with Ionic's side menu. I need to display it on all but the first views. I tried to put all the views with the side menu, and hide the menu button on the main page, but when you put hide on the button, it disappears in al...
asked on 29.09.2016 / 15:35
1
answer

How does MVVM really work? [duplicate]

How does MVVM really work? What are the responsibilities of ViewModel and Model? I've been implementing a project with MVVM pattern for some time, but now some questions have come up about the pattern. Where to implement the IN...
asked on 30.08.2016 / 18:22
1
answer

Does programming in English conflict with the construction of a ubiquitous language?

I've already found some arguments in favor of programming in English, instead of programming in Portuguese, and we already have a # wondering which would be the recommended way. I happened to think about it from the point of view of Domain Dr...
asked on 07.07.2016 / 06:05