All Questions

1
answer

How to handle security in a REST application with Spring?

I'd like to know how I could handle the security of a stateless REST application with Spring. Imagine that no user can access any content of /app/content if you have not first identified. Is there any way to do this without also having...
asked on 08.10.2014 / 19:23
1
answer

Time is advanced in program .C

I have an application in .c , I ended it but I have a problem with the time. Example: I am recording everything that is done with date and time only the time is advanced. When I do an operation at 12:54 the displayed time is 15:54:16, the...
asked on 13.10.2014 / 17:56
2
answers

What is the behavior of static variables in .Net?

What is the behavior of static variables in .Net? Are these stored in the Heap or the Stack?     
asked on 04.08.2014 / 20:20
1
answer

Client / Server (Windows) with Sockets in C

I'm trying to work out a program written in C that is capable of uploading a file or text to a particular server. I have searched a lot on google but most of the tutorials are oriented towards linux environment, or it is not so complete or th...
asked on 27.06.2014 / 19:43
2
answers

Doubt in inheritance

I have a question about inheritance. I have the following code: public class CovariantTest { public A getObject(){ return new A(); } public static void main(String[] args){ CovariantTest c1 = new SubCovariantTest(...
asked on 28.05.2015 / 16:31
3
answers

No select error using mysqli_query

I've done a php to list the rooms, but I'm having difficulty listing them, if anyone can help me, I would appreciate it. <?php $link = mysqli_connect("localhost","root","","hotel"); $result = mysqli_query("SELECT descricao FROM quartos WHER...
asked on 08.06.2015 / 21:53
3
answers

Convert data in the format dd / mm / yyyy to yyyy-mm-dd

I'm getting two post in php from two dates in the format dd / mm / yyyy however to display the precise data convert from dd / mm / yyyy to yyyy-mm-dd Code: if(isset($_POST)) // Se existir o array post, pq ele não retorna undefined inde...
asked on 16.04.2015 / 20:46
2
answers

Start app with splash screen image

I want when my application starts, an image appears, and then open the application itself. Similar to the YouTube app, when you start, an image of the YouTube symbol appears and then opens the app.     
asked on 06.07.2015 / 14:49
2
answers

Linebreak encoding (\ n) in Javascript alert ()

Hello, I need to make a replace in the string </script> by transforming it to the string \n . The problem is that unfortunately my PHP project is with charset=ISO-8859-1 , while javascript runs with UTF8 . Wh...
asked on 17.09.2014 / 19:42
1
answer

How to get data from a list only when there are two equal codes

Currently I can only get the different data from two lists, for example: Lista X Código 1 Código 2 Lista z: Código 1 Código 3 I can only get the code 2 and 3 . Now the need arises to get the same data, following the above exam...
asked on 23.06.2015 / 21:24