All Questions

3
answers

Set custom 403 error page

I have the following excerpt in my file .htaccess : <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?route=$1 [L] <...
asked on 17.01.2014 / 07:11
1
answer

What is the name of the technique of hiding components to ensure information?

I ran away from the name of this technique in which the developer instead of dealing with the problem simply hides it. Exemplifying: I have a button that, when clicked, causes a DROP TABLE to occur in my database. I know this but instead of f...
asked on 06.01.2015 / 22:29
2
answers

Where should I declare an instance variable in JavaScript?

I'm in doubt about creating instance variables in a class / JavaScript constructor function. I have read in several places that the declaration of an instance variable is made inside the body of the class as in the example below: function Spam...
asked on 11.01.2014 / 15:33
1
answer

What is the difference between the relationships between tables?

I know there are three types of relationships between data from different tables: 1: 1 (one-to-one); 1: N (one for several); N: N (several to several); But what would be the difference between relationship types and their use in a rel...
asked on 10.08.2016 / 04:03
2
answers

document.getElementById ('ID'). func (...) vs ID.func (...) [duplicate]

Yesterday I came across a curious thing , I had no idea what to do in this way. So far I've done it this way: document.getElementById('a').innerHTML = 'CONTENT'; <div id="a"></div> Always but always I have seen t...
asked on 24.01.2017 / 12:32
2
answers

How does a method that can receive several parameters work?

According to the C # documentation:    The String.Format method is responsible for converting the value of   objects in strings based on the specified formats, and   inserts them into another string. However, I have a question rega...
asked on 20.03.2016 / 17:40
3
answers

What is the index for SQL Server?

For what the index serves, I know it improves performance, but what the database does behind it improves this performance. When is it recommended to use? And where should I use an index?     
asked on 05.08.2014 / 17:51
4
answers

Identify whether the device is a PC or cell phone and use a different code for each

I want it to be automatic if the person is on the computer, to display a code if it is on the phone, to display a different one. I do not want to change the resolution, but rather all the content presented on the page. Example: If it's mobile:...
asked on 01.06.2016 / 18:40
2
answers

How to force loading of JS and CSS files with each new published version?

Every time I publish a new version of my web application (a multi-company system) that has changes in JS and CSS files, some clients complain about errors and I find that it is the cache of the browser and I have to instruct the client to refr...
asked on 03.09.2015 / 20:57
1
answer

How to compare two ArrayList and get the values shared by both?

I have two classes, they are: Class FilterCity: public class FiltroCidade { private int idCandidato; private List<String> cidades; public FiltroCidade(){ } public int getIdCandidato() { return idCandidato;...
asked on 04.11.2016 / 16:53