100 Days of Code Day 40
Well, I spent way too much time on today’s exercise Camicia. I was going to do several exercises but this took so so so long. I got it doing 27/28 tests passing but it was way off on the last one. Eventually I turned it in, just so I could compare my code against some of the other solutions. Unfortunately, when I did that I couldn’t see what I was doing wrong. Eventually I copied over one that looked the most like mine and started replacing sections here and there to see if I could find a difference. I broke things several times doing that and had to debug for a while to get back to the 27/28 tests passed.
I had it to the point that it basically looked like their code with the variable names changed and it still didn’t work. Then I decided to go the other way and take their code and start mutating it to look more like mine. That wasn’t too fruitful either. At this point they look nearly identical so I started to run a diff between the two. Eventually I found it. It was working for 27/28 tests but I had something wrong with the way I was encoding state. Soooo frustrating, I am glad it is over.
I was looking at running ollama on WSL. On the way I found the following. Is this the magic incantation I needed to allow tcp from wsl? Never could get things connected easily
sudo apt install ufw
sudo ufw allow 11434/tcp