All Questions

3
answers

How to select rows from table A that are referenced in a column of table B?

I'm trying to run a query on the database to collect all rows from table A that are referenced in a column in table B: Query I'm Running -- Consulta a recolher da tabela A as linhas com ID referenciado na tabela B SELECT A.* FROM table_esho...
asked on 24.12.2013 / 20:38
2
answers

What is the most efficient way to calculate the HashCode of an object in Javascript?

I'm currently using Object.prototype.GetHashCode = function () { var s = this instanceof Object ? JSON.stringify(this) : this.toString(); var hash = 0; if (s.length === 0) return hash; for (var i = 0; i < s.length; ++i) {...
asked on 17.12.2013 / 16:09
2
answers

How can I implement the GroupBy method in TypeScript?

I have an array: interface IFoo { IDCidade: number; Nome: string } var arr = [ { IDCidade: 10, Nome: "Foo" }, { IDCidade: 10, Nome: "Bar" }, { IDCidade: 20, Nome: "Foo" }, { IDCidade: 20, Nome: "Bar" } ]; I want to group t...
asked on 14.12.2013 / 22:58
1
answer

Grouping and Summing in Oracle

I have a Customer registry ID NOME GRUPO 2033 JOAO FORNECEDORES 2044 MARIA MANUTENCAO 2055 JOSE FORNECEDORES And I have a purchase record made by each customer ID_CLIENTE VALOR_COMPRA 2033 4.000 2033 1.130 2044...
asked on 05.05.2017 / 15:14
1
answer

How to create a scrolling menu?

How is this menu fixed at the top of the page that when the user scrolls down when arriving at a certain place on the page the menu decreases getting compact. And when you return the screen up, does the menu return to the initial stylization? Ca...
asked on 05.04.2017 / 19:32
1
answer

Why does the size of the JFrame exceed the size of its ContentPane, even if it has a defined size?

I noticed a strange behavior between containers in the swing. To exemplify the test, I created a JFrame and a JPanel , and set the panel to contentPane of JFrame . Set the preferred and maximum size of the JPanel t...
asked on 10.05.2017 / 20:00
1
answer

Flashing buttons with Thread

I have a problem trying to make the buttons blink. Using Thread.sleep() , when clicking the button, Thread.sleep() ignores what comes before it, executes sleep and executes only what comes next, in this case setBackgrou...
asked on 28.03.2017 / 20:31
1
answer

How to make a Help equivalent to the Microsoft Help Viewer, but in Visual Studio 2012/2013?

I wanted to make a Help for a commercial automation system that I created, that was in the style of the WinRAR help, and that it was offline. But apparently according to Microsoft Help Viewer on Wikipedia it was only available up to the 2010 v...
asked on 15.12.2013 / 16:51
2
answers

How to use special characters in strings?

What are the ~ and @ characters in the path string in ASP.NET. Example: StreamReader srFile = new StreamReader(@"\server\pasta\arquivo.html");     
asked on 04.02.2014 / 14:01
2
answers

JavaScript Recursive Functions

Someone could ask me a question! function recursiveFatorial(x){ if (x == 0) return 1; else return x * recursiveFatorial(x-1); } console.log("Resultado da funcao recursiveFatorial: ",recursiveFatorial(10)); /* Output 10! 10 x 9 x 8 x...
asked on 05.05.2017 / 04:52