All Questions

1
answer

How to do SignalR load test?

When testing with the SignalR library to create real-time applications in .NET, some scalability concerns were generated which could not be found on the internet. After some tests using Crank (load simulator) , I saw that a relativel...
asked on 12.12.2013 / 00:35
0
answers

Stack operation and memory align in MASM X64

I have an application that takes a TAC (IL) code and generates an ASM code using x64 MASM. The problem is that I'm not having any compile errors, and yes (at least that's what I think) when building the stack . The program below is an MMC, so i...
asked on 25.05.2015 / 13:01
1
answer

Use the same entity in Hibernate to write to two tables

I am using Hibernate to persist in the database, and in a given case, for every update that a given Consultor ed entity has, it should update in the main table called TB_Consultor and insert a new line in the TB_ConsultorHistorico...
asked on 17.01.2014 / 18:45
2
answers

How to calculate the freight of various products

I'm developing a virtual store and I need to implement the freight calculation for the purchase, I managed to make this implementation but the problem is that with a single product in the cart I get the correct return, but with several products...
asked on 17.03.2014 / 20:11
3
answers

What's the difference in the 3 types of variables and how do they behave in the compiler?

For test questions, I made the following code: static int valor1 = 10 / 5; static int valor2() => 10 / 5; static int valor3 => 10 / 5; public static void Main() { Console.Write($"{valor1}\n{valor2()}\n{valor3}"); } And the outp...
asked on 04.09.2017 / 12:51
4
answers

Format Brazilian currency in JavaScript

I have the following variable: var atual = 600000.00 ; Here we have the value six hundred thousand in the American standard, I would like it when I printed it on the screen like this: 600.000,00 I'm using jquery in the project if it he...
asked on 03.02.2017 / 15:11
3
answers

How to rename all tables in a MySQL database

I have a MySQL database with several tables and I'm migrating to another database.    I have a Client and must be a client PE       I have Product and must be Product_PE How can I accomplish this without however pausing to rename each of...
asked on 26.03.2015 / 04:52
2
answers

Random draw, but with different odds

I'm implementing a system where the user clicks a button and a draw with balls of different colors occurs, however for each color there is a probability: He has a 30% chance of catching a blue ball He has a 10% chance of catching a red ball H...
asked on 19.08.2016 / 00:41
2
answers

Simulate key events in javascript

I'm looking for a way to simulate keypress of% via javascript to create an exclamation point shift + 1 for a series of tests (specs) in a framework in which I'm involved. I have used a framework (Syn) , jsFiddle example , but...
asked on 13.04.2014 / 22:51
4
answers

Switch / case very interesting in Swift - What other languages support this?

The Swift language has a very interesting and intuitive way to work with switch-case breaks, with partial-matching, pattern-matching, etc. techniques, see these examples: let age = 33 switch(age){ case let x where x >= 0 && x <=...
asked on 30.06.2016 / 02:44