All Questions

1
answer

How to change the border color?

How can I change the border color created by BorderFactory? import java.awt.Dimension; import java.awt.GridBagLayout; import javax.swing.BorderFactory; import javax.swing.JComponent; import javax.swing.JDialog; import javax.swing.JPanel; publ...
asked on 17.06.2017 / 02:39
4
answers

Know what day falls next Monday

I need a schedule for an agenda that will give me the date of the next Mondays from a certain date Ex: today and day 06/01 I need to know what day the next 10 Mondays will fall. 1 = 05/06/2017 2 = 12/06/2017 3 = 19/06/2017 4 = 26/06/2017 5...
asked on 01.06.2017 / 18:44
2
answers

Difference of C / C ++ Array Declarations

What difference and impact do each of these 3 vector statements bring to my code? int n; cin >> n; int* arr = new int[n]; int n; cin >> n; int arr[n]; int n; cin >> n; vector <>int> arr(n);     
asked on 06.05.2017 / 19:31
4
answers

Remove items from an array that contains only 1 character

I have a following array : $arr = array('estrela', 'não', 'é', 'up','.','Evitem', 'estrelar', 'abobrinha', 'coisa', 'fugaz', 'de', 'interesse', 'praticamente', 'individual', 'conversa mole','.','Só', 'porque', 'é', 'engraçado', 'não','quer','...
asked on 05.03.2017 / 20:36
3
answers

How to filter an IEnumerable type list through another IEnumerable?

How to filter a list type IEnumerable<> by passing a parameter of type IEnumerable<> preferably via expression lambda or linq ? Based on the filter below, I expect this result: {MundoId = 0, Continente...
asked on 01.06.2017 / 13:28
1
answer

How the 'in' operator works in Python

Could someone explain to me the logic of the 'in' operator of python? I've done some testing on idle and I still can not figure out how it works. >>> (2 or 10) in range(1,6) True >>> (10 or 2) in range(1,6) False In the ab...
asked on 20.07.2017 / 03:15
1
answer

Return 0 on Linux and Windows

I'm starting the ADS course and my programming teacher insists on using return 0 at the end of the function. Most use Windows, I realized that return 0 is required in Windows but in Ubuntu (which is what I use) I do not put retu...
asked on 01.09.2017 / 04:57
2
answers

Should we use SVG or PNG icons for web sites?

Is it better to use icons in SVG or PNG formatting for websites? Why?     
asked on 22.02.2017 / 14:00
1
answer

.Net Core, Dapper and Visual Studio Code?

I'm trying to integrate Dapper with .Net Core but I'm not getting it and all the tutorials I found were done in Visual Studio using Nugget. So would anyone know how to do the Dapper import through Visual Studio Code?     
asked on 17.08.2017 / 22:38
2
answers

Why type = 'date' does not work in Firefox?

I was testing a script to calculate interest and realized that my code does not work in Google Chrome , but if I open the same script in Mozilla it works perfectly. What can it be? elementsArray = document.querySelector...
asked on 16.10.2017 / 19:46