All Questions

1
answer

ListView too slow on scrollbar

I have a problem that I do not know how to solve, I have a custom% with_configure with images and the scroll bar keeps crashing even with the loaded list. The list is slow to roll. Adapter: public class AdapterSegmento extends BaseAdapter {...
asked on 02.12.2014 / 05:06
3
answers

Difference of StringBuffer.equals and String.equals in Java

The behavior of method equals of class StringBuffer of Java is different from equals of class String ? If yes, how would I overwrite it?     
asked on 06.11.2014 / 05:18
1
answer

Calculating with Excel times are not very accurate

I have a worksheet that calculates the hours that a company car is used in a month. Each race is marked start time and end time taking intervals of 30 minutes. At the end of the month I then have a table with the used times of each that ar...
asked on 07.11.2014 / 16:46
2
answers

What is the best way to create a conditional foreign key constraint?

In some cases, it is interesting to create a conditional foreign key reference , that is, it does not allow you to reference all the records in another table, but only those that assume a condition. For example: If you have a people table...
asked on 21.11.2014 / 19:12
3
answers

Button with text box high in Android API 14

We see that in the launch of Android 5.0 Lolipop came Material Design that by yes a lot has changed on Android and along with that, the component Dialogs that comes with the button by default with high box text as shown below in the image:...
asked on 23.08.2016 / 16:05
1
answer

MySQL error 1153: Got a packet bigger than 'max_allowed_packet' bytes

When attempting to import a database from a dump with 1.2GB, the following error occurred:    ERROR 1153 (08S01) at line 727: Got a packet bigger than 'max_allowed_packet' bytes The command I'm using for import is: mysql -u usuario -p...
asked on 20.10.2014 / 22:04
2
answers

Taking system time in C

I want to get the start and end time of a for . Ex.: #include <stdio.h> #include <time.h> int main () { time_t rawtime; struct tm * timeinfo; int i, j; time ( &rawtime ); timeinfo = localtime ( &rawtime );...
asked on 04.11.2014 / 23:42
3
answers

How to style a select only with Javascript without Jquery?

I know that jQuery UI has method selectmenu() , what would it be with pure Javascript? Not only the select button where you will open the options, but also the window containing the options, including borders ... For ex...
asked on 07.10.2016 / 19:41
4
answers

Empty input can not receive zero value

I have a form with more or less 5 inputs , at any given time any of these inputs will be worthless, and I want to find out the lowest value between them, but whenever it has one or more empty inputs it returns the value 0 and indicates that...
asked on 10.11.2016 / 12:21
4
answers

Pick word in the middle of a text

I need to get the word tutorial.pdf that is in the middle of the link. This word will always change according to the file you select. <a href="uploads/tutorial.pdf">tutorial.pdf</a>     
asked on 19.09.2016 / 16:03