All Questions

4
answers

Maximum ASP.Net MVC request size

I'm uploading Image using JQuery. I have limited the image to a maximum of 2mb, however when I send an image larger than 2mb, an exception is made saying Maximum request size exceeded. What I did: function fileUpload() {...
asked on 30.03.2016 / 22:23
2
answers

What is the best way to sign in with Angularjs?

In an app using AngularJS and Ionic, what is the best way to authenticate to an API? Do I check login on all screens or do I use some session engine? I guess authentication on all controllers may consume too much data ... What is the best way...
asked on 06.02.2016 / 19:43
2
answers

Doubt, regular expression in java

I have the following regular expressions. The first valid words and you're right. The problem is in the second that is to validate directory, such as " home/PauloNeto/NetBeansProjects/Expre/src/expre/texto.txt ". I can not get her to valid...
asked on 08.11.2015 / 20:34
3
answers

Difference between "Attribute" and "Instance Variable"

Reading some books and articles on introducing Java and OO I noticed that these terms are not well defined. Looking deeper I found different definitions in different sources on the subject. What is the real difference between these types of vari...
asked on 06.11.2015 / 14:42
2
answers

Is it possible to prevent injection of external resources and requisitions for greater security?

I understand that we can create and search javascript plugins, parse the code and make sure it will not inject anything into the page out. But supposing there is some library to inject elements <script> , <link> , &...
asked on 18.07.2015 / 19:39
3
answers

JavaScript encapsulation

If you create a global JavaScript variable, it can be easily accessed from the console: <script> var minhaVariavel = 0; <script> But if I create it like this: <script> $(document).ready(function (){...
asked on 21.10.2015 / 15:59
1
answer

Block direct access to a page

Good afternoon, I'm developing a PHP site in which there is a login screen, which redirects to the admin screen, but if I try to access the admin screen directly through the url, it opens normally. I'd like to block this direct access through...
asked on 07.10.2015 / 19:17
3
answers

Check if the values in an array are all the same or all different

I wanted some function that would return TRUE when all values within an array were equal or all were different, and return FALSE if they were not all equal and not all different. If you have not understood, I'll explain with examples: Ex:...
asked on 29.07.2015 / 18:37
3
answers

Placing images in a div with jquery

How can I put certain images in a div using jquery with a click of a button? Follow the html: <div> <button id="btn2015" class="btn">2015</button> <button id="btn2014" class="btn">201...
asked on 22.11.2015 / 21:16
4
answers

JQuery find tree

I have the following context: <div class='pai' id='item'> <div class='form'> <div class='filho' id='item1'> <div class='filho' id='item3'> </div> </div>...
asked on 21.09.2015 / 15:09