November 19, 2019: Version 1.1 of my Back To Now “mindfulness reminders” app for iOS was just released on Apple’s App Store. Since it’s officially a Valley Programming product, you can read more about it on my Back To Now v1.1 support page on ValleyProgramming.com.
As a quick note, I just got a little bit better about logging stack traces when writing Java or Scala code. In Scala I used to get the text from a stack trace and then log it like this:
// this works, but it's not too useful/readable logger.error(exception.getStackTrace.mkString("\n"))
In that code,
getStackTrace returns a sequence, which I convert to a
String before printing it.
Linux grep commands FAQ: Can you share some Linux/Unix grep command examples?
Sure. The name grep means "general regular expression parser", but you can think of the
grep command as a "search" command for Unix and Linux systems: it's used to search for text strings and more-complicated "regular expressions" within one or more files.
I think it's easiest to learn how to use the
grep command by showing examples, so let's dive right in.
If you’d like an example of how to create a data entry form using the Play Framework v2.6, here’s a complete example.
If you ever need to convert HTML to plain text using Scala or Java, I hope these Jsoup examples are helpful:
I was going to write a little application to let me annotate my MacOS screen during presentations, but the Ink2Go product looks like it does exactly what I was thinking. As I’m creating a video presentation, such as when showing how to write some Scala or Android code, I want to be able to draw on the screen, such as writing text, arrows, circles, and boxes to highlight parts of the screen. Ink2Go looks like what I want.
If you ever need to copy text (or a text file) from the MacOS Terminal to the Mac clipboard, I can confirm that the macOS
pbcopy command works. It reads from STDIN and copies the text to the clipboard, so commands like these work:
$ echo "foo bar baz" | pbcopy $ cat /etc/passwd | pbcopy
While looking for something else I just ran across this image that shows an example of outlined text created in Gimp. I had forgotten all about it, but I created it when I wrote my How to create outlined text using Gimp tutorial.
I don’t know too much about salting, hashing, and encryption, but it always upsets me when I see a “Your password is too similar to a previous one” message like this, because I assumed that whoever was showing this message was storing my passwords as plain text somewhere. This thread on Twitter, started by Anna Filina, addresses this topic.
“Could you maybe just shoot me a text?”