39 Matching Annotations
  1. Sep 2019
  2. Aug 2019
  3. Jul 2019
    1. Java program to convert decimal number to binary
    2. Armstrong number in java
    3. Java program to check if a number is palindrome or not
    4. Java program to check whether number is prime or not
    5. Java program to print multiplication table of any number
    6. Random number generator in java
    7. Java bitwise AND to check a given number is odd or even
    8. Java program to print armstrong number from 1 to 1000
    9. Java program to check armstrong number
    10. Java program to convert decimal number to binary & count number of 1s
  4. Jan 2018
  5. Nov 2017
  6. Oct 2017
    1. engage Learning5191Natorp Bouleva

      number

    Tags

    Annotators

  7. Jul 2017
    1. up vote 7 down vote accepted When you are starting your kafka broker you can define set of properties in conf/server.properties file. This file is just key value property file. One of the property is auto.create.topics.enable if it set tot true(by default) kafka will create topic automatically when you send message to non existing topic. All config options you can find here Imho Simple rule for creating topics is the following: number of replicas must be not less than number of nodes that you have. Number of topics must be the multiplier of number of node in your cluster for example: You have 9 node cluster your topic must have 9 partitions and 9 replicas or 18 partitions and 9 replicas or 36 partitions and 9 replicas and so on

      Number of replicas = #replicas Number of nodes = #nodes Number of topics = #topic

      replicas >= #nodes

      k x (#topics) = #nodes

  8. Jun 2017
    1. You measure the throughout that you can achieve on a single partition for production (call it p) and consumption (call it c). Let’s say your target throughput is t.

      t = throughput (QPS) p = single partition for production c = consumption

  9. May 2017
    1. the number of partitions -- there's no real "formula" other than this: you can have no more parallelism than you have partitions.

      This is an important thing to keep in mind. If we need massive parallelism we need to have more partitions.

  10. Sep 2016
  11. Jun 2016
    1. Results of our analysis show that there has been a consistent growth in the number of articles published over the past decade; from 1.3 million in 2003 to 2.4 million in 2013 (see Figure 1). At the same time, the number of authorships has increased at a far greater rate from 4.6 million in 2003 to 10 million in 2013.

      authorships are growing at a much faster rate than articles (though interestingly, "unique authors" are also growing at a faster rate than authors... though I think what they mean is the number of unique individuals identified as authors, however many times they are identified (= unique authors) vs. "number of names appearing in bylines (=authorships).

  12. Mar 2016
    1. New property of prime numbers discovered. Primes greater than 5 can end with 1, 3, 7, or 9. The next prime is less likely to end with the same digit, and biased toward one of the remaining three. For instance, a prime ending in 3 is most likely to be followed by a prime ending in 9. The bias evens out as the primes get larger, but only very slowly.

      http://arxiv.org/abs/1603.03720

  13. Feb 2016
  14. Jul 2015
  15. Nov 2013
    1. What makes number theory interesting is that problems that are simple to state (at least to mathematicians) are often fiendishly difficult to solve. The most famous such problem, Fermat's last theorem, was postulated in the 17th century. It took until 1993 to prove that it was true.