All Questions

1
answer

Import data from the central bank into the R

I wonder if it is possible and how to import data from the central bank direct to the R If there is any specific api or package to access the time series     
asked on 15.12.2017 / 17:00
2
answers

Function that returns an array of strings that are in all arrays

Talk to people, all good? My question is simple, but the solution may not be as simple as that. The truth is that I am doing a job in JS and soon I will need to solve a problem that will make me lose a few hours breaking my head. So I d...
asked on 27.06.2017 / 14:32
1
answer

Check if String has '+' character

I need to look up a string if it has a + character, like this: teste = teste.replaceAll("+", "e"); but I get this error:    java.util.regex.PatternsSyntaxException: Dangling meta character '+'     
asked on 02.06.2017 / 05:25
2
answers

Play a chart in the R

I made chart 1 below in R, from the code: library(truncreg) set.seed(1) x <- sort(rnorm(50)+3) y <- 3 + 1*x + rnorm(50,0,0.3) compl <- data.frame(x,y) y[y>6.5] <- 6.5 sample <- data.frame(x,y) pred.OLS <- predict(...
asked on 26.06.2017 / 01:40
1
answer

Send files via FTP with PHP

I have the following code in PHP for UPLOAD of files in PHP and send to an external server via FTP. However, it returns the following error when I do UPLOAD: Warning: ftp_put(): Illegal PORT command. in /var/www/protocolo/teste/envia.php on li...
asked on 05.06.2017 / 16:52
1
answer

Many-To-Many Relationship Mapping - EF Core - C #

I've tried to map a relationship between 3 classes, but I'm catching up. I have a Person class that represents any Person, an Employee, a Client, a Supplier, any kind of Person, be it physical or legal ... When I register a certain type of perso...
asked on 29.05.2017 / 23:52
2
answers

How to display the company logo icon in the outlook message box

I have an email trigger code using Zend. $mailTransport = new Zend_Mail_Transport_Smtp($this->smtp_host, $config); $mail = new Zend_Mail('UTF-8'); $mail->setFrom($from['email'], $from['name']); $mail->addTo($to); $mail->setSubject...
asked on 23.06.2017 / 20:26
1
answer

nodejs, get value from a mysql SELECT

Well, I wanted to know, how can I get this result, and turn it into variable and be able to use functions inside the script, example take that Name warrior and use it as a variable, type: con.query( 'SELECT * FROM servers WHERE id = ?'...
asked on 05.06.2017 / 11:17
2
answers

Javascript clock with NTP time or server

I have the code below, which displays a clock on a page, which serves to record factory intervals. It works perfectly, with the code below: function moveRelogio(){ momentoAtual = new Date(); hora = momentoAtual.getHours(); if (h...
asked on 20.06.2017 / 20:49
3
answers

Group by interval of days using Linq

How can I use interval grouping with Linq? var dados = new[] { new { Id = 0, dias=100, preco= 25, Nome="etc"}, new { Id = 1, dias=40, preco= 50, Nome="etc1"}, new { Id = 2, dias=50, preco= 55, Nome="etc2"}, new { Id = 3, d...
asked on 08.06.2017 / 21:57