JUnit 4 – Parameterized

The winter storm in the Twin Cities of Minneapolis and St. Paul is over. Currently there is light snow falling but the temperature is above freezing. Hopefully all the snow will melt somewhat slowly in order to avoid flooding.

In this post we will revisit JUnit 4 from the parameterized angle. I have covered other aspects of JUnit in this post. Continue reading “JUnit 4 – Parameterized”

Java Lambda Expressions

http://(https://hackernoon.com/tensorflow-is-dead-long-live-tensorflow-49d3e975cf04This morning I read the post on Medium named “TensorFlow is dead, long live TensorFlow!” by Cassie Kozyrkov who is a Chief Decision Intelligence Engineer at Google. After lunch will spend some time watching the videos embedded in the post and over the weekend will see if I can take TensorFlow 2.o on a Linux machine for a spin. I have a version of TensorFlow 1.0 installed on a Windows machine. Followed some tutorials but as Cassie puts  it so expressively, it was complicated to say the least. Continue reading “Java Lambda Expressions”

Covariant Return Types

This morning I read the article Turing Award Won by 3 Pioneers in Artificial Intelligence by Cade Metz of the New York Times. The recipients are Yann LeCun, Geoffrey Hinton and Yoshua Bengio. Continue reading “Covariant Return Types”

Can You Access?

Today is going to be the warmest day of the year so far. Forecasts are calling for a high in the mid to upper 60’s. Hopefully the warmer weather will help the remaining snow melt. I would guess that most people in this part of the country had enough snow for the year.

This morning I took a look at the Can You Access? HackerRank problem. The requirements are quite simple. You need to call a method with a parameter in a class that is two levels deep. Continue reading “Can You Access?”

Java Annotations

We all have seen and used annotations in Java. To be honest I have never before created my own annotation. From now on, when the opportunity arises, I will make sure to start adding my own annotations. To read more about the subject at hand, take a look at this page in Wikipedia.

To get a more in depth definition, you might look into this tutorial and the Oracle Java docs. Continue reading “Java Annotations”

Java Priority Queue

Yesterday was sunny and all the snow on our deck has melted away, so my wife and I decided to grill for the first time this season. I believe the temperature went up to 58 F. The day was not as warm as I would have liked, but on occasions I went out just wearing a t-shirt. We grilled homemade hamburgers, potatoes, and corn. We fixed on the stovetop mushrooms with onions and garlic. All was very good and as usual we made too much food. That is fine because we will just warm up leftover today. Continue reading “Java Priority Queue”

Java SHA-256

There was a full moon this morning providing some light before the sun came up. That was nice.

This week I have been taking care of some items that I could not during the past two. My wife and I were able to renew our TSA Pre Checked status for another five years. Was not sure why we had to answer the same questions we did five years ago, and get fingerprinted again. As far as I understand, fingerprints do not change over time. If they would, they would be totally useless. I do not recall if last time we had to present our passports or not. We did have to get our pictures taken. I do agree that the look of people may change in five years. The renewal will kick in before our current one expires. Continue reading “Java SHA-256”

Java MD5

Good morning. I woke up around 04:30 AM. Read for a while and then decided to try the Java MD5 challenge from HackerRank.

MD5 is a message-digest algorithm used to produce the same 16-byte string when using the same string. The input string is typically converted to bytes using a predefined format. This is done because we want the same digest to be produced when we input the same string. Continue reading “Java MD5”

Java Dequeue

It is a relatively warm day in the Twin Cities of Minneapolis and St. Paul. My son tweeted an hour or so ago that the temperature by his place was 46F. Not a day to wear swim trunks and T-shirts but a very welcomed change.

I was going to clean up the code for this post but I have a Docker webinar to watch soon.

The subject for this post is the Java Dequeue (https://www.hackerrank.com/challenges/java-dequeue/problem) challenge from HackerRank. It is a mix of double ended (doubly linked) queue and hash map. Continue reading “Java Dequeue”