Vitalii Fedorenko

Toronto, Canada

my-dev.blogspot.com

Age: 29

Software engineer specialized in large-scale fault-tolerant distributed systems.

Github: https://github.com/zhaber?tab=repositories

Apr
7
awarded Nice Answer
Apr
4
awarded Good Answer
Mar
2
awarded Notable Question
Feb
17
awarded Great Answer
Feb
16
awarded Yearling
Feb
16
awarded Yearling
Feb
15
answered How can I combine two HashMap objects containing the same types?
Feb
11
revised Java optional parameters
added 1 character in body
Jan
26
awarded Necromancer
Jan
21
revised Is there a destructor for Java?
deleted 69 characters in body
Jan
18
awarded Enlightened
Jan
14
answered Which is the default access specifier in Java?
Dec
28
comment Sorting HashMap by values
@AquariusPower you don't need casting, just give the compiler a hint on what the generic type is: Entry.<Integer, String>comparingByValue().reversed()
Dec
28
comment Sorting HashMap by values
@AquariusPower See the reversed method at docs.oracle.com/javase/8/docs/api/java/util/… You can apply it to the comparator returned by comparingByValue()
Nov
21
awarded Constituent
Nov
21
awarded Caucus
Sep
19
answered angularjs bootstrap ui 0.13 datetimepicker doesn't pop up
Aug
27
comment Compact way of writing (a + b == c or a + c == b or b + c == a)
division by 2 is simply decreasing the exponent by one, so it will be accurate for any integer that is less than 2^53 (the fraction part of a float in python), and for larger integers you can use decimal. For example, to check integers that are less than 2^30 run [x for x in range(pow(2,30)) if x != ((x * 2)/ pow(2,1))]
Aug
21
answered Compact way of writing (a + b == c or a + c == b or b + c == a)
Aug
19
comment Measure execution time for a Java method
I do not see why the number of database transactions should affect the accuracy, the only thing to keep in mind is that the time of the db query will be included in the total execution time.
1 2 3 4 5