All Questions

3
answers

How to change order of appearance of columns in a Data Frame?

I have this df mounted on the R: Produto Classificação Comun Quilo Indice 1 ABACAXI HAVAI A GRAUDO 3,32 2,2 2 2 ABACAXI HAVAI B MEDIO 2,81 1,8 3 3 ABACAXI HAVAI...
asked on 09.03.2017 / 19:30
1
answer

how to avoid multiple function calls in the view?

Using Angular, in my controller I have a function that calculates the amount of filtered items. So: $scope.totalConferenciasRestantes = function () { return $scope.solicitacoes.data.filter(function (solicitacao) { return solici...
asked on 20.02.2017 / 17:47
4
answers

Increasing modal size using bootstrap and html

I have a certain modal responsible for displaying some content of the site, however the content can not fit the modal screen, it always stays the same width regardless of the content ... how can increase the size of a modal? code being used...
asked on 08.03.2017 / 18:59
1
answer

Error when trying to extract table from a site by R, how to solve?

I'm using this code, I want to import the country table into the R: library(XML) url <- "http://en.wikipedia.org/wiki/List_of_countries_by_population" country_data <- readHTMLTable(url, which=2) R returns the error: Error: failed to...
asked on 22.02.2017 / 20:56
1
answer

What is the best way to concatenate strings in Python?

I know I can concatenate strings with += , + , join() and append() . All of them give me the same result when I concatenate two strings. What is the best way to concatenate strings in Python? What is the difference be...
asked on 03.03.2017 / 04:14
2
answers

Insert a select into a td by double clicking it is possible?

Hello, I have a dynamic table that works fine, but since the field is an input people can type anything, but I wanted to limit this edition using the option options, the table I use the id="tblEditabel" and in the rows which will work with...
asked on 18.02.2017 / 14:20
1
answer

request time in AJAX

The problem is that I need to load the load only if the request takes more than 2 seconds. I'm doing this: $(document).ready(function () { $(".loading").show(); $.ajax({ url: 'APP?pagina=<...
asked on 08.03.2017 / 15:28
1
answer

Magnific-Popup with Bootstrap Modal image display problem

I'm facing the problem of displaying image within bootstrap modal. I use this plugin: Magnific-Popup Follow the code: HTML: <!-- Button trigger modal --> <button type="button" id="mymodal" class="btn btn-primary btn-lg" d...
asked on 21.02.2017 / 01:26
1
answer

How to transform Array into different variables?

I have the following array which returns me the following values: ( [cliente] => Array ( [0] => Array ( [Code] => 1 [Name] => a...
asked on 22.10.2016 / 15:08
1
answer

How to make an input password in PyQt4?

To use a field similar to input of HTML in Pyqt4, I usually use QtGui.QLineEdit . But how do I make a field similar to input password, what is a specific field for entering passwords? Can you define the "asterisks" that...
asked on 26.10.2016 / 21:12