All Questions

4
answers

What are Try / Catch Blocks for and when should they be used?

I've been looking for some explanations on the subject, but I have not found any that are simple and straightforward. My question is: What are Try / Catch Blocks for when they should be used?     
asked on 15.04.2015 / 15:18
4
answers

Is it correct to use a table in the page layout?

I made a data table for a colleague of mine here at work and used a table, except that it had no header, it had only 2 columns. And he told me that people hate table, which was for me to read about Tableless, and I did it, but I can not understa...
asked on 15.04.2015 / 15:49
6
answers

Sum of 2 inputs and appear in real time - Javascript

My question is this: I have two type text inputs. One person would put a number in input 1 and another number in input 2. When the person just finished filling in, the result of the sum of the two inputs would appear automatically in real tim...
asked on 18.09.2015 / 19:15
7
answers

Put the constructor of the class as 'private'?

When I put a constructor of a class in C # as private , I get the following error: I would like to know the technical explanation for the reason for this error and if there is any use case of constructor (or one of the constructors)...
asked on 26.02.2015 / 20:36
3
answers

Format double with thousands and decimal

I have the following value: 43239.110000000001 I used this command: txtSomatorio.Text = String.Format( "{0:#.#,##}", somatorio); I achieved this: 43239,11 How do I display it like this? 43.239,11     
asked on 23.12.2014 / 18:45
3
answers

What are the braces {} in a SQL string?

What are the {} keys in the following SQL string used in PHP for MySQL? $sql = "INSERT INTO {$table} ({$fields}) VALUES ({$placeholders})"     
asked on 28.10.2014 / 18:23
5
answers

Excel is a programming language?

No, no, I'm not asking for my opinion. I'm creating this because today I found this unlikely question: Is HTML a programming language? And, I confess, I voted positive in the second comment (image below) of the main answer: So t...
asked on 21.11.2015 / 20:56
2
answers

What kind of data (double, float or decimal) should I use to represent currency in .NET with C #?

Although I am aware of what would be best to use, I ask this question for teaching purposes since I see several examples of people using double in C #. But I've had problems with double for coin calculations and read in several pla...
asked on 01.04.2014 / 22:30
5
answers

How to invert dates in PHP, regardless of format?

How to invert dates in PHP? I need to invert dates in PHP regardless of the input format, either YYYY-mm-dd or dd/mm/YYYYY .     
asked on 18.06.2014 / 15:59
2
answers

Collect Google Analytics data for MySQL tables

I have seen many examples of how to export data from Google Analytics to other formats, as well as keep the exported data updated, but none have so far served to export the data to MySQL because of the following problems: Exceeding query l...
asked on 08.04.2015 / 13:34