Concerning this unicode string “日本語” Julia tells me it has a length of 3. This initially led to my indexing problems. Because visually they’re 3 characters. So for example I would try and reference the above 2nd character as one greater than the previous byte. I probably would have figured out what was going on …
Monthly Archives: August 2021
Lazarus open project weirdness
I think I talked about this before. I often have problems opening Lazarus projects, files or what ever you call it where you want to open a previously working program. Sometimes nothing will open. Sometimes someting else will open. Often I’ll drag a working zipped file and extract then maybe or just as likely it …
Python time difference and ffmpeg
I frequently want to cut scenes out of video clips. I use ffmpeg to do this. However it’s tedious to put my options in every time. The command I used over and over is… “ffmpeg -i fileIn -ss startTime -t timeLength [-codec copy] fileOut” This was tedious to type every time. So I wrote a …
Tumbleweed applying 65 updates!
Success!
Tumbleweed applying 298 updates!
Success!
Go – Strings, bytes, runes and characters
We’ve come a long way since 8 bit ASCII and EBCDIC. It was an issue with Julia too. Every modern language has to deal with International characters. I guess I need to dive into it because thanks to the Internet and other languages a character is not necessarily one byte. Go Info here. Which also …
Continue reading “Go – Strings, bytes, runes and characters”
Having a Go…with Go
Golang…baby steps. Go sounds cool and Golang sounds wordy. Go is too common IMHO. However since Go comes from Google it probably helps in googling the language. Perhaps a stronger assumption you’re googling about the language. Playing with Go. Reading/writing files. Learning enough to be dangerous.
Something is wrong with my grub
And I’m not talking about food. Grub slow to come up countdown timer slow or missing. The arrow keys respond very slowly. Once I do select an OS it seems to come up normal.
Tumbleweed network activity lie
So in addition to Tumbleweeds odd way of graphing left to right at the beginning, then switching to right to left as all my default monitors do. It also sometimes shows download activity when I’m disconnected from the network. As shown below. In this case I also physically disconnected the Ethernet cable. If you fullscreen …
Learning programming languages
Most tutorials start with variables and types, loops, if statements you know…the basics. But for me I like to move quickly to reading/writing files, so that usually implies at least some type of loop also. Because that is where I’m most likely to need to use the other basics of programming. I also like to …