All Questions

2
answers

What is the difference between 301 and 302 redirection?

I would like to know the difference between these two types of redirection code: 301 and 302. I noticed that they are called in the Google Webmaster Tools of Permanent redirect and Temporary redirect , respectively 301 and 302...
asked on 17.01.2017 / 20:10
2
answers

How to know the array key of the 3 biggest results?

I have this array $qtd = array( 'acao' => $acao, 'aventura' => $aventura, 'comedia' => $comedia, 'drama' => $drama, 'faroeste' => $faroeste, 'ficcao' => $ficcao, 'suspense' => $suspense, 'terror' => $terror, 'romance' =...
asked on 08.11.2016 / 17:40
4
answers

Problem with height of divs that do not follow each other's content

I have a problem that I think is easy, but I can not figure out how to solve it. I have a structure of type: <div class="conteudo"> <div class="esquerda"> </div> <div class="direita"> </div>...
asked on 17.05.2014 / 16:09
2
answers

Why this code goes into infinite loop?

Why do I put an invalid entry as asdf the code below goes into infinite loop? After catching the exception and writing the message, should not it ask for another entry again? import java.util.Scanner; public class Leitura { public st...
asked on 04.04.2014 / 05:22
4
answers

Call one function inside the other, through a string

In order to make it easier for other programmers to default to , I have created a JavaScript library with some form field validation and formatting functions (date, telephone, CNPJ, etc.). At the end of the process, this library allowed me a...
asked on 31.03.2014 / 21:38
2
answers

Separate application authentication server

I have a client that will develop two applications of your company, that is, two services offered by your company, and plans for other projects, and mobile versions thereof. Well, for the sake of modularity of the design and ease of developme...
asked on 13.09.2014 / 06:38
3
answers

Query two tables in Mysql

My situation is this: I have several tables that have some information in common, such as UNIT. In one of these tables I have all my units and I need to check if this same UNIT also exists in another table, and if there is, display the inform...
asked on 24.11.2014 / 19:11
2
answers

How to filter a list asynchronously using LINQ?

Code sample without using async: var products = db.Products.Where(_ => _.UserId == currentUserId); How do I make this query asynchronous taking into account that Where of Linq does not support the use of await ?     
asked on 16.09.2014 / 18:05
3
answers

Change android APP text font

I'm developing an Android APP on Android Developer Tools. I would like to know how to change the text font that is default from Android to the Museo.otf font, and how to apply it to all TextViews. Thank you in advance.     
asked on 28.06.2014 / 00:18
2
answers

Remove String Connectors with Regular Expression

How could I remove connectors: "and", "do", "of", "of", "of", "of", "di", "du". One sentence without changing the whole name. Example name: Daniela de Andrade. I want to remove only "from", without removing the "DA" from andra "FROM" I am usi...
asked on 23.11.2014 / 23:20