Raccoon at TechHub :mastodon: · @Raccoon
114 followers · 897 posts · Server techhub.social

Randomly thinking about when the size if a in a , though I guess it could be used for any in .

If you know how big the largest number you're going to have to keep track of is, you can cut down on the size of the integer by choosing a number of bits that's just big enough to fit that... But there are ways you can get really screwy with this.

For example, you could choose a number that isn't the standard 8, 16, 32, 64 by going above that and using the extra bits as flags or something, like making it 24-bit and using the last 8 bits as another byte. Or you could lower the granularity, and multiply the value of whatever the number is to get bigger numbers at the expense of numbers not divisible by that.

The issue with thinking of this however is that we are talking a handful of bytes in what could be megabytes, so less than 0.1% of the byte size...

(more)

#bikeshedding #programming #filesize #integer #fileformat #datastructures #computerscience

Last updated 1 year ago

Fox · @fox
149 followers · 818 posts · Server cytag.nl

Does anyone know how to the upload for ?

I've changed the sizes in /live/app/models/media_attachment.rb and restarted the instance but to no prevail.

Then I thought that compiling was the answer by entering "RAILS_ENV=production bundle exec rails assets:precompile", but this also didn't work.

Pls to

#increase #filesize #mastodon #help

Last updated 1 year ago

😑你踩着我尾巴了 · @dana0502
13 followers · 647 posts · Server m.cmx.im

5.0m # nsfw

#gif #filesize

Last updated 1 year ago

David Jones · @drj
204 followers · 493 posts · Server typo.social

@typeswitch you could require that all programs > 10,000 bytes include a meta-directive in their first 10,000 bytes that extends the allowed size to a particular given number.

1,000,000

or somesuch

#filesize

Last updated 2 years ago

20000lbs of Cheese · @20kqueso
168 followers · 1701 posts · Server queer.party

are so tiny

wise I mean

#dosbox #screenshots #filesize

Last updated 2 years ago

@alwirtes there we go, the limit on this server is 40mb; that must be a setting somewhere.

#videolimit #mastadon #filesize

Last updated 2 years ago

What’s the limits on ? Just tried to upload a 2 ish mim video, about 80mb.

Don’t think the issue with

#Metatext #filesize

Last updated 2 years ago

Olaf · @olba
30 followers · 62 posts · Server bern.social
OSTechNix · @ostechnix
520 followers · 1486 posts · Server floss.social
OSTechNix · @ostechnix
520 followers · 1486 posts · Server floss.social
OSTechNix · @ostechnix
520 followers · 1486 posts · Server floss.social

#filesize #linuxcommands

Last updated 4 years ago

Julien M. · @julm
485 followers · 4935 posts · Server framapiaf.org

: « Generating small binaries in  »
- : « Introduce dependencies with care »
- : « consider passing the -dynamic flag to  »
- : « Running the command over your binaries will shrink the by about 1/3 »
- : « , which is a mature executable packer. »
dixonary.co.uk/blog/haskell/sm

#upx #compression #filesize #strip #stripping #ghc #DynamicLinking #dependencies #haskell #AlexDixon

Last updated 5 years ago