All Questions

2
answers

Is it possible to use ng-model with contenteditable?

I need to use a div with the contenteditable attribute and the result of that precise value put in a ng-model . I did so, but it does not seem to be working as expected: <div contenteditable ng-model="observacao"></di...
asked on 28.12.2017 / 15:44
1
answer

Query Entity Framework relationship Many to Many

I'm starting to use the Entity Framework and am wanting to query between two tables, Livroes and Autors , and their relationship is of type Many to Many . I do not know if it's relevant but I'm using the Code First method, so I...
asked on 21.02.2018 / 14:16
1
answer

REGEX of HH: MM: SS may be negative

I'm working with HH: MM: SS and I have this% REGEX ^([0-1]?\d{0,4})(?::([0-5]?\d))?(?::([0-5]?\d))?$ I'm using the library InputMask but I'd like to work with negative hours example: Effort: -200: 00: 00 Can I continue to use this...
asked on 05.01.2018 / 13:14
1
answer

Predict function in GLMM

Edited When we use a traditional logistic regression and make a prediction in R for example: library(dplyr) n = 300 xx<-c("r1","r2","r3","r4","r5") xxx<-c("e1","e2","e3") p=0.3 df1 <- data_frame( xx1 = runif(n, min = 0, max = 10)...
asked on 26.01.2018 / 12:17
2
answers

Find values in an object

I'm trying to access properties of an object, a dictionary. However the references are in {String} format and their concatenation through dot (. ) and I'm using split() to break this {String} into an array ... make me use...
asked on 14.01.2018 / 03:03
1
answer

Attack DDOS server [closed]

Hello, I have a server that is suffering DOS attack, I used the command: watch -n1 'attackers' on SSH to see the attacks. It basically has an ip that makes about 380 connections, and makes the server fall in a few minutes. I block the...
asked on 02.03.2018 / 23:28
1
answer

Passing by reference printing garbage in the vector

Personal I made a simple code but I have a problem. I did an "increase" function to increase the size of a vector; The function receives the vector and passes the values of that vector to an auxiliary vector. So I can delete the vector, allocate...
asked on 05.06.2017 / 06:14
1
answer

Why does the output give 16?

#include <iostream> int main() { int x, y = 3; x = (++y) + (++y) + (++y); std::cout << "y = " << y << std::endl; setlocale(LC_ALL, ""); std::cout << "O valor de x é " << x << std::end...
asked on 31.01.2018 / 19:29
1
answer

What are the differences between ViewBag, ViewData, and TempData?

I was researching how to pass data to a view , or rather persist the data of a controller to the view . I would like to know among the 3 ways mentioned in the title: What are the differences between them? In which cases is the use o...
asked on 01.02.2018 / 15:12
1
answer

Reading of pdf via R

I need to convert the PDF data below into a data frame: link Doing a search for the How to Read PDF Data in the R . I had some problems installing the package, but I managed to make it work in RStudio after all. But the result was not sati...
asked on 19.03.2018 / 19:24