Giter Site home page Giter Site logo

Comments (18)

arnaudmm avatar arnaudmm commented on June 10, 2024

I agree with Sunako, it would be a great feature to be able to generate some random in prefix/suffix for security.

from screencloud.

Bubka3 avatar Bubka3 commented on June 10, 2024

+1 from me.

from screencloud.

olav-st avatar olav-st commented on June 10, 2024

This is a good idea, I'll see what I can do in the next version.

from screencloud.

VictorBersy avatar VictorBersy commented on June 10, 2024

What about an hash ? A simple md5 hash could be great to generate long random name for each uploads.
We could use it as a prefix or suffix too.

from screencloud.

Sunako avatar Sunako commented on June 10, 2024

Sounds good to me as well, no reason to not have hash as an option anyway. Though prefix and suffix option is a decent idea too, since if people use dates to order their screenshots random hash only file names would throw that off.

from screencloud.

olav-st avatar olav-st commented on June 10, 2024

The new version (1.1.3) includes this. {rnd} should give you a random number, while {rnd_h} should give you a random md5 hash.

from screencloud.

arnaudmm avatar arnaudmm commented on June 10, 2024

very nice, thx! but... how can I use it in client ? %rdn or %rnd_h seems not working

from screencloud.

Sunako avatar Sunako commented on June 10, 2024

@arnaudmm What olav-st said, {rnd} and {rnd_h}.

@olav-st And as far as the hash goes, maybe just hashing the actual image would be better? Random is nice, but if someone was guessing them, the hash being that of the file or just random isn't going to make a huge difference. And I think people might like having the actual md5 of their image, could be useful for something. Just something to think about for the future.

Also, minor thing with the {rnd} random number, if you stack them like {rnd}{rnd}{rnd} etc, they seem to just produce the same random number, making them separate would make it more useful.

Thanks for the changes.

from screencloud.

VictorBersy avatar VictorBersy commented on June 10, 2024

@olav-st Thanks a lot man, that's a really great update !
But like @Sunako said, it could be great to get an hash of our screenshot. Do you have any plan about that ?

from screencloud.

Bubka3 avatar Bubka3 commented on June 10, 2024

@olav-st Great work!

Reinstalled ScreenCloud. I had to remove it because the screenshots weren't random.

from screencloud.

olav-st avatar olav-st commented on June 10, 2024

Also, minor thing with the {rnd} random number, if you stack them like {rnd}{rnd}{rnd} etc, they seem to just produce the same random number, making them separate would make it more useful.

I might do that, but it won't be a high priority. The python code that currently does this is here if anyone wants to implement it before I do: https://github.com/olav-st/screencloud/blob/master/screencloud/res/modules/ScreenCloud.py#L16

from screencloud.

cjbentley avatar cjbentley commented on June 10, 2024

Hi,
The {rnd} command appears to be biased. I tried it for FTP uploading but it ended up not creating any files above 8.jpg and also overwrote the old ones a few times. {rnd_h} does not have such a problem however the string is long which isn't great.

from screencloud.

olav-st avatar olav-st commented on June 10, 2024

I tried it for FTP uploading but it ended up not creating any files above 8.jpg

Strange, what OS are you using? It generates numbers from 0-9 on my Windows machine.

from screencloud.

cjbentley avatar cjbentley commented on June 10, 2024

Windows 8.1. Still, only numbers 0-9 is not really viable for a server with ~300 uploads per day. —
Sent from iOS

On Thu, May 15, 2014 at 10:36 AM, olav-st [email protected]
wrote:

I tried it for FTP uploading but it ended up not creating any files above 8.jpg

Strange, what OS are you using? It generates numbers from 0-9 on my Windows machine.

Reply to this email directly or view it on GitHub:
#10 (comment)

from screencloud.

celebrir avatar celebrir commented on June 10, 2024

Bumping this as I still want to be able to stack {rnd} and make it that it won't overwrite my current files. Also a random hexadecimal would be nice.

from screencloud.

 avatar commented on June 10, 2024

Just a quick update on this looking at the source code using {rnd_s} is what you guys are after.

from screencloud.

celebrir avatar celebrir commented on June 10, 2024

@thispixel You're my hero!

from screencloud.

ilyahoilik avatar ilyahoilik commented on June 10, 2024

Any progress?

from screencloud.

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.