All Questions

2
answers

Collision system for game in html5!

I'm learning a little about games in html5, css and js. I made a very basic gameplay, player movement, enemy and a collision system , see: var canvas;//o elemento canvas sobre o qual desenharemos var ctx;//o "contexto" da canvas que s...
asked on 04.05.2018 / 02:25
1
answer

How to count the number of tables in MySQL?

I'm trying to count the number of tables in a MySQL database. I tried to do the following but returned a syntax error: SELECT COUNT(SHOW TABLES) How can I do this?     
asked on 05.08.2015 / 18:44
3
answers

Doubt with PHP and Apache

I formatted my machine and was advised to use Linux, and so I did. But in my localhost , the .php files are not read / recognized, only the .html files. I installed, reinstalled and did everything I saw on the internet, bu...
asked on 12.05.2015 / 20:01
1
answer

Collections - mongodb

I have a collection called suspeitosSchema and another call acoesSchema . suspectsSchema: const suspeitosSchema = new mongoose.Schema({ sexo: { type: String }, etnia: { type: String }, cumprimentoCabelo: { type: String...
asked on 01.12.2017 / 19:58
2
answers

Control visibility of view components in ASP.NET MVC 5 controller

I am refactoring a project in ASP.NET MVC 5, implementing some good practices and researching, it was mentioned that the use of if in the view (razor) is not the best practice, but I use it to show or hide some components (fields) according to t...
asked on 21.09.2015 / 15:40
1
answer

How can I record information with Arduino?

We are developing a reading system to check parameters of electrical pulses that are measured directly from the electrical grid of a residence, and for this to happen we need to read and archive these parameters for a month.  Is it possible to d...
asked on 24.11.2015 / 19:32
2
answers

Code First and Calculated Fields

I have a class Pedido , which has a calculated field, which is the value of the request, consisting of the sum of the items minus the discount. public class Pedido { public ICollection<PedidoItem> Itens { get; set; } publi...
asked on 25.11.2015 / 14:23
1
answer

What is the difference between a .c and .cpp file?

C and C ++ are two different languages, however C ++ is a superset of the C language. So what's the difference between a file with the extension in .c and .cpp ?     
asked on 01.12.2016 / 22:24
3
answers

LINQ with condition in where using variable

I have the following table: USUARIO Nome | Idade João | 21 Maria | 18 I want to make only one query that returns all users, or only returns users of a specific age based on a C # variable. Also by name. int idade = 18;...
asked on 26.08.2015 / 22:01
2
answers

How do I store and read settings?

Imagining that I have a small site, and this site stores and returns information from the database. I currently see a lot of people storing the login data for MySQL or paths in PHP variables or defines constants. <?php ... $db_host = "l...
asked on 30.11.2015 / 15:39