All Questions

1
answer

How can I create a 20-number Banners look on the Jframe

It is a game where your bet will be competing for Sena, Quina and Quadra, so each bet can only have 6 numbers, I need the user to select 6 numbers out of these 20 and then I pick up the 6 selected ones and place his bet . But I just need this B...
asked on 03.12.2014 / 16:11
3
answers

Validate Datetime on client

I have a model with a property of type DateTime : [DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:dd/MM/yyyy}")] [DataType(DataType.Date, ErrorMessage="Data em formato inválido")] public DateTime? Date {get;set;} A...
asked on 31.12.2014 / 02:56
2
answers

How to calculate the difference between values that are in the same column?

I wonder if there is any way to calculate the difference between values that are in the same column. For example: I have a table with 2 fields: date and balance. I need to add a new field containing the balance difference from one date to anothe...
asked on 09.12.2014 / 18:46
1
answer

Help - C # how to update comboBox? autocomplete type

Firstly I'm developing a system in C # and using Sql Server as a database. I would like to perform the following task: When something is typed in the comboBox I update myself, through a search in the database, example: I type A in the comb...
asked on 17.01.2015 / 10:22
3
answers

How to make a left join using a where condition?

I have two tables: category -------- id | nome | imagem user_follow_category -------------------- id | from | to | date Note: The relationship of the two tables is given by category.id and user_follow_category.to . What I w...
asked on 27.01.2015 / 10:13
1
answer

URLs in doctype and html tags

1) <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2) <html xmlns="http://www.w3.org/1999/xhtml"> With HTML5 the use of URLs in the <!DOCTYPE html>...
asked on 12.05.2015 / 00:23
1
answer

How to filter a SELECT with n: m and bring all features?

I'm using n:m to create a system of attributes / characteristics for certain products, so I can reuse the same attributes for more than one product, the table looks something like: WhenIexecuteaSELECTlikethis:SELECTPROD.idASPRODUTO_ID,...
asked on 22.01.2015 / 23:33
1
answer

Change pages url with ajax and load in another browser

I'm having the following problem, I'm developing a web application in java and would like to know how do I change the URL of a page when I click on a link in the menu. For example: Access a website www.example.com.br this is the main link and...
asked on 29.12.2014 / 19:21
1
answer

How to compare two dates in Javascript or jQuery

I'm trying to compare two dates coming from fields text , turning them into object Date , as follows (the first function is to format the field input with XX/XX/XXXX ): function formatar(mascara, documento){...
asked on 07.06.2015 / 01:11
1
answer

Check server uptime with Node.js

I'm doing multiple HTTP requests at a given time, and I want to check only the return status . There are paths that require login in the application but as it is a very basic script and is not interface test I do not find it necessary to use...
asked on 30.05.2015 / 21:25