Tuesday, November 15, 2022

"The file has an unsupported compression type" issue - solved.

 "The file has an unsupported compression type" error message in Premiere Pro could be because you are trying to open .mkv file.

Adobe removed MKV support with the release of Adobe Premiere CC 2019 13.1.

So they leave wrong error message to trick their customers - they do support the compression, but they dont support the file container...

Great work, Adobe!

Sunday, January 3, 2021

CountDownLatch

CountDownLatch is a Java Util type of synchronizer which allows one Thread to wait for one or more Threads before it starts processing.

CountDownLatch JavaDoc

Monday, March 23, 2020

Library vs Framework

Short: IoC 

The key difference between a library and a framework is "Inversion of Control". When you call a method from a library, you are in control. But with a framework, the control is inverted: the framework calls you.

Frameworks:
  • jUnit
  • TestNG
  • Spring 
  • PowerMock

Thursday, December 15, 2016

Is PriorityQueue sorted?

PriorityQueue is not sorted. It is guaranteed that only the first element is "sorted" (PriorityQueue is specified only to return lowest element every time head is requested). The whole queue could be sorted, but this is not guaranteed.

So PriorityQueue iterator returns elements in any order, not in sorted order. Assuming sorted order is a common bug.

Monday, November 21, 2016

++ operator on variable used multiple times in single line

Write the output of this code:
        long l = 10;
        System.out.println( "l " + l++ + "; " + l );


Result:
l 10; 11


Tuesday, May 10, 2016

Java: Variables in interfaces

Concept of variables in interfaces is allowed in Java, but the concept is different. Variables defined in interfaces are always static and final.

Check this for more details.