All Questions

3
answers

Lotofácil Betting Algorithm

One of the ways to bet on lotto is to choose 15 numbers from 1 to 25. I would like an algorithm in C # to generate bets. Remember that in each combination the numbers can not be repeated among themselves and bets should not be repeated. I alr...
asked on 27.03.2014 / 15:44
6
answers

How do I transform an array that is in a string to array in javascript?

I have a string representing an array as follows: var = "['aaaaa', 'bbbbb', 'ccccc', 'ddddd']"; I want to be able to transform this array that is in the string into an Array to perform manipulations. var = ['aaaaa', 'bbbbb', 'ccccc', 'ddd...
asked on 31.03.2017 / 16:27
2
answers

PHP7 already has stable version for production?

I'm thinking of building a new version of my company's current system, it's with PHP in version 5.5.9. I would like to know if PHP 7 already has stable version to work in production, I saw many posts on the internet no one else spoke of sta...
asked on 15.12.2016 / 18:43
3
answers

What is a module in PHP?

I'm studying this documentation and I came across this term:    The return statement returns control of the program to the module that called it. The execution will continue in the expression following the invocation of the module ....
asked on 28.02.2017 / 18:06
2
answers

How to check for collision between particles?

I need to know how to make each circle collide with the other along with what I'm going to do to follow that direction after that collision. This is the program's main window class: class canvas : public QWidget { Q_OBJECT public: e...
asked on 26.04.2014 / 01:42
4
answers

What is the difference between match_parent and fill_parent?

When editing the xml layout I always get confused when choosing between match_parent and fill_parent , and I end up always thinking that I'm doing everything wrong because I do not know what each one is or if they are the same ....
asked on 22.06.2016 / 20:03
2
answers

How do I search for records saved in the current week?

I'm doing a query on a database, and I want to list the records for the current week. It would be something based on the question about fetching data from the last 7 days from the current date , but instead from the current date, would be the s...
asked on 25.01.2017 / 17:51
4
answers

How to dynamically create properties in C #?

In JavaScript it is easy to create an object with new properties. var obj = { "propriedade1" : "valor", "propriedade2" : "valor" } Is it possible to do something similar in C #? var lista = new List<Object>(); foreach (var ite...
asked on 08.06.2015 / 19:38
3
answers

Difference of hours between two dates with JavaScript?

Hello. I have these two dates: var dtPartida = "20170620 11:20"; var dtChegada = "20170620 16:40"; You need to find out the difference in hours between these dates in the case and 5 hours and 20 minutes. I need it to return like...
asked on 16.06.2017 / 18:08
2
answers

Convert float or double into real $

I have float = 11.6 want to convert into Brazilian currency R$ 11,60 , does anyone know how to do?     
asked on 22.04.2016 / 05:16