All Questions

2
answers

How do I know when the user opened an application?

How do I check, while my program is running, if a particular software is opened by the user?     
asked on 15.02.2014 / 21:40
2
answers

How to create and remove aliases in GIT

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?     
asked on 23.02.2014 / 16:00
2
answers

What makes join () be so superior compared to other concatenation techniques?

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...
asked on 17.09.2016 / 00:08
3
answers

REGEX - Uppercase words in the middle of the sentence

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...
asked on 19.01.2018 / 16:30
3
answers

Run program within Try / Catch

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...
asked on 06.03.2014 / 13:24
2
answers

Can I use class and struct at the same time?

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...
asked on 28.09.2016 / 15:49
2
answers

Problems with str_pad function and accent

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...
asked on 12.09.2016 / 22:21
2
answers

How does the code minifier work?

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...
asked on 24.07.2018 / 13:21
1
answer

How does yield * work in Javascript?

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...
asked on 22.03.2017 / 12:35
3
answers

Withdraw currency formatting and get only the number in PHP

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...
asked on 09.08.2015 / 04:39