Posts

  • Multi-project sbt build without root project

    Sometimes, the need is to create a multi-project sbt build. But such projects might not always have a root project that makes sense. In such cases, root just serves as an assembler of related sub-projects. Unfortunately, it is hard to get such a case right in build.sbt file. After much searching and experimentation, here is a sample build.sbt, that skips creating and publishing a jar for the root project, but works for other sub-projects: … (Read More)

  • Combining Git Repos

    Recently, I came across a git repository that had scala subprojects as submodules within a super repository. Unfortunately this setup was no longer viable as the team size grew, so we needed to combine all the submodule repos into the main repo, all the while preserving history of each repo … (Read More)

  • Mixtures

    Problem is to find the method of combining a list of mixtures in such a way that generated smoke is minimized. It is given that smoke generated when 2 mixtures are combined = a * b where a, b are flavors of the mixtures. Also, combining 2 mixtures generates a new mixture of flavor (a + b) % 100 … (Read More)

  • Longest Common subsequence with non-repeating characters

    Problem is to find the longest subsequence of a given string with non-repeating characters. (DO NOT confuse with finding the unique elements in a string) … (Read More)

  • Upgrade jdk7 in debian (jessie)

    Upgrading jre/jdk on debian is usually easy, but sometimes when certain repos are inaccessible, apt-get command fails to automatically install jdk version for you. This post guides you to upgrade your jdk version in such a case. … (Read More)

  • Tuning G1 GC for spark jobs

    Using G1GC with spark jobs needs careful tuning to prevent the dreaded Full GC cycles. Recently while monitoring our spark jobs, we noticed that on loading the job with many queries (25 queries per second), frequent GCs were running on the spark driver. … (Read More)

subscribe via RSS