Explore >> Select a destination


You are here

componenthouse.com
| | www.morling.dev
1.6 parsecs away

Travel
| | Recently I ran into a situation where it was necessary to capture the output of a Java process on the stdout stream, and at the same time a filtered subset of the output in a log file. The former, so that the output gets picked up by the Kubernetes logging infrastructure. The letter for further processing on our end: we were looking to detect when the JVM stops due to an OutOfMemoryError, passing on that information to some error classifier.
| | blog.nndi.cloud
1.8 parsecs away

Travel
| | In this short guide you are going to see how to write to multiple files at-once in Java. The technique you will see here will allow you to write the same data to multiple output streams in one go, which will keep your code shorter, readable and safer from errors that can come through copy-and-pasting. The rationale First of all, why would you want to write to multiple output streams at once?
| | connorberry.com
1.4 parsecs away

Travel
| | Language Comparison Perl: while (<>) { print "$. : $_" } Perl: while (<>) { print "$. : $_" } CSharp: using System; using System.IO; class App { public static void Main(string[] args) { int line_number = 1; foreach (string arg in args) { foreach (string line in File.ReadLines(arg)) { Console.WriteLine(line_number + ":" + line);...
| | www.chrisritchie.org
20.0 parsecs away

Travel
| Doing distributed processing with Java's parallelStream.