All Questions

1
answer

What is REPLACE INTO in MYSQL?

What is the purpose of the REPLACE INTO command in MYSQL? Example: REPLACE INTO tabela(col1, col2) values(value1, value2) WHERE id = 1     
asked on 03.02.2016 / 13:49
2
answers

What is elegant coding?

I always see some answers to questions suggesting that if you do something x is more elegant than the form y. I started to think what would be elegant in our context. 9 pages of 50 records with the term: link Dictionary:    which i...
asked on 23.12.2016 / 14:18
5
answers

Singleton or class and static members?

I was researching some projects in .Net and Java and from what I understood about the benefits of Singleton , I found it unnecessary to use it. For example: in a project, it was used to instantiate classes that loaded data into memory whe...
asked on 14.07.2014 / 14:54
2
answers

Difference in use Index Unique and Unique Constraint in Sql Server?

I would like to know what behavior / differences between a Unique Index and Unique Constraints for Sql Server ? Many should think that this does not make a difference in the database, but it does! And not only for the DBA / Administrator...
asked on 21.12.2013 / 21:37
2
answers

Multi-core CPUs - Why does not my application use all processor cores?

I have a question that I can not find a convincing answer. There is an application developed in Delphi 7, and in an extremely complex routine (which takes about 2 hours) we noticed that only the first processor core is used, in this case an I...
asked on 23.06.2015 / 21:06
1
answer

ASP.NET MVC - Attribute that writes to a View

I need to write a Attribute that writes a mask validation to View. For example, I would like to mark a property in the Model with a [CEP] , write the following in the View: <script type='text/javascript'> $(docu...
asked on 17.03.2014 / 23:59
1
answer

Security - Syscall inside shellcode does not execute

I'm studying information security and experimenting with trying to exploit a classic case of buffer overflow. I've succeeded in creating the shellcode , in its injection into the code and in its execution, the problem is that a syscall for...
asked on 24.07.2015 / 22:58
3
answers

How to randomly color DIVs with a color Array in javascript?

I created a function that exchanges colors (pulled from an array ) in certain elements of the page (which are also in array ), changing the colors of the elements one after another. I wanted to do something different, like: Sort the element an...
asked on 14.02.2014 / 15:39
2
answers

How to use Qt translations directly with QApplication :: tr ()

In an application developed in Qt I have a non-visual class (that is, it is not inherited from a QWidget ) but it handles text strings that must be presented to the user. To use the Qt translation engine, I defined all strings using the...
asked on 11.12.2013 / 18:59
4
answers

Force javascript file update without disabling cache

In a large-scale web application that develops, an upset occurs every time updates occur, because browsers, especially Google Chrome, cache JavaScript files and, sometimes, incompatibilities occur between the server code and the client code, l...
asked on 10.06.2015 / 02:49