PieFed's PDQ image hashing service is available to be used by any fedi platform
cross-posted from: piefed.social/post/761023
PieFed uses PDQ hashing to generate a fingerprint of an image and can use that fingerprint to detect other posts that use the same or fairly similar images, for moderation purposes. Hashes are added to a block list which stops the image from being re-posted in future. Demo
PieFed does not generate PDQ hashes itself - it uses a separate service to do it. Several different instances could be using the same hashing service which will be more efficient than everyone running their own. When an image is being federated around the URL of it will be sent to the hashing service by multiple different fedi instances and only the first will be slow as all the subsequent requests will be served from a cache.
Get the code from github.com/rimu/pdqhash-python
By doing a GET request for yourdomain.tld/pdq-hash?image_… you will receive JSON like this:
{
"pdq_hash_binary": "100100100011...",
"quality": 100
}
The quality score (0–100) indicates how well the image content supports a reliable perceptual hash.
Higher scores mean better contrast, edges, and texture in the image. PieFed accepts anything > 70.
GitHub - rimu/pdqhash-python: Python bindings for Facebook's PDQ hash, with REST API
Python bindings for Facebook's PDQ hash, with REST API - rimu/pdqhash-pythonGitHub
like this
don't like this
highball
in reply to sbird • • •fuzzy finding.
Something else you can do. Install oh-my-bash or oh-my-zsh, either, with
zoxide
jump around. Any of the directories you visit are tracked and weighted with a frecency weighted value. Then all you need to do is type in parts of the name to go there.For instance, if I had directories
~/code/dev_repo/project-one
~/code/dev_repo/project-two
~/code/dev_repo/project-three
Then you just type
z dev one
orz co re pro two
You know, the parts of the directories you remember. The more you visit various directories and the more recent, the weighting is higher and the more likely you get the correct directory you want with even less and less characters. Also check outatuin
it adds a fuzzy finding to your bash history or zsh history.catloaf
in reply to sbird • • •VitoRobles
in reply to catloaf • • •How does it compare with chocolatey?
Ive been using that for years and this is my first time learning of winget.
Laser
in reply to VitoRobles • • •