Questions tagged [reducing]
37 questions
0
votes
1 answer
closing specific instance in Windows Azure
I want to scale down the deployment. Typically Fabric closes the instance with higher instance ID, but I would like to control which one it closes.
So when changing instance count if I trap InfrastructureChange and return true would this prevent…

user2159200
- 11
- 1
- 1
-1
votes
5 answers
How to entirely level (map / reduce / recursion) a nested object of unknown depth in the most efficient manner?
I would like to do something like the following but in a more large scale and efficient way. Assume I have an array of objects where each object needs to be leveled/flattened.
Convert something like this ...
[{
name: 'John Doe',
address: {
…

Smit Gabani
- 240
- 2
- 6
-1
votes
1 answer
Why some symbolic expressions don´t get simplified?
Hi I was working on a model for oscilation problems with Lagrangian mechanichs for my Classical Mechanics I course.
My problem is the following:
When I try to Simplify some expressions like the one in the image below, sympy just shows the division…
-1
votes
1 answer
Java Collectors.reducing implementation
int val = integerList.stream().collect(
Collectors.reducing(0, a1 -> a1 * 5, (a1, a2) -> a1 + a2));
The above code does the reduction operation.Transforming the stream of integers and the aggregation function to return Integer . I couldn't…

devv
- 311
- 5
- 17
-1
votes
1 answer
Batch: Slowing processing speed
I am creating a little project to impress my friends, and was curious on how I could slow down the text outflow on the program, using just one line.
I am having a problem (And trust me, I did my research), and was curious as to how to slow down the…

ThatAid3n
- 71
- 2
- 7
-1
votes
4 answers
Reducing html size
Does anyone have a suggestion on how i can reduce my home page size please
http://www.floorsandchores.net

user631249
- 9
- 3
-3
votes
1 answer
How can I reduce the number of figures of a number?
Is there a way to reduce the number of figures of a number?
Example:
double d = 222222222222222224444444444444.0
I want to "serialize" it like 17[2]13[4] for example.
The idea is to reduce the number of "chars" used by the number.

Florian
- 4,507
- 10
- 53
- 73