Comments (18)
I agree with Sunako, it would be a great feature to be able to generate some random in prefix/suffix for security.
from screencloud.
+1 from me.
from screencloud.
This is a good idea, I'll see what I can do in the next version.
from screencloud.
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.
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.
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.
very nice, thx! but... how can I use it in client ? %rdn or %rnd_h seems not working
from screencloud.
@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.
@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.
@olav-st Great work!
Reinstalled ScreenCloud. I had to remove it because the screenshots weren't random.
from screencloud.
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.
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.
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.
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.
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.
Just a quick update on this looking at the source code using {rnd_s} is what you guys are after.
from screencloud.
@thispixel You're my hero!
from screencloud.
Any progress?
from screencloud.
Related Issues (20)
- Trouble with project compiling HOT 1
- Add support for macOS Big Sur HOT 7
- Update Windows compile description for recent versions HOT 2
- Can't take screenshot on the second windows HOT 1
- Capture only ever captures the desktop HOT 9
- Windows Plugin path is wrong! HOT 2
- Screenshots select other screens in a multi-monitor setup. HOT 15
- Possibility of scrolling browser or capture of whole site HOT 2
- Programs disappearing on 5120 x 1440 HOT 2
- Is it possible to automatically pick system screenshot? HOT 2
- Option to disable "Enter" after capture region HOT 2
- Feature request : take an entire webpage screenshot HOT 2
- [Suggestion] Upload from Clipboard HOT 2
- Nextcloud Support HOT 3
- Group Policy for centralized configuration HOT 3
- App is not responding on macOS Big Sur HOT 2
- Uploading using Shell Script failed HOT 2
- Mac OS 12.3, fresh install ScreenCloud does not execute due to lack of Python? HOT 2
- App doesn't run on Apple M1 Monterey 12.4 HOT 2
- MacOS Ventura HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from screencloud.