All Questions

2
answers

How to test private methods in C #?

How to test private methods using Microsoft.VisualStudio.TestTools.UnitTesting and Moq My test class looks like this: [TestClass] public class ClasseDeTeste { private MinhaClasseComMetodosPrivados _minhaClasseComMetodosPrivados;...
asked on 05.06.2017 / 22:47
4
answers

How to create a directory in Python?

How can I use Python to create a particular directory? For example: app/ main.py How could you do to create a directory named temp within app through Python main.py ?     
asked on 09.12.2016 / 14:11
4
answers

How to upload images using CKEditor?

I'm building a Knowledge Base system and I'm using CKEditor to edit the texts, but I wish I could make UPLOAD of images within the text. I'm using PHP with MYSQL and the text part is already working. How can I upload images within CKEditor...
asked on 21.09.2016 / 21:15
2
answers

Error using the File.Delete method inside the Controller

I'm having problems with my controller the moment I start a file exclusion routine. I'm using the File.Delete() method, but it just does not recognize and returns the following warning:    Can not choose method from method gr...
asked on 14.02.2014 / 13:19
2
answers

How to customize the getter in Kotlin?

When we create a variable of type val , in the case of Java, only getter is created in relation to it. Different when a variable of type var is created, in which getter and setter is created. Here is an example:...
asked on 10.08.2017 / 15:43
2
answers

How to split the dataframes of a list based on a group variable, common in all of them?

I have a list with n dataframes. They have a common variable called group . I want to parse dataframes only with the groups a and c of group . My goal: Return these dataframes within the list with only these sele...
asked on 11.09.2018 / 22:01
4
answers

Create column with sum and percentage of the maximum of other columns

I am a beginner in the R language and wanted to know how I would create a mutate function that would create a new column in my table and at the same time store in that new column the sum of the values contained in the other 6 columns of my table...
asked on 13.02.2017 / 14:35
2
answers

Which tool to use to generate releases in Java?

I am developing my first project in Java, the application is an API using several libraries, among them: Jetty, Hibernate, HttpClient, JasperReport ... In this project I use the Maven framework, I would like to know which tools to use to gene...
asked on 13.12.2013 / 12:36
2
answers

How to know which conditional is giving true?

For example, I have the following if : if(!condicao1 || !condicao2 || !condicao3){ retorno erro com a condiçao que nao existe } When it enters this if I would like to know which of the parameters is missing to return an error...
asked on 04.01.2018 / 02:07
2
answers

Many "if" in an old game for android

When checking if someone has won, I need to use IF several times. I would like to know if you can simplify the code a bit and even replace the IF s. //left, top, right, bottom are int positions relative to canvas //state is a enum{Blank,Re...
asked on 06.08.2018 / 22:20