All Questions

2
answers

SQL code optimization

How can I optimize the following code so I do not use 3 SELECTs and do not match the query to just 3 status ( SELECT * FROM historico WHERE his_status = 'FRACASSO' ORDER BY his_data DESC LIMIT 50 ) UNION ALL (...
asked on 11.11.2017 / 15:58
6
answers

How to visually indicate which fields are fillable?

I'm developing an application, in which there is the following form to fill out: Thegoalistoobtainthedataneededtoformthe"Code of Action" that must be created. This code is formed by concatenating the first five fields, of which only three rea...
asked on 20.02.2014 / 14:43
1
answer

Format value with Brazilian currency mask

I have a stored procedure that returns me a credit amount for a certain amount of consortium. The return of this value would look like this: 167900 . But it should look like this: R$ 167.900,00 . This value I feed a <...
asked on 23.01.2015 / 12:12
6
answers

Why use JavaScript if there are so many other technologies to generate dynamic content?

Technologies and programming languages specialized for the Web, such as PHP, have as part of their set of roles, generate dynamic HTML content (the page will be presented by the browser according to various conditions). And there are several tec...
asked on 11.03.2014 / 13:58
2
answers

Why in class declarations in Python should we extend object?

No Python , when we declare a class, we extend object . class StackExchange(object): def __init__(self): pass I do not know if I'm wrong, but I had the impression that in some versions this is mandatory; and not in o...
asked on 04.03.2015 / 21:34
4
answers

How to take print (screenshot) of a web page?

I'd like to know how to get print out of a page, and save it as an image. Here is an example for understanding:     
asked on 15.05.2015 / 16:28
5
answers

Difference between two dates in days, hours, minutes and seconds

Problem: How to perform the subtraction between two dates and return the value in Days, Hours, Minutes and Seconds in a SQL query with SQL Server 2014? Example: Dados: DataRecebimento DataEnvio 2013-11-29 11:30:40.157 2014-05-2...
asked on 11.07.2014 / 17:43
3
answers

When does not return Task in async methods?

Usually, in some time-consuming tasks, I use asynchronous methods: public async Task myLongRunningOperation(int i) { ... } However, in what situations do I not necessarily need to return a Task ? public async void myLongRunningOpera...
asked on 11.07.2017 / 04:02
4
answers

Understanding the Node and Applications in real time

Since I first met CakePHP , I got used to programming with it, as it had a small learning curve and greatly speeded up development. For my recent application, I needed the data entered by the users to be monitored in real time in terms of th...
asked on 13.03.2014 / 15:12
2
answers

What is the main difference between int.Parse () and Convert.ToInt32 ()?

In C #, there are two ways (among others) to convert other types to int : Convert.ToInt32(valor) and Int32.Parse(valor) . What is the main difference between these two conversion methods?     
asked on 06.10.2015 / 18:41