News for hackers. Stuff that matters.
Re:Show HN: A tool to upload/download files from command line by darkpuma on Sunday March 03, 2019 @06:28AM (#19293943)
If this is yours, I recommend adopting some sort of inverse relationship between file size and retention time. 0x0 does this and I think it makes a lot of sense: https://0x0.st/

    retention = min_age + (-max_age + min_age) * pow((file_size / max_size - 1), 3)

   days
    365 |  \
        |   \
        |    \
        |     \
        |      \
        |       \
        |        ..
        |          \
  197.5 | ----------..-------------------------------------------
        |             ..
        |               \
        |                ..
        |                  ...
        |                     ..
        |                       ...
        |                          ....
        |                              ......
     30 |                                    ....................
          0                        256                        512
                                                              MiB
Re:Show HN: A tool to upload/download files from command line by leet on Sunday March 03, 2019 @08:51AM (#19294412)
I can totally write a script to divide my large files into smaller parts before uploading. That way I will get unlimited storage?
Re:Show HN: A tool to upload/download files from command line by darkpuma on Sunday March 03, 2019 @11:35AM (#19295258)
> That way I will get unlimited storage?

No. That way fill up his hard drive, break the server and ruin it for everybody. Don't be that guy.

Re:Show HN: A tool to upload/download files from command line by blotter_paper on Sunday March 03, 2019 @02:02PM (#19296129)
I think GP gets that, and is pointing out a potential problem. Your solution of not being an asshole works for small groups, but not the entire internet.
Re:Show HN: A tool to upload/download files from command line by crazygringo on Sunday March 03, 2019 @08:30AM (#19294341)
Why?

I don't see what the correlation is between a user's file size and how long the user will need it to remain.

Generally people use these services to host a file for around the time it takes someone to check their e-mail/ticket/etc. to download the item -- hopefully within a day, usually a couple days, worst-case scenario a week.

The time-cutoff is based on human behavior.

Plus, it's too much mental overhead for a user to have to worry that each file uploaded lasts for a different amount of time.

Re:Show HN: A tool to upload/download files from command line by dahart on Sunday March 03, 2019 @10:38AM (#19294917)
For a host providing a free service that they have to pay actual money to run, and having a finite & non-advertised limit on disk space, it makes sense to put a heavier mental price on large files, so that a 1GB upload actually does feel heavier to the user than a 1KB upload.
Re:Show HN: A tool to upload/download files from command line by lalala1995 on Sunday March 03, 2019 @08:48AM (#19294402)
I think it is to cut the host's cost on disk ? Not necessary for the benefit of user.
Re:Show HN: A tool to upload/download files from command line by darkpuma on Sunday March 03, 2019 @11:26AM (#19295207)
> Why?

The current policy of 25GB for seven days is very generous, but I fear it will prove unsustainable.

Re:Show HN: A tool to upload/download files from command line by ltc5505 on Tuesday March 05, 2019 @10:23AM (#19311061)
Did you type this graph out by hand?