All Questions

1
answer

How to get the 10 most frequent words of em array?

I need to know how to get the ten most frequent words. This code takes all the words in a text and saves how many times it occurred. if len(palavra) > 0: if palavra in conjunto: qtd = conjunto[palavra] qtd += 1 conjunto...
asked on 30.06.2017 / 17:56
2
answers

Hide password on terminal [duplicate]

I'm developing a python application that will work through the terminal At some point, I need to login: print('É necessário informar suas credenciais para se comunicar com a API') email = input('Email: ') password = input('Senha: ') Th...
asked on 21.07.2017 / 15:40
1
answer

What is lazy instantiation?

I saw here in the Wakim answer that code snippet: data class Person(val firstName: String, val lastName: String) { val fullName: String by lazy { "$firstName $lastName" } } What is this lazy instantiation ?     
asked on 12.08.2017 / 00:40
1
answer

What is the purpose of the data class?

In Kotlin you can create a class as follows: data class Dragon(private val name: String, val glass: Int) What is the main goal of data class in Kotlin? When should we use?     
asked on 11.08.2017 / 19:37
1
answer

Why is this Bootstrap Tab setting not working?

The code is as follows: <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Site</title> <link href="css/bootstrap.css" rel="stylesheet" type="text/css"> <link href="css/bootstrap-theme.c...
asked on 26.04.2014 / 20:08
4
answers

How to change an element within a less file?

@fundo:#fff; //como alterar isso, externamente com javascript @texto:rgb(94, 135, 176); //preciso mudar essa propriedade dinamicamente. .wrapper{ background-color:@fundo; } nav a:hover{ color:darken(@fundo, 30%); } nav a{ color:da...
asked on 25.02.2014 / 16:44
2
answers

jQuery - Toggle background-image of an element

I have an element figure with a series of images inside: <figure class="MiniModImgSlider"> <img src="img01.jpg" alt="img01"> <img src="img02.jpg" alt="img02"> <img src="img03.jpg" alt="img03"> <img src="img04...
asked on 14.04.2014 / 18:21
2
answers

Static string being created with wrong encode

Hello, When creating a string in a Java class (for example: String t = "Ola Java!" ), it seems the compiler is choosing the 'wrong' encode to interpret the bytes that are in the source and generate the String (the 'right' encode should...
asked on 30.03.2014 / 19:10
1
answer

Change class when resizing screen

I want to change classes as the screen is resized, the code I'm using only works if I refresh the page, I would like to make the class change without needing to refresh the page. Code: $(".call-principal").each(function(){ var scre = $(...
asked on 01.04.2014 / 10:34
1
answer

Continue to execute the loop even if a passage gives a problem

I am downloading the Bovespa stock data for the quantmod package. However, I still do not know why, in the data from Santander (SANB11) the getSymbols function of the package is giving problem and the loop for execution. Is ther...
asked on 20.02.2014 / 00:31