I’ve had an absolutely miserable time finding a fully working example of writing a Java ssh daemon. I finally just went ahead and wrote a working demo ssh daemon echo server, because I’m sure I can’t be the only one not able to get any of the current Apache Mina SSHD example ssh echo daemons to work.
One of the first things not to mix up is the difference between the Apache Mina and the Apache Mina SSHD projects. If you down load the Apache Mina project instead of the Apache Mina SSHD project binaries or source, you’re out of luck. You’ll spend many hours confused and have to implement everything you need practically from scratch. Remember to verify you are downloading the Mina SSHD project!
Continue reading “Apache Mina SSHD SshServer Example”
The classic System.out.println(“Some String …”) is not going away. All the cool kids use it. But what if you could be cooler than all the cool kids?
If you print to a terminal window, now you too can be cooler than all the cool kids by mixing Java and ANSI escape sequences. Even diehard Java programmers often have never used ANSI color codes directly with their println’s
What if you could print from your Java program to a terminal window in multiple colors?
Such a thing can’t be done! You shout.
In fact is can.
Prepare to be amazed!
Embedding ANSI codes in your print’s and println’s allow for colored backgrounds, colored text, and in the hands of the rare genius, multi-colored ASCII art.
Continue reading “Cool Colorful Java Println()’s”
Java 8 introduced Lambda expressions. We’ve been told they would bring simpler easier-to-read programs. We’ve been told that Lambda expressions create multi-core friendly code. Functional programs created with Lambda expressions have fewer bugs, saving development time and maintenance costs. Rumor has it that the release of Java 8 was the moment when the rise of the oceans began to slow and our planet began to heal; it was the moment when we ended all language wars and secured Java’s image as the last, best hope on Earth.
I’m not saying it’s all true. That’s just what I’ve heard.
To decipher rumor from truth, we need to start with some basics. There is a lot of complex, albeit cool, stuff that the experts can do with Lambda expressions. We’ll start with a basic tutorial on how to use a Lambda expression to implement a Runnable.
Continue reading “Implementing Runnables the Lambda Way”