def sample = ['Groovy', 'Gradle', 'Grails', 'Spock'] as String[]
def result = sample.stream() // Use stream() on array objects
.filter { s -> s.startsWith('Gr') }
.map { s -> s.toUpperCase() }
.toList() // toList() added to Stream by Groovy
[on the client] add a local /etc/[pulse/]default.pa containing:
load-module module-tunnel-sink sink_name=rpi_tunnel server=tcp:192.168.2.13:4713 sink=bcm1
If you don't put a sink_name in, pulseaudio won't start. The sink refers to the sink name on the [server] side [determined via: pactl list | grep -C5 Sink | grep 'Name:']
Hi everyone, I am trying to connect a drone's camera using rstp and use YOLO for object recognition. I have been trying to find out what files and lines of code to change in order for me to achieve my goal, I have tried changing, the art...
Stream<String> a = Stream.of("one", "two");
Stream<String> b = Stream.of("three", "four");
Stream.concat(a, b);
or
Stream.of(a, b, c)
.reduce(Stream::concat)
.orElseGet(Stream::empty);
or
Stream.of(a, b, c).flatMap(s -> s);