All Questions

1
answer

Identify what is in the USB port

When a device is connected to a USB port, the operating system identifies the device. For example, in Windows, you can see which devices are connected to USB ports in Device Manager. I need to programmatically check if a specific device is co...
asked on 10.01.2016 / 16:54
1
answer

Newton Fractal, roots of equation z ^ 4 = 1

I'm wanting to plot a graphic of an image, called Newton Fractal: Followtemplate:Theproblemistoplottherootsofthez^4=1equation,whereithas4rootsbeing(-1,1,iand-i),wheretofindtherootsIuseNewton'smethodtoapproximate.Thedifferentcolors(red,green,...
asked on 03.12.2015 / 01:15
1
answer

Get File Size in Bytes in Java Script

I'm validating the attached file size on my page before upload using the following code: var tamanhoArquivo = parseInt(document.getElementById("documento").files[0].size); if(tamanhoArquivo > 2097152){ //MAX_FILE_SIZE = 2097152 Byte...
asked on 26.11.2014 / 15:09
1
answer

Is it safe to use TimThumb?

I'm making a website and I started using the TimThumb.php library to resize the images to the exact size I want. However I came to two doubts Is it safe to use? hear that past versions presented vulnerability; Doing the usage will imply...
asked on 20.12.2015 / 22:41
1
answer

I can not display the value of SQL

I'm trying to start a MySQL database connection and it works, but when I request that PHP display what it has there nothing appears. It's as if the connection to the BD had failed. <?php // definições de host, database, usuário e senha $s...
asked on 25.12.2014 / 21:44
3
answers

How to save and load data from a .txt to a gridview?

It's been two days since I've been looking for help with my problem, but everything I think does not help me. I'm doing a simple program, like an agenda, where I put all the records in my store. I do not need anything complicated. I made a...
asked on 27.11.2014 / 18:14
2
answers

What kind of tests can I still do in this code?

I'm doing a test run in a simple bank application, but I do not know what kind of test I can do in that system to cover 100% of the code, it's only covering 61%. I already did all the tests with lower values, equal and higher, I did with anonymo...
asked on 25.11.2014 / 13:19
1
answer

PHP, AJAX and jQuery

Hello. I have the following hierarchy of folders: Parent folder, with the following: file submit.php, with the following code: <?php ini_set('display_errors',1); ini_set('display_startup_erros',1); error_reporting(E_ALL); include("libs...
asked on 11.12.2014 / 23:39
1
answer

Twitter Bootstrap: Set specific CSS rule for different sizes

I would like to know how to declare a value to a CSS property according to the browser's resolution in Bootstrap. Example: I want a border to appear only on smartphones or very small resolutions (col-xs). Does bootstrap provide an easy way to...
asked on 17.12.2014 / 05:18
5
answers

How to pass a list of values to a Stored Procedure?

I am creating a stored procedure in SQL Server 2008 R2 and would like to pass a list of values by parameter, for example: Table produto ---------------- | id | nome | | 1 | maçã | | 2 | pera | | 3 | uva | Stored Pr...
asked on 03.01.2015 / 14:10