All Questions

1
answer

Local Storage or Cookie, where is it better to store an authorization token?

We have a project and we will use token de autorização , we are using AngularJs for front end and back we develop in Java using Spring Framework and Spring Security , and send token header ....
asked on 28.10.2016 / 13:05
2
answers

Paste mysql field dynamically

I created a select command based on information sent by the user, eg: $anoini = $_GET['anoini']; //variavel com ano escolhido pelo usuário $anofim = 2016; //ano final é 2016 $s = 'SELECT pa_proc_id, procedimento, '; //inicio da query while ($...
asked on 04.11.2016 / 19:39
1
answer

Access local variable outside of an if

How to create / modify a variable within a if and be able to access it without having to set it in global mode / scope. I'm working on a Lua file similar to this schema: if verificacao then local variavelDoArquivo = 123...
asked on 16.11.2016 / 07:44
1
answer

Why use __debugInfo ()?

I saw PHP 5.6 now create the new magic method, called __debugInfo . This method is intended to return a array , so it will be printed on the var_dump call. This array returned obviously should provide debugging infor...
asked on 17.11.2016 / 14:51
1
answer

Why does rvest break when processing an empty file?

When trying to process the contents of an empty file, the rvest package locks and closes RStudio . Here is a small replay of the problem: tf <- tempfile() file.create(tf) html_erro <- read_html(tf) html_erro %>% html_node...
asked on 22.11.2016 / 01:41
2
answers

Check and edit a List

I have a List: private List<Geracao> lista; This list will be populated with data coming from a database: lista = dao.findAll(); The findAll() method: @SuppressWarnings("unchecked") @Override public List<Gerac...
asked on 17.11.2016 / 11:40
1
answer

UML aggregation X composition

By studying associations in UML (aggregation and composition) I realized that the difference between them would be only the existence or not of the parts without the whole. link Aggregation = > Parts exist without the whole Composi...
asked on 05.12.2016 / 14:55
2
answers

Upload upload files with AJAX

I am not able to send some upload files with AJAX. I need to send 3 files with dynamically generated inputs, so I did not use the multiple attribute. By firing the event, I get to the xhr.send (files), which does not "play" the PHP file. C...
asked on 14.10.2016 / 23:54
1
answer

Graph of interaction in ggplot2

I'm trying to adapt some of the standard R graphics to the ggplot2 style. One of the charts I want to do this is the interaction graph in a linear model fit study. The following data were taken from Example 9-1 in Douglas C. Montgomery...
asked on 15.12.2016 / 19:45
1
answer

Help with Javascript comparison operators

Good afternoon, I'm doing a job, of which I'm going to have several forms with a minimum and maximum number and I'm trying to create a check function and avoid inserting numbers out of range through the keyboard, my function was this way $...
asked on 20.11.2016 / 17:31