All Questions

2
answers

Is there a correct way to comment a snippet of code?

Is there a proper way to comment on a snippet of code? For example: // Esconde a tela this.Hide() or would be: this.Hide() // Esconde a tela or until: this.Hide() // Esconde a tela Is there any kind of convention for this?     
asked on 20.09.2016 / 15:58
2
answers

How to create methods in an enum?

I have a Java application and I'm porting it to C #. I have a question regarding enum that seems to work differently than Java. After you have asked a question here on the site ( Enumerations can contain abstract methods? ), whenever poss...
asked on 17.04.2016 / 06:54
2
answers

What is faster, access data in file or database?

In performance, which method is faster to recover data, 1) read a file (which will be generated only once with PHP) or 2) get this data from a database? This data will always be displayed on the page in question. So far I'm using a .json...
asked on 29.12.2014 / 18:39
4
answers

Subsequent Calls in Ajax

I wrote a system on Web2py to a client, and he wanted me to automate a procedure. I thought about using Ajax. The idea is as follows: I have a list of companies. Let's say, 50. I want the screen to open with the list of companies and, on top...
asked on 16.12.2014 / 21:15
2
answers

What are the functions of form tags in HTML5?

The question refers to tags not so commonly used, such as <fieldset> , <legend> , <label> and <optgroup> . Recently I needed to do extensive work involving registration forms and I noticed th...
asked on 25.11.2015 / 19:54
3
answers

How do you join data from another table

How to merge data from another table. On the downstairs bank I have 3 tables: dados: id, nome, end, tel... etc.... cidades: id, nome_cidade status: id, nome_status $sql = "SELECT * FROM dados "; $resultado = mysql_query($sql) or di...
asked on 26.01.2015 / 02:21
3
answers

Less data in a data set

I have a dataset and would like to select only the smallest date between each primary key ( MATRICULA column). Here is the example of my DF: MATRICULA <- c(1,1,3,3,3,4,5,5,5,5,6) DATA <- c('15/01/2018', '10/12/2017', '20/11/2017',...
asked on 19.12.2018 / 13:44
2
answers

Alternative to the Scanner for data entry

In Java, when we are learning to capture data entry, usually by text mode, we are instructed to use the class Scanner . Is there any alternative to Scanner to capture data entry by text mode? If so, how does it work?     
asked on 21.02.2016 / 14:37
2
answers

Encoding utf-8 allows accents?

If we do # encoding: utf-8 In the first line of a Python program, can we make accents in the whole code?     
asked on 05.06.2015 / 03:01
3
answers

Multiple lines of text or code with the ".html ()" method

When using the jQuery .html () method to apply multiple lines of text or HTML code to an element, it fails with error: Example in JSFiddle $(function(){ $( '.qualquerClasse' ).html( ' conteúdo de 3 linhas de código: uma...
asked on 04.02.2014 / 03:27