All Questions

2
answers

Validating date and time

As I do so that in the date field, not saved a date that has passed, for example the one of yesterday and in the hour field do not enter an invalid time, for example 27:00, only the Brazilian hours. Both fields are MaskedTextBox . Date...
asked on 03.07.2016 / 02:08
1
answer

Transactions does not work on structure creations / modifications?

I was searching the internet for some way to run Transactions for operations of type ALTER TABLE or CREATE TABLE in Mysql . This is because in a system of ours, we used Migrations and wanted that, if something went wrong in crea...
asked on 22.06.2016 / 16:43
1
answer

Installing Android Studio: Path to the JDK

A few weeks ago I installed Android Studio and was developing the project and "accidentally" deleted some folders that I should not (careless of me). I did not find a solution to repair the deleted folders so I decided to uninstall the AS and...
asked on 27.05.2016 / 13:53
1
answer

ComboBoxes that share the same DataSource, change the selection together

I'm doing a production order project and I have 7 combobox picking up the values from the same table (which are those of raw materials). I am using this code in load of the form to load the combobox: cmbMP1.DataSource = bllprodutos.DtMa...
asked on 06.06.2016 / 18:17
1
answer

List comprehension vs cycle for

I have the following code segments: def is_even(num): if(num % 2 == 0): return True return False 1. lista = range(50) pares = [i for i in lista if is_even(i)] # pares = [0, 2, 4, 6, 8...] 2. lista = range(50) pares =...
asked on 27.05.2016 / 20:07
1
answer

Width cube with jquery

Hi I'm doing a test site and I have a promotion div with 100% width, one ul with 100% width and 4 li with the products. When it's over 4 li, I want my promo div to have overflow-x: scroll, and my ul will increase its width by 30%. I tried to do...
asked on 08.07.2016 / 01:30
1
answer

Correct way to make one-to-many relationship using C # and MongoDB

I have two entities, Sistema and Comentario where a system can have several comments: public class Sistema { public ObjectId Id { get; set; } [BsonElement("SistemaId")] public int SistemaId { get; s...
asked on 05.07.2016 / 14:40
1
answer

How to handle the unusual closure of a ComboBox list in VBA?

I'm creating an important effect for a particular ComboBox presentation. The text of this ComboBox is originally centralized , and when you open your list, I make the text left aligned for items in your list to appear < strong> left-alig...
asked on 20.05.2016 / 06:46
1
answer

PHP ERROR - Prepared queries [closed]

Good morning everyone, I'm starting in PHP, I follow a course through youtube. I'm studying prepared consultations. I have a form that does a query in the DB, however, when entering the data, the following error message appears:    Warning: m...
asked on 20.06.2016 / 14:36
1
answer

Integer overflow in R

I'm working on a population dynamics simulation that involves integer generation. Due to the assumptions of my model, I'm generating random numbers through the rmultinom function of R. However, I'm having overflow problems in my simulatio...
asked on 22.09.2016 / 18:07