Greetings from Vermont! In this NixMashup we look at several examples of Java 8 in action with good code in each. We’ve got 50 Ways to Read your application Configuration file, Java that reads and writes to XML files, manipulating system files with new Java 8 I/O methods, Java collections verses streams, and an example of retrieving System Properties.
In Linux we’ve got a chmod command that reduced my pain of recreating several apache websites from backup earlier today, a study on Nautilus which is very helpful if you’re a new Ubuntu user like me trying to bend Nautilus to your will, and a trick on displaying and modifying Gedit Editor settings at the command line. In our Cool jQuery Plugin Category we’ve got a plugin that displays beautiful image collections from services like Flickr, Picasa and Google+.
The Many Ways to Read Config Files in Java
The Strategy Design Pattern is used to choose the best implementation for loading an application’s config files based on environment at runtime. Sample environments include the JVM, using System Environment variables, Servlets, Tomcat Containers, and from the application’s Classpath.
New I/O APIs in Java 8
Great code examples of the new I/O Java 8 options using Lambda and new methods like walk() which creates a stream of all descending files in a directory.
A Look at Java 8 Streams
Using the same lambda techniques we saw in the Java 8 I/O API post earlier, here’s a post on performing lambda operations on Java 8 Streams.
Managing Bookmarks in Nautilus
I loaded Ubuntu Saucy on an office PC and have spent much of the last few days trying to bend it to my will. For File Management I’ve been using Nemo in Linux Mint for the last year or so and loving it. Ubuntu’s Nautilus File Manager is nice but is more difficult to customize than Nemo, so this new Tech Republic post on Nautilus Bookmarks is exactly what I needed.
Display and Modify Gedit Settings
I know, real men use Vim or Emacs, but the rest of us use Gedit. On my new install of Ubuntu Saucy my Gedit Editor didn’t have a Preferences menu option. I was able to fix my problem and as a bonus found a nifty way of displaying all gedit property settings.
NanoGallery jQuery Plugin
This is a really cool plugin for displaying beautiful image collections in a variety of formats from Flickr, Picasa and Google+ photo albums among others.
If you want to catch all of the NixMashup link action and see the links as they are created, follow the NixMash Twitter feed at http://twitter.com/nixmash. Most NixMashup links are first posted to the NixMash feed for later compilation here in NixMashup.
Today’s Vermont Photo is provided by Dan Cernese, available under a Creative Commons Attribution-Noncommercial license.