Giter Club home page Giter Club logo

Comments (9)

fabianmichael avatar fabianmichael commented on July 29, 2024

Thanks for pointing this out!

Do you have an idea how to work around this on 32 bit systems?

from kirby-imageset.

simonschaufi avatar simonschaufi commented on July 29, 2024

a dirty hack would be to use abs() or use a "proper" hashing method ;) Why so complicated with hexdec and base 16?

from kirby-imageset.

fabianmichael avatar fabianmichael commented on July 29, 2024

The hash is actually encoded in base62 (like base64, but without "/" and "="). The sole reason for this is, that hashes are much shorter while keeping a good entropy. However, it cannot stay like this, so I’ll try to find a solution as soon as possible. This will probably take a few days, as my schedule does not leave much room for this week.

from kirby-imageset.

simonschaufi avatar simonschaufi commented on July 29, 2024

md5 is a hash which could be used (or a substring of it) and you are already making use of it but still I wonder why you do an extra hexdec and the other stuff...

from kirby-imageset.

fabianmichael avatar fabianmichael commented on July 29, 2024

md5 uses only a-f0-9 as characters. My hash function uses a-zA-Z0-9. The reason is just to get shorter hashes, which do not waste bytes and look more readable on the other hand.

I’ll make a branch with a fixed hash function soon, so you can test on your 32 bit system (setting up a VM would take to long just for this sole issue). If you can confirm that it works, I’ll integrate that into master. Does this sound good for you?

from kirby-imageset.

simonschaufi avatar simonschaufi commented on July 29, 2024

sounds great!

from kirby-imageset.

fabianmichael avatar fabianmichael commented on July 29, 2024

Hey @simonschaufi, I’m going on vacation for the rest of the week and couldn’t manage to fix that bug before. But be sure that I did not forget about it. Will take care of that when I’m back at the desk.

from kirby-imageset.

fabianmichael avatar fabianmichael commented on July 29, 2024

Hey @simonschaufi, I finally decided to use md5 hashes instead of base62, as there does not seem to be an easy soluation that’s available on all PHP installations. Updates code is in the repo (master branch), but not part of an official release yet, though tested it on my local (64 bit) machine and it worked fine. Please try if it also work for you, then I’ll tag it as an official release.

from kirby-imageset.

simonschaufi avatar simonschaufi commented on July 29, 2024

Great! Unfortunatelly my good old 32 bit windows gave up a few weeks ago with a hardware damage and so I can't test right now but from my point of view it should work.

from kirby-imageset.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.