Hostwinds tech support identified the fix for viewing videos hosted here in Firefox. Please let me know (contact info above), assuming you have a reasonable internet connection, if you find videos slow to load in Firefox.
Hosted at hostwinds.com who have been a GREAT web hosting service!
Available at both https://vin-dit.org and https://home.vin-dit.org, which is at my house, should be the same stuff. Also via IPV6 at https://home2.vin-dit.org or https://home3.vin-dit.org, depending what's going on here.
generate a Rust program with Cargo.toml file to justify an ASCII text file. take as input the file name and the desired line width. justify each line by inserting additional spaces between words, distributing the spaces evenly.
A prompt it's churning on now, seeming to be putting out code:
you’re confused. throw away all your previous reasoning. generate a Rust program with Cargo.toml file to justify an ASCII text file. take as input the file name and the desired line width. justify each line by inserting additional spaces between words, distributing the spaces evenly. That is, for each line: if the line as 0 or 1 words, output it as is without changing it. Otherwise, add up the length of the words into total_word_length, add the number of gaps between words to that to get total_content_length, subtract that from desired line width to get number of spaces to add. Do integer division on number of spaces to add to get the quotient (base number of spaces to add between words to the existing space, which will be 1) and the remainder (additional number of spaces to add to the line). remainder should be < number of gaps. as you construct the spaces for each gap while building the output line, if the index of the gap < the remainder, add an additional space so as to use up the remainder from the division. So each gap will have 1 space (which was there already) plus additional spaces of an amount equal to the quotient of the division (base number of spaces to add) plus the extra space from the remainder, when it is one if the first i < remainder gaps.
The churning on the first prompt was hard to take, it was like a very confused dim programmer.
Playing right now with the result of the second prompt. It doesn't compile and referenced an old version of a dependency. Playing with it more, it really got into trouble with that dependency, called "clap" which is used for command line argument parsing. I gave it this prompt:
this is good but it doesn’t quite work, the clap stuff for argument parsing isn’t working. Can you generate the same program using a different library for argument parsing?
It's yammering away.
This reminds me of a joke a comedian told, where a person is vacuuming the floor, and sees that the vacuum won't pick up something. So they pick up the something and look at it, and then put it back down and try again to get the vacuum to pick it up. They are more interested in the vacuum working right than in getting the floor clean. (Always bad when you have to explain a joke).
The idea of a sort of robot that writes code is very compelling, and when it doesn't work right away, I want to get it to work. It makes the idea of using my head to write the code seem like too much effort. I'm writing this as I play with the AI and running its output. I hardcoded the filename and width as it still was making up command line parsing that didn't work. It runs, but panics. As a test, my hand-coded version can work with the same input and width. Trying a couple other tweaks, but still panics. I really don't want to get into the weeds of fixing this program. Maybe it would have better luck in Python? 🤷
June 02 Fired up "deepseek-r1:14b" again on my Linux desktop and watching it try and write a Rust program to justify text. see justify.html. A problem I worked on long ago. (It's not very hard. ) The 'openweb-ui' docker image puts a web front end on it. It's painful to watch the words trickle out as it "reason"s . It's sort of hard not to look at, like a video of a car crash or something. Installing and running this stuff required a lot of downloading, but it supposedly is self-contained after that. I guess it is sort of a massive blob of data in a very complex structure with a complex algorithm that has some randomness, to put it in old school computer terms. So far it's still toiling away on little tests of its inner function. It seems to have confused extra spaces to be added between words with the total desired amounts of space between words. It did better on the card game "War".
It is pretty remarkable this is possible, and presumably a higher quality model could do better. I wish people weren't saying this stuff is inevitable, though. Is anyone steering the ship of humanity?
June 01 Rabbit, Rabbit, Rabbit!
May 28 ** 4This is all _one_ shot. (I know it's not the opening of the movie, but it is the opening of the story; and I know there's that cut to the snowball)
May 28 ** 3May 28 ** 2 ffmpeg is great but it's taking a while....
May 28 Watching this: May 26 ** 3 Think I've got everything working with Windows and Debian in a VM. Wireguard, caddy, IPV6, Lets Encrypt - bluetooth for the speaker. I like making things work.
May 26 ** 2 Seems like life may be better using Bluetooth to connect to the Creative speakers, from everywhere.....
May 26 HQ report on the various OS's / computers: 2014 Macbook Pro running Arch - new kernel 7.0+ ruins battery monitoring and strangely, keyboard backlight. running linux-lts is OK in these regards. Thinkpad OpenBSD - I did resolve the range requests by getting relayd into the mix and adding a header "Accept-Ranges : bytes". It would be some work to set it up to host the site as the httpd wants to run in a chroot within /var, which only has 20G of space (only!). Filesystems, mounting, resizing etc. all hard on OpenBSD. Also no ACLs, though I think that might just work with the www userid (incoming) and jholland userid (outgoing) when scp'ing. Although, come to think of it, I use rsync ("openrsync" on OpenBSD). Hmmm....
Main bane of my existence right now is the crackling sound on any sound on Windows 11. Reinstalled Realtek and AMD drivers for sound and HDMI. Tried many things, no luck. Same machine, rebooted into Linux, sounds fine. Also today I noticed problems with accessing my Apple Music from a web browser, some songs refused to play.
May 21 Report from HQ: (of vin-dit) -- I decided to take a look at the Windows/Debian VM forwarding situation. It is now working! I did nothing. Windows taketh away and Windows giveth. Writing this in Sublime text on that Debian VM. As far as the SSD I replaced with too much effort, it continues to function on the other SATA cable/port. So, computers can be fun.....think there's duppies up in this joint.
May 20 Might get a new iPhone today......Been enduring the increasing challenges of my iPhone 11 with 64GB for about 6 years I think. Cypher and his steak (Cypher.mp4)May 19 ** 2 Guess I'm bored. I got OpenBSD httpd working with my website files. Got it to get a cert from Lets Encrypt and everything. Doesn't seem to negotiate range requests for big files (movies) with Firefox (or Zen). So, won't be switching rn. Was just running it on the old Thinkpad....The root of that problem would be nice to solve. Caddy on Arch does it fine.
May 19 OpenBSD 7.9 just dropped, writing this from my newly-upgraded ancient Thinkpad.
May 18 ** 2 the best I can figure, that SSD didn't fail, it was the cable or the port or the MB. So now I have a spare 1TB SSD that has seen a lot of use.......
May 18 Lots of sysadmin/hackish drama yesterday and today. After the attempted install of a more powerful graphics card, and putting back the old one, I started getting weird problems on the machine (home-built by Cory). When I saw filesystem errors that reached the point of being unable to mount the fs, I knew I had problems. I thought it could be the motherboard or connections to the disk but the problems continued. Got a replacement disk (SSD) because maybe this SSD had reached it's EOL. Managed to copy the contents of the old disk to the new one with dd and ncat, which ran overnight and into the morning. Then installed the new disk. Oh no! more errors!
So I connected it to a different SATA cable. To try and recover from the errors, I reinstalled all packages and ran xfs_repair from a USB boot stick. It seems OK now, but once burned twice cautious or whatever. Been doing way too much geeky stuff since going to that Linux meetup.
May 17 ** 3 Taking home.vin-dit.org offline. Disk troubles.
May 17 ** 2 Was inspired by convos with Linux folk yesterday to mess with AI a little. Installed a recent deepSeek model in ollama on linux. It is pretty remarkable what it can do in terms of converting an english set of requirements into a working little program. This led to attempting to use the higher end graphics card in that Arch/Windows PC from Cory, a graphics card he discarded a little while back. It doesn't seem to work, and I don't really want to devote a ton of time to it. And the Windows / Debian VM problem seems to be sort of intermittent. I should study Spanish and get away from the computers!
May 17 My Windows 11 install on this machine, on another disk, has started refusing to allow my Hyper-V Linux (Debian) VM to be accessed from outside. I have not found the answer. I only really need Windows for Turbo Tax for Business, which is not available on any other platform. (I could use Wine, haven't done that, though). I know there's a whole Windows world and tons of users use it all the time. I just don't see the attraction. Was also curious about how you get access to Windows Server type stuff, as some people (Stack Overflow, for example) run on it. Seems pretty expensive. Maybe you have to have some inside info. <shrug emoji> (Linux emoji picker is something I don't recall rn.)
May 16 Sometimes, early in the morning, after the sun has been up for a bit, the sunlight is just gorgeous - kind of golden. It's like that right now. (6:31 AM).
May 14 Watching this on my TV via Apple TV, coming from my iPhone 11. Pretty incredible stuff! Gotta have a sense of wonder. Herbie and Tony look so young!MilesQuintetItaly.mp4May 05https://en.wikipedia.org/wiki/Moral_foundations_theory This is interesting. Heard about Haidt from a Barry Magid talk. Why do some things seem right to some people and wrong to others, in a moral sense? This seems to be a relatively recent intellectual idea. I want to look into it, but I'm still working on a long book by Donald Lopez.
May 01 ** 2https://www.quantamagazine.org/physicists-discover-the-most-complex-forms-of-ice-yet-20260427/ Can ice-9 be far away? https://en.wikipedia.org/wiki/Ice-nineMay 01 Rabbit, Rabbit, Rabbit !!!