Comparing Randomness: Django vs My Javascript Tool

In this article, I compare the randomness of secret keys generated using Django's built-in key generator and my custom JavaScript method. Using statistical tests like Chi-square, KS test, runs test, and entropy calculation, I analyze the randomness and security of the keys. Both methods show high levels of randomness, with Django's keys slightly outperforming in some tests.

July 4, 2024

Django Secret Key Generator

One of my passions is helping people learn to write code and I know a lot of people who are learning or who have learned Django. I have noticed that a lot of people use web based tools to generate their secret keys and while there's nothing particular wrong with that, I find it worrisome that those tools don't show the algorithm they use to generate keys. So I thought I would create my own secret key generator and use it as a way to start teaching people a bit about how 'random' works in software.

July 2, 2024

New hluska.ca

Some people spend their Canada Day long weekend camping. Others spend it golfing or having barbecues with their families. I spend mine pushing a redesigned version of my website. After a few small snags, it's up and launched.

June 30, 2024

Pushing an Update

I just pushed a redesign of hluska.ca. As expected, it works well...except for the part that didn't. So don't be surprised if things are a little strange for the next day or two.

June 29, 2024

Almost Finished a New Version

I'm a very bad designer so it's been tough, but the latest version of my website is almost complete and ready to launch.

June 28, 2024

Docker Docker Docker

Several weeks ago, I got to start walking some people who were new to Docker through setting up their first containers. I was really surprised by how hard it is for people to write their first containers and configure them properly for local development, so a friend and I decided to open source some of our local development containers. The process of getting them ready to be open sourced has taught me some very interesting things about Docker and teaching software to the masses.

June 21, 2024

Back to Back

I hurt my back badly last spring after spending way too much time working a contract. It was a brutal experience, but I learned some things I really wish I had known years before.

June 20, 2024

An updated Dockerfile

I got into a bad habit a long time ago and started exposing ports at the very end of Dockerfiles, even though I knew it wasn't a good use of Docker's caching. It just looked cleaner and made more sense (to me). However, I did some testing and discovered that keeping that higher up in the dockerfile makes a noticeable difference when it comes to rebuild times.

June 18, 2024

Redesigning hluska.ca

I'm not a very good designer so I always find redesigning my website difficult, but this time around, I've noticed how incredibly complicated the modern stack is...even if you just want to design your own website.

June 18, 2024

Get hot reload working with Angular/React in Docker

Setting up local environments is a pain that Docker solves effortlessly, but many of the React or Angular containers you find online don't function properly - for example, hot reload doesn't function in many of the options out there. This combination of Dockerfile and docker-compose.yaml has things like hot reload enabled and are great for local development.

June 16, 2024