All Questions

1
answer

How to calculate the shannon entropy based on the HTTP header

The Shannon entropy is given by the formula: WhereTiwillbethedataextractedfrommynetworkdump(dump.pcap).TheendofanHTTPheaderonaregularconnectionismarkedby\r\n\r\n: ExampleofanincompleteHTTPheader(couldbeadenialofserviceattack): Mygoalistocalc...
asked on 01.09.2017 / 20:51
3
answers

What is the best way to load JS?

I was facing problems with loading JS, especially IE8, and I had this doubt. I researched a lot, I ended up improving some things. Currently, I load all JS files at the bottom of the page, before the body tag. <body> ......
asked on 10.04.2014 / 20:39
2
answers

Change table users Auth Laravel 5.1

I'm developing a system using Laravel 5.1 and I do not want to use tables in English. Actually I'm trying to keep the standard here in the company. I would like to know if I can use Auth or OAuth and change the table from users...
asked on 13.08.2015 / 17:32
2
answers

Navigation scroll in Bullets

I'm developing a one page scroll site and wanted every bullets I clicked to be active for the page I'm on. This is the example I'm doing the scroll script did not put in yet but wanted to leave the effect of clicking the bullets ready. <n...
asked on 18.02.2014 / 14:46
2
answers

In programming, what is the actor model?

I have a co-worker who is an apologist for the actor model. In general terms, it seems to be a software architecture to be applied to distributed systems or to cloud . What I realized the concept is that there are several actors and each one...
asked on 17.02.2017 / 11:26
1
answer

How does digital certificate authentication work?

I want to authenticate via digital certificate in a web application. I have already read the data from my digital certificate that is connected to my machine. The question is: "How do I authenticate?". Should I get the public key...
asked on 12.12.2016 / 19:07
3
answers

Retrieve local time and date of an arbitrary day in an arbitrary timezone, considering daylight saving time

I want to show the day, hour, minute, etc. in an arbitrary timezone, on an arbitrary day. How to talk about timezone conversion is always difficult and confusing, and how to talk about timezone conversions in JavaScript is even more difficult...
asked on 06.02.2014 / 00:13
1
answer

JS Calculator: Unexpected Results

I created a simple calculator in JavaScript, but some results are going wrong, for example, operations like '10 +10 '(returns 18) or '20 / 2' (returns 8). I'm still learning to tinker with the language, so it may be that the error is quite simpl...
asked on 18.12.2017 / 02:01
1
answer

Validate attribute of type array in an annotation

When using the Ordem annotation you would like to make your valores attribute mandatory. By binding I want to say that the value of your attribute should not accept an empty array, or an array with an empty String. Is it possible to p...
asked on 07.06.2015 / 02:57
1
answer

How do I receive a notification whenever there is a new record in a database table?

I need to receive a notification whenever there is a new record in a particular database table, what can I do to receive? If I make an Ajax request every time, I'll make unnecessary requests. Any other ideas?
asked on 04.01.2014 / 18:10