You are not logged in.
^ OMG, black main characters! /s
No, he can't sleep on the floor. What do you think I'm yelling for?!!!
Offline
Does that imply something terrible happened to all back characters after this prequel timeline considering the movie casts?
Señor Chang, why do you teach Spanish?
Offline
In the original films all the black characters were Orcs. The Goblins were sickly green and Gollum was grey.
ree!
No, he can't sleep on the floor. What do you think I'm yelling for?!!!
Offline
Fly, you fools!
https://media.vanityfair.com/photos/620 … gs-004.jpg
Should have said character, kind of lonely, isn't she?
No, he can't sleep on the floor. What do you think I'm yelling for?!!!
Offline
tl:dr check the takeaways below.
The other day I was playing with OCR for the first time. Had a couple of book pages scanned in that I wanted to print out nicely. Going from the xsane scanner software, there's an OCR menu item that seemed to be tied to something called gocr. Installed and tried it, but it left quite a lot of post-conversion cleaning up to do. Then found tesseract looked better, but how to use it from xsane? The options in the preferences seem aimed specifically at gocr. Eventually discovered that xsane comes with a little bash script that's supposed to improve communication with tesseract: /usr/share/xsane/ocr-scripts/xsane2tess3.sh Looks promising - let's run it with '--help' and see what the options are...
Very weird terminal output but no help message. Discover that it needs to be run with no arguments to see them. Finally set up xsane to use it, but processing a single page takes forever, and the result isn't that great anyway. Much better, it turned out, was the GUI tesseract frontend gimagereader. You have to save the scanned image first as a file then process it, but it's easy to leave out things like embedded images in the text, remove line breaks and generally clean things up before saving the text file. I quite liked it.
The story's not over. A bit later I noticed that my terminal no longer had its coloured prompt, even after closing and re-opening. Odd... something changed in .bashrc? Uh oh - there is no .bashrc. No dotfiles at all!! Not cool.
It was that xsane2tess3.sh script. The last line but one is:
rm $FILE_OUT.*
If you run the script with an argument of '--help' as I did the first time, then FILE_OUT is unset and that line resolves to
rm .*
ie remove all the dotfiles in the current directory (which was my HOME). Not cool at all.
Luckily I did have a backup to hand made the previous evening so got the missing files back from there. Except for .bash_history which had looked OK but turned out only to be ~500B instead of its usual 500KB. By the time I noticed that my evening backup had already been overwritten with the latest version... Again, luckily, a hard disk backup was to hand to fill in the history which I sort of rely on to save having to remember commands.
Sigh... panic over.
Some takeaways:
1) Just because a script has been shipped with a Debian package doesn't mean you can trust it. I had a close look at xsane2tess3.sh later and it's not too impressive.
2) Backups are for more than recovering from a disk failure. If you make a daily mirror of your files you'll soon lose the OK stuff you just nuked. Something a bit more sophisticated is needed. (Task for me.)
3) Don't rely on .bash_history - make a note of useful commands somewhere else.
4) I'm sure there was more...
...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )
Offline
Someone made a Android TV x86 that should turn an old PC into a TV but I could not find the download link.
https://forum.xda-developers.com/t/andr … s.4182205/
Requires at least 1.2 GHz dual-core 64-bit capable processor with a typical Intel/NVIDIA/AMD GPU having 64MB of video memory.
Newer, with links:
https://forum.xda-developers.com/t/andr … v.4227253/
Last edited by jeffreyC (2022-02-23 16:39:43)
Offline
I haven't been called by them possibly due to my recent change of the cell phone number, but they showed up at my door ten days ago. Two young people - really tall guy and a pretty girl. I told them I ain't voting for their boss.
Funny that they reminded me of Jehovah's Witnesses reaction when they knocked on my door 15 years ago and I answered "Yes, I do know that Bible holds all the answers" to their opening question. Little did they know I was just toying around. Eventually they gave up once they realised I am just syphoning their promo material for the laughs.
Señor Chang, why do you teach Spanish?
Offline
Jehovah Witnesses - I just tell them we worship Satan and we're getting ready to sacrifice a goat. They leave pretty quick. If we did not move so often maybe they would not talk to me any more.
{Linux-using people I haven't met are friends yet to be made.}
Offline
I thought Saskatchewan was Chewbacca's cousin.
_________________
sayz another Canuck
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
By the way, why there isn't a single word for a "day before yesterday"?
Like presterday or something.
Is there in some other language?
We're using English, we'll steal it.
Offline
why there isn't a single word for a "day before yesterday"?
Shortest US military slang = "balls-2" or "balls-48".
It is odd that English uses a noun phrase rather than a single word, while German regularly combines noun phrases into single words.
TC
Offline
misko_2083 wrote:By the way, why there isn't a single word for a "day before yesterday"?
Like presterday or something.Is there in some other language?
We're using English, we'll steal it.
there is/are :
in german: "vorgestern"
in dutch: "eergisteren"
try to englify that...
Offline
Shortest US military slang = "balls-2" or "balls-48"
So;
Jeff Bezos launched his rocket the day before yesterday = Dickhead shot dick balls-2?
It is odd that English uses a noun phrase rather than a single word, while German regularly combines noun phrases into single words.
To be fair, German combines anything into anything.
I mean, what sort of German rap is "Grundgesetzveränderungsabkommenskoalitionsvertrag" ??!?
try to englify that...
Well, I tried to englify this;
https://www.spiegel.de/netzwelt/netzpol … b5f51ab942
....and managed to come up with a single word; terrifying!!
Last edited by glittersloth (2022-05-31 16:15:49)
Offline
jeffreyC wrote:misko_2083 wrote:By the way, why there isn't a single word for a "day before yesterday"?
Like presterday or something.Is there in some other language?
We're using English, we'll steal it.there is/are :
in german: "vorgestern"
in dutch: "eergisteren"try to englify that...
"förrgår" in Swedish.
/Martin
"Problems worthy of attack
prove their worth by hitting back."
Piet Hein
Offline
Martin wrote:"förrgår" in Swedish.
/Martin
And day is går?
"igår"
/Martin
"Problems worthy of attack
prove their worth by hitting back."
Piet Hein
Offline
"igår" = yesterday
"idag" = today
Maybe Sweden should sue Apple.
/Martin
Last edited by Martin (2022-06-08 06:00:41)
"Problems worthy of attack
prove their worth by hitting back."
Piet Hein
Offline
Please remove my account!
Hopefully the parsley card won't be necessary.
misko, what's wrong, did I miss something?
You can't leave here! You're too valuable for that.
Offline
/Martin
"Problems worthy of attack
prove their worth by hitting back."
Piet Hein
Offline
Finally a jump up the version ladder.
Offline
^Hopefully fixes some security issues, but I never look forward to a Firefox version jump. These days it usually means an unpleasant change to the interface, and some feature that I've been using for years has been taken away.
EDIT: My Firefox-esr just got upgraded to 102.3 with no nasty results so far!
Last edited by johnraff (2022-09-24 05:50:41)
...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )
Offline