All Questions

2
answers

How to get a snippet of a string?

I have a string like this: ~/Areas/Teste/Views/home/index.cshtml I only need the word next to ~/Areas/ , in the case Teste (remembering that word may vary in size). How do I?     
asked on 09.10.2014 / 15:56
3
answers

How to do Javascript calculations by accepting a comma to separate decimal places

I'm making an app where in fields that accept decimals, the client can put the comma instead of the dot (which is the common visual). What is the best way to transform a "12,34" string into a numeral like 12.34 ?     
asked on 03.12.2015 / 15:24
3
answers

What is the purpose of declaring a function within a function?

In Python it is possible to declare a function inside another function, as shown in the following code. def foo(palavra=None): print(palavra) def bar(outra_palavra=None): print(outra_palavra) if __name__ == '__main__': fo...
asked on 05.11.2017 / 07:54
2
answers

Check if a word is within a phrase

Is there a way to check if a word is within a user-described phrase? Ex: palavra = "criativo"; Sentence written by the user: "Eu sou criativo"     
asked on 16.10.2015 / 15:43
3
answers

How to convert single-line code block?

I need to convert certain blocks of code into a single line. How can I do this? I'm using Notepad ++     
asked on 18.08.2015 / 18:56
3
answers

Reading XML NFe?

I'm doing an XML reading from Nfe however, I'm currently reading and playing in a txt , but I can not read those tags below: <?xml version="1.0" encoding="UTF-8"?> <nfeProc xmlns="http://www.portalfiscal.inf.br/nfe" versao="2....
asked on 16.12.2014 / 17:05
5
answers

Internet Explorer, should I still worry about it?

Today when developing a new site , should I still be concerned about compatibility with older versions of Internet Explorer , or are we out of this phase already? I ask this because today I received the approval of a user of a site that we...
asked on 13.02.2014 / 19:28
3
answers

Select with WHERE condition with multiple values in the same column

I have two tables in my bank and I do the JOIN with them. One table is a list of people and the other list that person's characteristics. By logic there is only one person and each person can have several characteristics, so two tables. So when...
asked on 01.05.2018 / 17:02
4
answers

How to check if IP exists with bat

I can ping all network addresses with something like this: for /l %%x in (1, 1, 100) do ping 10.1.1.%%x However, not all addresses are valid, and in that case, it's timeout. Is there any way I can check if the IP exists, to only then ping i...
asked on 23.05.2017 / 16:17
3
answers

Remove Saturdays and Sundays from Calculation

I have a project where I work with project activities, my activities have a certain time to complete, but the project has to do the calculation only with administrative days. For example, an activity starts on 10/26/2015 (Monday) and its dura...
asked on 25.10.2015 / 19:22