All Questions

1
answer

How to count the cumulative number of occurrences of an element in a vector?

Suppose I have a vector in R: x <- c("a", "a", "b", "a", "b", "c") I need to determine, for each position i of the vector, how many times the x[i] element has appeared so far. The result for the above vector would be [1]...
asked on 14.12.2013 / 09:51
3
answers

The operator module invokes special methods of objects

The biblioteca padrão do Python has the module operator , studying the same I noticed some of its functions have say "aliases" , for example: operator.setitem(a, b, c) operator.__setitem__(a, b, c) Set the value of a at inde...
asked on 29.10.2018 / 19:12
1
answer

How to merge multiple Excel spreadsheets into one?

I have a set of worksheets (for example, suppose they are called file01.xls, file02.xls, file03.xls, etc.), all with the same columns in the Sheet1 tab and with the other empty tabs. How do I merge these sheets into one without having to open, c...
asked on 21.11.2018 / 21:47
1
answer

How to configure Netbeans to work with PHPUnit in a virtualized environment?

I use Netbeans 7.4 on Mac to program. And to not have to install PHP and PHPUnit, I would like to run PHPUnit installed on a virtual machine that has an entire integration environment already configured. This practice has been heavily used, and...
asked on 31.01.2014 / 03:18
1
answer

Format array of dates

I have a Laravel application with the following code: private function todosRegistros($id, $colunas = ['data', 'nivel']) { return Leitura::select($colunas)->where('estacao_id', $id); } public function _24horas($estacao_id) { return...
asked on 15.10.2018 / 21:44
2
answers

Ruby Bematech integration (or similar)

Has anyone done any Ruby integration with a Bematech or other printer? What gems or ways can you print to a fiscal printer?     
asked on 30.01.2014 / 05:08
2
answers

VueJS: how to create a condition for a v-model?

The problem is this, I have a switch done with label and input checkbox and it has a default value that comes from the date of my Vue instance. var app = new Vue({ el: '#app', data: { slcModalidad: 0, chkPosNet: tru...
asked on 04.09.2017 / 22:18
1
answer

Question: how to use python scripts for web?

I want to make a web application that will read colors in RGB of logos and create suggestions of color scales for websites. The algorithm will be in python using OpenCV. The client uploads the image > the image is read by the > the s...
asked on 07.09.2017 / 04:50
1
answer

How to pass an array in the php Query function?

Well, I need to pass two in the php query, but I can not pass them without being as follows: $coluna = implode( ',' , $colunas); $date = implode( " ',' " , $dates); $teste2 = "'$date'"; //O teste2 está gerando algo como: 'exemplo', 'exemplo...
asked on 21.08.2017 / 00:33
1
answer

Failed to load PDF document

I'm working with an office system, where the user will enter the legal number, the person to which the document will be directed and the message, and would like that, if the data were successfully added to the bank, a PDF with the information...
asked on 13.09.2017 / 17:11