All Questions

2
answers

MariaDB ERROR: ERROR 1709 (HY000): Index column size too large. The maximum column size is 767 bytes

When I run this code in MariaDB, it gives me this error when trying to create the toy table:    ERROR 1709 (HY000): Index column size too large. The maximum column   size is 767 bytes. I do not know how to fix, MariaDB has already install...
asked on 30.12.2016 / 14:14
1
answer

Class C ++ Doubt

I would like to understand why some classes in C ++ have the following declaration: class Bla; class Ble { .... } My question is about the Bla class, it does not make sense as far as I can see.     
asked on 11.10.2016 / 18:35
2
answers

Count black pixels of an image region

I have the following question: I have a script that I can select the coordinates of an area of an image: link Considering that I have a binária ( black and white ) image, how do I count the amount of black pixels in a certain...
asked on 11.10.2016 / 00:28
1
answer

Why define output 0 or 1 at the end of a program?

I've noticed that some programs always have a code snippet, which is always executed last, which receives as a parameter a number, usually 0 or 1 . For a better understanding, I put this example of a PyQt application: #-*- codi...
asked on 02.01.2017 / 19:06
1
answer

How can I differentiate authentications in laravel? Example: Administrator and Common User without using multauth

How can I differentiate routes to the same auth? I have a User table and I have registered two types of user: admin and common user, both in the User table, with the same attributes. How can I differentiate the routes that will appear for bot...
asked on 07.12.2016 / 18:42
1
answer

Is it possible to have Java SE and Java EE on the same machine?

Can I install Java SE and Java EE on the same machine?     
asked on 15.12.2016 / 20:04
2
answers

How is the generated query created in Linq when we do UPDATE?

How is the generated query created in Linq when we do UPDATE? using ColWebDBContext.DBase.Banco; using System; using System.Web.UI; using System.Linq; namespace DBContext { public partial class _Default : Page { protected void...
asked on 28.10.2016 / 20:24
1
answer

Observer can be considered a break in encapsulation?

Observer uses abstraction and interfaces . Let's suppose that a Observer "watches" the changes of state of certain classe and informs them to another external agent, we can consider this a break of encapsulation, since...
asked on 15.09.2016 / 16:25
1
answer

DataAnnotations for checking between Start Time and End Time

I have two fields of type [DataType (DataType.Time)], being the Start Date and End Date, and I can not let the user enter the Final Date smaller than the Start Date for the purpose of calculating hours worked. p> How do I compare two time fiel...
asked on 23.12.2016 / 18:09
1
answer

Is there an alternative to multiple whiles loops?

I have a alterar() method that changes the data of a particular element of my XML Person, however, this routine uses several% s of% s for each element, see below the routine: public void alterar() { try { Do...
asked on 10.09.2016 / 23:25