100 Days of Code Day 67
Well I didn’t get to this until almost midnight so you just get one exercise. I chose a Javascript only exercise since I didn’t want to do it twice at this time of night. Anyway the exercise was Affine Cipher a far more involved substitution cipher using the Modular Multiplicative Inverse which I had never heard of before and did the dumb way (max 26 iterations per character isn’t bad enough for me to go lookup greatest common divisor code). I had some values go negative which I wasn’t expecting so I just added back the length of the alphabet when that happens. That fixed it.
I also finished up Chapter 6 of the Ollama book. It turns out the reason it was so slow to process the files I gave it is because I basically didn’t click the go button. It didn’t take too long after that, but it sure did give me inferior answers to the one in the book. All the constitution questions just spit out the summary for each question even when it didn’t make sense. I tried asking it about the kaboom.js book I threw into the mix. I asked “what can you tell me about kaboom.js” I thought it was kind of a easy one but instead it tried telling me how to make a tic-tac-toe program with it. Sorry, not what I was looking for. It is also taking a looong time to do much of anything. Maybe putting random files in with the constitution pdf broke things.