Writing a simple example of Feistal Cipher

2020-02-24 00:02:07 - No Comments

We talk about the Feistal Cipher and implement a simple proof of concept to test the algorithm out. Computerphile video: https://www.youtube.com/watch?v=FGhj3CGxl8I Source code: package org.ea; import java.security.MessageDigest; import java.util.Arrays; public class FeistelAlg { private final static String plainText = "the brown fox jumped over the lazy dog"; public static void doRound(byte[] left, byte[] right) throws […]

Read more →

Inference with Tensorflow in Java

2020-02-17 00:02:47 - No Comments

We talk about the struggles I had with running inferences in Java using a Keras model in tensorflow. This is the train.py used in this example. import tensorflow as tf #import tensorflowjs as tfjs import os from datetime import datetime from tensorflow.keras.models import Sequential, Model from tensorflow.keras.layers import Conv2D, MaxPooling2D, BatchNormalization, Layer from tensorflow.keras.layers import […]

Read more →

Web server in pure Java

2020-02-10 00:02:08 - No Comments

We talk about how to create a simple web server using only native java code, no libraries and the simple interface used for these actions.

Read more →

My coding style

2020-02-03 00:02:06 - No Comments

We talk about how I write my Java code and why I have chosen to write my code in a specific way. This is my opinion. I’m interested in yours if you have differing opinions.

Read more →

How to use expansion files in Android

2020-01-27 00:01:09 - No Comments

We look into how to setup an expansion file in Android and download it from Google Play.

Read more →

Parsing an OpenAPI file (Swagger)

2020-01-20 00:01:07 - No Comments

We go though how to read a OpenAPI specification with the old API reading body content. And we also translate it to the new V3 parser and go through how this differens and works.

Read more →

Creating your custom model for Tensorflow.JS

2020-01-13 00:01:12 - No Comments

We look into how to use Java to create an image classification model using TFRecords and train it with python. Then we will read that model in TensorflowJS in order to predict images.

Read more →

Java 14 – LTS Wrap up

2020-01-06 00:01:31 - No Comments

We look at what will come in the next release of java. Java 14, this release will wrap up development for the long time support release.

Read more →

Advent of Code – Day 18

2019-12-28 15:12:27 - No Comments

We solve the day 18 challenges for the Advent of Code.

Read more →

Advent of Code – Day 10 – This was a hard one

2019-12-27 12:12:23 - No Comments

We solve the day 10 challenges for the Advent of Code. After 3 hours of trying we finally solve it by some interactive debugging.

Read more →

Advent of Code – Day 7 – Finally solved!

2019-12-26 00:12:25 - No Comments

We solve the day 7 challenges for the Advent of Code.

Read more →

Advent of Code – Day 16

2019-12-23 10:12:08 - No Comments

We solve the day 16 challenges for the Advent of Code.

Read more →