All Questions

2
answers

Fluent API with ASP.NET Identity

As this tutorial , I transported Identity in < in> class library to encapsulate the system business rule. However, the entire system is using the Fluent API to map the entities and Identity generates the tables through the code first . I...
asked on 13.02.2015 / 17:10
1
answer

How to get the public IP of a user connected via socket?

I need to get the IP address of a user who will connect remotely to my program, and list it, the program itself is a chat where only the server will store the users IP address. The client connects via socket, how to proceed to capture the IP?  ...
asked on 19.11.2014 / 01:00
3
answers

Get timestamp

I have two variables, one with the date and another with the time. How can I get your timestamp of the two variables. Example: var data = 02/01/2015; var hora = 10:00:00; var d = new Date(data + hora); d.getTime();     
asked on 06.01.2015 / 17:29
3
answers

How to check if a value is a date

How can I check if a post is of type date ? There has been a situation where I have a form that contains a date field: <form action="" method="post"> <input type="date" name="data"> <input type="submit" name="en...
asked on 19.10.2016 / 18:20
4
answers

Advantage and disadvantage between onClick and setOnClickListener

I have a certain situation where we see that it is possible to create in the XML file a property called onClick : onClick: XML: <Button android:layout_height="@dimen/edittext_min_height" android:layout_alignParentLeft="true" and...
asked on 26.10.2016 / 14:09
2
answers

Import multiple classes from the same package

I wonder if there is any significant difference in doing import java.util.* instead of import java.util.ArrayList; import java.util.Collection; import java.util.Date; import java.util.List; import java.util.logging.Level; import java.util...
asked on 08.02.2017 / 13:04
1
answer

Why in file and folder names, some characters are still not accepted?

Why do not files and folders still accept a few different characters? Ibelieveyoumusthavesomeprogrammaticinfluencetomakethatdecision.DidtheOperatingSystemshaveand/orstillhaverestrictionstobeproducedinthisway?Aswellasdomainnamesthatoncedidnot...
asked on 14.02.2017 / 15:19
2
answers

Export to excel via javascript, put name in file

> function ExportToExcel() { var htmltable = document.getElementById('exportdata'); var html = htmltable.outerHTML; window.open('data:application/vnd.ms-excel, ' + encodeURIComponent(html));...
asked on 13.12.2016 / 22:20
2
answers

How to destroy a $ scope. $ watch?

I have the following $scope.$watch in the controller of a directive that I created: var interval; $scope.$watch('active', function () { if ($scope.active == true) { interval = $interval(function () { if ($sco...
asked on 18.11.2016 / 12:02
2
answers

Why is it necessary to use bind when working with ES6 and ReactJS?

Using ES5 in development with ReactJS, a component can be declared as follows: var MyComponent = React.createClass({ alertSomething: function(event) { alert(event.target); }, render: function() { return ( <button onClic...
asked on 06.05.2016 / 15:46