Skip to main content

Posts

Block Spotify Ads

Spotify is a digital music service that gives you access to millions of songs without having to pay a penny.  Off couse you can pay so you don't have to listen to those ads anymore, but there is a free way to block Spotify ads. The best ad blocker at the moment is Blockify that mutes Spotify whenever it detects an audio ad. When the ad finished playing it will unmute Spotify and play your tracks. Blockify also adds customizable hotkeys to Spotify, so you can skip tracks, play, pause, shuffle, and change the volume with keyboard shortcuts. Features: Mutes Spotify whenever it detects an audio ad. Play your own MP3s during adverts. Control Spotify via keyboard hotkeys. Easy to use, totally portable. Unlike every other advert blocker, it doesn't rely on a list! Download Blockify

Java - Calculate Factorial

This code snippet calculates the factorial of a number up to 20. Because of the large numbers it can't go higher then 20, 21 factorial is: 51.090.942.171.709.440.000. There are two methods in this code, one for calculating it with recursion and one non-recursive. ? 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 public class Factorial {      public static void main(String[] args) {          System.out.println(factorialRecursion( 20 ));          System.out.println(factorial( 20 ));      }      public static long factorialRecursion( long l) {          if (l < 2 )              return 1 ;          else ...