All Questions

1
answer

How to set TitleCase using regex in Javascript?

I have this function: var titleCase = function(s) { return s.replace(/(\w)(\w*)/g, function(g0, g1, g2) { return g1.toUpperCase() + g2.toLowerCase(); }); } If I call her by passing something she works ri...
asked on 28.04.2014 / 19:45
1
answer

"java.lang.SecurityException: Permission Denial" on Android 6 Marshmallow (API 23)

I'm trying to register a broadcastreceiver so I can check out a new sms that might arrive on the device. I'm getting an error only in android marshmallow in the following snippet of code from my fragment: public static final String BROA...
asked on 30.03.2016 / 22:28
1
answer

What is the purpose of the JSON type column in MYSQL?

I noticed that Mysql has released a new feature, which is the column can be type JSON (which can even be saved in binary, according to what I was reading). Documentation :    As of MySQL 5.7.8, MySQL supports a JSON data type that...
asked on 16.09.2016 / 21:30
3
answers

What is the difference between the tag and the s?

I saw the tags <del> and <s> , say that one is to be used in non-relevant texts and another to "delete" part of the text, but when using both tags the effect is the same ( a line scratching the phrase). What's the differ...
asked on 07.12.2018 / 17:40
2
answers

What is the meaning of CORS?

I always see the CORS word related to an error occurring when trying to make a XmlHttpRequest request for a given page, which does not have the same domain as the source. Example:    XMLHttpRequest can not load link . Response to...
asked on 04.08.2016 / 18:14
1
answer

What's the difference in the Refresh, Update, Repaint, Invalidate, and Application.ProcessMessages methods?

What's the difference between the methods: Refresh , from TControl; Update , from TControl; Repaint , also from Control; e, Invalidate , also from TControl; In addition to the Application.ProcessMessages ?
asked on 20.10.2014 / 01:38
2
answers

Optimize foreach

I need to check if listaContrato items exist in listaPendencia , if there is no enable to false to be disabled on the screen. What can I do to improve the performance of foreach below? Both lists are List<>...
asked on 10.11.2016 / 15:18
3
answers

What is the solution for asynchronous processes in PHP?

In PHP, often in the middle of an operation, I need to send an email, make a webservice call, or log a log, and these can sometimes take a long time to process, but I do not have to wait for them end a request. I've been looking around, and I...
asked on 26.05.2017 / 16:04
5
answers

Catching piece of text inside a javascript word

I need to check if there is a specific piece within a snippet of a word in javascript. Example, my word is John, I need to check if Jo contains it. I tried to do with indexOf but it did not work, but it did not work. //pesquiso tudo que...
asked on 14.12.2017 / 12:53
1
answer

How to make a counter with zero to the left

I need to print values like this, with leading zeros    00001   00002   00003 for($i = 00001; $i < 10000; $i++){ validar($i); echo $i."\n\r"; }     
asked on 22.11.2015 / 10:10