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]
<...
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...
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...
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...
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...
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...
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?
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:...
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...
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;...