Randomly thinking about #bikeshedding when #programming the size if a #filesize #integer in a #FileFormat, though I guess it could be used for any #DataStructures in #ComputerScience.
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
Does anyone know how to #increase the #filesize upload for #mastodon ?
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 #help
#increase #filesize #mastodon #help
@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.
#filesize 1,000,000
or somesuch
#dosbox #screenshots are so tiny
#fileSize wise I mean
#dosbox #screenshots #filesize
@alwirtes there we go, the limit on this server is 40mb; that must be a setting somewhere. #filesize #mastadon #videolimit
#videolimit #mastadon #filesize
I think the reason there is a file upload limit is at https://github.com/mastodon/mastodon/blob/ef5937da1ff2d6caca244439dd9b9b9ed85fb278/app/models/media_attachment.rb#L32 which is an explicit choice https://github.com/mastodon/mastodon/issues/2252#issuecomment-296502151 #mastodon #filesize #MediaUpload
#mastodon #filesize #MediaUpload
How To Create Files Of A Certain Size In Linux #Linuxcommands #Linux #Filesize #Commandline
https://ostechnix.com/create-files-certain-size-linux/
#commandLine #filesize #Linux #linuxcommands
How To Find Files Bigger Or Smaller Than X Size In Linux #Filesize #Linuxcommands #Linux #Findcommand
https://ostechnix.com/find-files-bigger-smaller-x-size-linux/
#Findcommand #Linux #linuxcommands #filesize
How To Create Files Of A Certain Size In Linux #LinuxCommands #Filesize
https://ostechnix.com/create-files-certain-size-linux/
#AlexDixon : « Generating small binaries in #Haskell »
- #Dependencies: « Introduce dependencies with care »
- #DynamicLinking: « consider passing the -dynamic flag to #ghc »
- #Stripping: « Running the #strip command over your binaries will shrink the #filesize by about 1/3 »
- #Compression: « #upx, which is a mature executable packer. »
https://dixonary.co.uk/blog/haskell/small
#upx #compression #filesize #strip #stripping #ghc #DynamicLinking #dependencies #haskell #AlexDixon