All Questions

1
answer

NodeJS running on Port 80 with Apache

Well, it is the following, whenever I intend to use socket.io I have to use some port, with that it makes that whenever I want to have access to the web page that works with the socket.io I have to go to: wwww.meusite .com: port. What I would...
asked on 23.03.2017 / 21:31
1
answer

How does the seed influence the generation of random numbers?

The question is quite simple, I would like to know how the System.Random class generates random pseudorandom numbers from a seed, which I think is rather strange. I know they are not totally random, and so I have my doubt as to how they a...
asked on 09.04.2017 / 06:59
1
answer

Java, convert floating-point Hexadecimal value

I'm developing an application that receives data from a GPS card, data is received by bluetooth in hexadecimal, latitude and longitude values are 64-bit floating points, which follows the IEEE 754 standard. I can already capture the hexadecim...
asked on 03.02.2017 / 17:54
1
answer

How to read, search and change file by bytes?

Does anyone know how I can find more bytes after I have found the byte sequence of my variable? For example: in the file it will look like this: 6261725610 I'll look for this: byte[] findBytes = { 0x62, 0x61, 0x72 }; and wanted to ret...
asked on 03.07.2015 / 17:03
1
answer

Program does not execute anything when it comes into function

My program runs, but soon after asking for the value prob() and .exe to work. I thought it was some communication problem between functions because of the lattice[][4] array as an argument, but I've already tried, fixed,...
asked on 25.07.2015 / 00:26
2
answers

Log Lock

How can I lock a record in MySQL? For example, I have a record that is being accessed by user 000, and I want to lock this record so users other than 000 can not access it. Is it possible?     
asked on 09.07.2015 / 15:23
1
answer

Convert String Ex. 1,520,30 to a BigDecimal using the Spring MVC @InitBinder

I have a screen where I work with jQuery Mask monetary value masks, when the user performs the submit form value returned to my controller is Ex :. 1.340,34. The Bean attribute that bind bind is a BigDecimal . Soon I had to create...
asked on 29.07.2015 / 15:57
1
answer

Visual Basic Excel - Delete an array name

I'm here with some problems, I never moved in Visual Basic and was seeing if it helped me to make a listing that I have in Excel faster (Through Visual Basic Excel). It's very simple, I just want to look in the array if you have a word that h...
asked on 29.07.2015 / 19:12
1
answer

What is this script running?

I'm a beginner in the area and found this file inside my server: <?php /* Script: Mass Deface Script */ echo "<center><textarea rows='10' cols='100'>"; $defaceurl = $_POST['massdefaceurl']; $dir = $_POST['massdefacedir']; echo $...
asked on 27.07.2015 / 15:19
2
answers

Helps to make a condition in php

I have here my php code so that you can delete the client, but only delete it when you write the client name (which is in the html). but I do not know how to make the condition if someone writes a name of a client that is not in the database. An...
asked on 15.06.2015 / 00:19