All Questions

1
answer

Tomcat 7 configuration in Eclipse results in HTTP Status 404

I downloaded the tar-gz version of TomCat 7 and in linux manually set the variable CATALINA_HOME I typed the command $CATALINA_HOME/bin/startup.sh and hit http://localhost:8080/ , it worked normally ( appeared home I've bee...
asked on 05.01.2015 / 00:02
3
answers

Use PHP variable in JS file

I want to put PHP code in a JavaScript file, it is not an HTML file. Like for example here: document.getElementById('lbljour').innerHTML = "Jour " + date_today; With the PHP code would it be something like this? document.getElementByI...
asked on 24.10.2014 / 11:29
1
answer

How does authentication work in a RESTFul stateless environment?

My question is: Imagine 3 tomcat servers (s1, s2, s3) and all 3 servers connect to a single sgbd server (s_bd1). The three tomcat servers run an application that is RESTFul and stateless in nature, so they do not load the user session. her...
asked on 19.09.2014 / 03:45
1
answer

Creating a friendly URL on a one-page

I have a site that is one-page. I separated the screens by <div> to make it easier. However, if I click news it goes correctly to the news screen, but the URL does not change. How do I include a friendly URL for each "section"...
asked on 17.09.2014 / 14:56
1
answer

What status can I return in an attempt to submit a form without a TOKEN?

I'd like to know what status http I should return in my application if someone is trying to forge a request via form. The application I developed is done in Laravel 4 and I'm using that CSRF_TOKEN . The CSRF_TOKEN...
asked on 13.02.2015 / 14:02
1
answer

Insert within array whose parent property value is equal to the property value of the child object

I have an object (Questions) and I want another object (Answers) to be added to it according to a common id. var Perguntas = [ { idPergunta: 13, textoPergunta: "Qual seu nome" , Respostas : [] }, { idPergunta: 26, textoPergunta: "Qual...
asked on 06.11.2014 / 20:13
1
answer

Integration with GIT

I would like to know if Git provides an integration API, such as I am developing a C # application and would like to know if you have any way to get the files from the last Commit . I took a look at the GIT website, but I did not find anything...
asked on 20.08.2014 / 22:52
1
answer

Difference between null and clear in an ArrayList

What's the difference between: arrayList.clear(); and arrayList = null; Do not both destroy all elements of the ArrayList?     
asked on 29.08.2014 / 05:39
1
answer

Install a self-authoring app on an iPhone without developer account

As the jailbreak is not banned I think I can ask this question here, does it exist with jailbreak or some other way to install an app developed by me on an iPhone? In case the app is automation it will control some devices.     
asked on 03.11.2014 / 17:09
1
answer

How to handle variable filled by Javascript NAN

I have a <input/> in HTML that when I fill up some calculations to automatically fill the other inputs , but if I do not fill in the data this <input/> that triggers the Javascript function the value of the following...
asked on 06.11.2014 / 22:42