All Questions

1
answer

Help with animation as you scroll with javascript

I have a vector image <img src="images/first-page/vectors/waves-723178.svg" alt="Imagem vetorial decorativa" class="vector-wave"> and it is positioned to the left of the screen .vector-wave { position: relative; transform: t...
asked on 11.06.2015 / 05:35
1
answer

Probabilistic Considerations on the Calculation of Shannon's Entropy in a Network Traffic

Probabilistic Considerations for Computation of Shannon Entropy in Network Traffic I have a dump file (CAP format) of a network traffic capture made with Debian tcpdump. Until a certain time, it is attack-free traffic. Then a series of TCP SY...
asked on 23.09.2017 / 22:26
2
answers

Scope equivalent to @Stateless in CDI

I'm migrating the EJB annotations of my application to CDI and I have some questions: What is the scope equivalent to @Stateless of EJB in CDI? Would @ResquestScoped do equivalent behavior? I have tested using @State...
asked on 11.09.2017 / 00:44
1
answer

What is more efficient, a complex query or treat the results?

I can do this: $sql = 'SELECT * FROM ' . 'data_companies ' . 'INNER JOIN data_companies_extra_infos ON' . 'data_companies.cod = data_companies_extra_infos.relationship'; $rs =...
asked on 20.10.2017 / 18:38
1
answer

How to create a mask for JformattedTextField?

I'm doing a program that simulates the Turing Machine, and the user fills a form with the states like this {q0,q1,q2} . But I want to create a mask that the user types only q0q1q2 and the value is thus formatted {q0,q1} and all...
asked on 01.10.2017 / 00:42
1
answer

How to organize the CRUD methods for each table?

I would like to know how best to organize the CRUD (create, read, update, delete) methods of each class in Java. An example, to get better at understanding: Suppose we have the Funcionario , Cliente and Produto classes....
asked on 10.06.2015 / 19:33
1
answer

dataTables - Add and preserve CSS class to the last column of each row

To add a CSS class to the last column of each row, I use the following method: var dataTablesOptions = { 'columnDefs': [ { targets: -1, className: 'text-center' } ], // ... }; $('#minhaTabela').DataTable( dataTablesOptions ); The...
asked on 18.10.2017 / 18:32
2
answers

How to print from a web application to a local printer with C #

I need to schedule some of the local printing features on the web where texts and commands are sent to a specific device without user interaction . For example, labeling Zebra and Argox equipment and printing non-tax coupons on Bematech MP2...
asked on 13.09.2017 / 13:04
3
answers

JS variable returning NaN

I'm assigning the sum of a column in an HTML table to a JS (sum) variable, but when I print it on the screen I get a NaN, does anyone know why? <tr> <td style="background:#c4ffd6;" align="center" class="qtd_recuperado"> &...
asked on 04.10.2017 / 13:59
2
answers

Calculating interest with javascript

I'm having a hard time putting together a script, I'm not sure how to calculate date interpolation with javascript, I was thinking of doing a screen that calculates interest, but returns real-time values on inputs that are disabled fol...
asked on 30.09.2017 / 15:48