All Questions

3
answers

How to know how many Sundays have the months of the year php mysql

Let's say the year is: 2016  I need to know how many Sundays have the months of the year and record and result in variable php.  Reason:  I need to pass a condition, for example: if ($dom_mes == 4 ) { //CONDIÇÃO A } elsei...
asked on 21.10.2016 / 15:48
1
answer

Write unit tests for interface or implementation?

Given the following test scenario, where I have the interface: public interface UserService { /** * Registra um usuário no sistema. * * @param user * Usuário à ser registrado. Não deve ser {@code null}...
asked on 24.04.2015 / 16:25
4
answers

Two "return" in a function

How does it work if there are two (+) return in a Python function? Would you like to return the second value, or just the first one? Example: def soma(a, b): x = a + b y = 'qualquer coisa' return x return y     
asked on 21.09.2018 / 02:36
2
answers

SQL - Restrict query data

Good morning, I have an app in WebForms that from two DropDownList gets data from a database in MS SQL Server 2012 . At first DropDownList it will display the name of several companies in the database with the fo...
asked on 15.04.2016 / 10:50
5
answers

How not to apply opacity on a child element?

I have a div with opacity applied, but this div has a child element. I do not want opacity to be applied to these child elements, would I have some way to solve it? Example: link Link code: .div-pai{ width: 400px; height: 400...
asked on 03.02.2014 / 13:32
0
answers

How index selectivity works

Reading about indexes I recently came across the term "selectivity". Some places said that more selective fields should come first in the index, others say no or that it depends. I have the following table tbMovimentoConta abbreviation...
asked on 11.01.2017 / 17:25
3
answers

What is the difference between "decimal.Divide" and the traditional "/" in C #?

decimal a = 10/5; Returns 2 decimal b = decimal.Divide(10,5); Returns 2     
asked on 26.04.2016 / 23:45
1
answer

Move character sprite on canvas and change image [closed]

Well, I would like to know how I could implement a sprite on my canvas, I am very lay with canvas, the idea is, by pressing arrow -> he runs the sprite 1.png, the squeeze arrow < - he runs the sprite 2.png, and when left click he performs spr...
asked on 19.06.2016 / 01:00
1
answer

In what scenarios is it worth to use ElasticSearch?

In what scenarios ElasticSearch is indicated as a replacement for searches in ER or NOSQL databases. The main question is when should I use elasticsearch, because I realize in my applications that a postgresql or mongodb already has a satisfa...
asked on 06.03.2018 / 18:01
1
answer

Object-relational impedance difference

Basic question about object-relational impedance mismatch , a topic with which I have little experience. Does it really exist? (Certainly, Martin Fowler > and Ted Neward already talked about the problem, but does it really occur in...
asked on 04.11.2014 / 00:29