Scala, Java, Unix, MacOS tutorials (page 255)

Welcome to the main page for my Cato CRUD generator application. Getting right into it, here’s what the marketing department says about Cato:

“Cato is a free, open source, template-based, database-driven, GUI app that lets you generate text -- source code, configuration files, etc. -- for any programming language or tool, based on the tables in your database.”

If you know what the code generator does in Ruby on Rails, Cato works just like that, but it’s not specific to any programming language or framework.

“Brain and brain, what is brain?” From a Star Trek episode titled, Spock’s Brain. This is how I feel when I try to write code first thing on a Monday morning.

This code shows how to create a Java FlowLayout that flows left and has horizontal spacing of ten pixels and vertical spacing of five pixels:

FlowLayout flowLayout = new FlowLayout(FlowLayout.LEFT, 10, 5);
jPanel.setLayout(flowLayout);

Here’s what the FlowLayout constructor arguments look like:

FlowLayout(int align, int horizontalSpacing, int verticalSpacing);

FlowLayout 'align' property definitions

The align property can be any of these:

If you want to set your Java JScrollPane scrollbars to always scroll, both horizontally and vertically, this code shows the solution:

I’ve been thinking about getting a new tablet recently, and after looking at the Nexus 9 yesterday, I have to say that I like Google’s latest UI design. Android 5 looks good, and this image from Google+ is also pleasant enough to look at.

I saw a small photo in a recent issue of Yoga Journal, and thought it was so beautiful that I made this “fake oil painting” from the photo. (Click the photo to see it in its full size.) Whenever I get lazy in a pose I think of this photo as a form of inspiration. The caption on the photo said, “It was the morning of my grandfather’s funeral, and I needed a little yoga. I headed out to a lake in Brown County, Indiana.” ~ Kalee Thompson, Athens, Georgia

I’ve read a lot of irrational claims about how functional programming helps with concurrency, but if a compiler can do what this says, at least it’s a clear, rational example of how FP can help with concurrency. It’s taken from an article titled, Functional programming for the rest of us.

Mary Rose Cook has written a great, simple introduction to functional programming. The image shows the introduction to her article. I find it interesting to think of certain aspects of functional programming as writing pipelines, as in Unix/Linux pipeline commands. If your methods/functions have no side effects, you can write pipelines in your functional code.

I’m still in the eval period, but Artboard looks like a good, simple Mac OS X drawing application. I currently use GIMP for almost everything, but it’s not really intended for certain things.

Time magazine has a list of the best inventions of 2014. Some of them are kind of a joke to me, but a personal nuclear reactor and wireless electricity would be welcome.