I would like to know the commands to create an alias, I know that I can shorten my commands and make it faster and more productive, but I still do not know how to do this. Does anyone know the create and remove commands?
It's common to read that the concatenation method join() is much top other techniques in Python (such as + or += ). Starting from this point, I ask some questions:
What does join() do so fast?
Should I always...
Is there a regex / replace to make uppercase words in the middle of the sentence for lower case?
(Yes, I could pass everything to Lower) but it has a however in it, the rule should be ignored if the word is after point (.).
Example:
Us...
Working with Visual Studio, when an error occurs while the program is running the program crashes and you can not see where the program crashed and only that error screen appeared.
To get where these errors occur we use try catch , so w...
I have a "Address" variable, however, it is made up of "Street", "Number" and so on. The way I did below is the best one to do? With class and struct at the same time? Or is there something better and simpler to do?
public struct...
I'm using the str_pad function to get a string and fill it with 10 0 characters.
It's working perfectly, see the example:
echo str_pad("dda", 10, "0", STR_PAD_LEFT);
It writes 0000000dda .
The problem occurs when I...
I'm asking this because I went to minify a JS and it gave me a code that I did not quite understand ...
My original code:
$('input').each(function(a,b){if(b.value == "U"){$('.variacao-sku').remove()}});
What he gave me:
$("input").each...
Many times, when I have a question that I'm sure has already been answered, I come here in "Ask a question" and I type the terms that I think are key in the title, to get the related answers. But I did not find any when I typed this one.
I sa...
I store the values of the products in the database as follows:
For example:
R$ 5.000,00
How do I do in PHP to make this number stay 5000? In other words, "deformat"?
Do you have any function that works for any number? Something like t...