All Questions

2
answers

How to instantiate $ pdo = connect () without repeating?

For example I have a class named user : class User { public $nome; private $email; protected $senha; public function __construct(){ } public function insert($email, $senha){ require_once "conexao.php";...
asked on 21.07.2017 / 20:44
1
answer

How to correctly use BufferedInputStream?

I'm creating an application in which I need to read from a video file and transmit packets of data that can be read back into memory. I am using the Ogg video format because it is open source and because I found it simpler to understand. I used...
asked on 01.08.2017 / 23:36
2
answers

Javascript has a xor operator?

There is an xor operator in javascript and what would be the 'symbolic' form of it (eg or has || and and tem & &)?     
asked on 23.07.2017 / 18:02
3
answers

Validate file extension

I have a code that checks the size before sending the file, I would like to know how to check the file extension along, for example, I need these extensions .jpg, png, .gif, .pdf, .txt, .doc, .docx . Would I have to do in the same code?...
asked on 24.08.2017 / 22:51
2
answers

combine vectors per row in R by filling empty spaces

I have two vectors: a <- c(1,2,3,4) b <- c(1,2) I want to create an array by combining the vectors per line as follows: 1 2 3 4 1 2 0 0 That is, join two vectors per line and fill in empty spaces.     
asked on 11.08.2017 / 21:14
1
answer

Find line that starts with expression negation

I have a text file with many lines. Is it possible for me to find the first line that does not match regex ? Example, I want to make a regex that shows me the first line that does not start with BOLO BOLO BOLO CHOCOLATE I'm using...
asked on 24.08.2017 / 15:32
2
answers

Push () does not work in VueJS?

I need to push () on the% void of VueJS and have it add another object to the array of objects it has there. But when I click the button I programmed to do this push () it just does not. Follow the code below: atualizar () { axios({...
asked on 24.08.2017 / 15:06
2
answers

CRUD with images, working with HttpPostedFileBase and byte []

We are using the EntityFramework with CodeFirst and DataBase PostgreSQL. There are some tables that should save images, and POCO classes are referenced as byte array. Up to this point everything is quiet. I can get the images with HttpPostedF...
asked on 25.08.2017 / 05:17
1
answer

Making the insert in SQL Server in a float field?

I have the following problem in my code, I have a textbox that receives the value 0.900 , but when I am writing this value to the bank, it is only recording 900, and I need to record the 0.900 and I can not write this way, the field...
asked on 08.08.2017 / 15:00
1
answer

Why are my custom error pages not being called?

My custom error page is not being called. OS: Linux Ubuntu PHP 7 / Laravel 5.5 I have already created the folder "resources / errors" and in it the file "404.blade.php" I have already given permission on the OS to the folder I have a...
asked on 28.08.2017 / 15:49