You never know where inspiration might come from. For a young girl in ~2013, it might even come from a 1970s Kansas City Royals’ baseball player.
Scala, Java, Unix, MacOS tutorials (page 278)
A view of the Rocky Mountains after Mother's Day, 2014.
I just learned about the Zen Master artwork of Mark T. Morse from this Shambala Sun article. (I previously linked to both of those websites, but they are both gone in 2024.)
Dash is a documentation browser and code snippet manager. I haven’t bought a copy yet, but probably will soon.
An image that shows how we write software, from an article on architecture, performance, and games.
As a brief reminder to self, when using Akka, in general you only want one ActorSystem per application.
Sadly there are wildfire warnings in southern Alaska. It may not look like much on that picture, but that red area is probably larger than states like Illinois, Indiana, Kentucky, Ohio, Iowa, and Missouri -- combined. Photo from this tweet.
Here are a few examples of how to set the Font on Java Swing components, including JTextArea, JLabel, and JList:
// jtextarea
textArea.setFont(new Font("Monaco", Font.PLAIN, 20));
// jlabel
label.setFont(new Font("Helvetica Neue", Font.PLAIN, 14));
// jlist
list.setFont(new Font("Helvetica Neue", Font.PLAIN, 12));
A test application
You can use code like the following Scala code to easily test different fonts. Modify however you need to, but it displays a JFrame with a JTextArea, and you can change the font on it:
If you want the horizontal and/or vertical scrollbars to always show on a Java JScrollPane, configure them like this:
scrollPane.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS); scrollPane.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
Other options are:
HORIZONTAL_SCROLLBAR_AS_NEEDED HORIZONTAL_SCROLLBAR_NEVER
and:
Johnny Cueto is having a great season, and he’s also fun to watch. In his full windup he turns completely away from the batter, a bit like Luis Tiant.
I just learned how to send STDOUT and STDERR to a file in a Java application (without using Unix shell redirect symbols). Just add these two lines of code to the main method in your Java (or Scala) program:
System.setOut(new PrintStream("/Users/al/Projects/Sarah2/std.out"));
System.setErr(new PrintStream("/Users/al/Projects/Sarah2/std.err"));
Then when you use:
System.out.println("foo");
or
Nothing major here, I just wanted to note the use of several scalacOptions in the following build.sbt example:
How to tell the difference between a bee and a wasp. :)
I’m dreaming of a White Mother’s Day, unlike the ones I’ve ever known...
(These are some notes that I originally wrote in May, 2014.)
The next step in the process of treating my papillary thyroid cancer is a radioactive iodine treatment. I’ll be going through this treatment process in a few weeks, and this is what I know about the process today.
The radioactive iodine treatment process
From what I’ve learned from my endocrinologist, the process goes like this:
Good notes on why one business might buy another business, from the loop.
Ahh, the useful information you find on the Internet. From this Twitter post.